@aws-cdk/mixins-preview 2.267.0-alpha.0 → 2.268.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 +103 -220
- 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-b2bi/index.d.ts +0 -1
- package/lib/services/aws-b2bi/index.js +1 -2
- package/lib/services/aws-batch/events.generated.js +2 -2
- package/lib/services/aws-bedrock/logs-delivery-mixins.generated.d.ts +95 -376
- package/lib/services/aws-bedrock/logs-delivery-mixins.generated.js +118 -519
- package/lib/services/aws-bedrockagentcore/logs-delivery-mixins.generated.d.ts +295 -519
- package/lib/services/aws-bedrockagentcore/logs-delivery-mixins.generated.js +421 -727
- 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.d.ts +47 -11
- package/lib/services/aws-cloudfront/logs-delivery-mixins.generated.js +50 -14
- 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-connect/index.d.ts +0 -1
- package/lib/services/aws-connect/index.js +1 -2
- package/lib/services/aws-dataexchange/.events.jsiirc.json +16 -0
- package/lib/services/aws-dataexchange/.jsiirc.json +16 -0
- package/lib/services/aws-dataexchange/events.generated.d.ts +1223 -0
- package/lib/services/aws-dataexchange/events.generated.js +739 -0
- 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.d.ts +6 -4
- package/lib/services/aws-devopsagent/logs-delivery-mixins.generated.js +7 -5
- 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.d.ts +6 -606
- package/lib/services/aws-ec2/logs-delivery-mixins.generated.js +8 -901
- package/lib/services/aws-ecr/events.generated.js +7 -7
- package/lib/services/aws-ecs/.mixins.jsiirc.json +16 -0
- package/lib/services/aws-ecs/events.generated.js +5 -5
- package/lib/services/aws-ecs/index.d.ts +1 -0
- package/lib/services/aws-ecs/index.js +2 -1
- package/lib/services/aws-ecs/logs-delivery-mixins.generated.d.ts +134 -0
- package/lib/services/{aws-logs → aws-ecs}/logs-delivery-mixins.generated.js +49 -63
- package/lib/services/aws-eks/logs-delivery-mixins.generated.d.ts +366 -276
- package/lib/services/aws-eks/logs-delivery-mixins.generated.js +354 -264
- 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.d.ts +139 -139
- package/lib/services/aws-elasticloadbalancingv2/logs-delivery-mixins.generated.js +144 -144
- package/lib/services/aws-emr/events.generated.js +7 -7
- package/lib/services/aws-entityresolution/logs-delivery-mixins.generated.d.ts +26 -10
- package/lib/services/aws-entityresolution/logs-delivery-mixins.generated.js +26 -10
- package/lib/services/aws-events/events.generated.js +1 -1
- package/lib/services/aws-events/logs-delivery-mixins.generated.d.ts +15 -12
- package/lib/services/aws-events/logs-delivery-mixins.generated.js +16 -13
- 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/index.d.ts +0 -1
- package/lib/services/aws-logs/index.js +1 -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.d.ts +65 -62
- package/lib/services/aws-mediapackagev2/logs-delivery-mixins.generated.js +84 -81
- package/lib/services/aws-mediatailor/logs-delivery-mixins.generated.d.ts +38 -14
- package/lib/services/aws-mediatailor/logs-delivery-mixins.generated.js +42 -18
- package/lib/services/aws-mgn/.events.jsiirc.json +16 -0
- package/lib/services/{aws-msk → aws-mgn}/.jsiirc.json +4 -4
- package/lib/services/aws-mgn/events.d.ts +1 -0
- package/lib/services/aws-mgn/events.generated.d.ts +100 -0
- package/lib/services/aws-mgn/events.generated.js +135 -0
- package/lib/services/{aws-backupgateway/mixins.js → aws-mgn/events.js} +1 -1
- package/lib/services/aws-mgn/index.d.ts +1 -0
- package/lib/services/{aws-aps → aws-mgn}/index.js +2 -2
- package/lib/services/aws-networkfirewall/events.generated.js +3 -3
- package/lib/services/aws-networkfirewall/logs-delivery-mixins.generated.d.ts +197 -62
- package/lib/services/aws-networkfirewall/logs-delivery-mixins.generated.js +214 -103
- 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 +89 -86
- package/lib/services/aws-pcs/logs-delivery-mixins.generated.js +104 -101
- package/lib/services/aws-qbusiness/logs-delivery-mixins.generated.d.ts +110 -97
- package/lib/services/aws-qbusiness/logs-delivery-mixins.generated.js +97 -84
- 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-cognito → aws-rtbfabric}/.jsiirc.json +4 -4
- package/lib/services/aws-rtbfabric/.mixins.jsiirc.json +16 -0
- package/lib/services/{aws-logs → aws-rtbfabric}/logs-delivery-mixins.generated.d.ts +48 -48
- package/lib/services/{aws-cognito → aws-rtbfabric}/logs-delivery-mixins.generated.js +73 -49
- package/lib/services/aws-s3/events.generated.js +12 -12
- package/lib/services/aws-s3/logs-delivery-mixins.generated.d.ts +1 -1
- package/lib/services/aws-s3/logs-delivery-mixins.generated.js +8 -8
- package/lib/services/aws-sagemaker/events.generated.d.ts +132 -151
- package/lib/services/aws-sagemaker/events.generated.js +94 -136
- package/lib/services/aws-sagemaker/index.d.ts +0 -1
- package/lib/services/aws-sagemaker/index.js +1 -2
- package/lib/services/aws-securityhub/.mixins.jsiirc.json +16 -0
- package/lib/services/aws-securityhub/events.generated.js +3 -3
- package/lib/services/aws-securityhub/index.d.ts +1 -0
- package/lib/services/aws-securityhub/index.js +2 -1
- package/lib/services/aws-securityhub/logs-delivery-mixins.generated.d.ts +177 -0
- package/lib/services/aws-securityhub/logs-delivery-mixins.generated.js +306 -0
- package/lib/services/aws-ses/events.generated.js +2 -2
- package/lib/services/aws-ses/logs-delivery-mixins.generated.d.ts +19 -14
- package/lib/services/aws-ses/logs-delivery-mixins.generated.js +21 -16
- package/lib/services/aws-shield/logs-delivery-mixins.generated.d.ts +5 -4
- package/lib/services/aws-shield/logs-delivery-mixins.generated.js +6 -5
- 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-transfer/index.d.ts +0 -1
- package/lib/services/aws-transfer/index.js +1 -2
- package/lib/services/aws-translate/.events.jsiirc.json +16 -0
- package/lib/services/{aws-ivschat → aws-translate}/.jsiirc.json +4 -4
- package/lib/services/aws-translate/events.d.ts +1 -0
- package/lib/services/aws-translate/events.generated.d.ts +102 -0
- package/lib/services/aws-translate/events.generated.js +96 -0
- package/lib/services/aws-translate/events.js +17 -0
- package/lib/services/aws-translate/index.d.ts +1 -0
- package/lib/services/{aws-cleanrooms → aws-translate}/index.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.d.ts +7 -5
- package/lib/services/aws-wisdom/logs-delivery-mixins.generated.js +7 -5
- package/lib/services/aws-workspaces/events.generated.js +2 -2
- package/lib/services/aws-xray/events.generated.js +1 -1
- package/lib/services/index.d.ts +4 -19
- package/lib/services/index.js +6 -21
- package/package.json +20 -48
- package/lib/services/aws-apigateway/.jsiirc.json +0 -16
- package/lib/services/aws-apigateway/.mixins.jsiirc.json +0 -16
- package/lib/services/aws-apigateway/logs-delivery-mixins.generated.d.ts +0 -248
- package/lib/services/aws-apigateway/logs-delivery-mixins.generated.js +0 -382
- package/lib/services/aws-aps/.jsiirc.json +0 -16
- package/lib/services/aws-aps/.mixins.jsiirc.json +0 -16
- package/lib/services/aws-aps/index.d.ts +0 -1
- package/lib/services/aws-aps/logs-delivery-mixins.generated.d.ts +0 -227
- package/lib/services/aws-aps/logs-delivery-mixins.generated.js +0 -400
- package/lib/services/aws-b2bi/.mixins.jsiirc.json +0 -16
- package/lib/services/aws-b2bi/logs-delivery-mixins.generated.d.ts +0 -121
- package/lib/services/aws-b2bi/logs-delivery-mixins.generated.js +0 -226
- package/lib/services/aws-backupgateway/.jsiirc.json +0 -16
- package/lib/services/aws-backupgateway/.mixins.jsiirc.json +0 -16
- package/lib/services/aws-backupgateway/index.d.ts +0 -1
- package/lib/services/aws-backupgateway/index.js +0 -37
- package/lib/services/aws-backupgateway/logs-delivery-mixins.generated.d.ts +0 -194
- package/lib/services/aws-backupgateway/logs-delivery-mixins.generated.js +0 -344
- package/lib/services/aws-backupgateway/mixins.d.ts +0 -1
- package/lib/services/aws-cleanrooms/.jsiirc.json +0 -16
- package/lib/services/aws-cleanrooms/.mixins.jsiirc.json +0 -16
- package/lib/services/aws-cleanrooms/index.d.ts +0 -1
- package/lib/services/aws-cleanrooms/logs-delivery-mixins.generated.d.ts +0 -112
- package/lib/services/aws-cleanrooms/logs-delivery-mixins.generated.js +0 -217
- package/lib/services/aws-cleanrooms/mixins.d.ts +0 -1
- package/lib/services/aws-cleanrooms/mixins.js +0 -17
- package/lib/services/aws-cognito/.mixins.jsiirc.json +0 -16
- package/lib/services/aws-cognito/index.d.ts +0 -1
- package/lib/services/aws-cognito/index.js +0 -37
- package/lib/services/aws-cognito/logs-delivery-mixins.generated.d.ts +0 -116
- package/lib/services/aws-cognito/mixins.d.ts +0 -1
- package/lib/services/aws-cognito/mixins.js +0 -17
- package/lib/services/aws-connect/.mixins.jsiirc.json +0 -16
- package/lib/services/aws-connect/logs-delivery-mixins.generated.d.ts +0 -156
- package/lib/services/aws-connect/logs-delivery-mixins.generated.js +0 -253
- package/lib/services/aws-connect/mixins.d.ts +0 -1
- package/lib/services/aws-connect/mixins.js +0 -17
- package/lib/services/aws-iotfleetwise/.jsiirc.json +0 -16
- package/lib/services/aws-iotfleetwise/.mixins.jsiirc.json +0 -16
- package/lib/services/aws-iotfleetwise/index.d.ts +0 -1
- package/lib/services/aws-iotfleetwise/index.js +0 -37
- package/lib/services/aws-iotfleetwise/logs-delivery-mixins.generated.d.ts +0 -231
- package/lib/services/aws-iotfleetwise/logs-delivery-mixins.generated.js +0 -404
- package/lib/services/aws-iotfleetwise/mixins.d.ts +0 -1
- package/lib/services/aws-iotfleetwise/mixins.js +0 -17
- package/lib/services/aws-ivschat/.mixins.jsiirc.json +0 -16
- package/lib/services/aws-ivschat/index.d.ts +0 -1
- package/lib/services/aws-ivschat/index.js +0 -37
- package/lib/services/aws-ivschat/logs-delivery-mixins.generated.d.ts +0 -114
- package/lib/services/aws-ivschat/logs-delivery-mixins.generated.js +0 -219
- package/lib/services/aws-ivschat/mixins.d.ts +0 -1
- package/lib/services/aws-ivschat/mixins.js +0 -17
- package/lib/services/aws-kafkaconnect/.jsiirc.json +0 -16
- package/lib/services/aws-kafkaconnect/.mixins.jsiirc.json +0 -16
- package/lib/services/aws-kafkaconnect/index.d.ts +0 -1
- package/lib/services/aws-kafkaconnect/index.js +0 -37
- package/lib/services/aws-kafkaconnect/logs-delivery-mixins.generated.d.ts +0 -112
- package/lib/services/aws-kafkaconnect/logs-delivery-mixins.generated.js +0 -217
- package/lib/services/aws-kafkaconnect/mixins.d.ts +0 -1
- package/lib/services/aws-kafkaconnect/mixins.js +0 -17
- package/lib/services/aws-logs/.mixins.jsiirc.json +0 -16
- package/lib/services/aws-logs/mixins.d.ts +0 -1
- package/lib/services/aws-logs/mixins.js +0 -17
- package/lib/services/aws-m2/.jsiirc.json +0 -16
- package/lib/services/aws-m2/.mixins.jsiirc.json +0 -16
- package/lib/services/aws-m2/index.d.ts +0 -1
- package/lib/services/aws-m2/index.js +0 -37
- package/lib/services/aws-m2/logs-delivery-mixins.generated.d.ts +0 -354
- package/lib/services/aws-m2/logs-delivery-mixins.generated.js +0 -594
- package/lib/services/aws-m2/mixins.d.ts +0 -1
- package/lib/services/aws-m2/mixins.js +0 -17
- package/lib/services/aws-msk/.mixins.jsiirc.json +0 -16
- package/lib/services/aws-msk/index.d.ts +0 -1
- package/lib/services/aws-msk/index.js +0 -37
- package/lib/services/aws-msk/logs-delivery-mixins.generated.d.ts +0 -245
- package/lib/services/aws-msk/logs-delivery-mixins.generated.js +0 -410
- package/lib/services/aws-msk/mixins.d.ts +0 -1
- package/lib/services/aws-msk/mixins.js +0 -17
- package/lib/services/aws-osis/.jsiirc.json +0 -16
- package/lib/services/aws-osis/.mixins.jsiirc.json +0 -16
- package/lib/services/aws-osis/index.d.ts +0 -1
- package/lib/services/aws-osis/index.js +0 -37
- package/lib/services/aws-osis/logs-delivery-mixins.generated.d.ts +0 -112
- package/lib/services/aws-osis/logs-delivery-mixins.generated.js +0 -217
- package/lib/services/aws-osis/mixins.d.ts +0 -1
- package/lib/services/aws-osis/mixins.js +0 -17
- package/lib/services/aws-pipes/.jsiirc.json +0 -16
- package/lib/services/aws-pipes/.mixins.jsiirc.json +0 -16
- package/lib/services/aws-pipes/index.d.ts +0 -1
- package/lib/services/aws-pipes/index.js +0 -37
- package/lib/services/aws-pipes/logs-delivery-mixins.generated.d.ts +0 -116
- package/lib/services/aws-pipes/logs-delivery-mixins.generated.js +0 -221
- package/lib/services/aws-pipes/mixins.d.ts +0 -1
- package/lib/services/aws-pipes/mixins.js +0 -17
- package/lib/services/aws-route53globalresolver/.jsiirc.json +0 -16
- package/lib/services/aws-route53globalresolver/.mixins.jsiirc.json +0 -16
- package/lib/services/aws-route53globalresolver/index.d.ts +0 -1
- package/lib/services/aws-route53globalresolver/index.js +0 -37
- package/lib/services/aws-route53globalresolver/logs-delivery-mixins.generated.d.ts +0 -166
- package/lib/services/aws-route53globalresolver/logs-delivery-mixins.generated.js +0 -263
- package/lib/services/aws-route53globalresolver/mixins.d.ts +0 -1
- package/lib/services/aws-route53globalresolver/mixins.js +0 -17
- package/lib/services/aws-route53profiles/.jsiirc.json +0 -16
- package/lib/services/aws-route53profiles/.mixins.jsiirc.json +0 -16
- package/lib/services/aws-route53profiles/index.d.ts +0 -1
- package/lib/services/aws-route53profiles/index.js +0 -37
- package/lib/services/aws-route53profiles/logs-delivery-mixins.generated.d.ts +0 -112
- package/lib/services/aws-route53profiles/logs-delivery-mixins.generated.js +0 -217
- package/lib/services/aws-route53profiles/mixins.d.ts +0 -1
- package/lib/services/aws-route53profiles/mixins.js +0 -17
- package/lib/services/aws-rum/.jsiirc.json +0 -16
- package/lib/services/aws-rum/.mixins.jsiirc.json +0 -16
- package/lib/services/aws-rum/index.d.ts +0 -1
- package/lib/services/aws-rum/index.js +0 -37
- package/lib/services/aws-rum/logs-delivery-mixins.generated.d.ts +0 -276
- package/lib/services/aws-rum/logs-delivery-mixins.generated.js +0 -471
- package/lib/services/aws-rum/mixins.d.ts +0 -1
- package/lib/services/aws-rum/mixins.js +0 -17
- package/lib/services/aws-sagemaker/.mixins.jsiirc.json +0 -16
- package/lib/services/aws-sagemaker/logs-delivery-mixins.generated.d.ts +0 -99
- package/lib/services/aws-sagemaker/logs-delivery-mixins.generated.js +0 -192
- package/lib/services/aws-sagemaker/mixins.d.ts +0 -1
- package/lib/services/aws-sagemaker/mixins.js +0 -17
- package/lib/services/aws-states/.events.jsiirc.json +0 -16
- package/lib/services/aws-states/.jsiirc.json +0 -16
- package/lib/services/aws-states/events.generated.d.ts +0 -555
- package/lib/services/aws-states/events.generated.js +0 -265
- package/lib/services/aws-stepfunctions/.jsiirc.json +0 -16
- package/lib/services/aws-stepfunctions/.mixins.jsiirc.json +0 -16
- package/lib/services/aws-stepfunctions/index.d.ts +0 -1
- package/lib/services/aws-stepfunctions/index.js +0 -37
- package/lib/services/aws-stepfunctions/logs-delivery-mixins.generated.d.ts +0 -162
- package/lib/services/aws-stepfunctions/logs-delivery-mixins.generated.js +0 -268
- package/lib/services/aws-stepfunctions/mixins.d.ts +0 -1
- package/lib/services/aws-stepfunctions/mixins.js +0 -17
- package/lib/services/aws-transfer/.mixins.jsiirc.json +0 -16
- package/lib/services/aws-transfer/logs-delivery-mixins.generated.d.ts +0 -114
- package/lib/services/aws-transfer/logs-delivery-mixins.generated.js +0 -219
- package/lib/services/aws-transfer/mixins.d.ts +0 -1
- package/lib/services/aws-transfer/mixins.js +0 -17
- package/lib/services/aws-vpclattice/.jsiirc.json +0 -16
- package/lib/services/aws-vpclattice/.mixins.jsiirc.json +0 -16
- package/lib/services/aws-vpclattice/index.d.ts +0 -1
- package/lib/services/aws-vpclattice/index.js +0 -37
- package/lib/services/aws-vpclattice/logs-delivery-mixins.generated.d.ts +0 -225
- package/lib/services/aws-vpclattice/logs-delivery-mixins.generated.js +0 -398
- package/lib/services/aws-vpclattice/mixins.d.ts +0 -1
- package/lib/services/aws-vpclattice/mixins.js +0 -17
- package/lib/services/aws-wafv2/.jsiirc.json +0 -16
- package/lib/services/aws-wafv2/.mixins.jsiirc.json +0 -16
- package/lib/services/aws-wafv2/index.d.ts +0 -1
- package/lib/services/aws-wafv2/index.js +0 -37
- package/lib/services/aws-wafv2/logs-delivery-mixins.generated.d.ts +0 -212
- package/lib/services/aws-wafv2/logs-delivery-mixins.generated.js +0 -362
- package/lib/services/aws-wafv2/mixins.d.ts +0 -1
- package/lib/services/aws-wafv2/mixins.js +0 -17
- /package/lib/services/{aws-states → aws-dataexchange}/events.d.ts +0 -0
- /package/lib/services/{aws-states → aws-dataexchange}/events.js +0 -0
- /package/lib/services/{aws-states → aws-dataexchange}/index.d.ts +0 -0
- /package/lib/services/{aws-states → aws-dataexchange}/index.js +0 -0
- /package/lib/services/{aws-apigateway → aws-ecs}/mixins.d.ts +0 -0
- /package/lib/services/{aws-apigateway → aws-ecs}/mixins.js +0 -0
- /package/lib/services/{aws-apigateway → aws-rtbfabric}/index.d.ts +0 -0
- /package/lib/services/{aws-apigateway → aws-rtbfabric}/index.js +0 -0
- /package/lib/services/{aws-aps → aws-rtbfabric}/mixins.d.ts +0 -0
- /package/lib/services/{aws-aps → aws-rtbfabric}/mixins.js +0 -0
- /package/lib/services/{aws-b2bi → aws-securityhub}/mixins.d.ts +0 -0
- /package/lib/services/{aws-b2bi → aws-securityhub}/mixins.js +0 -0
|
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
36
|
+
exports.CfnWorkloadIdentityTracesRecordFields = exports.CfnWorkloadIdentityTracesOutputFormat = exports.CfnWorkloadIdentityApplicationLogsRecordFields = exports.CfnWorkloadIdentityApplicationLogsOutputFormat = exports.CfnWorkloadIdentityLogsMixin = exports.CfnWorkloadIdentityTraces = exports.CfnWorkloadIdentityApplicationLogs = exports.CfnRuntimeUsageLogsRecordFields = exports.CfnRuntimeUsageLogsOutputFormat = exports.CfnRuntimeApplicationLogsRecordFields = exports.CfnRuntimeApplicationLogsOutputFormat = exports.CfnRuntimeTracesRecordFields = exports.CfnRuntimeTracesOutputFormat = exports.CfnRuntimeLogsMixin = exports.CfnRuntimeUsageLogs = exports.CfnRuntimeApplicationLogs = exports.CfnRuntimeTraces = exports.CfnMemoryApplicationLogsRecordFields = exports.CfnMemoryApplicationLogsOutputFormat = exports.CfnMemoryTracesRecordFields = exports.CfnMemoryTracesOutputFormat = exports.CfnMemoryLogsMixin = exports.CfnMemoryApplicationLogs = exports.CfnMemoryTraces = exports.CfnGatewayApplicationLogsRecordFields = exports.CfnGatewayApplicationLogsOutputFormat = exports.CfnGatewayTracesRecordFields = exports.CfnGatewayTracesOutputFormat = exports.CfnGatewayLogsMixin = exports.CfnGatewayApplicationLogs = exports.CfnGatewayTraces = exports.CfnCodeInterpreterCustomUsageLogsRecordFields = exports.CfnCodeInterpreterCustomUsageLogsOutputFormat = exports.CfnCodeInterpreterCustomApplicationLogsRecordFields = exports.CfnCodeInterpreterCustomApplicationLogsOutputFormat = exports.CfnCodeInterpreterCustomTracesRecordFields = exports.CfnCodeInterpreterCustomTracesOutputFormat = exports.CfnCodeInterpreterCustomLogsMixin = exports.CfnCodeInterpreterCustomUsageLogs = exports.CfnCodeInterpreterCustomApplicationLogs = exports.CfnCodeInterpreterCustomTraces = exports.CfnBrowserCustomUsageLogsRecordFields = exports.CfnBrowserCustomUsageLogsOutputFormat = exports.CfnBrowserCustomTracesRecordFields = exports.CfnBrowserCustomTracesOutputFormat = exports.CfnBrowserCustomLogsMixin = exports.CfnBrowserCustomUsageLogs = exports.CfnBrowserCustomTraces = 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 */
|
|
@@ -41,89 +41,40 @@ const cdk = __importStar(require("aws-cdk-lib/core"));
|
|
|
41
41
|
const logsDelivery = __importStar(require("../aws-logs/logs-delivery"));
|
|
42
42
|
const service = __importStar(require("aws-cdk-lib/aws-bedrockagentcore"));
|
|
43
43
|
/**
|
|
44
|
-
* Builder for
|
|
44
|
+
* Builder for CfnBrowserCustomLogsMixin to generate TRACES for CfnBrowserCustom
|
|
45
45
|
*
|
|
46
|
-
* @cloudformationResource AWS::BedrockAgentCore::
|
|
47
|
-
* @logType
|
|
46
|
+
* @cloudformationResource AWS::BedrockAgentCore::BrowserCustom
|
|
47
|
+
* @logType TRACES
|
|
48
48
|
* @stability external
|
|
49
49
|
*/
|
|
50
|
-
class
|
|
51
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.
|
|
52
|
-
/**
|
|
53
|
-
* Send logs to an S3 Bucket
|
|
54
|
-
*
|
|
55
|
-
* @param props Additional properties that are optionally used in log delivery for S3 destinations
|
|
56
|
-
*/
|
|
57
|
-
toS3(bucket, props) {
|
|
58
|
-
try {
|
|
59
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_bedrockagentcore_mixins_CfnBrowserUsageLogsS3Props(props);
|
|
60
|
-
}
|
|
61
|
-
catch (error) {
|
|
62
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
63
|
-
Error.captureStackTrace(error, this.toS3);
|
|
64
|
-
}
|
|
65
|
-
throw error;
|
|
66
|
-
}
|
|
67
|
-
{
|
|
68
|
-
return new CfnBrowserLogsMixin("USAGE_LOGS", new logsDelivery.S3LogsDelivery(bucket, {
|
|
69
|
-
permissionsVersion: logsDelivery.S3LogsDeliveryPermissionsVersion.V2,
|
|
70
|
-
kmsKey: props?.encryptionKey,
|
|
71
|
-
outputFormat: props?.outputFormat,
|
|
72
|
-
providedFields: props?.recordFields,
|
|
73
|
-
mandatoryFields: ["resource_arn", "event_timestamp", "resource", "attributes", "metrics"]
|
|
74
|
-
}));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Send logs to a CloudWatch Log Group
|
|
79
|
-
*
|
|
80
|
-
* @param props Additional properties that are optionally used in log delivery for Log Group destinations
|
|
81
|
-
*/
|
|
82
|
-
toLogGroup(logGroup, props) {
|
|
83
|
-
try {
|
|
84
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_bedrockagentcore_mixins_CfnBrowserUsageLogsLogGroupProps(props);
|
|
85
|
-
}
|
|
86
|
-
catch (error) {
|
|
87
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
88
|
-
Error.captureStackTrace(error, this.toLogGroup);
|
|
89
|
-
}
|
|
90
|
-
throw error;
|
|
91
|
-
}
|
|
92
|
-
{
|
|
93
|
-
return new CfnBrowserLogsMixin("USAGE_LOGS", new logsDelivery.LogGroupLogsDelivery(logGroup, {
|
|
94
|
-
outputFormat: props?.outputFormat,
|
|
95
|
-
providedFields: props?.recordFields,
|
|
96
|
-
mandatoryFields: ["resource_arn", "event_timestamp", "resource", "attributes", "metrics"]
|
|
97
|
-
}));
|
|
98
|
-
}
|
|
99
|
-
}
|
|
50
|
+
class CfnBrowserCustomTraces {
|
|
51
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnBrowserCustomTraces", version: "2.268.0-alpha.0" };
|
|
100
52
|
/**
|
|
101
|
-
* Send
|
|
53
|
+
* Send traces to X-Ray
|
|
102
54
|
*
|
|
103
|
-
* @param props Additional properties that are optionally used in log delivery for
|
|
55
|
+
* @param props Additional properties that are optionally used in log delivery for XRay destinations
|
|
104
56
|
*/
|
|
105
|
-
|
|
57
|
+
toXRay(props) {
|
|
106
58
|
try {
|
|
107
|
-
jsiiDeprecationWarnings.
|
|
59
|
+
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_bedrockagentcore_mixins_CfnBrowserCustomTracesXRayProps(props);
|
|
108
60
|
}
|
|
109
61
|
catch (error) {
|
|
110
62
|
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
111
|
-
Error.captureStackTrace(error, this.
|
|
63
|
+
Error.captureStackTrace(error, this.toXRay);
|
|
112
64
|
}
|
|
113
65
|
throw error;
|
|
114
66
|
}
|
|
115
67
|
{
|
|
116
|
-
return new
|
|
117
|
-
outputFormat: props?.outputFormat,
|
|
68
|
+
return new CfnBrowserCustomLogsMixin("TRACES", new logsDelivery.XRayLogsDelivery({
|
|
118
69
|
providedFields: props?.recordFields,
|
|
119
|
-
mandatoryFields: ["
|
|
70
|
+
mandatoryFields: ["trace"]
|
|
120
71
|
}));
|
|
121
72
|
}
|
|
122
73
|
}
|
|
123
74
|
/**
|
|
124
75
|
* Delivers logs to a pre-created delivery destination
|
|
125
76
|
*
|
|
126
|
-
* Supported destinations are
|
|
77
|
+
* Supported destinations are XRAY
|
|
127
78
|
* You are responsible for setting up the correct permissions for your delivery destination, toDestination() does not set up any permissions for you.
|
|
128
79
|
* Delivery destinations that are imported from another stack using CfnDeliveryDestination.fromDeliveryDestinationArn() or CfnDeliveryDestination.fromDeliveryDestinationName() are supported by toDestination().
|
|
129
80
|
*
|
|
@@ -131,7 +82,7 @@ class CfnBrowserUsageLogs {
|
|
|
131
82
|
*/
|
|
132
83
|
toDestination(destination, props) {
|
|
133
84
|
try {
|
|
134
|
-
jsiiDeprecationWarnings.
|
|
85
|
+
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_bedrockagentcore_mixins_CfnBrowserCustomTracesDestProps(props);
|
|
135
86
|
}
|
|
136
87
|
catch (error) {
|
|
137
88
|
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
@@ -140,102 +91,14 @@ class CfnBrowserUsageLogs {
|
|
|
140
91
|
throw error;
|
|
141
92
|
}
|
|
142
93
|
{
|
|
143
|
-
return new
|
|
94
|
+
return new CfnBrowserCustomLogsMixin("TRACES", new logsDelivery.DestinationLogsDelivery(destination, {
|
|
144
95
|
providedFields: props?.recordFields,
|
|
145
|
-
mandatoryFields: ["
|
|
96
|
+
mandatoryFields: ["trace"]
|
|
146
97
|
}));
|
|
147
98
|
}
|
|
148
99
|
}
|
|
149
100
|
}
|
|
150
|
-
exports.
|
|
151
|
-
/**
|
|
152
|
-
* Definition of AWS::BedrockAgentCore::Browser Resource Type.
|
|
153
|
-
*
|
|
154
|
-
* This is a read-only resource representing the default service-managed browser.
|
|
155
|
-
*
|
|
156
|
-
* @cloudformationResource AWS::BedrockAgentCore::Browser
|
|
157
|
-
* @mixin true
|
|
158
|
-
* @stability external
|
|
159
|
-
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-browser.html
|
|
160
|
-
*/
|
|
161
|
-
class CfnBrowserLogsMixin extends cdk.Mixin {
|
|
162
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnBrowserLogsMixin", version: "2.267.0-alpha.0" };
|
|
163
|
-
static USAGE_LOGS = new CfnBrowserUsageLogs();
|
|
164
|
-
logType;
|
|
165
|
-
logDelivery;
|
|
166
|
-
/**
|
|
167
|
-
* Create a mixin to enable vended logs for `AWS::BedrockAgentCore::Browser`.
|
|
168
|
-
*
|
|
169
|
-
* @param logType Type of logs that are getting vended
|
|
170
|
-
* @param logDelivery Object in charge of setting up the delivery source, delivery destination, and delivery connection
|
|
171
|
-
*/
|
|
172
|
-
constructor(logType, logDelivery) {
|
|
173
|
-
super();
|
|
174
|
-
try {
|
|
175
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_logs_ILogsDelivery(logDelivery);
|
|
176
|
-
}
|
|
177
|
-
catch (error) {
|
|
178
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
179
|
-
Error.captureStackTrace(error, CfnBrowserLogsMixin);
|
|
180
|
-
}
|
|
181
|
-
throw error;
|
|
182
|
-
}
|
|
183
|
-
this.logType = logType;
|
|
184
|
-
this.logDelivery = logDelivery;
|
|
185
|
-
}
|
|
186
|
-
/**
|
|
187
|
-
* Check if this mixin supports the given construct (has vendedLogs property)
|
|
188
|
-
*/
|
|
189
|
-
supports(construct) {
|
|
190
|
-
return (cdk.CfnResource.isCfnResource(construct) && service.CfnBrowser.isCfnBrowser(construct));
|
|
191
|
-
}
|
|
192
|
-
/**
|
|
193
|
-
* Apply vended logs configuration to the construct
|
|
194
|
-
*/
|
|
195
|
-
applyTo(resource) {
|
|
196
|
-
if (!this.supports(resource)) {
|
|
197
|
-
return;
|
|
198
|
-
}
|
|
199
|
-
const sourceArn = service.CfnBrowser.arnForBrowser(resource);
|
|
200
|
-
this.logDelivery.bind(resource, this.logType, sourceArn);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
exports.CfnBrowserLogsMixin = CfnBrowserLogsMixin;
|
|
204
|
-
/**
|
|
205
|
-
* Output Format options for each destination of CfnBrowserUsageLogs.
|
|
206
|
-
*/
|
|
207
|
-
class CfnBrowserUsageLogsOutputFormat {
|
|
208
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnBrowserUsageLogsOutputFormat", version: "2.267.0-alpha.0" };
|
|
209
|
-
}
|
|
210
|
-
exports.CfnBrowserUsageLogsOutputFormat = CfnBrowserUsageLogsOutputFormat;
|
|
211
|
-
(function (CfnBrowserUsageLogsOutputFormat) {
|
|
212
|
-
let S3;
|
|
213
|
-
(function (S3) {
|
|
214
|
-
S3["JSON"] = "json";
|
|
215
|
-
S3["PLAIN"] = "plain";
|
|
216
|
-
S3["W3C"] = "w3c";
|
|
217
|
-
S3["PARQUET"] = "parquet";
|
|
218
|
-
})(S3 = CfnBrowserUsageLogsOutputFormat.S3 || (CfnBrowserUsageLogsOutputFormat.S3 = {}));
|
|
219
|
-
let LogGroup;
|
|
220
|
-
(function (LogGroup) {
|
|
221
|
-
LogGroup["PLAIN"] = "plain";
|
|
222
|
-
LogGroup["JSON"] = "json";
|
|
223
|
-
})(LogGroup = CfnBrowserUsageLogsOutputFormat.LogGroup || (CfnBrowserUsageLogsOutputFormat.LogGroup = {}));
|
|
224
|
-
let Firehose;
|
|
225
|
-
(function (Firehose) {
|
|
226
|
-
Firehose["JSON"] = "json";
|
|
227
|
-
Firehose["PLAIN"] = "plain";
|
|
228
|
-
Firehose["RAW"] = "raw";
|
|
229
|
-
})(Firehose = CfnBrowserUsageLogsOutputFormat.Firehose || (CfnBrowserUsageLogsOutputFormat.Firehose = {}));
|
|
230
|
-
})(CfnBrowserUsageLogsOutputFormat || (exports.CfnBrowserUsageLogsOutputFormat = CfnBrowserUsageLogsOutputFormat = {}));
|
|
231
|
-
var CfnBrowserUsageLogsRecordFields;
|
|
232
|
-
(function (CfnBrowserUsageLogsRecordFields) {
|
|
233
|
-
CfnBrowserUsageLogsRecordFields["RESOURCE_ARN"] = "resource_arn";
|
|
234
|
-
CfnBrowserUsageLogsRecordFields["EVENT_TIMESTAMP"] = "event_timestamp";
|
|
235
|
-
CfnBrowserUsageLogsRecordFields["RESOURCE"] = "resource";
|
|
236
|
-
CfnBrowserUsageLogsRecordFields["ATTRIBUTES"] = "attributes";
|
|
237
|
-
CfnBrowserUsageLogsRecordFields["METRICS"] = "metrics";
|
|
238
|
-
})(CfnBrowserUsageLogsRecordFields || (exports.CfnBrowserUsageLogsRecordFields = CfnBrowserUsageLogsRecordFields = {}));
|
|
101
|
+
exports.CfnBrowserCustomTraces = CfnBrowserCustomTraces;
|
|
239
102
|
/**
|
|
240
103
|
* Builder for CfnBrowserCustomLogsMixin to generate USAGE_LOGS for CfnBrowserCustom
|
|
241
104
|
*
|
|
@@ -244,7 +107,7 @@ var CfnBrowserUsageLogsRecordFields;
|
|
|
244
107
|
* @stability external
|
|
245
108
|
*/
|
|
246
109
|
class CfnBrowserCustomUsageLogs {
|
|
247
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnBrowserCustomUsageLogs", version: "2.
|
|
110
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnBrowserCustomUsageLogs", version: "2.268.0-alpha.0" };
|
|
248
111
|
/**
|
|
249
112
|
* Send logs to an S3 Bucket
|
|
250
113
|
*
|
|
@@ -357,7 +220,8 @@ exports.CfnBrowserCustomUsageLogs = CfnBrowserCustomUsageLogs;
|
|
|
357
220
|
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-browsercustom.html
|
|
358
221
|
*/
|
|
359
222
|
class CfnBrowserCustomLogsMixin extends cdk.Mixin {
|
|
360
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnBrowserCustomLogsMixin", version: "2.
|
|
223
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnBrowserCustomLogsMixin", version: "2.268.0-alpha.0" };
|
|
224
|
+
static TRACES = new CfnBrowserCustomTraces();
|
|
361
225
|
static USAGE_LOGS = new CfnBrowserCustomUsageLogs();
|
|
362
226
|
logType;
|
|
363
227
|
logDelivery;
|
|
@@ -399,18 +263,31 @@ class CfnBrowserCustomLogsMixin extends cdk.Mixin {
|
|
|
399
263
|
}
|
|
400
264
|
}
|
|
401
265
|
exports.CfnBrowserCustomLogsMixin = CfnBrowserCustomLogsMixin;
|
|
266
|
+
/**
|
|
267
|
+
* Output Format options for each destination of CfnBrowserCustomTraces.
|
|
268
|
+
*/
|
|
269
|
+
class CfnBrowserCustomTracesOutputFormat {
|
|
270
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnBrowserCustomTracesOutputFormat", version: "2.268.0-alpha.0" };
|
|
271
|
+
}
|
|
272
|
+
exports.CfnBrowserCustomTracesOutputFormat = CfnBrowserCustomTracesOutputFormat;
|
|
273
|
+
var CfnBrowserCustomTracesRecordFields;
|
|
274
|
+
(function (CfnBrowserCustomTracesRecordFields) {
|
|
275
|
+
CfnBrowserCustomTracesRecordFields["TIMESTAMP"] = "timestamp";
|
|
276
|
+
CfnBrowserCustomTracesRecordFields["RESOURCEARN"] = "resourceArn";
|
|
277
|
+
CfnBrowserCustomTracesRecordFields["TRACE"] = "trace";
|
|
278
|
+
})(CfnBrowserCustomTracesRecordFields || (exports.CfnBrowserCustomTracesRecordFields = CfnBrowserCustomTracesRecordFields = {}));
|
|
402
279
|
/**
|
|
403
280
|
* Output Format options for each destination of CfnBrowserCustomUsageLogs.
|
|
404
281
|
*/
|
|
405
282
|
class CfnBrowserCustomUsageLogsOutputFormat {
|
|
406
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnBrowserCustomUsageLogsOutputFormat", version: "2.
|
|
283
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnBrowserCustomUsageLogsOutputFormat", version: "2.268.0-alpha.0" };
|
|
407
284
|
}
|
|
408
285
|
exports.CfnBrowserCustomUsageLogsOutputFormat = CfnBrowserCustomUsageLogsOutputFormat;
|
|
409
286
|
(function (CfnBrowserCustomUsageLogsOutputFormat) {
|
|
410
287
|
let S3;
|
|
411
288
|
(function (S3) {
|
|
412
|
-
S3["JSON"] = "json";
|
|
413
289
|
S3["PLAIN"] = "plain";
|
|
290
|
+
S3["JSON"] = "json";
|
|
414
291
|
S3["W3C"] = "w3c";
|
|
415
292
|
S3["PARQUET"] = "parquet";
|
|
416
293
|
})(S3 = CfnBrowserCustomUsageLogsOutputFormat.S3 || (CfnBrowserCustomUsageLogsOutputFormat.S3 = {}));
|
|
@@ -421,13 +298,16 @@ exports.CfnBrowserCustomUsageLogsOutputFormat = CfnBrowserCustomUsageLogsOutputF
|
|
|
421
298
|
})(LogGroup = CfnBrowserCustomUsageLogsOutputFormat.LogGroup || (CfnBrowserCustomUsageLogsOutputFormat.LogGroup = {}));
|
|
422
299
|
let Firehose;
|
|
423
300
|
(function (Firehose) {
|
|
424
|
-
Firehose["JSON"] = "json";
|
|
425
301
|
Firehose["PLAIN"] = "plain";
|
|
302
|
+
Firehose["JSON"] = "json";
|
|
426
303
|
Firehose["RAW"] = "raw";
|
|
427
304
|
})(Firehose = CfnBrowserCustomUsageLogsOutputFormat.Firehose || (CfnBrowserCustomUsageLogsOutputFormat.Firehose = {}));
|
|
428
305
|
})(CfnBrowserCustomUsageLogsOutputFormat || (exports.CfnBrowserCustomUsageLogsOutputFormat = CfnBrowserCustomUsageLogsOutputFormat = {}));
|
|
429
306
|
var CfnBrowserCustomUsageLogsRecordFields;
|
|
430
307
|
(function (CfnBrowserCustomUsageLogsRecordFields) {
|
|
308
|
+
CfnBrowserCustomUsageLogsRecordFields["TIMESTAMP"] = "timestamp";
|
|
309
|
+
CfnBrowserCustomUsageLogsRecordFields["BROWSER_ID"] = "browser_id";
|
|
310
|
+
CfnBrowserCustomUsageLogsRecordFields["INTERNAL_ACCOUNTID_BASED_ARN"] = "internal_accountid_based_arn";
|
|
431
311
|
CfnBrowserCustomUsageLogsRecordFields["RESOURCE_ARN"] = "resource_arn";
|
|
432
312
|
CfnBrowserCustomUsageLogsRecordFields["EVENT_TIMESTAMP"] = "event_timestamp";
|
|
433
313
|
CfnBrowserCustomUsageLogsRecordFields["RESOURCE"] = "resource";
|
|
@@ -435,197 +315,40 @@ var CfnBrowserCustomUsageLogsRecordFields;
|
|
|
435
315
|
CfnBrowserCustomUsageLogsRecordFields["METRICS"] = "metrics";
|
|
436
316
|
})(CfnBrowserCustomUsageLogsRecordFields || (exports.CfnBrowserCustomUsageLogsRecordFields = CfnBrowserCustomUsageLogsRecordFields = {}));
|
|
437
317
|
/**
|
|
438
|
-
* Builder for
|
|
318
|
+
* Builder for CfnCodeInterpreterCustomLogsMixin to generate TRACES for CfnCodeInterpreterCustom
|
|
439
319
|
*
|
|
440
|
-
* @cloudformationResource AWS::BedrockAgentCore::
|
|
441
|
-
* @logType
|
|
442
|
-
* @stability external
|
|
443
|
-
*/
|
|
444
|
-
class CfnCodeInterpreterApplicationLogs {
|
|
445
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnCodeInterpreterApplicationLogs", version: "2.267.0-alpha.0" };
|
|
446
|
-
/**
|
|
447
|
-
* Send logs to an S3 Bucket
|
|
448
|
-
*
|
|
449
|
-
* @param props Additional properties that are optionally used in log delivery for S3 destinations
|
|
450
|
-
*/
|
|
451
|
-
toS3(bucket, props) {
|
|
452
|
-
try {
|
|
453
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_bedrockagentcore_mixins_CfnCodeInterpreterApplicationLogsS3Props(props);
|
|
454
|
-
}
|
|
455
|
-
catch (error) {
|
|
456
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
457
|
-
Error.captureStackTrace(error, this.toS3);
|
|
458
|
-
}
|
|
459
|
-
throw error;
|
|
460
|
-
}
|
|
461
|
-
{
|
|
462
|
-
return new CfnCodeInterpreterLogsMixin("APPLICATION_LOGS", new logsDelivery.S3LogsDelivery(bucket, {
|
|
463
|
-
permissionsVersion: logsDelivery.S3LogsDeliveryPermissionsVersion.V2,
|
|
464
|
-
kmsKey: props?.encryptionKey,
|
|
465
|
-
outputFormat: props?.outputFormat,
|
|
466
|
-
providedFields: props?.recordFields,
|
|
467
|
-
mandatoryFields: ["resource_arn", "event_timestamp"]
|
|
468
|
-
}));
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
/**
|
|
472
|
-
* Send logs to a CloudWatch Log Group
|
|
473
|
-
*
|
|
474
|
-
* @param props Additional properties that are optionally used in log delivery for Log Group destinations
|
|
475
|
-
*/
|
|
476
|
-
toLogGroup(logGroup, props) {
|
|
477
|
-
try {
|
|
478
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_bedrockagentcore_mixins_CfnCodeInterpreterApplicationLogsLogGroupProps(props);
|
|
479
|
-
}
|
|
480
|
-
catch (error) {
|
|
481
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
482
|
-
Error.captureStackTrace(error, this.toLogGroup);
|
|
483
|
-
}
|
|
484
|
-
throw error;
|
|
485
|
-
}
|
|
486
|
-
{
|
|
487
|
-
return new CfnCodeInterpreterLogsMixin("APPLICATION_LOGS", new logsDelivery.LogGroupLogsDelivery(logGroup, {
|
|
488
|
-
outputFormat: props?.outputFormat,
|
|
489
|
-
providedFields: props?.recordFields,
|
|
490
|
-
mandatoryFields: ["resource_arn", "event_timestamp"]
|
|
491
|
-
}));
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
/**
|
|
495
|
-
* Send logs to a Firehose Delivery Stream
|
|
496
|
-
*
|
|
497
|
-
* @param props Additional properties that are optionally used in log delivery for Firehose destinations
|
|
498
|
-
*/
|
|
499
|
-
toFirehose(deliveryStream, props) {
|
|
500
|
-
try {
|
|
501
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_bedrockagentcore_mixins_CfnCodeInterpreterApplicationLogsFirehoseProps(props);
|
|
502
|
-
}
|
|
503
|
-
catch (error) {
|
|
504
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
505
|
-
Error.captureStackTrace(error, this.toFirehose);
|
|
506
|
-
}
|
|
507
|
-
throw error;
|
|
508
|
-
}
|
|
509
|
-
{
|
|
510
|
-
return new CfnCodeInterpreterLogsMixin("APPLICATION_LOGS", new logsDelivery.FirehoseLogsDelivery(deliveryStream, {
|
|
511
|
-
outputFormat: props?.outputFormat,
|
|
512
|
-
providedFields: props?.recordFields,
|
|
513
|
-
mandatoryFields: ["resource_arn", "event_timestamp"]
|
|
514
|
-
}));
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
/**
|
|
518
|
-
* Delivers logs to a pre-created delivery destination
|
|
519
|
-
*
|
|
520
|
-
* Supported destinations are S3, CWL, FH
|
|
521
|
-
* You are responsible for setting up the correct permissions for your delivery destination, toDestination() does not set up any permissions for you.
|
|
522
|
-
* Delivery destinations that are imported from another stack using CfnDeliveryDestination.fromDeliveryDestinationArn() or CfnDeliveryDestination.fromDeliveryDestinationName() are supported by toDestination().
|
|
523
|
-
*
|
|
524
|
-
* @param props Additional properties that are optionally used in log delivery for destinations
|
|
525
|
-
*/
|
|
526
|
-
toDestination(destination, props) {
|
|
527
|
-
try {
|
|
528
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_bedrockagentcore_mixins_CfnCodeInterpreterApplicationLogsDestProps(props);
|
|
529
|
-
}
|
|
530
|
-
catch (error) {
|
|
531
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
532
|
-
Error.captureStackTrace(error, this.toDestination);
|
|
533
|
-
}
|
|
534
|
-
throw error;
|
|
535
|
-
}
|
|
536
|
-
{
|
|
537
|
-
return new CfnCodeInterpreterLogsMixin("APPLICATION_LOGS", new logsDelivery.DestinationLogsDelivery(destination, {
|
|
538
|
-
providedFields: props?.recordFields,
|
|
539
|
-
mandatoryFields: ["resource_arn", "event_timestamp"]
|
|
540
|
-
}));
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
exports.CfnCodeInterpreterApplicationLogs = CfnCodeInterpreterApplicationLogs;
|
|
545
|
-
/**
|
|
546
|
-
* Builder for CfnCodeInterpreterLogsMixin to generate USAGE_LOGS for CfnCodeInterpreter
|
|
547
|
-
*
|
|
548
|
-
* @cloudformationResource AWS::BedrockAgentCore::CodeInterpreter
|
|
549
|
-
* @logType USAGE_LOGS
|
|
320
|
+
* @cloudformationResource AWS::BedrockAgentCore::CodeInterpreterCustom
|
|
321
|
+
* @logType TRACES
|
|
550
322
|
* @stability external
|
|
551
323
|
*/
|
|
552
|
-
class
|
|
553
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.
|
|
554
|
-
/**
|
|
555
|
-
* Send logs to an S3 Bucket
|
|
556
|
-
*
|
|
557
|
-
* @param props Additional properties that are optionally used in log delivery for S3 destinations
|
|
558
|
-
*/
|
|
559
|
-
toS3(bucket, props) {
|
|
560
|
-
try {
|
|
561
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_bedrockagentcore_mixins_CfnCodeInterpreterUsageLogsS3Props(props);
|
|
562
|
-
}
|
|
563
|
-
catch (error) {
|
|
564
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
565
|
-
Error.captureStackTrace(error, this.toS3);
|
|
566
|
-
}
|
|
567
|
-
throw error;
|
|
568
|
-
}
|
|
569
|
-
{
|
|
570
|
-
return new CfnCodeInterpreterLogsMixin("USAGE_LOGS", new logsDelivery.S3LogsDelivery(bucket, {
|
|
571
|
-
permissionsVersion: logsDelivery.S3LogsDeliveryPermissionsVersion.V2,
|
|
572
|
-
kmsKey: props?.encryptionKey,
|
|
573
|
-
outputFormat: props?.outputFormat,
|
|
574
|
-
providedFields: props?.recordFields,
|
|
575
|
-
mandatoryFields: ["resource_arn", "event_timestamp", "resource", "attributes", "metrics"]
|
|
576
|
-
}));
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
/**
|
|
580
|
-
* Send logs to a CloudWatch Log Group
|
|
581
|
-
*
|
|
582
|
-
* @param props Additional properties that are optionally used in log delivery for Log Group destinations
|
|
583
|
-
*/
|
|
584
|
-
toLogGroup(logGroup, props) {
|
|
585
|
-
try {
|
|
586
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_bedrockagentcore_mixins_CfnCodeInterpreterUsageLogsLogGroupProps(props);
|
|
587
|
-
}
|
|
588
|
-
catch (error) {
|
|
589
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
590
|
-
Error.captureStackTrace(error, this.toLogGroup);
|
|
591
|
-
}
|
|
592
|
-
throw error;
|
|
593
|
-
}
|
|
594
|
-
{
|
|
595
|
-
return new CfnCodeInterpreterLogsMixin("USAGE_LOGS", new logsDelivery.LogGroupLogsDelivery(logGroup, {
|
|
596
|
-
outputFormat: props?.outputFormat,
|
|
597
|
-
providedFields: props?.recordFields,
|
|
598
|
-
mandatoryFields: ["resource_arn", "event_timestamp", "resource", "attributes", "metrics"]
|
|
599
|
-
}));
|
|
600
|
-
}
|
|
601
|
-
}
|
|
324
|
+
class CfnCodeInterpreterCustomTraces {
|
|
325
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnCodeInterpreterCustomTraces", version: "2.268.0-alpha.0" };
|
|
602
326
|
/**
|
|
603
|
-
* Send
|
|
327
|
+
* Send traces to X-Ray
|
|
604
328
|
*
|
|
605
|
-
* @param props Additional properties that are optionally used in log delivery for
|
|
329
|
+
* @param props Additional properties that are optionally used in log delivery for XRay destinations
|
|
606
330
|
*/
|
|
607
|
-
|
|
331
|
+
toXRay(props) {
|
|
608
332
|
try {
|
|
609
|
-
jsiiDeprecationWarnings.
|
|
333
|
+
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_bedrockagentcore_mixins_CfnCodeInterpreterCustomTracesXRayProps(props);
|
|
610
334
|
}
|
|
611
335
|
catch (error) {
|
|
612
336
|
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
613
|
-
Error.captureStackTrace(error, this.
|
|
337
|
+
Error.captureStackTrace(error, this.toXRay);
|
|
614
338
|
}
|
|
615
339
|
throw error;
|
|
616
340
|
}
|
|
617
341
|
{
|
|
618
|
-
return new
|
|
619
|
-
outputFormat: props?.outputFormat,
|
|
342
|
+
return new CfnCodeInterpreterCustomLogsMixin("TRACES", new logsDelivery.XRayLogsDelivery({
|
|
620
343
|
providedFields: props?.recordFields,
|
|
621
|
-
mandatoryFields: ["
|
|
344
|
+
mandatoryFields: ["trace"]
|
|
622
345
|
}));
|
|
623
346
|
}
|
|
624
347
|
}
|
|
625
348
|
/**
|
|
626
349
|
* Delivers logs to a pre-created delivery destination
|
|
627
350
|
*
|
|
628
|
-
* Supported destinations are
|
|
351
|
+
* Supported destinations are XRAY
|
|
629
352
|
* You are responsible for setting up the correct permissions for your delivery destination, toDestination() does not set up any permissions for you.
|
|
630
353
|
* Delivery destinations that are imported from another stack using CfnDeliveryDestination.fromDeliveryDestinationArn() or CfnDeliveryDestination.fromDeliveryDestinationName() are supported by toDestination().
|
|
631
354
|
*
|
|
@@ -633,7 +356,7 @@ class CfnCodeInterpreterUsageLogs {
|
|
|
633
356
|
*/
|
|
634
357
|
toDestination(destination, props) {
|
|
635
358
|
try {
|
|
636
|
-
jsiiDeprecationWarnings.
|
|
359
|
+
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_bedrockagentcore_mixins_CfnCodeInterpreterCustomTracesDestProps(props);
|
|
637
360
|
}
|
|
638
361
|
catch (error) {
|
|
639
362
|
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
@@ -641,153 +364,15 @@ class CfnCodeInterpreterUsageLogs {
|
|
|
641
364
|
}
|
|
642
365
|
throw error;
|
|
643
366
|
}
|
|
644
|
-
{
|
|
645
|
-
return new
|
|
646
|
-
providedFields: props?.recordFields,
|
|
647
|
-
mandatoryFields: ["
|
|
648
|
-
}));
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
exports.
|
|
653
|
-
/**
|
|
654
|
-
* Definition of AWS::BedrockAgentCore::CodeInterpreter Resource Type.
|
|
655
|
-
*
|
|
656
|
-
* This is a read-only resource representing the AWS-managed default code interpreter (aws.codeinterpreter.v1).
|
|
657
|
-
*
|
|
658
|
-
* @cloudformationResource AWS::BedrockAgentCore::CodeInterpreter
|
|
659
|
-
* @mixin true
|
|
660
|
-
* @stability external
|
|
661
|
-
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-codeinterpreter.html
|
|
662
|
-
*/
|
|
663
|
-
class CfnCodeInterpreterLogsMixin extends cdk.Mixin {
|
|
664
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnCodeInterpreterLogsMixin", version: "2.267.0-alpha.0" };
|
|
665
|
-
static APPLICATION_LOGS = new CfnCodeInterpreterApplicationLogs();
|
|
666
|
-
static USAGE_LOGS = new CfnCodeInterpreterUsageLogs();
|
|
667
|
-
logType;
|
|
668
|
-
logDelivery;
|
|
669
|
-
/**
|
|
670
|
-
* Create a mixin to enable vended logs for `AWS::BedrockAgentCore::CodeInterpreter`.
|
|
671
|
-
*
|
|
672
|
-
* @param logType Type of logs that are getting vended
|
|
673
|
-
* @param logDelivery Object in charge of setting up the delivery source, delivery destination, and delivery connection
|
|
674
|
-
*/
|
|
675
|
-
constructor(logType, logDelivery) {
|
|
676
|
-
super();
|
|
677
|
-
try {
|
|
678
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_logs_ILogsDelivery(logDelivery);
|
|
679
|
-
}
|
|
680
|
-
catch (error) {
|
|
681
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
682
|
-
Error.captureStackTrace(error, CfnCodeInterpreterLogsMixin);
|
|
683
|
-
}
|
|
684
|
-
throw error;
|
|
685
|
-
}
|
|
686
|
-
this.logType = logType;
|
|
687
|
-
this.logDelivery = logDelivery;
|
|
688
|
-
}
|
|
689
|
-
/**
|
|
690
|
-
* Check if this mixin supports the given construct (has vendedLogs property)
|
|
691
|
-
*/
|
|
692
|
-
supports(construct) {
|
|
693
|
-
return (cdk.CfnResource.isCfnResource(construct) && service.CfnCodeInterpreter.isCfnCodeInterpreter(construct));
|
|
694
|
-
}
|
|
695
|
-
/**
|
|
696
|
-
* Apply vended logs configuration to the construct
|
|
697
|
-
*/
|
|
698
|
-
applyTo(resource) {
|
|
699
|
-
if (!this.supports(resource)) {
|
|
700
|
-
return;
|
|
701
|
-
}
|
|
702
|
-
const sourceArn = service.CfnCodeInterpreter.arnForCodeInterpreter(resource);
|
|
703
|
-
this.logDelivery.bind(resource, this.logType, sourceArn);
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
exports.CfnCodeInterpreterLogsMixin = CfnCodeInterpreterLogsMixin;
|
|
707
|
-
/**
|
|
708
|
-
* Output Format options for each destination of CfnCodeInterpreterApplicationLogs.
|
|
709
|
-
*/
|
|
710
|
-
class CfnCodeInterpreterApplicationLogsOutputFormat {
|
|
711
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnCodeInterpreterApplicationLogsOutputFormat", version: "2.267.0-alpha.0" };
|
|
712
|
-
}
|
|
713
|
-
exports.CfnCodeInterpreterApplicationLogsOutputFormat = CfnCodeInterpreterApplicationLogsOutputFormat;
|
|
714
|
-
(function (CfnCodeInterpreterApplicationLogsOutputFormat) {
|
|
715
|
-
let S3;
|
|
716
|
-
(function (S3) {
|
|
717
|
-
S3["JSON"] = "json";
|
|
718
|
-
S3["PLAIN"] = "plain";
|
|
719
|
-
S3["W3C"] = "w3c";
|
|
720
|
-
S3["PARQUET"] = "parquet";
|
|
721
|
-
})(S3 = CfnCodeInterpreterApplicationLogsOutputFormat.S3 || (CfnCodeInterpreterApplicationLogsOutputFormat.S3 = {}));
|
|
722
|
-
let LogGroup;
|
|
723
|
-
(function (LogGroup) {
|
|
724
|
-
LogGroup["PLAIN"] = "plain";
|
|
725
|
-
LogGroup["JSON"] = "json";
|
|
726
|
-
})(LogGroup = CfnCodeInterpreterApplicationLogsOutputFormat.LogGroup || (CfnCodeInterpreterApplicationLogsOutputFormat.LogGroup = {}));
|
|
727
|
-
let Firehose;
|
|
728
|
-
(function (Firehose) {
|
|
729
|
-
Firehose["JSON"] = "json";
|
|
730
|
-
Firehose["PLAIN"] = "plain";
|
|
731
|
-
Firehose["RAW"] = "raw";
|
|
732
|
-
})(Firehose = CfnCodeInterpreterApplicationLogsOutputFormat.Firehose || (CfnCodeInterpreterApplicationLogsOutputFormat.Firehose = {}));
|
|
733
|
-
})(CfnCodeInterpreterApplicationLogsOutputFormat || (exports.CfnCodeInterpreterApplicationLogsOutputFormat = CfnCodeInterpreterApplicationLogsOutputFormat = {}));
|
|
734
|
-
var CfnCodeInterpreterApplicationLogsRecordFields;
|
|
735
|
-
(function (CfnCodeInterpreterApplicationLogsRecordFields) {
|
|
736
|
-
CfnCodeInterpreterApplicationLogsRecordFields["ACCOUNT_ID"] = "account_id";
|
|
737
|
-
CfnCodeInterpreterApplicationLogsRecordFields["REQUEST_ID"] = "request_id";
|
|
738
|
-
CfnCodeInterpreterApplicationLogsRecordFields["TOOL_SESSION_ID"] = "tool_session_id";
|
|
739
|
-
CfnCodeInterpreterApplicationLogsRecordFields["SPAN_ID"] = "span_id";
|
|
740
|
-
CfnCodeInterpreterApplicationLogsRecordFields["TRACE_ID"] = "trace_id";
|
|
741
|
-
CfnCodeInterpreterApplicationLogsRecordFields["SERVICE_NAME"] = "service_name";
|
|
742
|
-
CfnCodeInterpreterApplicationLogsRecordFields["OPERATION"] = "operation";
|
|
743
|
-
CfnCodeInterpreterApplicationLogsRecordFields["REQUEST_PAYLOAD"] = "request_payload";
|
|
744
|
-
CfnCodeInterpreterApplicationLogsRecordFields["RESPONSE_PAYLOAD"] = "response_payload";
|
|
745
|
-
CfnCodeInterpreterApplicationLogsRecordFields["RESOURCE"] = "resource";
|
|
746
|
-
CfnCodeInterpreterApplicationLogsRecordFields["ATTRIBUTES"] = "attributes";
|
|
747
|
-
CfnCodeInterpreterApplicationLogsRecordFields["TIMEUNIXNANO"] = "timeUnixNano";
|
|
748
|
-
CfnCodeInterpreterApplicationLogsRecordFields["SEVERITYNUMBER"] = "severityNumber";
|
|
749
|
-
CfnCodeInterpreterApplicationLogsRecordFields["SEVERITYTEXT"] = "severityText";
|
|
750
|
-
CfnCodeInterpreterApplicationLogsRecordFields["BODY"] = "body";
|
|
751
|
-
CfnCodeInterpreterApplicationLogsRecordFields["TRACEID"] = "traceId";
|
|
752
|
-
CfnCodeInterpreterApplicationLogsRecordFields["SPANID"] = "spanId";
|
|
753
|
-
CfnCodeInterpreterApplicationLogsRecordFields["RESOURCE_ARN"] = "resource_arn";
|
|
754
|
-
CfnCodeInterpreterApplicationLogsRecordFields["EVENT_TIMESTAMP"] = "event_timestamp";
|
|
755
|
-
})(CfnCodeInterpreterApplicationLogsRecordFields || (exports.CfnCodeInterpreterApplicationLogsRecordFields = CfnCodeInterpreterApplicationLogsRecordFields = {}));
|
|
756
|
-
/**
|
|
757
|
-
* Output Format options for each destination of CfnCodeInterpreterUsageLogs.
|
|
758
|
-
*/
|
|
759
|
-
class CfnCodeInterpreterUsageLogsOutputFormat {
|
|
760
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnCodeInterpreterUsageLogsOutputFormat", version: "2.267.0-alpha.0" };
|
|
761
|
-
}
|
|
762
|
-
exports.CfnCodeInterpreterUsageLogsOutputFormat = CfnCodeInterpreterUsageLogsOutputFormat;
|
|
763
|
-
(function (CfnCodeInterpreterUsageLogsOutputFormat) {
|
|
764
|
-
let S3;
|
|
765
|
-
(function (S3) {
|
|
766
|
-
S3["JSON"] = "json";
|
|
767
|
-
S3["PLAIN"] = "plain";
|
|
768
|
-
S3["W3C"] = "w3c";
|
|
769
|
-
S3["PARQUET"] = "parquet";
|
|
770
|
-
})(S3 = CfnCodeInterpreterUsageLogsOutputFormat.S3 || (CfnCodeInterpreterUsageLogsOutputFormat.S3 = {}));
|
|
771
|
-
let LogGroup;
|
|
772
|
-
(function (LogGroup) {
|
|
773
|
-
LogGroup["PLAIN"] = "plain";
|
|
774
|
-
LogGroup["JSON"] = "json";
|
|
775
|
-
})(LogGroup = CfnCodeInterpreterUsageLogsOutputFormat.LogGroup || (CfnCodeInterpreterUsageLogsOutputFormat.LogGroup = {}));
|
|
776
|
-
let Firehose;
|
|
777
|
-
(function (Firehose) {
|
|
778
|
-
Firehose["JSON"] = "json";
|
|
779
|
-
Firehose["PLAIN"] = "plain";
|
|
780
|
-
Firehose["RAW"] = "raw";
|
|
781
|
-
})(Firehose = CfnCodeInterpreterUsageLogsOutputFormat.Firehose || (CfnCodeInterpreterUsageLogsOutputFormat.Firehose = {}));
|
|
782
|
-
})(CfnCodeInterpreterUsageLogsOutputFormat || (exports.CfnCodeInterpreterUsageLogsOutputFormat = CfnCodeInterpreterUsageLogsOutputFormat = {}));
|
|
783
|
-
var CfnCodeInterpreterUsageLogsRecordFields;
|
|
784
|
-
(function (CfnCodeInterpreterUsageLogsRecordFields) {
|
|
785
|
-
CfnCodeInterpreterUsageLogsRecordFields["RESOURCE_ARN"] = "resource_arn";
|
|
786
|
-
CfnCodeInterpreterUsageLogsRecordFields["EVENT_TIMESTAMP"] = "event_timestamp";
|
|
787
|
-
CfnCodeInterpreterUsageLogsRecordFields["RESOURCE"] = "resource";
|
|
788
|
-
CfnCodeInterpreterUsageLogsRecordFields["ATTRIBUTES"] = "attributes";
|
|
789
|
-
CfnCodeInterpreterUsageLogsRecordFields["METRICS"] = "metrics";
|
|
790
|
-
})(CfnCodeInterpreterUsageLogsRecordFields || (exports.CfnCodeInterpreterUsageLogsRecordFields = CfnCodeInterpreterUsageLogsRecordFields = {}));
|
|
367
|
+
{
|
|
368
|
+
return new CfnCodeInterpreterCustomLogsMixin("TRACES", new logsDelivery.DestinationLogsDelivery(destination, {
|
|
369
|
+
providedFields: props?.recordFields,
|
|
370
|
+
mandatoryFields: ["trace"]
|
|
371
|
+
}));
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
exports.CfnCodeInterpreterCustomTraces = CfnCodeInterpreterCustomTraces;
|
|
791
376
|
/**
|
|
792
377
|
* Builder for CfnCodeInterpreterCustomLogsMixin to generate APPLICATION_LOGS for CfnCodeInterpreterCustom
|
|
793
378
|
*
|
|
@@ -796,7 +381,7 @@ var CfnCodeInterpreterUsageLogsRecordFields;
|
|
|
796
381
|
* @stability external
|
|
797
382
|
*/
|
|
798
383
|
class CfnCodeInterpreterCustomApplicationLogs {
|
|
799
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnCodeInterpreterCustomApplicationLogs", version: "2.
|
|
384
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnCodeInterpreterCustomApplicationLogs", version: "2.268.0-alpha.0" };
|
|
800
385
|
/**
|
|
801
386
|
* Send logs to an S3 Bucket
|
|
802
387
|
*
|
|
@@ -904,7 +489,7 @@ exports.CfnCodeInterpreterCustomApplicationLogs = CfnCodeInterpreterCustomApplic
|
|
|
904
489
|
* @stability external
|
|
905
490
|
*/
|
|
906
491
|
class CfnCodeInterpreterCustomUsageLogs {
|
|
907
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnCodeInterpreterCustomUsageLogs", version: "2.
|
|
492
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnCodeInterpreterCustomUsageLogs", version: "2.268.0-alpha.0" };
|
|
908
493
|
/**
|
|
909
494
|
* Send logs to an S3 Bucket
|
|
910
495
|
*
|
|
@@ -1019,7 +604,8 @@ exports.CfnCodeInterpreterCustomUsageLogs = CfnCodeInterpreterCustomUsageLogs;
|
|
|
1019
604
|
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-codeinterpretercustom.html
|
|
1020
605
|
*/
|
|
1021
606
|
class CfnCodeInterpreterCustomLogsMixin extends cdk.Mixin {
|
|
1022
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnCodeInterpreterCustomLogsMixin", version: "2.
|
|
607
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnCodeInterpreterCustomLogsMixin", version: "2.268.0-alpha.0" };
|
|
608
|
+
static TRACES = new CfnCodeInterpreterCustomTraces();
|
|
1023
609
|
static APPLICATION_LOGS = new CfnCodeInterpreterCustomApplicationLogs();
|
|
1024
610
|
static USAGE_LOGS = new CfnCodeInterpreterCustomUsageLogs();
|
|
1025
611
|
logType;
|
|
@@ -1062,18 +648,31 @@ class CfnCodeInterpreterCustomLogsMixin extends cdk.Mixin {
|
|
|
1062
648
|
}
|
|
1063
649
|
}
|
|
1064
650
|
exports.CfnCodeInterpreterCustomLogsMixin = CfnCodeInterpreterCustomLogsMixin;
|
|
651
|
+
/**
|
|
652
|
+
* Output Format options for each destination of CfnCodeInterpreterCustomTraces.
|
|
653
|
+
*/
|
|
654
|
+
class CfnCodeInterpreterCustomTracesOutputFormat {
|
|
655
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnCodeInterpreterCustomTracesOutputFormat", version: "2.268.0-alpha.0" };
|
|
656
|
+
}
|
|
657
|
+
exports.CfnCodeInterpreterCustomTracesOutputFormat = CfnCodeInterpreterCustomTracesOutputFormat;
|
|
658
|
+
var CfnCodeInterpreterCustomTracesRecordFields;
|
|
659
|
+
(function (CfnCodeInterpreterCustomTracesRecordFields) {
|
|
660
|
+
CfnCodeInterpreterCustomTracesRecordFields["TIMESTAMP"] = "timestamp";
|
|
661
|
+
CfnCodeInterpreterCustomTracesRecordFields["RESOURCEARN"] = "resourceArn";
|
|
662
|
+
CfnCodeInterpreterCustomTracesRecordFields["TRACE"] = "trace";
|
|
663
|
+
})(CfnCodeInterpreterCustomTracesRecordFields || (exports.CfnCodeInterpreterCustomTracesRecordFields = CfnCodeInterpreterCustomTracesRecordFields = {}));
|
|
1065
664
|
/**
|
|
1066
665
|
* Output Format options for each destination of CfnCodeInterpreterCustomApplicationLogs.
|
|
1067
666
|
*/
|
|
1068
667
|
class CfnCodeInterpreterCustomApplicationLogsOutputFormat {
|
|
1069
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnCodeInterpreterCustomApplicationLogsOutputFormat", version: "2.
|
|
668
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnCodeInterpreterCustomApplicationLogsOutputFormat", version: "2.268.0-alpha.0" };
|
|
1070
669
|
}
|
|
1071
670
|
exports.CfnCodeInterpreterCustomApplicationLogsOutputFormat = CfnCodeInterpreterCustomApplicationLogsOutputFormat;
|
|
1072
671
|
(function (CfnCodeInterpreterCustomApplicationLogsOutputFormat) {
|
|
1073
672
|
let S3;
|
|
1074
673
|
(function (S3) {
|
|
1075
|
-
S3["JSON"] = "json";
|
|
1076
674
|
S3["PLAIN"] = "plain";
|
|
675
|
+
S3["JSON"] = "json";
|
|
1077
676
|
S3["W3C"] = "w3c";
|
|
1078
677
|
S3["PARQUET"] = "parquet";
|
|
1079
678
|
})(S3 = CfnCodeInterpreterCustomApplicationLogsOutputFormat.S3 || (CfnCodeInterpreterCustomApplicationLogsOutputFormat.S3 = {}));
|
|
@@ -1084,13 +683,16 @@ exports.CfnCodeInterpreterCustomApplicationLogsOutputFormat = CfnCodeInterpreter
|
|
|
1084
683
|
})(LogGroup = CfnCodeInterpreterCustomApplicationLogsOutputFormat.LogGroup || (CfnCodeInterpreterCustomApplicationLogsOutputFormat.LogGroup = {}));
|
|
1085
684
|
let Firehose;
|
|
1086
685
|
(function (Firehose) {
|
|
1087
|
-
Firehose["JSON"] = "json";
|
|
1088
686
|
Firehose["PLAIN"] = "plain";
|
|
687
|
+
Firehose["JSON"] = "json";
|
|
1089
688
|
Firehose["RAW"] = "raw";
|
|
1090
689
|
})(Firehose = CfnCodeInterpreterCustomApplicationLogsOutputFormat.Firehose || (CfnCodeInterpreterCustomApplicationLogsOutputFormat.Firehose = {}));
|
|
1091
690
|
})(CfnCodeInterpreterCustomApplicationLogsOutputFormat || (exports.CfnCodeInterpreterCustomApplicationLogsOutputFormat = CfnCodeInterpreterCustomApplicationLogsOutputFormat = {}));
|
|
1092
691
|
var CfnCodeInterpreterCustomApplicationLogsRecordFields;
|
|
1093
692
|
(function (CfnCodeInterpreterCustomApplicationLogsRecordFields) {
|
|
693
|
+
CfnCodeInterpreterCustomApplicationLogsRecordFields["TIMESTAMP"] = "timestamp";
|
|
694
|
+
CfnCodeInterpreterCustomApplicationLogsRecordFields["TOOL_ID"] = "tool_id";
|
|
695
|
+
CfnCodeInterpreterCustomApplicationLogsRecordFields["INTERNAL_ACCOUNTID_BASED_ARN"] = "internal_accountid_based_arn";
|
|
1094
696
|
CfnCodeInterpreterCustomApplicationLogsRecordFields["ACCOUNT_ID"] = "account_id";
|
|
1095
697
|
CfnCodeInterpreterCustomApplicationLogsRecordFields["REQUEST_ID"] = "request_id";
|
|
1096
698
|
CfnCodeInterpreterCustomApplicationLogsRecordFields["TOOL_SESSION_ID"] = "tool_session_id";
|
|
@@ -1115,14 +717,14 @@ var CfnCodeInterpreterCustomApplicationLogsRecordFields;
|
|
|
1115
717
|
* Output Format options for each destination of CfnCodeInterpreterCustomUsageLogs.
|
|
1116
718
|
*/
|
|
1117
719
|
class CfnCodeInterpreterCustomUsageLogsOutputFormat {
|
|
1118
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnCodeInterpreterCustomUsageLogsOutputFormat", version: "2.
|
|
720
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnCodeInterpreterCustomUsageLogsOutputFormat", version: "2.268.0-alpha.0" };
|
|
1119
721
|
}
|
|
1120
722
|
exports.CfnCodeInterpreterCustomUsageLogsOutputFormat = CfnCodeInterpreterCustomUsageLogsOutputFormat;
|
|
1121
723
|
(function (CfnCodeInterpreterCustomUsageLogsOutputFormat) {
|
|
1122
724
|
let S3;
|
|
1123
725
|
(function (S3) {
|
|
1124
|
-
S3["JSON"] = "json";
|
|
1125
726
|
S3["PLAIN"] = "plain";
|
|
727
|
+
S3["JSON"] = "json";
|
|
1126
728
|
S3["W3C"] = "w3c";
|
|
1127
729
|
S3["PARQUET"] = "parquet";
|
|
1128
730
|
})(S3 = CfnCodeInterpreterCustomUsageLogsOutputFormat.S3 || (CfnCodeInterpreterCustomUsageLogsOutputFormat.S3 = {}));
|
|
@@ -1133,19 +735,81 @@ exports.CfnCodeInterpreterCustomUsageLogsOutputFormat = CfnCodeInterpreterCustom
|
|
|
1133
735
|
})(LogGroup = CfnCodeInterpreterCustomUsageLogsOutputFormat.LogGroup || (CfnCodeInterpreterCustomUsageLogsOutputFormat.LogGroup = {}));
|
|
1134
736
|
let Firehose;
|
|
1135
737
|
(function (Firehose) {
|
|
1136
|
-
Firehose["JSON"] = "json";
|
|
1137
738
|
Firehose["PLAIN"] = "plain";
|
|
739
|
+
Firehose["JSON"] = "json";
|
|
1138
740
|
Firehose["RAW"] = "raw";
|
|
1139
741
|
})(Firehose = CfnCodeInterpreterCustomUsageLogsOutputFormat.Firehose || (CfnCodeInterpreterCustomUsageLogsOutputFormat.Firehose = {}));
|
|
1140
742
|
})(CfnCodeInterpreterCustomUsageLogsOutputFormat || (exports.CfnCodeInterpreterCustomUsageLogsOutputFormat = CfnCodeInterpreterCustomUsageLogsOutputFormat = {}));
|
|
1141
743
|
var CfnCodeInterpreterCustomUsageLogsRecordFields;
|
|
1142
744
|
(function (CfnCodeInterpreterCustomUsageLogsRecordFields) {
|
|
745
|
+
CfnCodeInterpreterCustomUsageLogsRecordFields["TIMESTAMP"] = "timestamp";
|
|
746
|
+
CfnCodeInterpreterCustomUsageLogsRecordFields["CODEINTERPRETER_ID"] = "codeinterpreter_id";
|
|
747
|
+
CfnCodeInterpreterCustomUsageLogsRecordFields["INTERNAL_ACCOUNTID_BASED_ARN"] = "internal_accountid_based_arn";
|
|
1143
748
|
CfnCodeInterpreterCustomUsageLogsRecordFields["RESOURCE_ARN"] = "resource_arn";
|
|
1144
749
|
CfnCodeInterpreterCustomUsageLogsRecordFields["EVENT_TIMESTAMP"] = "event_timestamp";
|
|
1145
750
|
CfnCodeInterpreterCustomUsageLogsRecordFields["RESOURCE"] = "resource";
|
|
1146
751
|
CfnCodeInterpreterCustomUsageLogsRecordFields["ATTRIBUTES"] = "attributes";
|
|
1147
752
|
CfnCodeInterpreterCustomUsageLogsRecordFields["METRICS"] = "metrics";
|
|
1148
753
|
})(CfnCodeInterpreterCustomUsageLogsRecordFields || (exports.CfnCodeInterpreterCustomUsageLogsRecordFields = CfnCodeInterpreterCustomUsageLogsRecordFields = {}));
|
|
754
|
+
/**
|
|
755
|
+
* Builder for CfnGatewayLogsMixin to generate TRACES for CfnGateway
|
|
756
|
+
*
|
|
757
|
+
* @cloudformationResource AWS::BedrockAgentCore::Gateway
|
|
758
|
+
* @logType TRACES
|
|
759
|
+
* @stability external
|
|
760
|
+
*/
|
|
761
|
+
class CfnGatewayTraces {
|
|
762
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnGatewayTraces", version: "2.268.0-alpha.0" };
|
|
763
|
+
/**
|
|
764
|
+
* Send traces to X-Ray
|
|
765
|
+
*
|
|
766
|
+
* @param props Additional properties that are optionally used in log delivery for XRay destinations
|
|
767
|
+
*/
|
|
768
|
+
toXRay(props) {
|
|
769
|
+
try {
|
|
770
|
+
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_bedrockagentcore_mixins_CfnGatewayTracesXRayProps(props);
|
|
771
|
+
}
|
|
772
|
+
catch (error) {
|
|
773
|
+
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
774
|
+
Error.captureStackTrace(error, this.toXRay);
|
|
775
|
+
}
|
|
776
|
+
throw error;
|
|
777
|
+
}
|
|
778
|
+
{
|
|
779
|
+
return new CfnGatewayLogsMixin("TRACES", new logsDelivery.XRayLogsDelivery({
|
|
780
|
+
providedFields: props?.recordFields,
|
|
781
|
+
mandatoryFields: ["trace"]
|
|
782
|
+
}));
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
/**
|
|
786
|
+
* Delivers logs to a pre-created delivery destination
|
|
787
|
+
*
|
|
788
|
+
* Supported destinations are XRAY
|
|
789
|
+
* You are responsible for setting up the correct permissions for your delivery destination, toDestination() does not set up any permissions for you.
|
|
790
|
+
* Delivery destinations that are imported from another stack using CfnDeliveryDestination.fromDeliveryDestinationArn() or CfnDeliveryDestination.fromDeliveryDestinationName() are supported by toDestination().
|
|
791
|
+
*
|
|
792
|
+
* @param props Additional properties that are optionally used in log delivery for destinations
|
|
793
|
+
*/
|
|
794
|
+
toDestination(destination, props) {
|
|
795
|
+
try {
|
|
796
|
+
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_bedrockagentcore_mixins_CfnGatewayTracesDestProps(props);
|
|
797
|
+
}
|
|
798
|
+
catch (error) {
|
|
799
|
+
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
800
|
+
Error.captureStackTrace(error, this.toDestination);
|
|
801
|
+
}
|
|
802
|
+
throw error;
|
|
803
|
+
}
|
|
804
|
+
{
|
|
805
|
+
return new CfnGatewayLogsMixin("TRACES", new logsDelivery.DestinationLogsDelivery(destination, {
|
|
806
|
+
providedFields: props?.recordFields,
|
|
807
|
+
mandatoryFields: ["trace"]
|
|
808
|
+
}));
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
exports.CfnGatewayTraces = CfnGatewayTraces;
|
|
1149
813
|
/**
|
|
1150
814
|
* Builder for CfnGatewayLogsMixin to generate APPLICATION_LOGS for CfnGateway
|
|
1151
815
|
*
|
|
@@ -1154,7 +818,7 @@ var CfnCodeInterpreterCustomUsageLogsRecordFields;
|
|
|
1154
818
|
* @stability external
|
|
1155
819
|
*/
|
|
1156
820
|
class CfnGatewayApplicationLogs {
|
|
1157
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnGatewayApplicationLogs", version: "2.
|
|
821
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnGatewayApplicationLogs", version: "2.268.0-alpha.0" };
|
|
1158
822
|
/**
|
|
1159
823
|
* Send logs to an S3 Bucket
|
|
1160
824
|
*
|
|
@@ -1254,65 +918,6 @@ class CfnGatewayApplicationLogs {
|
|
|
1254
918
|
}
|
|
1255
919
|
}
|
|
1256
920
|
exports.CfnGatewayApplicationLogs = CfnGatewayApplicationLogs;
|
|
1257
|
-
/**
|
|
1258
|
-
* Builder for CfnGatewayLogsMixin to generate TRACES for CfnGateway
|
|
1259
|
-
*
|
|
1260
|
-
* @cloudformationResource AWS::BedrockAgentCore::Gateway
|
|
1261
|
-
* @logType TRACES
|
|
1262
|
-
* @stability external
|
|
1263
|
-
*/
|
|
1264
|
-
class CfnGatewayTraces {
|
|
1265
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnGatewayTraces", version: "2.267.0-alpha.0" };
|
|
1266
|
-
/**
|
|
1267
|
-
* Send traces to X-Ray
|
|
1268
|
-
*
|
|
1269
|
-
* @param props Additional properties that are optionally used in log delivery for XRay destinations
|
|
1270
|
-
*/
|
|
1271
|
-
toXRay(props) {
|
|
1272
|
-
try {
|
|
1273
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_bedrockagentcore_mixins_CfnGatewayTracesXRayProps(props);
|
|
1274
|
-
}
|
|
1275
|
-
catch (error) {
|
|
1276
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
1277
|
-
Error.captureStackTrace(error, this.toXRay);
|
|
1278
|
-
}
|
|
1279
|
-
throw error;
|
|
1280
|
-
}
|
|
1281
|
-
{
|
|
1282
|
-
return new CfnGatewayLogsMixin("TRACES", new logsDelivery.XRayLogsDelivery({
|
|
1283
|
-
providedFields: props?.recordFields,
|
|
1284
|
-
mandatoryFields: ["trace"]
|
|
1285
|
-
}));
|
|
1286
|
-
}
|
|
1287
|
-
}
|
|
1288
|
-
/**
|
|
1289
|
-
* Delivers logs to a pre-created delivery destination
|
|
1290
|
-
*
|
|
1291
|
-
* Supported destinations are XRAY
|
|
1292
|
-
* You are responsible for setting up the correct permissions for your delivery destination, toDestination() does not set up any permissions for you.
|
|
1293
|
-
* Delivery destinations that are imported from another stack using CfnDeliveryDestination.fromDeliveryDestinationArn() or CfnDeliveryDestination.fromDeliveryDestinationName() are supported by toDestination().
|
|
1294
|
-
*
|
|
1295
|
-
* @param props Additional properties that are optionally used in log delivery for destinations
|
|
1296
|
-
*/
|
|
1297
|
-
toDestination(destination, props) {
|
|
1298
|
-
try {
|
|
1299
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_bedrockagentcore_mixins_CfnGatewayTracesDestProps(props);
|
|
1300
|
-
}
|
|
1301
|
-
catch (error) {
|
|
1302
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
1303
|
-
Error.captureStackTrace(error, this.toDestination);
|
|
1304
|
-
}
|
|
1305
|
-
throw error;
|
|
1306
|
-
}
|
|
1307
|
-
{
|
|
1308
|
-
return new CfnGatewayLogsMixin("TRACES", new logsDelivery.DestinationLogsDelivery(destination, {
|
|
1309
|
-
providedFields: props?.recordFields,
|
|
1310
|
-
mandatoryFields: ["trace"]
|
|
1311
|
-
}));
|
|
1312
|
-
}
|
|
1313
|
-
}
|
|
1314
|
-
}
|
|
1315
|
-
exports.CfnGatewayTraces = CfnGatewayTraces;
|
|
1316
921
|
/**
|
|
1317
922
|
* Amazon Bedrock AgentCore Gateway provides a unified connectivity layer between agents and the tools and resources they need to interact with.
|
|
1318
923
|
*
|
|
@@ -1326,9 +931,9 @@ exports.CfnGatewayTraces = CfnGatewayTraces;
|
|
|
1326
931
|
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-gateway.html
|
|
1327
932
|
*/
|
|
1328
933
|
class CfnGatewayLogsMixin extends cdk.Mixin {
|
|
1329
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnGatewayLogsMixin", version: "2.
|
|
1330
|
-
static APPLICATION_LOGS = new CfnGatewayApplicationLogs();
|
|
934
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnGatewayLogsMixin", version: "2.268.0-alpha.0" };
|
|
1331
935
|
static TRACES = new CfnGatewayTraces();
|
|
936
|
+
static APPLICATION_LOGS = new CfnGatewayApplicationLogs();
|
|
1332
937
|
logType;
|
|
1333
938
|
logDelivery;
|
|
1334
939
|
/**
|
|
@@ -1369,18 +974,31 @@ class CfnGatewayLogsMixin extends cdk.Mixin {
|
|
|
1369
974
|
}
|
|
1370
975
|
}
|
|
1371
976
|
exports.CfnGatewayLogsMixin = CfnGatewayLogsMixin;
|
|
977
|
+
/**
|
|
978
|
+
* Output Format options for each destination of CfnGatewayTraces.
|
|
979
|
+
*/
|
|
980
|
+
class CfnGatewayTracesOutputFormat {
|
|
981
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnGatewayTracesOutputFormat", version: "2.268.0-alpha.0" };
|
|
982
|
+
}
|
|
983
|
+
exports.CfnGatewayTracesOutputFormat = CfnGatewayTracesOutputFormat;
|
|
984
|
+
var CfnGatewayTracesRecordFields;
|
|
985
|
+
(function (CfnGatewayTracesRecordFields) {
|
|
986
|
+
CfnGatewayTracesRecordFields["TIMESTAMP"] = "timestamp";
|
|
987
|
+
CfnGatewayTracesRecordFields["RESOURCEARN"] = "resourceArn";
|
|
988
|
+
CfnGatewayTracesRecordFields["TRACE"] = "trace";
|
|
989
|
+
})(CfnGatewayTracesRecordFields || (exports.CfnGatewayTracesRecordFields = CfnGatewayTracesRecordFields = {}));
|
|
1372
990
|
/**
|
|
1373
991
|
* Output Format options for each destination of CfnGatewayApplicationLogs.
|
|
1374
992
|
*/
|
|
1375
993
|
class CfnGatewayApplicationLogsOutputFormat {
|
|
1376
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnGatewayApplicationLogsOutputFormat", version: "2.
|
|
994
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnGatewayApplicationLogsOutputFormat", version: "2.268.0-alpha.0" };
|
|
1377
995
|
}
|
|
1378
996
|
exports.CfnGatewayApplicationLogsOutputFormat = CfnGatewayApplicationLogsOutputFormat;
|
|
1379
997
|
(function (CfnGatewayApplicationLogsOutputFormat) {
|
|
1380
998
|
let S3;
|
|
1381
999
|
(function (S3) {
|
|
1382
|
-
S3["JSON"] = "json";
|
|
1383
1000
|
S3["PLAIN"] = "plain";
|
|
1001
|
+
S3["JSON"] = "json";
|
|
1384
1002
|
S3["W3C"] = "w3c";
|
|
1385
1003
|
S3["PARQUET"] = "parquet";
|
|
1386
1004
|
})(S3 = CfnGatewayApplicationLogsOutputFormat.S3 || (CfnGatewayApplicationLogsOutputFormat.S3 = {}));
|
|
@@ -1391,13 +1009,15 @@ exports.CfnGatewayApplicationLogsOutputFormat = CfnGatewayApplicationLogsOutputF
|
|
|
1391
1009
|
})(LogGroup = CfnGatewayApplicationLogsOutputFormat.LogGroup || (CfnGatewayApplicationLogsOutputFormat.LogGroup = {}));
|
|
1392
1010
|
let Firehose;
|
|
1393
1011
|
(function (Firehose) {
|
|
1394
|
-
Firehose["JSON"] = "json";
|
|
1395
1012
|
Firehose["PLAIN"] = "plain";
|
|
1013
|
+
Firehose["JSON"] = "json";
|
|
1396
1014
|
Firehose["RAW"] = "raw";
|
|
1397
1015
|
})(Firehose = CfnGatewayApplicationLogsOutputFormat.Firehose || (CfnGatewayApplicationLogsOutputFormat.Firehose = {}));
|
|
1398
1016
|
})(CfnGatewayApplicationLogsOutputFormat || (exports.CfnGatewayApplicationLogsOutputFormat = CfnGatewayApplicationLogsOutputFormat = {}));
|
|
1399
1017
|
var CfnGatewayApplicationLogsRecordFields;
|
|
1400
1018
|
(function (CfnGatewayApplicationLogsRecordFields) {
|
|
1019
|
+
CfnGatewayApplicationLogsRecordFields["TIMESTAMP"] = "timestamp";
|
|
1020
|
+
CfnGatewayApplicationLogsRecordFields["GATEWAY_ID"] = "gateway_id";
|
|
1401
1021
|
CfnGatewayApplicationLogsRecordFields["BODY"] = "body";
|
|
1402
1022
|
CfnGatewayApplicationLogsRecordFields["ACCOUNT_ID"] = "account_id";
|
|
1403
1023
|
CfnGatewayApplicationLogsRecordFields["REQUEST_ID"] = "request_id";
|
|
@@ -1414,90 +1034,92 @@ var CfnGatewayApplicationLogsRecordFields;
|
|
|
1414
1034
|
CfnGatewayApplicationLogsRecordFields["EVENT_TIMESTAMP"] = "event_timestamp";
|
|
1415
1035
|
})(CfnGatewayApplicationLogsRecordFields || (exports.CfnGatewayApplicationLogsRecordFields = CfnGatewayApplicationLogsRecordFields = {}));
|
|
1416
1036
|
/**
|
|
1417
|
-
*
|
|
1418
|
-
*/
|
|
1419
|
-
class CfnGatewayTracesOutputFormat {
|
|
1420
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnGatewayTracesOutputFormat", version: "2.267.0-alpha.0" };
|
|
1421
|
-
}
|
|
1422
|
-
exports.CfnGatewayTracesOutputFormat = CfnGatewayTracesOutputFormat;
|
|
1423
|
-
var CfnGatewayTracesRecordFields;
|
|
1424
|
-
(function (CfnGatewayTracesRecordFields) {
|
|
1425
|
-
CfnGatewayTracesRecordFields["TRACE"] = "trace";
|
|
1426
|
-
})(CfnGatewayTracesRecordFields || (exports.CfnGatewayTracesRecordFields = CfnGatewayTracesRecordFields = {}));
|
|
1427
|
-
/**
|
|
1428
|
-
* Builder for CfnMemoryLogsMixin to generate APPLICATION_LOGS for CfnMemory
|
|
1037
|
+
* Builder for CfnMemoryLogsMixin to generate TRACES for CfnMemory
|
|
1429
1038
|
*
|
|
1430
1039
|
* @cloudformationResource AWS::BedrockAgentCore::Memory
|
|
1431
|
-
* @logType
|
|
1040
|
+
* @logType TRACES
|
|
1432
1041
|
* @stability external
|
|
1433
1042
|
*/
|
|
1434
|
-
class
|
|
1435
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.
|
|
1043
|
+
class CfnMemoryTraces {
|
|
1044
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnMemoryTraces", version: "2.268.0-alpha.0" };
|
|
1436
1045
|
/**
|
|
1437
|
-
* Send
|
|
1046
|
+
* Send traces to X-Ray
|
|
1438
1047
|
*
|
|
1439
|
-
* @param props Additional properties that are optionally used in log delivery for
|
|
1048
|
+
* @param props Additional properties that are optionally used in log delivery for XRay destinations
|
|
1440
1049
|
*/
|
|
1441
|
-
|
|
1050
|
+
toXRay(props) {
|
|
1442
1051
|
try {
|
|
1443
|
-
jsiiDeprecationWarnings.
|
|
1052
|
+
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_bedrockagentcore_mixins_CfnMemoryTracesXRayProps(props);
|
|
1444
1053
|
}
|
|
1445
1054
|
catch (error) {
|
|
1446
1055
|
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
1447
|
-
Error.captureStackTrace(error, this.
|
|
1056
|
+
Error.captureStackTrace(error, this.toXRay);
|
|
1448
1057
|
}
|
|
1449
1058
|
throw error;
|
|
1450
1059
|
}
|
|
1451
1060
|
{
|
|
1452
|
-
return new CfnMemoryLogsMixin("
|
|
1453
|
-
permissionsVersion: logsDelivery.S3LogsDeliveryPermissionsVersion.V2,
|
|
1454
|
-
kmsKey: props?.encryptionKey,
|
|
1455
|
-
outputFormat: props?.outputFormat,
|
|
1061
|
+
return new CfnMemoryLogsMixin("TRACES", new logsDelivery.XRayLogsDelivery({
|
|
1456
1062
|
providedFields: props?.recordFields,
|
|
1457
|
-
mandatoryFields:
|
|
1063
|
+
mandatoryFields: ["trace"]
|
|
1458
1064
|
}));
|
|
1459
1065
|
}
|
|
1460
1066
|
}
|
|
1461
1067
|
/**
|
|
1462
|
-
*
|
|
1068
|
+
* Delivers logs to a pre-created delivery destination
|
|
1463
1069
|
*
|
|
1464
|
-
*
|
|
1070
|
+
* Supported destinations are XRAY
|
|
1071
|
+
* You are responsible for setting up the correct permissions for your delivery destination, toDestination() does not set up any permissions for you.
|
|
1072
|
+
* Delivery destinations that are imported from another stack using CfnDeliveryDestination.fromDeliveryDestinationArn() or CfnDeliveryDestination.fromDeliveryDestinationName() are supported by toDestination().
|
|
1073
|
+
*
|
|
1074
|
+
* @param props Additional properties that are optionally used in log delivery for destinations
|
|
1465
1075
|
*/
|
|
1466
|
-
|
|
1076
|
+
toDestination(destination, props) {
|
|
1467
1077
|
try {
|
|
1468
|
-
jsiiDeprecationWarnings.
|
|
1078
|
+
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_bedrockagentcore_mixins_CfnMemoryTracesDestProps(props);
|
|
1469
1079
|
}
|
|
1470
1080
|
catch (error) {
|
|
1471
1081
|
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
1472
|
-
Error.captureStackTrace(error, this.
|
|
1082
|
+
Error.captureStackTrace(error, this.toDestination);
|
|
1473
1083
|
}
|
|
1474
1084
|
throw error;
|
|
1475
1085
|
}
|
|
1476
1086
|
{
|
|
1477
|
-
return new CfnMemoryLogsMixin("
|
|
1478
|
-
outputFormat: props?.outputFormat,
|
|
1087
|
+
return new CfnMemoryLogsMixin("TRACES", new logsDelivery.DestinationLogsDelivery(destination, {
|
|
1479
1088
|
providedFields: props?.recordFields,
|
|
1480
|
-
mandatoryFields:
|
|
1089
|
+
mandatoryFields: ["trace"]
|
|
1481
1090
|
}));
|
|
1482
1091
|
}
|
|
1483
1092
|
}
|
|
1093
|
+
}
|
|
1094
|
+
exports.CfnMemoryTraces = CfnMemoryTraces;
|
|
1095
|
+
/**
|
|
1096
|
+
* Builder for CfnMemoryLogsMixin to generate APPLICATION_LOGS for CfnMemory
|
|
1097
|
+
*
|
|
1098
|
+
* @cloudformationResource AWS::BedrockAgentCore::Memory
|
|
1099
|
+
* @logType APPLICATION_LOGS
|
|
1100
|
+
* @stability external
|
|
1101
|
+
*/
|
|
1102
|
+
class CfnMemoryApplicationLogs {
|
|
1103
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnMemoryApplicationLogs", version: "2.268.0-alpha.0" };
|
|
1484
1104
|
/**
|
|
1485
|
-
* Send logs to
|
|
1105
|
+
* Send logs to an S3 Bucket
|
|
1486
1106
|
*
|
|
1487
|
-
* @param props Additional properties that are optionally used in log delivery for
|
|
1107
|
+
* @param props Additional properties that are optionally used in log delivery for S3 destinations
|
|
1488
1108
|
*/
|
|
1489
|
-
|
|
1109
|
+
toS3(bucket, props) {
|
|
1490
1110
|
try {
|
|
1491
|
-
jsiiDeprecationWarnings.
|
|
1111
|
+
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_bedrockagentcore_mixins_CfnMemoryApplicationLogsS3Props(props);
|
|
1492
1112
|
}
|
|
1493
1113
|
catch (error) {
|
|
1494
1114
|
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
1495
|
-
Error.captureStackTrace(error, this.
|
|
1115
|
+
Error.captureStackTrace(error, this.toS3);
|
|
1496
1116
|
}
|
|
1497
1117
|
throw error;
|
|
1498
1118
|
}
|
|
1499
1119
|
{
|
|
1500
|
-
return new CfnMemoryLogsMixin("APPLICATION_LOGS", new logsDelivery.
|
|
1120
|
+
return new CfnMemoryLogsMixin("APPLICATION_LOGS", new logsDelivery.S3LogsDelivery(bucket, {
|
|
1121
|
+
permissionsVersion: logsDelivery.S3LogsDeliveryPermissionsVersion.V2,
|
|
1122
|
+
kmsKey: props?.encryptionKey,
|
|
1501
1123
|
outputFormat: props?.outputFormat,
|
|
1502
1124
|
providedFields: props?.recordFields,
|
|
1503
1125
|
mandatoryFields: undefined
|
|
@@ -1505,68 +1127,55 @@ class CfnMemoryApplicationLogs {
|
|
|
1505
1127
|
}
|
|
1506
1128
|
}
|
|
1507
1129
|
/**
|
|
1508
|
-
*
|
|
1509
|
-
*
|
|
1510
|
-
* Supported destinations are S3, CWL, FH
|
|
1511
|
-
* You are responsible for setting up the correct permissions for your delivery destination, toDestination() does not set up any permissions for you.
|
|
1512
|
-
* Delivery destinations that are imported from another stack using CfnDeliveryDestination.fromDeliveryDestinationArn() or CfnDeliveryDestination.fromDeliveryDestinationName() are supported by toDestination().
|
|
1130
|
+
* Send logs to a CloudWatch Log Group
|
|
1513
1131
|
*
|
|
1514
|
-
* @param props Additional properties that are optionally used in log delivery for destinations
|
|
1132
|
+
* @param props Additional properties that are optionally used in log delivery for Log Group destinations
|
|
1515
1133
|
*/
|
|
1516
|
-
|
|
1134
|
+
toLogGroup(logGroup, props) {
|
|
1517
1135
|
try {
|
|
1518
|
-
jsiiDeprecationWarnings.
|
|
1136
|
+
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_bedrockagentcore_mixins_CfnMemoryApplicationLogsLogGroupProps(props);
|
|
1519
1137
|
}
|
|
1520
1138
|
catch (error) {
|
|
1521
1139
|
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
1522
|
-
Error.captureStackTrace(error, this.
|
|
1140
|
+
Error.captureStackTrace(error, this.toLogGroup);
|
|
1523
1141
|
}
|
|
1524
1142
|
throw error;
|
|
1525
1143
|
}
|
|
1526
1144
|
{
|
|
1527
|
-
return new CfnMemoryLogsMixin("APPLICATION_LOGS", new logsDelivery.
|
|
1145
|
+
return new CfnMemoryLogsMixin("APPLICATION_LOGS", new logsDelivery.LogGroupLogsDelivery(logGroup, {
|
|
1146
|
+
outputFormat: props?.outputFormat,
|
|
1528
1147
|
providedFields: props?.recordFields,
|
|
1529
1148
|
mandatoryFields: undefined
|
|
1530
|
-
}));
|
|
1531
|
-
}
|
|
1532
|
-
}
|
|
1533
|
-
}
|
|
1534
|
-
exports.CfnMemoryApplicationLogs = CfnMemoryApplicationLogs;
|
|
1535
|
-
/**
|
|
1536
|
-
* Builder for CfnMemoryLogsMixin to generate TRACES for CfnMemory
|
|
1537
|
-
*
|
|
1538
|
-
* @cloudformationResource AWS::BedrockAgentCore::Memory
|
|
1539
|
-
* @logType TRACES
|
|
1540
|
-
* @stability external
|
|
1541
|
-
*/
|
|
1542
|
-
class CfnMemoryTraces {
|
|
1543
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnMemoryTraces", version: "2.267.0-alpha.0" };
|
|
1149
|
+
}));
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1544
1152
|
/**
|
|
1545
|
-
* Send
|
|
1153
|
+
* Send logs to a Firehose Delivery Stream
|
|
1546
1154
|
*
|
|
1547
|
-
* @param props Additional properties that are optionally used in log delivery for
|
|
1155
|
+
* @param props Additional properties that are optionally used in log delivery for Firehose destinations
|
|
1548
1156
|
*/
|
|
1549
|
-
|
|
1157
|
+
toFirehose(deliveryStream, props) {
|
|
1550
1158
|
try {
|
|
1551
|
-
jsiiDeprecationWarnings.
|
|
1159
|
+
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_bedrockagentcore_mixins_CfnMemoryApplicationLogsFirehoseProps(props);
|
|
1552
1160
|
}
|
|
1553
1161
|
catch (error) {
|
|
1554
1162
|
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
1555
|
-
Error.captureStackTrace(error, this.
|
|
1163
|
+
Error.captureStackTrace(error, this.toFirehose);
|
|
1556
1164
|
}
|
|
1557
1165
|
throw error;
|
|
1558
1166
|
}
|
|
1559
1167
|
{
|
|
1560
|
-
return new CfnMemoryLogsMixin("
|
|
1168
|
+
return new CfnMemoryLogsMixin("APPLICATION_LOGS", new logsDelivery.FirehoseLogsDelivery(deliveryStream, {
|
|
1169
|
+
outputFormat: props?.outputFormat,
|
|
1561
1170
|
providedFields: props?.recordFields,
|
|
1562
|
-
mandatoryFields:
|
|
1171
|
+
mandatoryFields: undefined
|
|
1563
1172
|
}));
|
|
1564
1173
|
}
|
|
1565
1174
|
}
|
|
1566
1175
|
/**
|
|
1567
1176
|
* Delivers logs to a pre-created delivery destination
|
|
1568
1177
|
*
|
|
1569
|
-
* Supported destinations are
|
|
1178
|
+
* Supported destinations are S3, CWL, FH
|
|
1570
1179
|
* You are responsible for setting up the correct permissions for your delivery destination, toDestination() does not set up any permissions for you.
|
|
1571
1180
|
* Delivery destinations that are imported from another stack using CfnDeliveryDestination.fromDeliveryDestinationArn() or CfnDeliveryDestination.fromDeliveryDestinationName() are supported by toDestination().
|
|
1572
1181
|
*
|
|
@@ -1574,7 +1183,7 @@ class CfnMemoryTraces {
|
|
|
1574
1183
|
*/
|
|
1575
1184
|
toDestination(destination, props) {
|
|
1576
1185
|
try {
|
|
1577
|
-
jsiiDeprecationWarnings.
|
|
1186
|
+
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_bedrockagentcore_mixins_CfnMemoryApplicationLogsDestProps(props);
|
|
1578
1187
|
}
|
|
1579
1188
|
catch (error) {
|
|
1580
1189
|
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
@@ -1583,14 +1192,14 @@ class CfnMemoryTraces {
|
|
|
1583
1192
|
throw error;
|
|
1584
1193
|
}
|
|
1585
1194
|
{
|
|
1586
|
-
return new CfnMemoryLogsMixin("
|
|
1195
|
+
return new CfnMemoryLogsMixin("APPLICATION_LOGS", new logsDelivery.DestinationLogsDelivery(destination, {
|
|
1587
1196
|
providedFields: props?.recordFields,
|
|
1588
|
-
mandatoryFields:
|
|
1197
|
+
mandatoryFields: undefined
|
|
1589
1198
|
}));
|
|
1590
1199
|
}
|
|
1591
1200
|
}
|
|
1592
1201
|
}
|
|
1593
|
-
exports.
|
|
1202
|
+
exports.CfnMemoryApplicationLogs = CfnMemoryApplicationLogs;
|
|
1594
1203
|
/**
|
|
1595
1204
|
* Memory allows AI agents to maintain both immediate and long-term knowledge, enabling context-aware and personalized interactions.
|
|
1596
1205
|
*
|
|
@@ -1604,9 +1213,9 @@ exports.CfnMemoryTraces = CfnMemoryTraces;
|
|
|
1604
1213
|
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-memory.html
|
|
1605
1214
|
*/
|
|
1606
1215
|
class CfnMemoryLogsMixin extends cdk.Mixin {
|
|
1607
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnMemoryLogsMixin", version: "2.
|
|
1608
|
-
static APPLICATION_LOGS = new CfnMemoryApplicationLogs();
|
|
1216
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnMemoryLogsMixin", version: "2.268.0-alpha.0" };
|
|
1609
1217
|
static TRACES = new CfnMemoryTraces();
|
|
1218
|
+
static APPLICATION_LOGS = new CfnMemoryApplicationLogs();
|
|
1610
1219
|
logType;
|
|
1611
1220
|
logDelivery;
|
|
1612
1221
|
/**
|
|
@@ -1647,18 +1256,31 @@ class CfnMemoryLogsMixin extends cdk.Mixin {
|
|
|
1647
1256
|
}
|
|
1648
1257
|
}
|
|
1649
1258
|
exports.CfnMemoryLogsMixin = CfnMemoryLogsMixin;
|
|
1259
|
+
/**
|
|
1260
|
+
* Output Format options for each destination of CfnMemoryTraces.
|
|
1261
|
+
*/
|
|
1262
|
+
class CfnMemoryTracesOutputFormat {
|
|
1263
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnMemoryTracesOutputFormat", version: "2.268.0-alpha.0" };
|
|
1264
|
+
}
|
|
1265
|
+
exports.CfnMemoryTracesOutputFormat = CfnMemoryTracesOutputFormat;
|
|
1266
|
+
var CfnMemoryTracesRecordFields;
|
|
1267
|
+
(function (CfnMemoryTracesRecordFields) {
|
|
1268
|
+
CfnMemoryTracesRecordFields["TIMESTAMP"] = "timestamp";
|
|
1269
|
+
CfnMemoryTracesRecordFields["RESOURCEARN"] = "resourceArn";
|
|
1270
|
+
CfnMemoryTracesRecordFields["TRACE"] = "trace";
|
|
1271
|
+
})(CfnMemoryTracesRecordFields || (exports.CfnMemoryTracesRecordFields = CfnMemoryTracesRecordFields = {}));
|
|
1650
1272
|
/**
|
|
1651
1273
|
* Output Format options for each destination of CfnMemoryApplicationLogs.
|
|
1652
1274
|
*/
|
|
1653
1275
|
class CfnMemoryApplicationLogsOutputFormat {
|
|
1654
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnMemoryApplicationLogsOutputFormat", version: "2.
|
|
1276
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnMemoryApplicationLogsOutputFormat", version: "2.268.0-alpha.0" };
|
|
1655
1277
|
}
|
|
1656
1278
|
exports.CfnMemoryApplicationLogsOutputFormat = CfnMemoryApplicationLogsOutputFormat;
|
|
1657
1279
|
(function (CfnMemoryApplicationLogsOutputFormat) {
|
|
1658
1280
|
let S3;
|
|
1659
1281
|
(function (S3) {
|
|
1660
|
-
S3["JSON"] = "json";
|
|
1661
1282
|
S3["PLAIN"] = "plain";
|
|
1283
|
+
S3["JSON"] = "json";
|
|
1662
1284
|
S3["W3C"] = "w3c";
|
|
1663
1285
|
S3["PARQUET"] = "parquet";
|
|
1664
1286
|
})(S3 = CfnMemoryApplicationLogsOutputFormat.S3 || (CfnMemoryApplicationLogsOutputFormat.S3 = {}));
|
|
@@ -1669,14 +1291,16 @@ exports.CfnMemoryApplicationLogsOutputFormat = CfnMemoryApplicationLogsOutputFor
|
|
|
1669
1291
|
})(LogGroup = CfnMemoryApplicationLogsOutputFormat.LogGroup || (CfnMemoryApplicationLogsOutputFormat.LogGroup = {}));
|
|
1670
1292
|
let Firehose;
|
|
1671
1293
|
(function (Firehose) {
|
|
1672
|
-
Firehose["JSON"] = "json";
|
|
1673
1294
|
Firehose["PLAIN"] = "plain";
|
|
1295
|
+
Firehose["JSON"] = "json";
|
|
1674
1296
|
Firehose["RAW"] = "raw";
|
|
1675
1297
|
})(Firehose = CfnMemoryApplicationLogsOutputFormat.Firehose || (CfnMemoryApplicationLogsOutputFormat.Firehose = {}));
|
|
1676
1298
|
})(CfnMemoryApplicationLogsOutputFormat || (exports.CfnMemoryApplicationLogsOutputFormat = CfnMemoryApplicationLogsOutputFormat = {}));
|
|
1677
1299
|
var CfnMemoryApplicationLogsRecordFields;
|
|
1678
1300
|
(function (CfnMemoryApplicationLogsRecordFields) {
|
|
1301
|
+
CfnMemoryApplicationLogsRecordFields["TIMESTAMP"] = "timestamp";
|
|
1679
1302
|
CfnMemoryApplicationLogsRecordFields["RESOURCE_ARN"] = "resource_arn";
|
|
1303
|
+
CfnMemoryApplicationLogsRecordFields["RESOURCE_ID"] = "resource_id";
|
|
1680
1304
|
CfnMemoryApplicationLogsRecordFields["EVENT_TIMESTAMP"] = "event_timestamp";
|
|
1681
1305
|
CfnMemoryApplicationLogsRecordFields["MEMORY_STRATEGY_ID"] = "memory_strategy_id";
|
|
1682
1306
|
CfnMemoryApplicationLogsRecordFields["NAMESPACE"] = "namespace";
|
|
@@ -1693,16 +1317,64 @@ var CfnMemoryApplicationLogsRecordFields;
|
|
|
1693
1317
|
CfnMemoryApplicationLogsRecordFields["SPANID"] = "spanId";
|
|
1694
1318
|
})(CfnMemoryApplicationLogsRecordFields || (exports.CfnMemoryApplicationLogsRecordFields = CfnMemoryApplicationLogsRecordFields = {}));
|
|
1695
1319
|
/**
|
|
1696
|
-
*
|
|
1320
|
+
* Builder for CfnRuntimeLogsMixin to generate TRACES for CfnRuntime
|
|
1321
|
+
*
|
|
1322
|
+
* @cloudformationResource AWS::BedrockAgentCore::Runtime
|
|
1323
|
+
* @logType TRACES
|
|
1324
|
+
* @stability external
|
|
1697
1325
|
*/
|
|
1698
|
-
class
|
|
1699
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.
|
|
1326
|
+
class CfnRuntimeTraces {
|
|
1327
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnRuntimeTraces", version: "2.268.0-alpha.0" };
|
|
1328
|
+
/**
|
|
1329
|
+
* Send traces to X-Ray
|
|
1330
|
+
*
|
|
1331
|
+
* @param props Additional properties that are optionally used in log delivery for XRay destinations
|
|
1332
|
+
*/
|
|
1333
|
+
toXRay(props) {
|
|
1334
|
+
try {
|
|
1335
|
+
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_bedrockagentcore_mixins_CfnRuntimeTracesXRayProps(props);
|
|
1336
|
+
}
|
|
1337
|
+
catch (error) {
|
|
1338
|
+
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
1339
|
+
Error.captureStackTrace(error, this.toXRay);
|
|
1340
|
+
}
|
|
1341
|
+
throw error;
|
|
1342
|
+
}
|
|
1343
|
+
{
|
|
1344
|
+
return new CfnRuntimeLogsMixin("TRACES", new logsDelivery.XRayLogsDelivery({
|
|
1345
|
+
providedFields: props?.recordFields,
|
|
1346
|
+
mandatoryFields: ["trace"]
|
|
1347
|
+
}));
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
/**
|
|
1351
|
+
* Delivers logs to a pre-created delivery destination
|
|
1352
|
+
*
|
|
1353
|
+
* Supported destinations are XRAY
|
|
1354
|
+
* You are responsible for setting up the correct permissions for your delivery destination, toDestination() does not set up any permissions for you.
|
|
1355
|
+
* Delivery destinations that are imported from another stack using CfnDeliveryDestination.fromDeliveryDestinationArn() or CfnDeliveryDestination.fromDeliveryDestinationName() are supported by toDestination().
|
|
1356
|
+
*
|
|
1357
|
+
* @param props Additional properties that are optionally used in log delivery for destinations
|
|
1358
|
+
*/
|
|
1359
|
+
toDestination(destination, props) {
|
|
1360
|
+
try {
|
|
1361
|
+
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_bedrockagentcore_mixins_CfnRuntimeTracesDestProps(props);
|
|
1362
|
+
}
|
|
1363
|
+
catch (error) {
|
|
1364
|
+
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
1365
|
+
Error.captureStackTrace(error, this.toDestination);
|
|
1366
|
+
}
|
|
1367
|
+
throw error;
|
|
1368
|
+
}
|
|
1369
|
+
{
|
|
1370
|
+
return new CfnRuntimeLogsMixin("TRACES", new logsDelivery.DestinationLogsDelivery(destination, {
|
|
1371
|
+
providedFields: props?.recordFields,
|
|
1372
|
+
mandatoryFields: ["trace"]
|
|
1373
|
+
}));
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1700
1376
|
}
|
|
1701
|
-
exports.
|
|
1702
|
-
var CfnMemoryTracesRecordFields;
|
|
1703
|
-
(function (CfnMemoryTracesRecordFields) {
|
|
1704
|
-
CfnMemoryTracesRecordFields["TRACE"] = "trace";
|
|
1705
|
-
})(CfnMemoryTracesRecordFields || (exports.CfnMemoryTracesRecordFields = CfnMemoryTracesRecordFields = {}));
|
|
1377
|
+
exports.CfnRuntimeTraces = CfnRuntimeTraces;
|
|
1706
1378
|
/**
|
|
1707
1379
|
* Builder for CfnRuntimeLogsMixin to generate APPLICATION_LOGS for CfnRuntime
|
|
1708
1380
|
*
|
|
@@ -1711,7 +1383,7 @@ var CfnMemoryTracesRecordFields;
|
|
|
1711
1383
|
* @stability external
|
|
1712
1384
|
*/
|
|
1713
1385
|
class CfnRuntimeApplicationLogs {
|
|
1714
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnRuntimeApplicationLogs", version: "2.
|
|
1386
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnRuntimeApplicationLogs", version: "2.268.0-alpha.0" };
|
|
1715
1387
|
/**
|
|
1716
1388
|
* Send logs to an S3 Bucket
|
|
1717
1389
|
*
|
|
@@ -1811,65 +1483,6 @@ class CfnRuntimeApplicationLogs {
|
|
|
1811
1483
|
}
|
|
1812
1484
|
}
|
|
1813
1485
|
exports.CfnRuntimeApplicationLogs = CfnRuntimeApplicationLogs;
|
|
1814
|
-
/**
|
|
1815
|
-
* Builder for CfnRuntimeLogsMixin to generate TRACES for CfnRuntime
|
|
1816
|
-
*
|
|
1817
|
-
* @cloudformationResource AWS::BedrockAgentCore::Runtime
|
|
1818
|
-
* @logType TRACES
|
|
1819
|
-
* @stability external
|
|
1820
|
-
*/
|
|
1821
|
-
class CfnRuntimeTraces {
|
|
1822
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnRuntimeTraces", version: "2.267.0-alpha.0" };
|
|
1823
|
-
/**
|
|
1824
|
-
* Send traces to X-Ray
|
|
1825
|
-
*
|
|
1826
|
-
* @param props Additional properties that are optionally used in log delivery for XRay destinations
|
|
1827
|
-
*/
|
|
1828
|
-
toXRay(props) {
|
|
1829
|
-
try {
|
|
1830
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_bedrockagentcore_mixins_CfnRuntimeTracesXRayProps(props);
|
|
1831
|
-
}
|
|
1832
|
-
catch (error) {
|
|
1833
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
1834
|
-
Error.captureStackTrace(error, this.toXRay);
|
|
1835
|
-
}
|
|
1836
|
-
throw error;
|
|
1837
|
-
}
|
|
1838
|
-
{
|
|
1839
|
-
return new CfnRuntimeLogsMixin("TRACES", new logsDelivery.XRayLogsDelivery({
|
|
1840
|
-
providedFields: props?.recordFields,
|
|
1841
|
-
mandatoryFields: ["trace"]
|
|
1842
|
-
}));
|
|
1843
|
-
}
|
|
1844
|
-
}
|
|
1845
|
-
/**
|
|
1846
|
-
* Delivers logs to a pre-created delivery destination
|
|
1847
|
-
*
|
|
1848
|
-
* Supported destinations are XRAY
|
|
1849
|
-
* You are responsible for setting up the correct permissions for your delivery destination, toDestination() does not set up any permissions for you.
|
|
1850
|
-
* Delivery destinations that are imported from another stack using CfnDeliveryDestination.fromDeliveryDestinationArn() or CfnDeliveryDestination.fromDeliveryDestinationName() are supported by toDestination().
|
|
1851
|
-
*
|
|
1852
|
-
* @param props Additional properties that are optionally used in log delivery for destinations
|
|
1853
|
-
*/
|
|
1854
|
-
toDestination(destination, props) {
|
|
1855
|
-
try {
|
|
1856
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_bedrockagentcore_mixins_CfnRuntimeTracesDestProps(props);
|
|
1857
|
-
}
|
|
1858
|
-
catch (error) {
|
|
1859
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
1860
|
-
Error.captureStackTrace(error, this.toDestination);
|
|
1861
|
-
}
|
|
1862
|
-
throw error;
|
|
1863
|
-
}
|
|
1864
|
-
{
|
|
1865
|
-
return new CfnRuntimeLogsMixin("TRACES", new logsDelivery.DestinationLogsDelivery(destination, {
|
|
1866
|
-
providedFields: props?.recordFields,
|
|
1867
|
-
mandatoryFields: ["trace"]
|
|
1868
|
-
}));
|
|
1869
|
-
}
|
|
1870
|
-
}
|
|
1871
|
-
}
|
|
1872
|
-
exports.CfnRuntimeTraces = CfnRuntimeTraces;
|
|
1873
1486
|
/**
|
|
1874
1487
|
* Builder for CfnRuntimeLogsMixin to generate USAGE_LOGS for CfnRuntime
|
|
1875
1488
|
*
|
|
@@ -1878,7 +1491,7 @@ exports.CfnRuntimeTraces = CfnRuntimeTraces;
|
|
|
1878
1491
|
* @stability external
|
|
1879
1492
|
*/
|
|
1880
1493
|
class CfnRuntimeUsageLogs {
|
|
1881
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnRuntimeUsageLogs", version: "2.
|
|
1494
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnRuntimeUsageLogs", version: "2.268.0-alpha.0" };
|
|
1882
1495
|
/**
|
|
1883
1496
|
* Send logs to an S3 Bucket
|
|
1884
1497
|
*
|
|
@@ -1993,9 +1606,9 @@ exports.CfnRuntimeUsageLogs = CfnRuntimeUsageLogs;
|
|
|
1993
1606
|
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-runtime.html
|
|
1994
1607
|
*/
|
|
1995
1608
|
class CfnRuntimeLogsMixin extends cdk.Mixin {
|
|
1996
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnRuntimeLogsMixin", version: "2.
|
|
1997
|
-
static APPLICATION_LOGS = new CfnRuntimeApplicationLogs();
|
|
1609
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnRuntimeLogsMixin", version: "2.268.0-alpha.0" };
|
|
1998
1610
|
static TRACES = new CfnRuntimeTraces();
|
|
1611
|
+
static APPLICATION_LOGS = new CfnRuntimeApplicationLogs();
|
|
1999
1612
|
static USAGE_LOGS = new CfnRuntimeUsageLogs();
|
|
2000
1613
|
logType;
|
|
2001
1614
|
logDelivery;
|
|
@@ -2037,18 +1650,31 @@ class CfnRuntimeLogsMixin extends cdk.Mixin {
|
|
|
2037
1650
|
}
|
|
2038
1651
|
}
|
|
2039
1652
|
exports.CfnRuntimeLogsMixin = CfnRuntimeLogsMixin;
|
|
1653
|
+
/**
|
|
1654
|
+
* Output Format options for each destination of CfnRuntimeTraces.
|
|
1655
|
+
*/
|
|
1656
|
+
class CfnRuntimeTracesOutputFormat {
|
|
1657
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnRuntimeTracesOutputFormat", version: "2.268.0-alpha.0" };
|
|
1658
|
+
}
|
|
1659
|
+
exports.CfnRuntimeTracesOutputFormat = CfnRuntimeTracesOutputFormat;
|
|
1660
|
+
var CfnRuntimeTracesRecordFields;
|
|
1661
|
+
(function (CfnRuntimeTracesRecordFields) {
|
|
1662
|
+
CfnRuntimeTracesRecordFields["TIMESTAMP"] = "timestamp";
|
|
1663
|
+
CfnRuntimeTracesRecordFields["RESOURCEARN"] = "resourceArn";
|
|
1664
|
+
CfnRuntimeTracesRecordFields["TRACE"] = "trace";
|
|
1665
|
+
})(CfnRuntimeTracesRecordFields || (exports.CfnRuntimeTracesRecordFields = CfnRuntimeTracesRecordFields = {}));
|
|
2040
1666
|
/**
|
|
2041
1667
|
* Output Format options for each destination of CfnRuntimeApplicationLogs.
|
|
2042
1668
|
*/
|
|
2043
1669
|
class CfnRuntimeApplicationLogsOutputFormat {
|
|
2044
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnRuntimeApplicationLogsOutputFormat", version: "2.
|
|
1670
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnRuntimeApplicationLogsOutputFormat", version: "2.268.0-alpha.0" };
|
|
2045
1671
|
}
|
|
2046
1672
|
exports.CfnRuntimeApplicationLogsOutputFormat = CfnRuntimeApplicationLogsOutputFormat;
|
|
2047
1673
|
(function (CfnRuntimeApplicationLogsOutputFormat) {
|
|
2048
1674
|
let S3;
|
|
2049
1675
|
(function (S3) {
|
|
2050
|
-
S3["JSON"] = "json";
|
|
2051
1676
|
S3["PLAIN"] = "plain";
|
|
1677
|
+
S3["JSON"] = "json";
|
|
2052
1678
|
S3["W3C"] = "w3c";
|
|
2053
1679
|
S3["PARQUET"] = "parquet";
|
|
2054
1680
|
})(S3 = CfnRuntimeApplicationLogsOutputFormat.S3 || (CfnRuntimeApplicationLogsOutputFormat.S3 = {}));
|
|
@@ -2059,13 +1685,15 @@ exports.CfnRuntimeApplicationLogsOutputFormat = CfnRuntimeApplicationLogsOutputF
|
|
|
2059
1685
|
})(LogGroup = CfnRuntimeApplicationLogsOutputFormat.LogGroup || (CfnRuntimeApplicationLogsOutputFormat.LogGroup = {}));
|
|
2060
1686
|
let Firehose;
|
|
2061
1687
|
(function (Firehose) {
|
|
2062
|
-
Firehose["JSON"] = "json";
|
|
2063
1688
|
Firehose["PLAIN"] = "plain";
|
|
1689
|
+
Firehose["JSON"] = "json";
|
|
2064
1690
|
Firehose["RAW"] = "raw";
|
|
2065
1691
|
})(Firehose = CfnRuntimeApplicationLogsOutputFormat.Firehose || (CfnRuntimeApplicationLogsOutputFormat.Firehose = {}));
|
|
2066
1692
|
})(CfnRuntimeApplicationLogsOutputFormat || (exports.CfnRuntimeApplicationLogsOutputFormat = CfnRuntimeApplicationLogsOutputFormat = {}));
|
|
2067
1693
|
var CfnRuntimeApplicationLogsRecordFields;
|
|
2068
1694
|
(function (CfnRuntimeApplicationLogsRecordFields) {
|
|
1695
|
+
CfnRuntimeApplicationLogsRecordFields["TIMESTAMP"] = "timestamp";
|
|
1696
|
+
CfnRuntimeApplicationLogsRecordFields["RUNTIME_ID"] = "runtime_id";
|
|
2069
1697
|
CfnRuntimeApplicationLogsRecordFields["ACCOUNT_ID"] = "account_id";
|
|
2070
1698
|
CfnRuntimeApplicationLogsRecordFields["REQUEST_ID"] = "request_id";
|
|
2071
1699
|
CfnRuntimeApplicationLogsRecordFields["SESSION_ID"] = "session_id";
|
|
@@ -2086,29 +1714,18 @@ var CfnRuntimeApplicationLogsRecordFields;
|
|
|
2086
1714
|
CfnRuntimeApplicationLogsRecordFields["RESOURCE_ARN"] = "resource_arn";
|
|
2087
1715
|
CfnRuntimeApplicationLogsRecordFields["EVENT_TIMESTAMP"] = "event_timestamp";
|
|
2088
1716
|
})(CfnRuntimeApplicationLogsRecordFields || (exports.CfnRuntimeApplicationLogsRecordFields = CfnRuntimeApplicationLogsRecordFields = {}));
|
|
2089
|
-
/**
|
|
2090
|
-
* Output Format options for each destination of CfnRuntimeTraces.
|
|
2091
|
-
*/
|
|
2092
|
-
class CfnRuntimeTracesOutputFormat {
|
|
2093
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnRuntimeTracesOutputFormat", version: "2.267.0-alpha.0" };
|
|
2094
|
-
}
|
|
2095
|
-
exports.CfnRuntimeTracesOutputFormat = CfnRuntimeTracesOutputFormat;
|
|
2096
|
-
var CfnRuntimeTracesRecordFields;
|
|
2097
|
-
(function (CfnRuntimeTracesRecordFields) {
|
|
2098
|
-
CfnRuntimeTracesRecordFields["TRACE"] = "trace";
|
|
2099
|
-
})(CfnRuntimeTracesRecordFields || (exports.CfnRuntimeTracesRecordFields = CfnRuntimeTracesRecordFields = {}));
|
|
2100
1717
|
/**
|
|
2101
1718
|
* Output Format options for each destination of CfnRuntimeUsageLogs.
|
|
2102
1719
|
*/
|
|
2103
1720
|
class CfnRuntimeUsageLogsOutputFormat {
|
|
2104
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnRuntimeUsageLogsOutputFormat", version: "2.
|
|
1721
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnRuntimeUsageLogsOutputFormat", version: "2.268.0-alpha.0" };
|
|
2105
1722
|
}
|
|
2106
1723
|
exports.CfnRuntimeUsageLogsOutputFormat = CfnRuntimeUsageLogsOutputFormat;
|
|
2107
1724
|
(function (CfnRuntimeUsageLogsOutputFormat) {
|
|
2108
1725
|
let S3;
|
|
2109
1726
|
(function (S3) {
|
|
2110
|
-
S3["JSON"] = "json";
|
|
2111
1727
|
S3["PLAIN"] = "plain";
|
|
1728
|
+
S3["JSON"] = "json";
|
|
2112
1729
|
S3["W3C"] = "w3c";
|
|
2113
1730
|
S3["PARQUET"] = "parquet";
|
|
2114
1731
|
})(S3 = CfnRuntimeUsageLogsOutputFormat.S3 || (CfnRuntimeUsageLogsOutputFormat.S3 = {}));
|
|
@@ -2119,13 +1736,15 @@ exports.CfnRuntimeUsageLogsOutputFormat = CfnRuntimeUsageLogsOutputFormat;
|
|
|
2119
1736
|
})(LogGroup = CfnRuntimeUsageLogsOutputFormat.LogGroup || (CfnRuntimeUsageLogsOutputFormat.LogGroup = {}));
|
|
2120
1737
|
let Firehose;
|
|
2121
1738
|
(function (Firehose) {
|
|
2122
|
-
Firehose["JSON"] = "json";
|
|
2123
1739
|
Firehose["PLAIN"] = "plain";
|
|
1740
|
+
Firehose["JSON"] = "json";
|
|
2124
1741
|
Firehose["RAW"] = "raw";
|
|
2125
1742
|
})(Firehose = CfnRuntimeUsageLogsOutputFormat.Firehose || (CfnRuntimeUsageLogsOutputFormat.Firehose = {}));
|
|
2126
1743
|
})(CfnRuntimeUsageLogsOutputFormat || (exports.CfnRuntimeUsageLogsOutputFormat = CfnRuntimeUsageLogsOutputFormat = {}));
|
|
2127
1744
|
var CfnRuntimeUsageLogsRecordFields;
|
|
2128
1745
|
(function (CfnRuntimeUsageLogsRecordFields) {
|
|
1746
|
+
CfnRuntimeUsageLogsRecordFields["TIMESTAMP"] = "timestamp";
|
|
1747
|
+
CfnRuntimeUsageLogsRecordFields["RUNTIME_ID"] = "runtime_id";
|
|
2129
1748
|
CfnRuntimeUsageLogsRecordFields["RESOURCE_ARN"] = "resource_arn";
|
|
2130
1749
|
CfnRuntimeUsageLogsRecordFields["EVENT_TIMESTAMP"] = "event_timestamp";
|
|
2131
1750
|
CfnRuntimeUsageLogsRecordFields["RESOURCE"] = "resource";
|
|
@@ -2140,7 +1759,7 @@ var CfnRuntimeUsageLogsRecordFields;
|
|
|
2140
1759
|
* @stability external
|
|
2141
1760
|
*/
|
|
2142
1761
|
class CfnWorkloadIdentityApplicationLogs {
|
|
2143
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnWorkloadIdentityApplicationLogs", version: "2.
|
|
1762
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnWorkloadIdentityApplicationLogs", version: "2.268.0-alpha.0" };
|
|
2144
1763
|
/**
|
|
2145
1764
|
* Send logs to an S3 Bucket
|
|
2146
1765
|
*
|
|
@@ -2240,6 +1859,65 @@ class CfnWorkloadIdentityApplicationLogs {
|
|
|
2240
1859
|
}
|
|
2241
1860
|
}
|
|
2242
1861
|
exports.CfnWorkloadIdentityApplicationLogs = CfnWorkloadIdentityApplicationLogs;
|
|
1862
|
+
/**
|
|
1863
|
+
* Builder for CfnWorkloadIdentityLogsMixin to generate TRACES for CfnWorkloadIdentity
|
|
1864
|
+
*
|
|
1865
|
+
* @cloudformationResource AWS::BedrockAgentCore::WorkloadIdentity
|
|
1866
|
+
* @logType TRACES
|
|
1867
|
+
* @stability external
|
|
1868
|
+
*/
|
|
1869
|
+
class CfnWorkloadIdentityTraces {
|
|
1870
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnWorkloadIdentityTraces", version: "2.268.0-alpha.0" };
|
|
1871
|
+
/**
|
|
1872
|
+
* Send traces to X-Ray
|
|
1873
|
+
*
|
|
1874
|
+
* @param props Additional properties that are optionally used in log delivery for XRay destinations
|
|
1875
|
+
*/
|
|
1876
|
+
toXRay(props) {
|
|
1877
|
+
try {
|
|
1878
|
+
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_bedrockagentcore_mixins_CfnWorkloadIdentityTracesXRayProps(props);
|
|
1879
|
+
}
|
|
1880
|
+
catch (error) {
|
|
1881
|
+
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
1882
|
+
Error.captureStackTrace(error, this.toXRay);
|
|
1883
|
+
}
|
|
1884
|
+
throw error;
|
|
1885
|
+
}
|
|
1886
|
+
{
|
|
1887
|
+
return new CfnWorkloadIdentityLogsMixin("TRACES", new logsDelivery.XRayLogsDelivery({
|
|
1888
|
+
providedFields: props?.recordFields,
|
|
1889
|
+
mandatoryFields: ["trace"]
|
|
1890
|
+
}));
|
|
1891
|
+
}
|
|
1892
|
+
}
|
|
1893
|
+
/**
|
|
1894
|
+
* Delivers logs to a pre-created delivery destination
|
|
1895
|
+
*
|
|
1896
|
+
* Supported destinations are XRAY
|
|
1897
|
+
* You are responsible for setting up the correct permissions for your delivery destination, toDestination() does not set up any permissions for you.
|
|
1898
|
+
* Delivery destinations that are imported from another stack using CfnDeliveryDestination.fromDeliveryDestinationArn() or CfnDeliveryDestination.fromDeliveryDestinationName() are supported by toDestination().
|
|
1899
|
+
*
|
|
1900
|
+
* @param props Additional properties that are optionally used in log delivery for destinations
|
|
1901
|
+
*/
|
|
1902
|
+
toDestination(destination, props) {
|
|
1903
|
+
try {
|
|
1904
|
+
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_bedrockagentcore_mixins_CfnWorkloadIdentityTracesDestProps(props);
|
|
1905
|
+
}
|
|
1906
|
+
catch (error) {
|
|
1907
|
+
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
1908
|
+
Error.captureStackTrace(error, this.toDestination);
|
|
1909
|
+
}
|
|
1910
|
+
throw error;
|
|
1911
|
+
}
|
|
1912
|
+
{
|
|
1913
|
+
return new CfnWorkloadIdentityLogsMixin("TRACES", new logsDelivery.DestinationLogsDelivery(destination, {
|
|
1914
|
+
providedFields: props?.recordFields,
|
|
1915
|
+
mandatoryFields: ["trace"]
|
|
1916
|
+
}));
|
|
1917
|
+
}
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1920
|
+
exports.CfnWorkloadIdentityTraces = CfnWorkloadIdentityTraces;
|
|
2243
1921
|
/**
|
|
2244
1922
|
* Creates a workload identity for Amazon Bedrock AgentCore.
|
|
2245
1923
|
*
|
|
@@ -2255,8 +1933,9 @@ exports.CfnWorkloadIdentityApplicationLogs = CfnWorkloadIdentityApplicationLogs;
|
|
|
2255
1933
|
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrockagentcore-workloadidentity.html
|
|
2256
1934
|
*/
|
|
2257
1935
|
class CfnWorkloadIdentityLogsMixin extends cdk.Mixin {
|
|
2258
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnWorkloadIdentityLogsMixin", version: "2.
|
|
1936
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnWorkloadIdentityLogsMixin", version: "2.268.0-alpha.0" };
|
|
2259
1937
|
static APPLICATION_LOGS = new CfnWorkloadIdentityApplicationLogs();
|
|
1938
|
+
static TRACES = new CfnWorkloadIdentityTraces();
|
|
2260
1939
|
logType;
|
|
2261
1940
|
logDelivery;
|
|
2262
1941
|
/**
|
|
@@ -2301,14 +1980,14 @@ exports.CfnWorkloadIdentityLogsMixin = CfnWorkloadIdentityLogsMixin;
|
|
|
2301
1980
|
* Output Format options for each destination of CfnWorkloadIdentityApplicationLogs.
|
|
2302
1981
|
*/
|
|
2303
1982
|
class CfnWorkloadIdentityApplicationLogsOutputFormat {
|
|
2304
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnWorkloadIdentityApplicationLogsOutputFormat", version: "2.
|
|
1983
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnWorkloadIdentityApplicationLogsOutputFormat", version: "2.268.0-alpha.0" };
|
|
2305
1984
|
}
|
|
2306
1985
|
exports.CfnWorkloadIdentityApplicationLogsOutputFormat = CfnWorkloadIdentityApplicationLogsOutputFormat;
|
|
2307
1986
|
(function (CfnWorkloadIdentityApplicationLogsOutputFormat) {
|
|
2308
1987
|
let S3;
|
|
2309
1988
|
(function (S3) {
|
|
2310
|
-
S3["JSON"] = "json";
|
|
2311
1989
|
S3["PLAIN"] = "plain";
|
|
1990
|
+
S3["JSON"] = "json";
|
|
2312
1991
|
S3["W3C"] = "w3c";
|
|
2313
1992
|
S3["PARQUET"] = "parquet";
|
|
2314
1993
|
})(S3 = CfnWorkloadIdentityApplicationLogsOutputFormat.S3 || (CfnWorkloadIdentityApplicationLogsOutputFormat.S3 = {}));
|
|
@@ -2319,14 +1998,18 @@ exports.CfnWorkloadIdentityApplicationLogsOutputFormat = CfnWorkloadIdentityAppl
|
|
|
2319
1998
|
})(LogGroup = CfnWorkloadIdentityApplicationLogsOutputFormat.LogGroup || (CfnWorkloadIdentityApplicationLogsOutputFormat.LogGroup = {}));
|
|
2320
1999
|
let Firehose;
|
|
2321
2000
|
(function (Firehose) {
|
|
2322
|
-
Firehose["JSON"] = "json";
|
|
2323
2001
|
Firehose["PLAIN"] = "plain";
|
|
2002
|
+
Firehose["JSON"] = "json";
|
|
2324
2003
|
Firehose["RAW"] = "raw";
|
|
2325
2004
|
})(Firehose = CfnWorkloadIdentityApplicationLogsOutputFormat.Firehose || (CfnWorkloadIdentityApplicationLogsOutputFormat.Firehose = {}));
|
|
2326
2005
|
})(CfnWorkloadIdentityApplicationLogsOutputFormat || (exports.CfnWorkloadIdentityApplicationLogsOutputFormat = CfnWorkloadIdentityApplicationLogsOutputFormat = {}));
|
|
2327
2006
|
var CfnWorkloadIdentityApplicationLogsRecordFields;
|
|
2328
2007
|
(function (CfnWorkloadIdentityApplicationLogsRecordFields) {
|
|
2008
|
+
CfnWorkloadIdentityApplicationLogsRecordFields["TIMESTAMP"] = "timestamp";
|
|
2009
|
+
CfnWorkloadIdentityApplicationLogsRecordFields["WORKLOAD_IDENTITY_ID"] = "workload_identity_id";
|
|
2329
2010
|
CfnWorkloadIdentityApplicationLogsRecordFields["REQUEST_ID"] = "request_id";
|
|
2011
|
+
CfnWorkloadIdentityApplicationLogsRecordFields["TRACE_ID"] = "trace_id";
|
|
2012
|
+
CfnWorkloadIdentityApplicationLogsRecordFields["SPAN_ID"] = "span_id";
|
|
2330
2013
|
CfnWorkloadIdentityApplicationLogsRecordFields["OPERATION_NAME"] = "operation_name";
|
|
2331
2014
|
CfnWorkloadIdentityApplicationLogsRecordFields["OPERATION_TYPE"] = "operation_type";
|
|
2332
2015
|
CfnWorkloadIdentityApplicationLogsRecordFields["START_TIME"] = "start_time";
|
|
@@ -2335,8 +2018,6 @@ var CfnWorkloadIdentityApplicationLogsRecordFields;
|
|
|
2335
2018
|
CfnWorkloadIdentityApplicationLogsRecordFields["ACCOUNT_ID"] = "account_id";
|
|
2336
2019
|
CfnWorkloadIdentityApplicationLogsRecordFields["REQUEST"] = "request";
|
|
2337
2020
|
CfnWorkloadIdentityApplicationLogsRecordFields["RESPONSE"] = "response";
|
|
2338
|
-
CfnWorkloadIdentityApplicationLogsRecordFields["TRACE_ID"] = "trace_id";
|
|
2339
|
-
CfnWorkloadIdentityApplicationLogsRecordFields["SPAN_ID"] = "span_id";
|
|
2340
2021
|
CfnWorkloadIdentityApplicationLogsRecordFields["RESOURCE"] = "resource";
|
|
2341
2022
|
CfnWorkloadIdentityApplicationLogsRecordFields["ATTRIBUTES"] = "attributes";
|
|
2342
2023
|
CfnWorkloadIdentityApplicationLogsRecordFields["TIMEUNIXNANO"] = "timeUnixNano";
|
|
@@ -2348,3 +2029,16 @@ var CfnWorkloadIdentityApplicationLogsRecordFields;
|
|
|
2348
2029
|
CfnWorkloadIdentityApplicationLogsRecordFields["RESOURCE_ARN"] = "resource_arn";
|
|
2349
2030
|
CfnWorkloadIdentityApplicationLogsRecordFields["EVENT_TIMESTAMP"] = "event_timestamp";
|
|
2350
2031
|
})(CfnWorkloadIdentityApplicationLogsRecordFields || (exports.CfnWorkloadIdentityApplicationLogsRecordFields = CfnWorkloadIdentityApplicationLogsRecordFields = {}));
|
|
2032
|
+
/**
|
|
2033
|
+
* Output Format options for each destination of CfnWorkloadIdentityTraces.
|
|
2034
|
+
*/
|
|
2035
|
+
class CfnWorkloadIdentityTracesOutputFormat {
|
|
2036
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_bedrockagentcore.mixins.CfnWorkloadIdentityTracesOutputFormat", version: "2.268.0-alpha.0" };
|
|
2037
|
+
}
|
|
2038
|
+
exports.CfnWorkloadIdentityTracesOutputFormat = CfnWorkloadIdentityTracesOutputFormat;
|
|
2039
|
+
var CfnWorkloadIdentityTracesRecordFields;
|
|
2040
|
+
(function (CfnWorkloadIdentityTracesRecordFields) {
|
|
2041
|
+
CfnWorkloadIdentityTracesRecordFields["TIMESTAMP"] = "timestamp";
|
|
2042
|
+
CfnWorkloadIdentityTracesRecordFields["RESOURCEARN"] = "resourceArn";
|
|
2043
|
+
CfnWorkloadIdentityTracesRecordFields["TRACE"] = "trace";
|
|
2044
|
+
})(CfnWorkloadIdentityTracesRecordFields || (exports.CfnWorkloadIdentityTracesRecordFields = CfnWorkloadIdentityTracesRecordFields = {}));
|