@aws-cdk/mixins-preview 2.270.0-alpha.0 → 2.272.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii.gz +0 -0
- package/.jsii.tabl.json.gz +0 -0
- package/.warnings.jsii.js +26 -0
- package/lib/services/aws-appmesh/events.generated.js +1 -1
- package/lib/services/aws-athena/events.generated.js +2 -2
- package/lib/services/aws-autoscaling/events.generated.js +8 -8
- package/lib/services/aws-b2bi/events.generated.js +4 -4
- package/lib/services/aws-batch/events.generated.js +2 -2
- package/lib/services/aws-bedrock/logs-delivery-mixins.generated.d.ts +123 -0
- package/lib/services/aws-bedrock/logs-delivery-mixins.generated.js +171 -11
- package/lib/services/aws-bedrockagentcore/logs-delivery-mixins.generated.js +34 -34
- package/lib/services/aws-chime/events.generated.js +1 -1
- package/lib/services/aws-cloudformation/events.generated.js +1 -1
- package/lib/services/aws-cloudfront/logs-delivery-mixins.generated.js +5 -5
- package/lib/services/aws-cloudwatch/events.generated.js +3 -3
- package/lib/services/aws-codebuild/events.generated.js +5 -5
- package/lib/services/aws-codecommit/events.generated.js +7 -7
- package/lib/services/aws-codedeploy/events.generated.js +2 -2
- package/lib/services/aws-codeguruprofiler/events.generated.js +1 -1
- package/lib/services/aws-codepipeline/events.generated.js +3 -3
- package/lib/services/aws-connect/events.generated.js +4 -4
- package/lib/services/aws-dataexchange/events.generated.js +4 -4
- package/lib/services/aws-datasync/events.generated.js +4 -4
- package/lib/services/aws-deadline/events.generated.js +1 -1
- package/lib/services/aws-devopsagent/logs-delivery-mixins.generated.js +3 -3
- package/lib/services/aws-devopsguru/events.generated.js +5 -5
- package/lib/services/aws-dlm/events.generated.js +2 -2
- package/lib/services/aws-ec2/events.generated.js +8 -8
- package/lib/services/aws-ec2/logs-delivery-mixins.generated.js +3 -3
- package/lib/services/aws-ecr/events.generated.js +7 -7
- package/lib/services/aws-ecs/events.generated.js +5 -5
- package/lib/services/aws-ecs/logs-delivery-mixins.generated.js +3 -3
- package/lib/services/aws-eks/logs-delivery-mixins.generated.js +24 -24
- package/lib/services/aws-elasticache/events.generated.js +10 -10
- package/lib/services/aws-elasticloadbalancing/events.generated.js +1 -1
- package/lib/services/aws-elasticloadbalancingv2/logs-delivery-mixins.generated.js +9 -9
- package/lib/services/aws-elementalinference/logs-delivery-mixins.generated.js +3 -3
- package/lib/services/aws-emr/events.generated.js +7 -7
- package/lib/services/aws-entityresolution/logs-delivery-mixins.generated.js +6 -6
- package/lib/services/aws-events/events.generated.js +1 -1
- package/lib/services/aws-events/logs-delivery-mixins.generated.js +7 -7
- package/lib/services/aws-fis/events.generated.js +1 -1
- package/lib/services/aws-gamelift/events.generated.js +2 -2
- package/lib/services/aws-glue/events.generated.js +7 -7
- package/lib/services/aws-guardduty/events.generated.js +7 -7
- package/lib/services/aws-healthimaging/events.generated.js +20 -20
- package/lib/services/aws-healthlake/events.generated.js +14 -14
- package/lib/services/aws-imagebuilder/events.generated.js +3 -3
- package/lib/services/aws-iotanalytics/events.generated.js +3 -3
- package/lib/services/aws-ivs/events.generated.js +4 -4
- package/lib/services/aws-kms/events.generated.js +5 -5
- package/lib/services/aws-logs/events.generated.js +2 -2
- package/lib/services/aws-logs/logs-delivery.js +5 -5
- package/lib/services/aws-logs/logs-destination.js +4 -4
- package/lib/services/aws-managedblockchain/events.generated.js +2 -2
- package/lib/services/aws-medialive/events.generated.js +6 -6
- package/lib/services/aws-mediapackage/events.generated.js +4 -4
- package/lib/services/aws-mediapackagev2/logs-delivery-mixins.generated.js +5 -5
- package/lib/services/aws-mediatailor/logs-delivery-mixins.generated.d.ts +2 -0
- package/lib/services/aws-mediatailor/logs-delivery-mixins.generated.js +9 -7
- package/lib/services/aws-mgn/events.generated.js +3 -3
- package/lib/services/aws-networkfirewall/events.generated.js +3 -3
- package/lib/services/aws-networkfirewall/logs-delivery-mixins.generated.js +7 -7
- package/lib/services/aws-networkmanager/events.generated.js +3 -3
- package/lib/services/aws-omics/events.generated.js +18 -18
- package/lib/services/aws-opsworks/events.generated.js +4 -4
- package/lib/services/aws-organizations/events.generated.js +2 -2
- package/lib/services/aws-pcs/logs-delivery-mixins.generated.d.ts +113 -0
- package/lib/services/aws-pcs/logs-delivery-mixins.generated.js +158 -8
- package/lib/services/aws-qbusiness/logs-delivery-mixins.generated.js +5 -5
- package/lib/services/aws-qldb/events.generated.js +1 -1
- package/lib/services/aws-rds/events.generated.js +7 -7
- package/lib/services/aws-route53recoveryreadiness/events.generated.js +6 -6
- package/lib/services/aws-route53resolver/events.generated.js +3 -3
- package/lib/services/aws-rtbfabric/logs-delivery-mixins.generated.js +3 -3
- package/lib/services/aws-s3/events.generated.js +12 -12
- package/lib/services/aws-s3/logs-delivery-mixins.generated.js +3 -3
- package/lib/services/aws-sagemaker/events.generated.js +14 -14
- package/lib/services/aws-securityhub/events.generated.js +3 -3
- package/lib/services/aws-securityhub/logs-delivery-mixins.generated.js +6 -6
- package/lib/services/aws-ses/events.generated.js +2 -2
- package/lib/services/aws-ses/logs-delivery-mixins.generated.js +8 -8
- package/lib/services/aws-shield/logs-delivery-mixins.generated.js +3 -3
- package/lib/services/aws-ssm/events.generated.js +1 -1
- package/lib/services/aws-storagegateway/events.generated.js +3 -3
- package/lib/services/aws-synthetics/events.generated.js +3 -3
- package/lib/services/aws-transcribe/events.generated.js +3 -3
- package/lib/services/aws-transfer/events.generated.js +56 -56
- package/lib/services/aws-translate/events.generated.js +2 -2
- package/lib/services/aws-voiceid/events.generated.js +9 -9
- package/lib/services/aws-wellarchitected/events.generated.js +1 -1
- package/lib/services/aws-wisdom/logs-delivery-mixins.generated.js +3 -3
- package/lib/services/aws-workspaces/events.generated.js +2 -2
- package/lib/services/aws-xray/events.generated.js +1 -1
- package/package.json +9 -9
package/.jsii.gz
CHANGED
|
Binary file
|
package/.jsii.tabl.json.gz
CHANGED
|
Binary file
|
package/.warnings.jsii.js
CHANGED
|
@@ -41,6 +41,19 @@ const VALIDATORS = { _aws_cdk_mixins_preview_aws_batch_events_BatchJobStateChang
|
|
|
41
41
|
finally {
|
|
42
42
|
visitedObjects.delete(p);
|
|
43
43
|
}
|
|
44
|
+
}, _aws_cdk_mixins_preview_aws_bedrock_mixins_CfnKnowledgeBaseRuntimeLogsS3Props: function _aws_cdk_mixins_preview_aws_bedrock_mixins_CfnKnowledgeBaseRuntimeLogsS3Props(p) {
|
|
45
|
+
if (p == null)
|
|
46
|
+
return;
|
|
47
|
+
visitedObjects.add(p);
|
|
48
|
+
try {
|
|
49
|
+
if (p.recordFields != null)
|
|
50
|
+
for (const o of p.recordFields)
|
|
51
|
+
if (!visitedObjects.has(o))
|
|
52
|
+
module.exports._aws_cdk_mixins_preview_aws_bedrock_mixins_CfnKnowledgeBaseRuntimeLogsRecordFields(o);
|
|
53
|
+
}
|
|
54
|
+
finally {
|
|
55
|
+
visitedObjects.delete(p);
|
|
56
|
+
}
|
|
44
57
|
}, _aws_cdk_mixins_preview_aws_bedrock_mixins_CfnKnowledgeBaseApplicationLogsS3Props: function _aws_cdk_mixins_preview_aws_bedrock_mixins_CfnKnowledgeBaseApplicationLogsS3Props(p) {
|
|
45
58
|
if (p == null)
|
|
46
59
|
return;
|
|
@@ -884,6 +897,19 @@ const VALIDATORS = { _aws_cdk_mixins_preview_aws_batch_events_BatchJobStateChang
|
|
|
884
897
|
finally {
|
|
885
898
|
visitedObjects.delete(p);
|
|
886
899
|
}
|
|
900
|
+
}, _aws_cdk_mixins_preview_aws_pcs_mixins_CfnClusterPcsScalingLogsS3Props: function _aws_cdk_mixins_preview_aws_pcs_mixins_CfnClusterPcsScalingLogsS3Props(p) {
|
|
901
|
+
if (p == null)
|
|
902
|
+
return;
|
|
903
|
+
visitedObjects.add(p);
|
|
904
|
+
try {
|
|
905
|
+
if (p.recordFields != null)
|
|
906
|
+
for (const o of p.recordFields)
|
|
907
|
+
if (!visitedObjects.has(o))
|
|
908
|
+
module.exports._aws_cdk_mixins_preview_aws_pcs_mixins_CfnClusterPcsScalingLogsRecordFields(o);
|
|
909
|
+
}
|
|
910
|
+
finally {
|
|
911
|
+
visitedObjects.delete(p);
|
|
912
|
+
}
|
|
887
913
|
}, _aws_cdk_mixins_preview_aws_pcs_mixins_CfnClusterPcsSchedulerLogsS3Props: function _aws_cdk_mixins_preview_aws_pcs_mixins_CfnClusterPcsSchedulerLogsS3Props(p) {
|
|
888
914
|
if (p == null)
|
|
889
915
|
return;
|
|
@@ -7,7 +7,7 @@ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
|
|
|
7
7
|
* EventBridge event pattern for aws.appmesh@AWSServiceEventViaCloudTrail
|
|
8
8
|
*/
|
|
9
9
|
class AWSServiceEventViaCloudTrail {
|
|
10
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_appmesh.events.AWSServiceEventViaCloudTrail", version: "2.
|
|
10
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_appmesh.events.AWSServiceEventViaCloudTrail", version: "2.272.0-alpha.0" };
|
|
11
11
|
/**
|
|
12
12
|
* EventBridge event pattern for AWS Service Event via CloudTrail
|
|
13
13
|
*/
|
|
@@ -7,7 +7,7 @@ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
|
|
|
7
7
|
* EventBridge event pattern for aws.athena@AthenaQueryStateChange
|
|
8
8
|
*/
|
|
9
9
|
class AthenaQueryStateChange {
|
|
10
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_athena.events.AthenaQueryStateChange", version: "2.
|
|
10
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_athena.events.AthenaQueryStateChange", version: "2.272.0-alpha.0" };
|
|
11
11
|
/**
|
|
12
12
|
* EventBridge event pattern for Athena Query State Change
|
|
13
13
|
*/
|
|
@@ -56,7 +56,7 @@ function convertAthenaQueryStateChangeDetailToEventPattern(obj, iRef) {
|
|
|
56
56
|
* EventBridge event patterns for WorkGroup
|
|
57
57
|
*/
|
|
58
58
|
class WorkGroupEvents {
|
|
59
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_athena.events.WorkGroupEvents", version: "2.
|
|
59
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_athena.events.WorkGroupEvents", version: "2.272.0-alpha.0" };
|
|
60
60
|
/**
|
|
61
61
|
* Create WorkGroupEvents from a WorkGroup reference
|
|
62
62
|
*/
|
|
@@ -7,7 +7,7 @@ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
|
|
|
7
7
|
* EventBridge event pattern for aws.autoscaling@AWSAPICallViaCloudTrail
|
|
8
8
|
*/
|
|
9
9
|
class AWSAPICallViaCloudTrail {
|
|
10
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_autoscaling.events.AWSAPICallViaCloudTrail", version: "2.
|
|
10
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_autoscaling.events.AWSAPICallViaCloudTrail", version: "2.272.0-alpha.0" };
|
|
11
11
|
/**
|
|
12
12
|
* EventBridge event pattern for AWS API Call via CloudTrail
|
|
13
13
|
*/
|
|
@@ -329,7 +329,7 @@ function convertAWSAPICallViaCloudTrailDetailToEventPattern(obj) {
|
|
|
329
329
|
* EventBridge event pattern for aws.autoscaling@EC2InstanceLaunchLifecycleAction
|
|
330
330
|
*/
|
|
331
331
|
class EC2InstanceLaunchLifecycleAction {
|
|
332
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_autoscaling.events.EC2InstanceLaunchLifecycleAction", version: "2.
|
|
332
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_autoscaling.events.EC2InstanceLaunchLifecycleAction", version: "2.272.0-alpha.0" };
|
|
333
333
|
/**
|
|
334
334
|
* EventBridge event pattern for EC2 Instance-launch Lifecycle Action
|
|
335
335
|
*/
|
|
@@ -379,7 +379,7 @@ function convertEC2InstanceLaunchLifecycleActionDetailToEventPattern(obj, iRef)
|
|
|
379
379
|
* EventBridge event patterns for AutoScalingGroup
|
|
380
380
|
*/
|
|
381
381
|
class AutoScalingGroupEvents {
|
|
382
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_autoscaling.events.AutoScalingGroupEvents", version: "2.
|
|
382
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_autoscaling.events.AutoScalingGroupEvents", version: "2.272.0-alpha.0" };
|
|
383
383
|
/**
|
|
384
384
|
* Create AutoScalingGroupEvents from a AutoScalingGroup reference
|
|
385
385
|
*/
|
|
@@ -531,7 +531,7 @@ exports.AutoScalingGroupEvents = AutoScalingGroupEvents;
|
|
|
531
531
|
* EventBridge event pattern for aws.autoscaling@EC2InstanceLaunchSuccessful
|
|
532
532
|
*/
|
|
533
533
|
class EC2InstanceLaunchSuccessful {
|
|
534
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_autoscaling.events.EC2InstanceLaunchSuccessful", version: "2.
|
|
534
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_autoscaling.events.EC2InstanceLaunchSuccessful", version: "2.272.0-alpha.0" };
|
|
535
535
|
/**
|
|
536
536
|
* EventBridge event pattern for EC2 Instance Launch Successful
|
|
537
537
|
*/
|
|
@@ -601,7 +601,7 @@ function convertEC2InstanceLaunchSuccessfulDetailToEventPattern(obj, iRef) {
|
|
|
601
601
|
* EventBridge event pattern for aws.autoscaling@EC2InstanceLaunchUnsuccessful
|
|
602
602
|
*/
|
|
603
603
|
class EC2InstanceLaunchUnsuccessful {
|
|
604
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_autoscaling.events.EC2InstanceLaunchUnsuccessful", version: "2.
|
|
604
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_autoscaling.events.EC2InstanceLaunchUnsuccessful", version: "2.272.0-alpha.0" };
|
|
605
605
|
/**
|
|
606
606
|
* EventBridge event pattern for EC2 Instance Launch Unsuccessful
|
|
607
607
|
*/
|
|
@@ -671,7 +671,7 @@ function convertEC2InstanceLaunchUnsuccessfulDetailToEventPattern(obj, iRef) {
|
|
|
671
671
|
* EventBridge event pattern for aws.autoscaling@EC2InstanceTerminateLifecycleAction
|
|
672
672
|
*/
|
|
673
673
|
class EC2InstanceTerminateLifecycleAction {
|
|
674
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_autoscaling.events.EC2InstanceTerminateLifecycleAction", version: "2.
|
|
674
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_autoscaling.events.EC2InstanceTerminateLifecycleAction", version: "2.272.0-alpha.0" };
|
|
675
675
|
/**
|
|
676
676
|
* EventBridge event pattern for EC2 Instance-terminate Lifecycle Action
|
|
677
677
|
*/
|
|
@@ -721,7 +721,7 @@ function convertEC2InstanceTerminateLifecycleActionDetailToEventPattern(obj, iRe
|
|
|
721
721
|
* EventBridge event pattern for aws.autoscaling@EC2InstanceTerminateSuccessful
|
|
722
722
|
*/
|
|
723
723
|
class EC2InstanceTerminateSuccessful {
|
|
724
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_autoscaling.events.EC2InstanceTerminateSuccessful", version: "2.
|
|
724
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_autoscaling.events.EC2InstanceTerminateSuccessful", version: "2.272.0-alpha.0" };
|
|
725
725
|
/**
|
|
726
726
|
* EventBridge event pattern for EC2 Instance Terminate Successful
|
|
727
727
|
*/
|
|
@@ -791,7 +791,7 @@ function convertEC2InstanceTerminateSuccessfulDetailToEventPattern(obj, iRef) {
|
|
|
791
791
|
* EventBridge event pattern for aws.autoscaling@EC2InstanceTerminateUnsuccessful
|
|
792
792
|
*/
|
|
793
793
|
class EC2InstanceTerminateUnsuccessful {
|
|
794
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_autoscaling.events.EC2InstanceTerminateUnsuccessful", version: "2.
|
|
794
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_autoscaling.events.EC2InstanceTerminateUnsuccessful", version: "2.272.0-alpha.0" };
|
|
795
795
|
/**
|
|
796
796
|
* EventBridge event pattern for EC2 Instance Terminate Unsuccessful
|
|
797
797
|
*/
|
|
@@ -7,7 +7,7 @@ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
|
|
|
7
7
|
* EventBridge event pattern for aws.b2bi@AcknowledgementCompleted
|
|
8
8
|
*/
|
|
9
9
|
class AcknowledgementCompleted {
|
|
10
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_b2bi.events.AcknowledgementCompleted", version: "2.
|
|
10
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_b2bi.events.AcknowledgementCompleted", version: "2.272.0-alpha.0" };
|
|
11
11
|
/**
|
|
12
12
|
* EventBridge event pattern for Acknowledgement Completed
|
|
13
13
|
*/
|
|
@@ -92,7 +92,7 @@ function convertAcknowledgementCompletedDetailToEventPattern(obj) {
|
|
|
92
92
|
* EventBridge event pattern for aws.b2bi@AcknowledgementFailed
|
|
93
93
|
*/
|
|
94
94
|
class AcknowledgementFailed {
|
|
95
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_b2bi.events.AcknowledgementFailed", version: "2.
|
|
95
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_b2bi.events.AcknowledgementFailed", version: "2.272.0-alpha.0" };
|
|
96
96
|
/**
|
|
97
97
|
* EventBridge event pattern for Acknowledgement Failed
|
|
98
98
|
*/
|
|
@@ -161,7 +161,7 @@ function convertAcknowledgementFailedDetailToEventPattern(obj) {
|
|
|
161
161
|
* EventBridge event pattern for aws.b2bi@TransformationCompleted
|
|
162
162
|
*/
|
|
163
163
|
class TransformationCompleted {
|
|
164
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_b2bi.events.TransformationCompleted", version: "2.
|
|
164
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_b2bi.events.TransformationCompleted", version: "2.272.0-alpha.0" };
|
|
165
165
|
/**
|
|
166
166
|
* EventBridge event pattern for Transformation Completed
|
|
167
167
|
*/
|
|
@@ -244,7 +244,7 @@ function convertTransformationCompletedDetailToEventPattern(obj) {
|
|
|
244
244
|
* EventBridge event pattern for aws.b2bi@TransformationFailed
|
|
245
245
|
*/
|
|
246
246
|
class TransformationFailed {
|
|
247
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_b2bi.events.TransformationFailed", version: "2.
|
|
247
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_b2bi.events.TransformationFailed", version: "2.272.0-alpha.0" };
|
|
248
248
|
/**
|
|
249
249
|
* EventBridge event pattern for Transformation Failed
|
|
250
250
|
*/
|
|
@@ -7,7 +7,7 @@ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
|
|
|
7
7
|
* EventBridge event pattern for aws.batch@AWSAPICallViaCloudTrail
|
|
8
8
|
*/
|
|
9
9
|
class AWSAPICallViaCloudTrail {
|
|
10
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_batch.events.AWSAPICallViaCloudTrail", version: "2.
|
|
10
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_batch.events.AWSAPICallViaCloudTrail", version: "2.272.0-alpha.0" };
|
|
11
11
|
/**
|
|
12
12
|
* EventBridge event pattern for AWS API Call via CloudTrail
|
|
13
13
|
*/
|
|
@@ -192,7 +192,7 @@ function convertAWSAPICallViaCloudTrailDetailToEventPattern(obj) {
|
|
|
192
192
|
* EventBridge event pattern for aws.batch@BatchJobStateChange
|
|
193
193
|
*/
|
|
194
194
|
class BatchJobStateChange {
|
|
195
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_batch.events.BatchJobStateChange", version: "2.
|
|
195
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_batch.events.BatchJobStateChange", version: "2.272.0-alpha.0" };
|
|
196
196
|
/**
|
|
197
197
|
* EventBridge event pattern for Batch Job State Change
|
|
198
198
|
*/
|
|
@@ -292,6 +292,43 @@ export declare class CfnKnowledgeBaseTraces {
|
|
|
292
292
|
*/
|
|
293
293
|
toDestination(destination: interfaces.aws_logs.IDeliveryDestinationRef, props?: CfnKnowledgeBaseTracesDestProps): CfnKnowledgeBaseLogsMixin;
|
|
294
294
|
}
|
|
295
|
+
/**
|
|
296
|
+
* Builder for CfnKnowledgeBaseLogsMixin to generate RUNTIME_LOGS for CfnKnowledgeBase
|
|
297
|
+
*
|
|
298
|
+
* @cloudformationResource AWS::Bedrock::KnowledgeBase
|
|
299
|
+
* @logType RUNTIME_LOGS
|
|
300
|
+
* @stability external
|
|
301
|
+
*/
|
|
302
|
+
export declare class CfnKnowledgeBaseRuntimeLogs {
|
|
303
|
+
/**
|
|
304
|
+
* Send logs to an S3 Bucket
|
|
305
|
+
*
|
|
306
|
+
* @param props Additional properties that are optionally used in log delivery for S3 destinations
|
|
307
|
+
*/
|
|
308
|
+
toS3(bucket: interfaces.aws_s3.IBucketRef, props?: CfnKnowledgeBaseRuntimeLogsS3Props): CfnKnowledgeBaseLogsMixin;
|
|
309
|
+
/**
|
|
310
|
+
* Send logs to a CloudWatch Log Group
|
|
311
|
+
*
|
|
312
|
+
* @param props Additional properties that are optionally used in log delivery for Log Group destinations
|
|
313
|
+
*/
|
|
314
|
+
toLogGroup(logGroup: interfaces.aws_logs.ILogGroupRef, props?: CfnKnowledgeBaseRuntimeLogsLogGroupProps): CfnKnowledgeBaseLogsMixin;
|
|
315
|
+
/**
|
|
316
|
+
* Send logs to a Firehose Delivery Stream
|
|
317
|
+
*
|
|
318
|
+
* @param props Additional properties that are optionally used in log delivery for Firehose destinations
|
|
319
|
+
*/
|
|
320
|
+
toFirehose(deliveryStream: interfaces.aws_kinesisfirehose.IDeliveryStreamRef, props?: CfnKnowledgeBaseRuntimeLogsFirehoseProps): CfnKnowledgeBaseLogsMixin;
|
|
321
|
+
/**
|
|
322
|
+
* Delivers logs to a pre-created delivery destination
|
|
323
|
+
*
|
|
324
|
+
* Supported destinations are S3, CWL, FH
|
|
325
|
+
* You are responsible for setting up the correct permissions for your delivery destination, toDestination() does not set up any permissions for you.
|
|
326
|
+
* Delivery destinations that are imported from another stack using CfnDeliveryDestination.fromDeliveryDestinationArn() or CfnDeliveryDestination.fromDeliveryDestinationName() are supported by toDestination().
|
|
327
|
+
*
|
|
328
|
+
* @param props Additional properties that are optionally used in log delivery for destinations
|
|
329
|
+
*/
|
|
330
|
+
toDestination(destination: interfaces.aws_logs.IDeliveryDestinationRef, props?: CfnKnowledgeBaseRuntimeLogsDestProps): CfnKnowledgeBaseLogsMixin;
|
|
331
|
+
}
|
|
295
332
|
/**
|
|
296
333
|
* Builder for CfnKnowledgeBaseLogsMixin to generate APPLICATION_LOGS for CfnKnowledgeBase
|
|
297
334
|
*
|
|
@@ -354,6 +391,7 @@ export declare class CfnKnowledgeBaseApplicationLogs {
|
|
|
354
391
|
*/
|
|
355
392
|
export declare class CfnKnowledgeBaseLogsMixin extends cdk.Mixin implements constructs.IMixin {
|
|
356
393
|
static readonly TRACES: CfnKnowledgeBaseTraces;
|
|
394
|
+
static readonly RUNTIME_LOGS: CfnKnowledgeBaseRuntimeLogs;
|
|
357
395
|
static readonly APPLICATION_LOGS: CfnKnowledgeBaseApplicationLogs;
|
|
358
396
|
protected readonly logType: string;
|
|
359
397
|
protected readonly logDelivery: logsDelivery.ILogsDelivery;
|
|
@@ -395,6 +433,91 @@ export interface CfnKnowledgeBaseTracesDestProps {
|
|
|
395
433
|
*/
|
|
396
434
|
readonly recordFields?: Array<CfnKnowledgeBaseTracesRecordFields>;
|
|
397
435
|
}
|
|
436
|
+
/**
|
|
437
|
+
* Output Format options for each destination of CfnKnowledgeBaseRuntimeLogs.
|
|
438
|
+
*/
|
|
439
|
+
export declare class CfnKnowledgeBaseRuntimeLogsOutputFormat {
|
|
440
|
+
}
|
|
441
|
+
export declare namespace CfnKnowledgeBaseRuntimeLogsOutputFormat {
|
|
442
|
+
enum S3 {
|
|
443
|
+
PLAIN = "plain",
|
|
444
|
+
JSON = "json",
|
|
445
|
+
W3C = "w3c",
|
|
446
|
+
PARQUET = "parquet"
|
|
447
|
+
}
|
|
448
|
+
enum LogGroup {
|
|
449
|
+
PLAIN = "plain",
|
|
450
|
+
JSON = "json"
|
|
451
|
+
}
|
|
452
|
+
enum Firehose {
|
|
453
|
+
PLAIN = "plain",
|
|
454
|
+
JSON = "json",
|
|
455
|
+
RAW = "raw"
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
export declare enum CfnKnowledgeBaseRuntimeLogsRecordFields {
|
|
459
|
+
TIMESTAMP = "timestamp",
|
|
460
|
+
RESOURCE_TYPE = "resource_type",
|
|
461
|
+
RESOURCE_ID = "resource_id",
|
|
462
|
+
ACCOUNTID = "accountId",
|
|
463
|
+
REQUESTID = "requestId",
|
|
464
|
+
OPERATION = "operation",
|
|
465
|
+
EVENTTYPE = "eventType",
|
|
466
|
+
TRACEID = "traceId",
|
|
467
|
+
SPANID = "spanId",
|
|
468
|
+
PARENTSPANID = "parentSpanId",
|
|
469
|
+
SESSIONID = "sessionId",
|
|
470
|
+
TIMEUNIXNANO = "timeUnixNano",
|
|
471
|
+
ENDTIMEUNIXNANO = "endTimeUnixNano",
|
|
472
|
+
BODY = "body",
|
|
473
|
+
ATTRIBUTES = "attributes",
|
|
474
|
+
RESOURCE = "resource",
|
|
475
|
+
SCOPE = "scope",
|
|
476
|
+
STATUS = "status",
|
|
477
|
+
LEVEL = "level",
|
|
478
|
+
RESOURCEARN = "resourceArn",
|
|
479
|
+
EVENTTIMESTAMP = "eventTimestamp"
|
|
480
|
+
}
|
|
481
|
+
export interface CfnKnowledgeBaseRuntimeLogsS3Props {
|
|
482
|
+
/**
|
|
483
|
+
* Encrpytion key for your delivery bucket
|
|
484
|
+
*/
|
|
485
|
+
readonly encryptionKey?: interfaces.aws_kms.IKeyRef;
|
|
486
|
+
/**
|
|
487
|
+
* Format for log output, options are plain,json,w3c,parquet
|
|
488
|
+
*/
|
|
489
|
+
readonly outputFormat?: CfnKnowledgeBaseRuntimeLogsOutputFormat.S3;
|
|
490
|
+
/**
|
|
491
|
+
* Record fields that can be provided to a log delivery
|
|
492
|
+
*/
|
|
493
|
+
readonly recordFields?: Array<CfnKnowledgeBaseRuntimeLogsRecordFields>;
|
|
494
|
+
}
|
|
495
|
+
export interface CfnKnowledgeBaseRuntimeLogsLogGroupProps {
|
|
496
|
+
/**
|
|
497
|
+
* Format for log output, options are plain,json
|
|
498
|
+
*/
|
|
499
|
+
readonly outputFormat?: CfnKnowledgeBaseRuntimeLogsOutputFormat.LogGroup;
|
|
500
|
+
/**
|
|
501
|
+
* Record fields that can be provided to a log delivery
|
|
502
|
+
*/
|
|
503
|
+
readonly recordFields?: Array<CfnKnowledgeBaseRuntimeLogsRecordFields>;
|
|
504
|
+
}
|
|
505
|
+
export interface CfnKnowledgeBaseRuntimeLogsFirehoseProps {
|
|
506
|
+
/**
|
|
507
|
+
* Format for log output, options are plain,json,raw
|
|
508
|
+
*/
|
|
509
|
+
readonly outputFormat?: CfnKnowledgeBaseRuntimeLogsOutputFormat.Firehose;
|
|
510
|
+
/**
|
|
511
|
+
* Record fields that can be provided to a log delivery
|
|
512
|
+
*/
|
|
513
|
+
readonly recordFields?: Array<CfnKnowledgeBaseRuntimeLogsRecordFields>;
|
|
514
|
+
}
|
|
515
|
+
export interface CfnKnowledgeBaseRuntimeLogsDestProps {
|
|
516
|
+
/**
|
|
517
|
+
* Record fields that can be provided to a log delivery
|
|
518
|
+
*/
|
|
519
|
+
readonly recordFields?: Array<CfnKnowledgeBaseRuntimeLogsRecordFields>;
|
|
520
|
+
}
|
|
398
521
|
/**
|
|
399
522
|
* Output Format options for each destination of CfnKnowledgeBaseApplicationLogs.
|
|
400
523
|
*/
|
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.CfnKnowledgeBaseApplicationLogsRecordFields = exports.CfnKnowledgeBaseApplicationLogsOutputFormat = exports.CfnKnowledgeBaseTracesRecordFields = exports.CfnKnowledgeBaseTracesOutputFormat = exports.CfnKnowledgeBaseLogsMixin = exports.CfnKnowledgeBaseApplicationLogs = exports.CfnKnowledgeBaseTraces = exports.CfnAgentAliasApplicationLogsRecordFields = exports.CfnAgentAliasApplicationLogsOutputFormat = exports.CfnAgentAliasEventLogsRecordFields = exports.CfnAgentAliasEventLogsOutputFormat = exports.CfnAgentAliasLogsMixin = exports.CfnAgentAliasApplicationLogs = exports.CfnAgentAliasEventLogs = void 0;
|
|
36
|
+
exports.CfnKnowledgeBaseApplicationLogsRecordFields = exports.CfnKnowledgeBaseApplicationLogsOutputFormat = exports.CfnKnowledgeBaseRuntimeLogsRecordFields = exports.CfnKnowledgeBaseRuntimeLogsOutputFormat = exports.CfnKnowledgeBaseTracesRecordFields = exports.CfnKnowledgeBaseTracesOutputFormat = exports.CfnKnowledgeBaseLogsMixin = exports.CfnKnowledgeBaseApplicationLogs = exports.CfnKnowledgeBaseRuntimeLogs = exports.CfnKnowledgeBaseTraces = exports.CfnAgentAliasApplicationLogsRecordFields = exports.CfnAgentAliasApplicationLogsOutputFormat = exports.CfnAgentAliasEventLogsRecordFields = exports.CfnAgentAliasEventLogsOutputFormat = exports.CfnAgentAliasLogsMixin = exports.CfnAgentAliasApplicationLogs = exports.CfnAgentAliasEventLogs = void 0;
|
|
37
37
|
const jsiiDeprecationWarnings = require("../../../.warnings.jsii.js");
|
|
38
38
|
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
|
|
39
39
|
/* eslint-disable @stylistic/max-len, eol-last */
|
|
@@ -48,7 +48,7 @@ const service = __importStar(require("aws-cdk-lib/aws-bedrock"));
|
|
|
48
48
|
* @stability external
|
|
49
49
|
*/
|
|
50
50
|
class CfnAgentAliasEventLogs {
|
|
51
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrock.mixins.CfnAgentAliasEventLogs", version: "2.
|
|
51
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrock.mixins.CfnAgentAliasEventLogs", version: "2.272.0-alpha.0" };
|
|
52
52
|
/**
|
|
53
53
|
* Send logs to an S3 Bucket
|
|
54
54
|
*
|
|
@@ -156,7 +156,7 @@ exports.CfnAgentAliasEventLogs = CfnAgentAliasEventLogs;
|
|
|
156
156
|
* @stability external
|
|
157
157
|
*/
|
|
158
158
|
class CfnAgentAliasApplicationLogs {
|
|
159
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrock.mixins.CfnAgentAliasApplicationLogs", version: "2.
|
|
159
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrock.mixins.CfnAgentAliasApplicationLogs", version: "2.272.0-alpha.0" };
|
|
160
160
|
/**
|
|
161
161
|
* Send logs to an S3 Bucket
|
|
162
162
|
*
|
|
@@ -271,7 +271,7 @@ exports.CfnAgentAliasApplicationLogs = CfnAgentAliasApplicationLogs;
|
|
|
271
271
|
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-agentalias.html
|
|
272
272
|
*/
|
|
273
273
|
class CfnAgentAliasLogsMixin extends cdk.Mixin {
|
|
274
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrock.mixins.CfnAgentAliasLogsMixin", version: "2.
|
|
274
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrock.mixins.CfnAgentAliasLogsMixin", version: "2.272.0-alpha.0" };
|
|
275
275
|
static EVENT_LOGS = new CfnAgentAliasEventLogs();
|
|
276
276
|
static APPLICATION_LOGS = new CfnAgentAliasApplicationLogs();
|
|
277
277
|
logType;
|
|
@@ -318,7 +318,7 @@ exports.CfnAgentAliasLogsMixin = CfnAgentAliasLogsMixin;
|
|
|
318
318
|
* Output Format options for each destination of CfnAgentAliasEventLogs.
|
|
319
319
|
*/
|
|
320
320
|
class CfnAgentAliasEventLogsOutputFormat {
|
|
321
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrock.mixins.CfnAgentAliasEventLogsOutputFormat", version: "2.
|
|
321
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrock.mixins.CfnAgentAliasEventLogsOutputFormat", version: "2.272.0-alpha.0" };
|
|
322
322
|
}
|
|
323
323
|
exports.CfnAgentAliasEventLogsOutputFormat = CfnAgentAliasEventLogsOutputFormat;
|
|
324
324
|
(function (CfnAgentAliasEventLogsOutputFormat) {
|
|
@@ -362,7 +362,7 @@ var CfnAgentAliasEventLogsRecordFields;
|
|
|
362
362
|
* Output Format options for each destination of CfnAgentAliasApplicationLogs.
|
|
363
363
|
*/
|
|
364
364
|
class CfnAgentAliasApplicationLogsOutputFormat {
|
|
365
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrock.mixins.CfnAgentAliasApplicationLogsOutputFormat", version: "2.
|
|
365
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrock.mixins.CfnAgentAliasApplicationLogsOutputFormat", version: "2.272.0-alpha.0" };
|
|
366
366
|
}
|
|
367
367
|
exports.CfnAgentAliasApplicationLogsOutputFormat = CfnAgentAliasApplicationLogsOutputFormat;
|
|
368
368
|
(function (CfnAgentAliasApplicationLogsOutputFormat) {
|
|
@@ -409,7 +409,7 @@ var CfnAgentAliasApplicationLogsRecordFields;
|
|
|
409
409
|
* @stability external
|
|
410
410
|
*/
|
|
411
411
|
class CfnKnowledgeBaseTraces {
|
|
412
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrock.mixins.CfnKnowledgeBaseTraces", version: "2.
|
|
412
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrock.mixins.CfnKnowledgeBaseTraces", version: "2.272.0-alpha.0" };
|
|
413
413
|
/**
|
|
414
414
|
* Send traces to X-Ray
|
|
415
415
|
*
|
|
@@ -460,6 +460,114 @@ class CfnKnowledgeBaseTraces {
|
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
462
|
exports.CfnKnowledgeBaseTraces = CfnKnowledgeBaseTraces;
|
|
463
|
+
/**
|
|
464
|
+
* Builder for CfnKnowledgeBaseLogsMixin to generate RUNTIME_LOGS for CfnKnowledgeBase
|
|
465
|
+
*
|
|
466
|
+
* @cloudformationResource AWS::Bedrock::KnowledgeBase
|
|
467
|
+
* @logType RUNTIME_LOGS
|
|
468
|
+
* @stability external
|
|
469
|
+
*/
|
|
470
|
+
class CfnKnowledgeBaseRuntimeLogs {
|
|
471
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrock.mixins.CfnKnowledgeBaseRuntimeLogs", version: "2.272.0-alpha.0" };
|
|
472
|
+
/**
|
|
473
|
+
* Send logs to an S3 Bucket
|
|
474
|
+
*
|
|
475
|
+
* @param props Additional properties that are optionally used in log delivery for S3 destinations
|
|
476
|
+
*/
|
|
477
|
+
toS3(bucket, props) {
|
|
478
|
+
try {
|
|
479
|
+
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_bedrock_mixins_CfnKnowledgeBaseRuntimeLogsS3Props(props);
|
|
480
|
+
}
|
|
481
|
+
catch (error) {
|
|
482
|
+
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
483
|
+
Error.captureStackTrace(error, this.toS3);
|
|
484
|
+
}
|
|
485
|
+
throw error;
|
|
486
|
+
}
|
|
487
|
+
{
|
|
488
|
+
return new CfnKnowledgeBaseLogsMixin("RUNTIME_LOGS", new logsDelivery.S3LogsDelivery(bucket, {
|
|
489
|
+
permissionsVersion: logsDelivery.S3LogsDeliveryPermissionsVersion.V2,
|
|
490
|
+
kmsKey: props?.encryptionKey,
|
|
491
|
+
outputFormat: props?.outputFormat,
|
|
492
|
+
providedFields: props?.recordFields,
|
|
493
|
+
mandatoryFields: ["resourceArn", "eventTimestamp"]
|
|
494
|
+
}));
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* Send logs to a CloudWatch Log Group
|
|
499
|
+
*
|
|
500
|
+
* @param props Additional properties that are optionally used in log delivery for Log Group destinations
|
|
501
|
+
*/
|
|
502
|
+
toLogGroup(logGroup, props) {
|
|
503
|
+
try {
|
|
504
|
+
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_bedrock_mixins_CfnKnowledgeBaseRuntimeLogsLogGroupProps(props);
|
|
505
|
+
}
|
|
506
|
+
catch (error) {
|
|
507
|
+
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
508
|
+
Error.captureStackTrace(error, this.toLogGroup);
|
|
509
|
+
}
|
|
510
|
+
throw error;
|
|
511
|
+
}
|
|
512
|
+
{
|
|
513
|
+
return new CfnKnowledgeBaseLogsMixin("RUNTIME_LOGS", new logsDelivery.LogGroupLogsDelivery(logGroup, {
|
|
514
|
+
outputFormat: props?.outputFormat,
|
|
515
|
+
providedFields: props?.recordFields,
|
|
516
|
+
mandatoryFields: ["resourceArn", "eventTimestamp"]
|
|
517
|
+
}));
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* Send logs to a Firehose Delivery Stream
|
|
522
|
+
*
|
|
523
|
+
* @param props Additional properties that are optionally used in log delivery for Firehose destinations
|
|
524
|
+
*/
|
|
525
|
+
toFirehose(deliveryStream, props) {
|
|
526
|
+
try {
|
|
527
|
+
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_bedrock_mixins_CfnKnowledgeBaseRuntimeLogsFirehoseProps(props);
|
|
528
|
+
}
|
|
529
|
+
catch (error) {
|
|
530
|
+
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
531
|
+
Error.captureStackTrace(error, this.toFirehose);
|
|
532
|
+
}
|
|
533
|
+
throw error;
|
|
534
|
+
}
|
|
535
|
+
{
|
|
536
|
+
return new CfnKnowledgeBaseLogsMixin("RUNTIME_LOGS", new logsDelivery.FirehoseLogsDelivery(deliveryStream, {
|
|
537
|
+
outputFormat: props?.outputFormat,
|
|
538
|
+
providedFields: props?.recordFields,
|
|
539
|
+
mandatoryFields: ["resourceArn", "eventTimestamp"]
|
|
540
|
+
}));
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
/**
|
|
544
|
+
* Delivers logs to a pre-created delivery destination
|
|
545
|
+
*
|
|
546
|
+
* Supported destinations are S3, CWL, FH
|
|
547
|
+
* You are responsible for setting up the correct permissions for your delivery destination, toDestination() does not set up any permissions for you.
|
|
548
|
+
* Delivery destinations that are imported from another stack using CfnDeliveryDestination.fromDeliveryDestinationArn() or CfnDeliveryDestination.fromDeliveryDestinationName() are supported by toDestination().
|
|
549
|
+
*
|
|
550
|
+
* @param props Additional properties that are optionally used in log delivery for destinations
|
|
551
|
+
*/
|
|
552
|
+
toDestination(destination, props) {
|
|
553
|
+
try {
|
|
554
|
+
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_bedrock_mixins_CfnKnowledgeBaseRuntimeLogsDestProps(props);
|
|
555
|
+
}
|
|
556
|
+
catch (error) {
|
|
557
|
+
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
558
|
+
Error.captureStackTrace(error, this.toDestination);
|
|
559
|
+
}
|
|
560
|
+
throw error;
|
|
561
|
+
}
|
|
562
|
+
{
|
|
563
|
+
return new CfnKnowledgeBaseLogsMixin("RUNTIME_LOGS", new logsDelivery.DestinationLogsDelivery(destination, {
|
|
564
|
+
providedFields: props?.recordFields,
|
|
565
|
+
mandatoryFields: ["resourceArn", "eventTimestamp"]
|
|
566
|
+
}));
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
exports.CfnKnowledgeBaseRuntimeLogs = CfnKnowledgeBaseRuntimeLogs;
|
|
463
571
|
/**
|
|
464
572
|
* Builder for CfnKnowledgeBaseLogsMixin to generate APPLICATION_LOGS for CfnKnowledgeBase
|
|
465
573
|
*
|
|
@@ -468,7 +576,7 @@ exports.CfnKnowledgeBaseTraces = CfnKnowledgeBaseTraces;
|
|
|
468
576
|
* @stability external
|
|
469
577
|
*/
|
|
470
578
|
class CfnKnowledgeBaseApplicationLogs {
|
|
471
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrock.mixins.CfnKnowledgeBaseApplicationLogs", version: "2.
|
|
579
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrock.mixins.CfnKnowledgeBaseApplicationLogs", version: "2.272.0-alpha.0" };
|
|
472
580
|
/**
|
|
473
581
|
* Send logs to an S3 Bucket
|
|
474
582
|
*
|
|
@@ -592,8 +700,9 @@ exports.CfnKnowledgeBaseApplicationLogs = CfnKnowledgeBaseApplicationLogs;
|
|
|
592
700
|
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-knowledgebase.html
|
|
593
701
|
*/
|
|
594
702
|
class CfnKnowledgeBaseLogsMixin extends cdk.Mixin {
|
|
595
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrock.mixins.CfnKnowledgeBaseLogsMixin", version: "2.
|
|
703
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrock.mixins.CfnKnowledgeBaseLogsMixin", version: "2.272.0-alpha.0" };
|
|
596
704
|
static TRACES = new CfnKnowledgeBaseTraces();
|
|
705
|
+
static RUNTIME_LOGS = new CfnKnowledgeBaseRuntimeLogs();
|
|
597
706
|
static APPLICATION_LOGS = new CfnKnowledgeBaseApplicationLogs();
|
|
598
707
|
logType;
|
|
599
708
|
logDelivery;
|
|
@@ -639,7 +748,7 @@ exports.CfnKnowledgeBaseLogsMixin = CfnKnowledgeBaseLogsMixin;
|
|
|
639
748
|
* Output Format options for each destination of CfnKnowledgeBaseTraces.
|
|
640
749
|
*/
|
|
641
750
|
class CfnKnowledgeBaseTracesOutputFormat {
|
|
642
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrock.mixins.CfnKnowledgeBaseTracesOutputFormat", version: "2.
|
|
751
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrock.mixins.CfnKnowledgeBaseTracesOutputFormat", version: "2.272.0-alpha.0" };
|
|
643
752
|
}
|
|
644
753
|
exports.CfnKnowledgeBaseTracesOutputFormat = CfnKnowledgeBaseTracesOutputFormat;
|
|
645
754
|
var CfnKnowledgeBaseTracesRecordFields;
|
|
@@ -648,11 +757,62 @@ var CfnKnowledgeBaseTracesRecordFields;
|
|
|
648
757
|
CfnKnowledgeBaseTracesRecordFields["RESOURCEARN"] = "resourceArn";
|
|
649
758
|
CfnKnowledgeBaseTracesRecordFields["TRACE"] = "trace";
|
|
650
759
|
})(CfnKnowledgeBaseTracesRecordFields || (exports.CfnKnowledgeBaseTracesRecordFields = CfnKnowledgeBaseTracesRecordFields = {}));
|
|
760
|
+
/**
|
|
761
|
+
* Output Format options for each destination of CfnKnowledgeBaseRuntimeLogs.
|
|
762
|
+
*/
|
|
763
|
+
class CfnKnowledgeBaseRuntimeLogsOutputFormat {
|
|
764
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrock.mixins.CfnKnowledgeBaseRuntimeLogsOutputFormat", version: "2.272.0-alpha.0" };
|
|
765
|
+
}
|
|
766
|
+
exports.CfnKnowledgeBaseRuntimeLogsOutputFormat = CfnKnowledgeBaseRuntimeLogsOutputFormat;
|
|
767
|
+
(function (CfnKnowledgeBaseRuntimeLogsOutputFormat) {
|
|
768
|
+
let S3;
|
|
769
|
+
(function (S3) {
|
|
770
|
+
S3["PLAIN"] = "plain";
|
|
771
|
+
S3["JSON"] = "json";
|
|
772
|
+
S3["W3C"] = "w3c";
|
|
773
|
+
S3["PARQUET"] = "parquet";
|
|
774
|
+
})(S3 = CfnKnowledgeBaseRuntimeLogsOutputFormat.S3 || (CfnKnowledgeBaseRuntimeLogsOutputFormat.S3 = {}));
|
|
775
|
+
let LogGroup;
|
|
776
|
+
(function (LogGroup) {
|
|
777
|
+
LogGroup["PLAIN"] = "plain";
|
|
778
|
+
LogGroup["JSON"] = "json";
|
|
779
|
+
})(LogGroup = CfnKnowledgeBaseRuntimeLogsOutputFormat.LogGroup || (CfnKnowledgeBaseRuntimeLogsOutputFormat.LogGroup = {}));
|
|
780
|
+
let Firehose;
|
|
781
|
+
(function (Firehose) {
|
|
782
|
+
Firehose["PLAIN"] = "plain";
|
|
783
|
+
Firehose["JSON"] = "json";
|
|
784
|
+
Firehose["RAW"] = "raw";
|
|
785
|
+
})(Firehose = CfnKnowledgeBaseRuntimeLogsOutputFormat.Firehose || (CfnKnowledgeBaseRuntimeLogsOutputFormat.Firehose = {}));
|
|
786
|
+
})(CfnKnowledgeBaseRuntimeLogsOutputFormat || (exports.CfnKnowledgeBaseRuntimeLogsOutputFormat = CfnKnowledgeBaseRuntimeLogsOutputFormat = {}));
|
|
787
|
+
var CfnKnowledgeBaseRuntimeLogsRecordFields;
|
|
788
|
+
(function (CfnKnowledgeBaseRuntimeLogsRecordFields) {
|
|
789
|
+
CfnKnowledgeBaseRuntimeLogsRecordFields["TIMESTAMP"] = "timestamp";
|
|
790
|
+
CfnKnowledgeBaseRuntimeLogsRecordFields["RESOURCE_TYPE"] = "resource_type";
|
|
791
|
+
CfnKnowledgeBaseRuntimeLogsRecordFields["RESOURCE_ID"] = "resource_id";
|
|
792
|
+
CfnKnowledgeBaseRuntimeLogsRecordFields["ACCOUNTID"] = "accountId";
|
|
793
|
+
CfnKnowledgeBaseRuntimeLogsRecordFields["REQUESTID"] = "requestId";
|
|
794
|
+
CfnKnowledgeBaseRuntimeLogsRecordFields["OPERATION"] = "operation";
|
|
795
|
+
CfnKnowledgeBaseRuntimeLogsRecordFields["EVENTTYPE"] = "eventType";
|
|
796
|
+
CfnKnowledgeBaseRuntimeLogsRecordFields["TRACEID"] = "traceId";
|
|
797
|
+
CfnKnowledgeBaseRuntimeLogsRecordFields["SPANID"] = "spanId";
|
|
798
|
+
CfnKnowledgeBaseRuntimeLogsRecordFields["PARENTSPANID"] = "parentSpanId";
|
|
799
|
+
CfnKnowledgeBaseRuntimeLogsRecordFields["SESSIONID"] = "sessionId";
|
|
800
|
+
CfnKnowledgeBaseRuntimeLogsRecordFields["TIMEUNIXNANO"] = "timeUnixNano";
|
|
801
|
+
CfnKnowledgeBaseRuntimeLogsRecordFields["ENDTIMEUNIXNANO"] = "endTimeUnixNano";
|
|
802
|
+
CfnKnowledgeBaseRuntimeLogsRecordFields["BODY"] = "body";
|
|
803
|
+
CfnKnowledgeBaseRuntimeLogsRecordFields["ATTRIBUTES"] = "attributes";
|
|
804
|
+
CfnKnowledgeBaseRuntimeLogsRecordFields["RESOURCE"] = "resource";
|
|
805
|
+
CfnKnowledgeBaseRuntimeLogsRecordFields["SCOPE"] = "scope";
|
|
806
|
+
CfnKnowledgeBaseRuntimeLogsRecordFields["STATUS"] = "status";
|
|
807
|
+
CfnKnowledgeBaseRuntimeLogsRecordFields["LEVEL"] = "level";
|
|
808
|
+
CfnKnowledgeBaseRuntimeLogsRecordFields["RESOURCEARN"] = "resourceArn";
|
|
809
|
+
CfnKnowledgeBaseRuntimeLogsRecordFields["EVENTTIMESTAMP"] = "eventTimestamp";
|
|
810
|
+
})(CfnKnowledgeBaseRuntimeLogsRecordFields || (exports.CfnKnowledgeBaseRuntimeLogsRecordFields = CfnKnowledgeBaseRuntimeLogsRecordFields = {}));
|
|
651
811
|
/**
|
|
652
812
|
* Output Format options for each destination of CfnKnowledgeBaseApplicationLogs.
|
|
653
813
|
*/
|
|
654
814
|
class CfnKnowledgeBaseApplicationLogsOutputFormat {
|
|
655
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrock.mixins.CfnKnowledgeBaseApplicationLogsOutputFormat", version: "2.
|
|
815
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrock.mixins.CfnKnowledgeBaseApplicationLogsOutputFormat", version: "2.272.0-alpha.0" };
|
|
656
816
|
}
|
|
657
817
|
exports.CfnKnowledgeBaseApplicationLogsOutputFormat = CfnKnowledgeBaseApplicationLogsOutputFormat;
|
|
658
818
|
(function (CfnKnowledgeBaseApplicationLogsOutputFormat) {
|