@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,908 +33,13 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.CfnRouteServerPeerEventLogsRecordFields = exports.CfnRouteServerPeerEventLogsOutputFormat = exports.CfnRouteServerPeerLogsMixin = exports.CfnRouteServerPeerEventLogs =
|
|
36
|
+
exports.CfnRouteServerPeerEventLogsRecordFields = exports.CfnRouteServerPeerEventLogsOutputFormat = exports.CfnRouteServerPeerLogsMixin = exports.CfnRouteServerPeerEventLogs = 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 */
|
|
40
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-ec2"));
|
|
43
|
-
/**
|
|
44
|
-
* Builder for CfnInstanceLogsMixin to generate CONSOLE_LOGS for CfnInstance
|
|
45
|
-
*
|
|
46
|
-
* @cloudformationResource AWS::EC2::Instance
|
|
47
|
-
* @logType CONSOLE_LOGS
|
|
48
|
-
* @stability external
|
|
49
|
-
*/
|
|
50
|
-
class CfnInstanceConsoleLogs {
|
|
51
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.mixins.CfnInstanceConsoleLogs", version: "2.267.0-alpha.0" };
|
|
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_ec2_mixins_CfnInstanceConsoleLogsS3Props(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 CfnInstanceLogsMixin("CONSOLE_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", "message"]
|
|
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_ec2_mixins_CfnInstanceConsoleLogsLogGroupProps(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 CfnInstanceLogsMixin("CONSOLE_LOGS", new logsDelivery.LogGroupLogsDelivery(logGroup, {
|
|
94
|
-
outputFormat: props?.outputFormat,
|
|
95
|
-
providedFields: props?.recordFields,
|
|
96
|
-
mandatoryFields: ["resource_arn", "event_timestamp", "message"]
|
|
97
|
-
}));
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Send logs to a Firehose Delivery Stream
|
|
102
|
-
*
|
|
103
|
-
* @param props Additional properties that are optionally used in log delivery for Firehose destinations
|
|
104
|
-
*/
|
|
105
|
-
toFirehose(deliveryStream, props) {
|
|
106
|
-
try {
|
|
107
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_ec2_mixins_CfnInstanceConsoleLogsFirehoseProps(props);
|
|
108
|
-
}
|
|
109
|
-
catch (error) {
|
|
110
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
111
|
-
Error.captureStackTrace(error, this.toFirehose);
|
|
112
|
-
}
|
|
113
|
-
throw error;
|
|
114
|
-
}
|
|
115
|
-
{
|
|
116
|
-
return new CfnInstanceLogsMixin("CONSOLE_LOGS", new logsDelivery.FirehoseLogsDelivery(deliveryStream, {
|
|
117
|
-
outputFormat: props?.outputFormat,
|
|
118
|
-
providedFields: props?.recordFields,
|
|
119
|
-
mandatoryFields: ["resource_arn", "event_timestamp", "message"]
|
|
120
|
-
}));
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Delivers logs to a pre-created delivery destination
|
|
125
|
-
*
|
|
126
|
-
* Supported destinations are S3, CWL, FH
|
|
127
|
-
* You are responsible for setting up the correct permissions for your delivery destination, toDestination() does not set up any permissions for you.
|
|
128
|
-
* Delivery destinations that are imported from another stack using CfnDeliveryDestination.fromDeliveryDestinationArn() or CfnDeliveryDestination.fromDeliveryDestinationName() are supported by toDestination().
|
|
129
|
-
*
|
|
130
|
-
* @param props Additional properties that are optionally used in log delivery for destinations
|
|
131
|
-
*/
|
|
132
|
-
toDestination(destination, props) {
|
|
133
|
-
try {
|
|
134
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_ec2_mixins_CfnInstanceConsoleLogsDestProps(props);
|
|
135
|
-
}
|
|
136
|
-
catch (error) {
|
|
137
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
138
|
-
Error.captureStackTrace(error, this.toDestination);
|
|
139
|
-
}
|
|
140
|
-
throw error;
|
|
141
|
-
}
|
|
142
|
-
{
|
|
143
|
-
return new CfnInstanceLogsMixin("CONSOLE_LOGS", new logsDelivery.DestinationLogsDelivery(destination, {
|
|
144
|
-
providedFields: props?.recordFields,
|
|
145
|
-
mandatoryFields: ["resource_arn", "event_timestamp", "message"]
|
|
146
|
-
}));
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
exports.CfnInstanceConsoleLogs = CfnInstanceConsoleLogs;
|
|
151
|
-
/**
|
|
152
|
-
* Specifies an EC2 instance.
|
|
153
|
-
*
|
|
154
|
-
* If an Elastic IP address is attached to your instance, AWS CloudFormation reattaches the Elastic IP address after it updates the instance. For more information about updating stacks, see [AWS CloudFormation Stacks Updates](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks.html) .
|
|
155
|
-
*
|
|
156
|
-
* @cloudformationResource AWS::EC2::Instance
|
|
157
|
-
* @mixin true
|
|
158
|
-
* @stability external
|
|
159
|
-
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-instance.html
|
|
160
|
-
*/
|
|
161
|
-
class CfnInstanceLogsMixin extends cdk.Mixin {
|
|
162
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.mixins.CfnInstanceLogsMixin", version: "2.267.0-alpha.0" };
|
|
163
|
-
static CONSOLE_LOGS = new CfnInstanceConsoleLogs();
|
|
164
|
-
logType;
|
|
165
|
-
logDelivery;
|
|
166
|
-
/**
|
|
167
|
-
* Create a mixin to enable vended logs for `AWS::EC2::Instance`.
|
|
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, CfnInstanceLogsMixin);
|
|
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.CfnInstance.isCfnInstance(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.CfnInstance.arnForInstance(resource);
|
|
200
|
-
this.logDelivery.bind(resource, this.logType, sourceArn);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
exports.CfnInstanceLogsMixin = CfnInstanceLogsMixin;
|
|
204
|
-
/**
|
|
205
|
-
* Output Format options for each destination of CfnInstanceConsoleLogs.
|
|
206
|
-
*/
|
|
207
|
-
class CfnInstanceConsoleLogsOutputFormat {
|
|
208
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.mixins.CfnInstanceConsoleLogsOutputFormat", version: "2.267.0-alpha.0" };
|
|
209
|
-
}
|
|
210
|
-
exports.CfnInstanceConsoleLogsOutputFormat = CfnInstanceConsoleLogsOutputFormat;
|
|
211
|
-
(function (CfnInstanceConsoleLogsOutputFormat) {
|
|
212
|
-
let S3;
|
|
213
|
-
(function (S3) {
|
|
214
|
-
S3["JSON"] = "json";
|
|
215
|
-
S3["PLAIN"] = "plain";
|
|
216
|
-
S3["W3C"] = "w3c";
|
|
217
|
-
S3["PARQUET"] = "parquet";
|
|
218
|
-
})(S3 = CfnInstanceConsoleLogsOutputFormat.S3 || (CfnInstanceConsoleLogsOutputFormat.S3 = {}));
|
|
219
|
-
let LogGroup;
|
|
220
|
-
(function (LogGroup) {
|
|
221
|
-
LogGroup["PLAIN"] = "plain";
|
|
222
|
-
LogGroup["JSON"] = "json";
|
|
223
|
-
})(LogGroup = CfnInstanceConsoleLogsOutputFormat.LogGroup || (CfnInstanceConsoleLogsOutputFormat.LogGroup = {}));
|
|
224
|
-
let Firehose;
|
|
225
|
-
(function (Firehose) {
|
|
226
|
-
Firehose["JSON"] = "json";
|
|
227
|
-
Firehose["PLAIN"] = "plain";
|
|
228
|
-
Firehose["RAW"] = "raw";
|
|
229
|
-
})(Firehose = CfnInstanceConsoleLogsOutputFormat.Firehose || (CfnInstanceConsoleLogsOutputFormat.Firehose = {}));
|
|
230
|
-
})(CfnInstanceConsoleLogsOutputFormat || (exports.CfnInstanceConsoleLogsOutputFormat = CfnInstanceConsoleLogsOutputFormat = {}));
|
|
231
|
-
var CfnInstanceConsoleLogsRecordFields;
|
|
232
|
-
(function (CfnInstanceConsoleLogsRecordFields) {
|
|
233
|
-
CfnInstanceConsoleLogsRecordFields["RESOURCE_ARN"] = "resource_arn";
|
|
234
|
-
CfnInstanceConsoleLogsRecordFields["EVENT_TIMESTAMP"] = "event_timestamp";
|
|
235
|
-
CfnInstanceConsoleLogsRecordFields["MESSAGE"] = "message";
|
|
236
|
-
})(CfnInstanceConsoleLogsRecordFields || (exports.CfnInstanceConsoleLogsRecordFields = CfnInstanceConsoleLogsRecordFields = {}));
|
|
237
|
-
/**
|
|
238
|
-
* Builder for CfnVPCLogsMixin to generate ROUTE53_RESOLVER_QUERY_LOGS for CfnVPC
|
|
239
|
-
*
|
|
240
|
-
* @cloudformationResource AWS::EC2::VPC
|
|
241
|
-
* @logType ROUTE53_RESOLVER_QUERY_LOGS
|
|
242
|
-
* @stability external
|
|
243
|
-
*/
|
|
244
|
-
class CfnVPCRoute53ResolverQueryLogs {
|
|
245
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.mixins.CfnVPCRoute53ResolverQueryLogs", version: "2.267.0-alpha.0" };
|
|
246
|
-
/**
|
|
247
|
-
* Send logs to an S3 Bucket
|
|
248
|
-
*
|
|
249
|
-
* @param props Additional properties that are optionally used in log delivery for S3 destinations
|
|
250
|
-
*/
|
|
251
|
-
toS3(bucket, props) {
|
|
252
|
-
try {
|
|
253
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_ec2_mixins_CfnVPCRoute53ResolverQueryLogsS3Props(props);
|
|
254
|
-
}
|
|
255
|
-
catch (error) {
|
|
256
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
257
|
-
Error.captureStackTrace(error, this.toS3);
|
|
258
|
-
}
|
|
259
|
-
throw error;
|
|
260
|
-
}
|
|
261
|
-
{
|
|
262
|
-
return new CfnVPCLogsMixin("ROUTE53_RESOLVER_QUERY_LOGS", new logsDelivery.S3LogsDelivery(bucket, {
|
|
263
|
-
permissionsVersion: logsDelivery.S3LogsDeliveryPermissionsVersion.V1,
|
|
264
|
-
kmsKey: props?.encryptionKey,
|
|
265
|
-
outputFormat: props?.outputFormat,
|
|
266
|
-
providedFields: undefined,
|
|
267
|
-
mandatoryFields: undefined
|
|
268
|
-
}));
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
/**
|
|
272
|
-
* Send logs to a CloudWatch Log Group
|
|
273
|
-
*
|
|
274
|
-
* @param props Additional properties that are optionally used in log delivery for Log Group destinations
|
|
275
|
-
*/
|
|
276
|
-
toLogGroup(logGroup, props) {
|
|
277
|
-
try {
|
|
278
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_ec2_mixins_CfnVPCRoute53ResolverQueryLogsLogGroupProps(props);
|
|
279
|
-
}
|
|
280
|
-
catch (error) {
|
|
281
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
282
|
-
Error.captureStackTrace(error, this.toLogGroup);
|
|
283
|
-
}
|
|
284
|
-
throw error;
|
|
285
|
-
}
|
|
286
|
-
{
|
|
287
|
-
return new CfnVPCLogsMixin("ROUTE53_RESOLVER_QUERY_LOGS", new logsDelivery.LogGroupLogsDelivery(logGroup, {
|
|
288
|
-
outputFormat: props?.outputFormat,
|
|
289
|
-
providedFields: undefined,
|
|
290
|
-
mandatoryFields: undefined
|
|
291
|
-
}));
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
/**
|
|
295
|
-
* Send logs to a Firehose Delivery Stream
|
|
296
|
-
*
|
|
297
|
-
* @param props Additional properties that are optionally used in log delivery for Firehose destinations
|
|
298
|
-
*/
|
|
299
|
-
toFirehose(deliveryStream, props) {
|
|
300
|
-
try {
|
|
301
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_ec2_mixins_CfnVPCRoute53ResolverQueryLogsFirehoseProps(props);
|
|
302
|
-
}
|
|
303
|
-
catch (error) {
|
|
304
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
305
|
-
Error.captureStackTrace(error, this.toFirehose);
|
|
306
|
-
}
|
|
307
|
-
throw error;
|
|
308
|
-
}
|
|
309
|
-
{
|
|
310
|
-
return new CfnVPCLogsMixin("ROUTE53_RESOLVER_QUERY_LOGS", new logsDelivery.FirehoseLogsDelivery(deliveryStream, {
|
|
311
|
-
outputFormat: props?.outputFormat,
|
|
312
|
-
providedFields: undefined,
|
|
313
|
-
mandatoryFields: undefined
|
|
314
|
-
}));
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
/**
|
|
318
|
-
* Delivers logs to a pre-created delivery destination
|
|
319
|
-
*
|
|
320
|
-
* Supported destinations are S3, CWL, FH
|
|
321
|
-
* You are responsible for setting up the correct permissions for your delivery destination, toDestination() does not set up any permissions for you.
|
|
322
|
-
* Delivery destinations that are imported from another stack using CfnDeliveryDestination.fromDeliveryDestinationArn() or CfnDeliveryDestination.fromDeliveryDestinationName() are supported by toDestination().
|
|
323
|
-
*/
|
|
324
|
-
toDestination(destination) {
|
|
325
|
-
{
|
|
326
|
-
return new CfnVPCLogsMixin("ROUTE53_RESOLVER_QUERY_LOGS", new logsDelivery.DestinationLogsDelivery(destination, {
|
|
327
|
-
providedFields: undefined,
|
|
328
|
-
mandatoryFields: undefined
|
|
329
|
-
}));
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
exports.CfnVPCRoute53ResolverQueryLogs = CfnVPCRoute53ResolverQueryLogs;
|
|
334
|
-
/**
|
|
335
|
-
* Specifies a virtual private cloud (VPC).
|
|
336
|
-
*
|
|
337
|
-
* A VPC must have an associated IPv4 CIDR block. You can specify an IPv4 CIDR block or an IPAM-allocated IPv4 CIDR block. To associate an IPv6 CIDR block with the VPC, see [AWS::EC2::VPCCidrBlock](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpccidrblock.html) .
|
|
338
|
-
*
|
|
339
|
-
* For more information, see [Virtual private clouds (VPC)](https://docs.aws.amazon.com/vpc/latest/userguide/configure-your-vpc.html) in the *Amazon VPC User Guide* .
|
|
340
|
-
*
|
|
341
|
-
* @cloudformationResource AWS::EC2::VPC
|
|
342
|
-
* @mixin true
|
|
343
|
-
* @stability external
|
|
344
|
-
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html
|
|
345
|
-
*/
|
|
346
|
-
class CfnVPCLogsMixin extends cdk.Mixin {
|
|
347
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.mixins.CfnVPCLogsMixin", version: "2.267.0-alpha.0" };
|
|
348
|
-
static ROUTE53_RESOLVER_QUERY_LOGS = new CfnVPCRoute53ResolverQueryLogs();
|
|
349
|
-
logType;
|
|
350
|
-
logDelivery;
|
|
351
|
-
/**
|
|
352
|
-
* Create a mixin to enable vended logs for `AWS::EC2::VPC`.
|
|
353
|
-
*
|
|
354
|
-
* @param logType Type of logs that are getting vended
|
|
355
|
-
* @param logDelivery Object in charge of setting up the delivery source, delivery destination, and delivery connection
|
|
356
|
-
*/
|
|
357
|
-
constructor(logType, logDelivery) {
|
|
358
|
-
super();
|
|
359
|
-
try {
|
|
360
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_logs_ILogsDelivery(logDelivery);
|
|
361
|
-
}
|
|
362
|
-
catch (error) {
|
|
363
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
364
|
-
Error.captureStackTrace(error, CfnVPCLogsMixin);
|
|
365
|
-
}
|
|
366
|
-
throw error;
|
|
367
|
-
}
|
|
368
|
-
this.logType = logType;
|
|
369
|
-
this.logDelivery = logDelivery;
|
|
370
|
-
}
|
|
371
|
-
/**
|
|
372
|
-
* Check if this mixin supports the given construct (has vendedLogs property)
|
|
373
|
-
*/
|
|
374
|
-
supports(construct) {
|
|
375
|
-
return (cdk.CfnResource.isCfnResource(construct) && service.CfnVPC.isCfnVPC(construct));
|
|
376
|
-
}
|
|
377
|
-
/**
|
|
378
|
-
* Apply vended logs configuration to the construct
|
|
379
|
-
*/
|
|
380
|
-
applyTo(resource) {
|
|
381
|
-
if (!this.supports(resource)) {
|
|
382
|
-
return;
|
|
383
|
-
}
|
|
384
|
-
const sourceArn = service.CfnVPC.arnForVPC(resource);
|
|
385
|
-
this.logDelivery.bind(resource, this.logType, sourceArn);
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
exports.CfnVPCLogsMixin = CfnVPCLogsMixin;
|
|
389
|
-
/**
|
|
390
|
-
* Output Format options for each destination of CfnVPCRoute53ResolverQueryLogs.
|
|
391
|
-
*/
|
|
392
|
-
class CfnVPCRoute53ResolverQueryLogsOutputFormat {
|
|
393
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.mixins.CfnVPCRoute53ResolverQueryLogsOutputFormat", version: "2.267.0-alpha.0" };
|
|
394
|
-
}
|
|
395
|
-
exports.CfnVPCRoute53ResolverQueryLogsOutputFormat = CfnVPCRoute53ResolverQueryLogsOutputFormat;
|
|
396
|
-
(function (CfnVPCRoute53ResolverQueryLogsOutputFormat) {
|
|
397
|
-
let S3;
|
|
398
|
-
(function (S3) {
|
|
399
|
-
S3["JSON"] = "json";
|
|
400
|
-
S3["PLAIN"] = "plain";
|
|
401
|
-
S3["W3C"] = "w3c";
|
|
402
|
-
S3["PARQUET"] = "parquet";
|
|
403
|
-
})(S3 = CfnVPCRoute53ResolverQueryLogsOutputFormat.S3 || (CfnVPCRoute53ResolverQueryLogsOutputFormat.S3 = {}));
|
|
404
|
-
let LogGroup;
|
|
405
|
-
(function (LogGroup) {
|
|
406
|
-
LogGroup["PLAIN"] = "plain";
|
|
407
|
-
LogGroup["JSON"] = "json";
|
|
408
|
-
})(LogGroup = CfnVPCRoute53ResolverQueryLogsOutputFormat.LogGroup || (CfnVPCRoute53ResolverQueryLogsOutputFormat.LogGroup = {}));
|
|
409
|
-
let Firehose;
|
|
410
|
-
(function (Firehose) {
|
|
411
|
-
Firehose["JSON"] = "json";
|
|
412
|
-
Firehose["PLAIN"] = "plain";
|
|
413
|
-
Firehose["RAW"] = "raw";
|
|
414
|
-
})(Firehose = CfnVPCRoute53ResolverQueryLogsOutputFormat.Firehose || (CfnVPCRoute53ResolverQueryLogsOutputFormat.Firehose = {}));
|
|
415
|
-
})(CfnVPCRoute53ResolverQueryLogsOutputFormat || (exports.CfnVPCRoute53ResolverQueryLogsOutputFormat = CfnVPCRoute53ResolverQueryLogsOutputFormat = {}));
|
|
416
|
-
/**
|
|
417
|
-
* Builder for CfnVPNConnectionLogsMixin to generate EVENT_LOGS for CfnVPNConnection
|
|
418
|
-
*
|
|
419
|
-
* @cloudformationResource AWS::EC2::VPNConnection
|
|
420
|
-
* @logType EVENT_LOGS
|
|
421
|
-
* @stability external
|
|
422
|
-
*/
|
|
423
|
-
class CfnVPNConnectionEventLogs {
|
|
424
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.mixins.CfnVPNConnectionEventLogs", version: "2.267.0-alpha.0" };
|
|
425
|
-
/**
|
|
426
|
-
* Send logs to an S3 Bucket
|
|
427
|
-
*
|
|
428
|
-
* @param props Additional properties that are optionally used in log delivery for S3 destinations
|
|
429
|
-
*/
|
|
430
|
-
toS3(bucket, props) {
|
|
431
|
-
try {
|
|
432
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_ec2_mixins_CfnVPNConnectionEventLogsS3Props(props);
|
|
433
|
-
}
|
|
434
|
-
catch (error) {
|
|
435
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
436
|
-
Error.captureStackTrace(error, this.toS3);
|
|
437
|
-
}
|
|
438
|
-
throw error;
|
|
439
|
-
}
|
|
440
|
-
{
|
|
441
|
-
return new CfnVPNConnectionLogsMixin("EVENT_LOGS", new logsDelivery.S3LogsDelivery(bucket, {
|
|
442
|
-
permissionsVersion: logsDelivery.S3LogsDeliveryPermissionsVersion.V2,
|
|
443
|
-
kmsKey: props?.encryptionKey,
|
|
444
|
-
outputFormat: props?.outputFormat,
|
|
445
|
-
providedFields: props?.recordFields,
|
|
446
|
-
mandatoryFields: ["resource_id", "event_timestamp"]
|
|
447
|
-
}));
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
/**
|
|
451
|
-
* Send logs to a CloudWatch Log Group
|
|
452
|
-
*
|
|
453
|
-
* @param props Additional properties that are optionally used in log delivery for Log Group destinations
|
|
454
|
-
*/
|
|
455
|
-
toLogGroup(logGroup, props) {
|
|
456
|
-
try {
|
|
457
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_ec2_mixins_CfnVPNConnectionEventLogsLogGroupProps(props);
|
|
458
|
-
}
|
|
459
|
-
catch (error) {
|
|
460
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
461
|
-
Error.captureStackTrace(error, this.toLogGroup);
|
|
462
|
-
}
|
|
463
|
-
throw error;
|
|
464
|
-
}
|
|
465
|
-
{
|
|
466
|
-
return new CfnVPNConnectionLogsMixin("EVENT_LOGS", new logsDelivery.LogGroupLogsDelivery(logGroup, {
|
|
467
|
-
outputFormat: props?.outputFormat,
|
|
468
|
-
providedFields: props?.recordFields,
|
|
469
|
-
mandatoryFields: ["resource_id", "event_timestamp"]
|
|
470
|
-
}));
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
/**
|
|
474
|
-
* Send logs to a Firehose Delivery Stream
|
|
475
|
-
*
|
|
476
|
-
* @param props Additional properties that are optionally used in log delivery for Firehose destinations
|
|
477
|
-
*/
|
|
478
|
-
toFirehose(deliveryStream, props) {
|
|
479
|
-
try {
|
|
480
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_ec2_mixins_CfnVPNConnectionEventLogsFirehoseProps(props);
|
|
481
|
-
}
|
|
482
|
-
catch (error) {
|
|
483
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
484
|
-
Error.captureStackTrace(error, this.toFirehose);
|
|
485
|
-
}
|
|
486
|
-
throw error;
|
|
487
|
-
}
|
|
488
|
-
{
|
|
489
|
-
return new CfnVPNConnectionLogsMixin("EVENT_LOGS", new logsDelivery.FirehoseLogsDelivery(deliveryStream, {
|
|
490
|
-
outputFormat: props?.outputFormat,
|
|
491
|
-
providedFields: props?.recordFields,
|
|
492
|
-
mandatoryFields: ["resource_id", "event_timestamp"]
|
|
493
|
-
}));
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
/**
|
|
497
|
-
* Delivers logs to a pre-created delivery destination
|
|
498
|
-
*
|
|
499
|
-
* Supported destinations are S3, CWL, FH
|
|
500
|
-
* You are responsible for setting up the correct permissions for your delivery destination, toDestination() does not set up any permissions for you.
|
|
501
|
-
* Delivery destinations that are imported from another stack using CfnDeliveryDestination.fromDeliveryDestinationArn() or CfnDeliveryDestination.fromDeliveryDestinationName() are supported by toDestination().
|
|
502
|
-
*
|
|
503
|
-
* @param props Additional properties that are optionally used in log delivery for destinations
|
|
504
|
-
*/
|
|
505
|
-
toDestination(destination, props) {
|
|
506
|
-
try {
|
|
507
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_ec2_mixins_CfnVPNConnectionEventLogsDestProps(props);
|
|
508
|
-
}
|
|
509
|
-
catch (error) {
|
|
510
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
511
|
-
Error.captureStackTrace(error, this.toDestination);
|
|
512
|
-
}
|
|
513
|
-
throw error;
|
|
514
|
-
}
|
|
515
|
-
{
|
|
516
|
-
return new CfnVPNConnectionLogsMixin("EVENT_LOGS", new logsDelivery.DestinationLogsDelivery(destination, {
|
|
517
|
-
providedFields: props?.recordFields,
|
|
518
|
-
mandatoryFields: ["resource_id", "event_timestamp"]
|
|
519
|
-
}));
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
exports.CfnVPNConnectionEventLogs = CfnVPNConnectionEventLogs;
|
|
524
|
-
/**
|
|
525
|
-
* Builder for CfnVPNConnectionLogsMixin to generate CONNECTION_LOGS for CfnVPNConnection
|
|
526
|
-
*
|
|
527
|
-
* @cloudformationResource AWS::EC2::VPNConnection
|
|
528
|
-
* @logType CONNECTION_LOGS
|
|
529
|
-
* @stability external
|
|
530
|
-
*/
|
|
531
|
-
class CfnVPNConnectionConnectionLogs {
|
|
532
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.mixins.CfnVPNConnectionConnectionLogs", version: "2.267.0-alpha.0" };
|
|
533
|
-
/**
|
|
534
|
-
* Send logs to an S3 Bucket
|
|
535
|
-
*
|
|
536
|
-
* @param props Additional properties that are optionally used in log delivery for S3 destinations
|
|
537
|
-
*/
|
|
538
|
-
toS3(bucket, props) {
|
|
539
|
-
try {
|
|
540
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_ec2_mixins_CfnVPNConnectionConnectionLogsS3Props(props);
|
|
541
|
-
}
|
|
542
|
-
catch (error) {
|
|
543
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
544
|
-
Error.captureStackTrace(error, this.toS3);
|
|
545
|
-
}
|
|
546
|
-
throw error;
|
|
547
|
-
}
|
|
548
|
-
{
|
|
549
|
-
return new CfnVPNConnectionLogsMixin("CONNECTION_LOGS", new logsDelivery.S3LogsDelivery(bucket, {
|
|
550
|
-
permissionsVersion: logsDelivery.S3LogsDeliveryPermissionsVersion.V2,
|
|
551
|
-
kmsKey: props?.encryptionKey,
|
|
552
|
-
outputFormat: props?.outputFormat,
|
|
553
|
-
providedFields: props?.recordFields,
|
|
554
|
-
mandatoryFields: ["event_timestamp", "details"]
|
|
555
|
-
}));
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
/**
|
|
559
|
-
* Send logs to a CloudWatch Log Group
|
|
560
|
-
*
|
|
561
|
-
* @param props Additional properties that are optionally used in log delivery for Log Group destinations
|
|
562
|
-
*/
|
|
563
|
-
toLogGroup(logGroup, props) {
|
|
564
|
-
try {
|
|
565
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_ec2_mixins_CfnVPNConnectionConnectionLogsLogGroupProps(props);
|
|
566
|
-
}
|
|
567
|
-
catch (error) {
|
|
568
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
569
|
-
Error.captureStackTrace(error, this.toLogGroup);
|
|
570
|
-
}
|
|
571
|
-
throw error;
|
|
572
|
-
}
|
|
573
|
-
{
|
|
574
|
-
return new CfnVPNConnectionLogsMixin("CONNECTION_LOGS", new logsDelivery.LogGroupLogsDelivery(logGroup, {
|
|
575
|
-
outputFormat: props?.outputFormat,
|
|
576
|
-
providedFields: props?.recordFields,
|
|
577
|
-
mandatoryFields: ["event_timestamp", "details"]
|
|
578
|
-
}));
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
/**
|
|
582
|
-
* Send logs to a Firehose Delivery Stream
|
|
583
|
-
*
|
|
584
|
-
* @param props Additional properties that are optionally used in log delivery for Firehose destinations
|
|
585
|
-
*/
|
|
586
|
-
toFirehose(deliveryStream, props) {
|
|
587
|
-
try {
|
|
588
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_ec2_mixins_CfnVPNConnectionConnectionLogsFirehoseProps(props);
|
|
589
|
-
}
|
|
590
|
-
catch (error) {
|
|
591
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
592
|
-
Error.captureStackTrace(error, this.toFirehose);
|
|
593
|
-
}
|
|
594
|
-
throw error;
|
|
595
|
-
}
|
|
596
|
-
{
|
|
597
|
-
return new CfnVPNConnectionLogsMixin("CONNECTION_LOGS", new logsDelivery.FirehoseLogsDelivery(deliveryStream, {
|
|
598
|
-
outputFormat: props?.outputFormat,
|
|
599
|
-
providedFields: props?.recordFields,
|
|
600
|
-
mandatoryFields: ["event_timestamp", "details"]
|
|
601
|
-
}));
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
/**
|
|
605
|
-
* Delivers logs to a pre-created delivery destination
|
|
606
|
-
*
|
|
607
|
-
* Supported destinations are S3, CWL, FH
|
|
608
|
-
* You are responsible for setting up the correct permissions for your delivery destination, toDestination() does not set up any permissions for you.
|
|
609
|
-
* Delivery destinations that are imported from another stack using CfnDeliveryDestination.fromDeliveryDestinationArn() or CfnDeliveryDestination.fromDeliveryDestinationName() are supported by toDestination().
|
|
610
|
-
*
|
|
611
|
-
* @param props Additional properties that are optionally used in log delivery for destinations
|
|
612
|
-
*/
|
|
613
|
-
toDestination(destination, props) {
|
|
614
|
-
try {
|
|
615
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_ec2_mixins_CfnVPNConnectionConnectionLogsDestProps(props);
|
|
616
|
-
}
|
|
617
|
-
catch (error) {
|
|
618
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
619
|
-
Error.captureStackTrace(error, this.toDestination);
|
|
620
|
-
}
|
|
621
|
-
throw error;
|
|
622
|
-
}
|
|
623
|
-
{
|
|
624
|
-
return new CfnVPNConnectionLogsMixin("CONNECTION_LOGS", new logsDelivery.DestinationLogsDelivery(destination, {
|
|
625
|
-
providedFields: props?.recordFields,
|
|
626
|
-
mandatoryFields: ["event_timestamp", "details"]
|
|
627
|
-
}));
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
exports.CfnVPNConnectionConnectionLogs = CfnVPNConnectionConnectionLogs;
|
|
632
|
-
/**
|
|
633
|
-
* Specifies a VPN connection between a virtual private gateway and a VPN customer gateway or a transit gateway and a VPN customer gateway.
|
|
634
|
-
*
|
|
635
|
-
* To specify a VPN connection between a transit gateway and customer gateway, use the `TransitGatewayId` and `CustomerGatewayId` properties.
|
|
636
|
-
*
|
|
637
|
-
* To specify a VPN connection between a virtual private gateway and customer gateway, use the `VpnGatewayId` and `CustomerGatewayId` properties.
|
|
638
|
-
*
|
|
639
|
-
* For more information, see [AWS Site-to-Site VPN](https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html) in the *AWS Site-to-Site VPN User Guide* .
|
|
640
|
-
*
|
|
641
|
-
* @cloudformationResource AWS::EC2::VPNConnection
|
|
642
|
-
* @mixin true
|
|
643
|
-
* @stability external
|
|
644
|
-
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpnconnection.html
|
|
645
|
-
*/
|
|
646
|
-
class CfnVPNConnectionLogsMixin extends cdk.Mixin {
|
|
647
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.mixins.CfnVPNConnectionLogsMixin", version: "2.267.0-alpha.0" };
|
|
648
|
-
static EVENT_LOGS = new CfnVPNConnectionEventLogs();
|
|
649
|
-
static CONNECTION_LOGS = new CfnVPNConnectionConnectionLogs();
|
|
650
|
-
logType;
|
|
651
|
-
logDelivery;
|
|
652
|
-
/**
|
|
653
|
-
* Create a mixin to enable vended logs for `AWS::EC2::VPNConnection`.
|
|
654
|
-
*
|
|
655
|
-
* @param logType Type of logs that are getting vended
|
|
656
|
-
* @param logDelivery Object in charge of setting up the delivery source, delivery destination, and delivery connection
|
|
657
|
-
*/
|
|
658
|
-
constructor(logType, logDelivery) {
|
|
659
|
-
super();
|
|
660
|
-
try {
|
|
661
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_logs_ILogsDelivery(logDelivery);
|
|
662
|
-
}
|
|
663
|
-
catch (error) {
|
|
664
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
665
|
-
Error.captureStackTrace(error, CfnVPNConnectionLogsMixin);
|
|
666
|
-
}
|
|
667
|
-
throw error;
|
|
668
|
-
}
|
|
669
|
-
this.logType = logType;
|
|
670
|
-
this.logDelivery = logDelivery;
|
|
671
|
-
}
|
|
672
|
-
/**
|
|
673
|
-
* Check if this mixin supports the given construct (has vendedLogs property)
|
|
674
|
-
*/
|
|
675
|
-
supports(construct) {
|
|
676
|
-
return (cdk.CfnResource.isCfnResource(construct) && service.CfnVPNConnection.isCfnVPNConnection(construct));
|
|
677
|
-
}
|
|
678
|
-
/**
|
|
679
|
-
* Apply vended logs configuration to the construct
|
|
680
|
-
*/
|
|
681
|
-
applyTo(resource) {
|
|
682
|
-
if (!this.supports(resource)) {
|
|
683
|
-
return;
|
|
684
|
-
}
|
|
685
|
-
const sourceArn = service.CfnVPNConnection.arnForVPNConnection(resource);
|
|
686
|
-
this.logDelivery.bind(resource, this.logType, sourceArn);
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
exports.CfnVPNConnectionLogsMixin = CfnVPNConnectionLogsMixin;
|
|
690
|
-
/**
|
|
691
|
-
* Output Format options for each destination of CfnVPNConnectionEventLogs.
|
|
692
|
-
*/
|
|
693
|
-
class CfnVPNConnectionEventLogsOutputFormat {
|
|
694
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.mixins.CfnVPNConnectionEventLogsOutputFormat", version: "2.267.0-alpha.0" };
|
|
695
|
-
}
|
|
696
|
-
exports.CfnVPNConnectionEventLogsOutputFormat = CfnVPNConnectionEventLogsOutputFormat;
|
|
697
|
-
(function (CfnVPNConnectionEventLogsOutputFormat) {
|
|
698
|
-
let S3;
|
|
699
|
-
(function (S3) {
|
|
700
|
-
S3["JSON"] = "json";
|
|
701
|
-
S3["PLAIN"] = "plain";
|
|
702
|
-
S3["W3C"] = "w3c";
|
|
703
|
-
S3["PARQUET"] = "parquet";
|
|
704
|
-
})(S3 = CfnVPNConnectionEventLogsOutputFormat.S3 || (CfnVPNConnectionEventLogsOutputFormat.S3 = {}));
|
|
705
|
-
let LogGroup;
|
|
706
|
-
(function (LogGroup) {
|
|
707
|
-
LogGroup["PLAIN"] = "plain";
|
|
708
|
-
LogGroup["JSON"] = "json";
|
|
709
|
-
})(LogGroup = CfnVPNConnectionEventLogsOutputFormat.LogGroup || (CfnVPNConnectionEventLogsOutputFormat.LogGroup = {}));
|
|
710
|
-
let Firehose;
|
|
711
|
-
(function (Firehose) {
|
|
712
|
-
Firehose["JSON"] = "json";
|
|
713
|
-
Firehose["PLAIN"] = "plain";
|
|
714
|
-
Firehose["RAW"] = "raw";
|
|
715
|
-
})(Firehose = CfnVPNConnectionEventLogsOutputFormat.Firehose || (CfnVPNConnectionEventLogsOutputFormat.Firehose = {}));
|
|
716
|
-
})(CfnVPNConnectionEventLogsOutputFormat || (exports.CfnVPNConnectionEventLogsOutputFormat = CfnVPNConnectionEventLogsOutputFormat = {}));
|
|
717
|
-
var CfnVPNConnectionEventLogsRecordFields;
|
|
718
|
-
(function (CfnVPNConnectionEventLogsRecordFields) {
|
|
719
|
-
CfnVPNConnectionEventLogsRecordFields["TIMESTAMP"] = "timestamp";
|
|
720
|
-
CfnVPNConnectionEventLogsRecordFields["TYPE"] = "type";
|
|
721
|
-
CfnVPNConnectionEventLogsRecordFields["STATUS"] = "status";
|
|
722
|
-
CfnVPNConnectionEventLogsRecordFields["MESSAGE"] = "message";
|
|
723
|
-
CfnVPNConnectionEventLogsRecordFields["RESOURCE_ID"] = "resource_id";
|
|
724
|
-
CfnVPNConnectionEventLogsRecordFields["EVENT_TIMESTAMP"] = "event_timestamp";
|
|
725
|
-
})(CfnVPNConnectionEventLogsRecordFields || (exports.CfnVPNConnectionEventLogsRecordFields = CfnVPNConnectionEventLogsRecordFields = {}));
|
|
726
|
-
/**
|
|
727
|
-
* Output Format options for each destination of CfnVPNConnectionConnectionLogs.
|
|
728
|
-
*/
|
|
729
|
-
class CfnVPNConnectionConnectionLogsOutputFormat {
|
|
730
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.mixins.CfnVPNConnectionConnectionLogsOutputFormat", version: "2.267.0-alpha.0" };
|
|
731
|
-
}
|
|
732
|
-
exports.CfnVPNConnectionConnectionLogsOutputFormat = CfnVPNConnectionConnectionLogsOutputFormat;
|
|
733
|
-
(function (CfnVPNConnectionConnectionLogsOutputFormat) {
|
|
734
|
-
let S3;
|
|
735
|
-
(function (S3) {
|
|
736
|
-
S3["JSON"] = "json";
|
|
737
|
-
S3["PLAIN"] = "plain";
|
|
738
|
-
S3["W3C"] = "w3c";
|
|
739
|
-
S3["PARQUET"] = "parquet";
|
|
740
|
-
})(S3 = CfnVPNConnectionConnectionLogsOutputFormat.S3 || (CfnVPNConnectionConnectionLogsOutputFormat.S3 = {}));
|
|
741
|
-
let LogGroup;
|
|
742
|
-
(function (LogGroup) {
|
|
743
|
-
LogGroup["PLAIN"] = "plain";
|
|
744
|
-
LogGroup["JSON"] = "json";
|
|
745
|
-
})(LogGroup = CfnVPNConnectionConnectionLogsOutputFormat.LogGroup || (CfnVPNConnectionConnectionLogsOutputFormat.LogGroup = {}));
|
|
746
|
-
let Firehose;
|
|
747
|
-
(function (Firehose) {
|
|
748
|
-
Firehose["JSON"] = "json";
|
|
749
|
-
Firehose["PLAIN"] = "plain";
|
|
750
|
-
Firehose["RAW"] = "raw";
|
|
751
|
-
})(Firehose = CfnVPNConnectionConnectionLogsOutputFormat.Firehose || (CfnVPNConnectionConnectionLogsOutputFormat.Firehose = {}));
|
|
752
|
-
})(CfnVPNConnectionConnectionLogsOutputFormat || (exports.CfnVPNConnectionConnectionLogsOutputFormat = CfnVPNConnectionConnectionLogsOutputFormat = {}));
|
|
753
|
-
var CfnVPNConnectionConnectionLogsRecordFields;
|
|
754
|
-
(function (CfnVPNConnectionConnectionLogsRecordFields) {
|
|
755
|
-
CfnVPNConnectionConnectionLogsRecordFields["TIMESTAMP"] = "timestamp";
|
|
756
|
-
CfnVPNConnectionConnectionLogsRecordFields["DPD_ENABLED"] = "dpd_enabled";
|
|
757
|
-
CfnVPNConnectionConnectionLogsRecordFields["NAT_T_DETECTED"] = "nat_t_detected";
|
|
758
|
-
CfnVPNConnectionConnectionLogsRecordFields["IKE_PHASE1_STATE"] = "ike_phase1_state";
|
|
759
|
-
CfnVPNConnectionConnectionLogsRecordFields["IKE_PHASE2_STATE"] = "ike_phase2_state";
|
|
760
|
-
CfnVPNConnectionConnectionLogsRecordFields["EVENT_TIMESTAMP"] = "event_timestamp";
|
|
761
|
-
CfnVPNConnectionConnectionLogsRecordFields["DETAILS"] = "details";
|
|
762
|
-
})(CfnVPNConnectionConnectionLogsRecordFields || (exports.CfnVPNConnectionConnectionLogsRecordFields = CfnVPNConnectionConnectionLogsRecordFields = {}));
|
|
763
|
-
/**
|
|
764
|
-
* Builder for CfnVerifiedAccessInstanceLogsMixin to generate VERIFIED_ACCESS_LOGS for CfnVerifiedAccessInstance
|
|
765
|
-
*
|
|
766
|
-
* @cloudformationResource AWS::EC2::VerifiedAccessInstance
|
|
767
|
-
* @logType VERIFIED_ACCESS_LOGS
|
|
768
|
-
* @stability external
|
|
769
|
-
*/
|
|
770
|
-
class CfnVerifiedAccessInstanceVerifiedAccessLogs {
|
|
771
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.mixins.CfnVerifiedAccessInstanceVerifiedAccessLogs", version: "2.267.0-alpha.0" };
|
|
772
|
-
/**
|
|
773
|
-
* Send logs to an S3 Bucket
|
|
774
|
-
*
|
|
775
|
-
* @param props Additional properties that are optionally used in log delivery for S3 destinations
|
|
776
|
-
*/
|
|
777
|
-
toS3(bucket, props) {
|
|
778
|
-
try {
|
|
779
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_ec2_mixins_CfnVerifiedAccessInstanceVerifiedAccessLogsS3Props(props);
|
|
780
|
-
}
|
|
781
|
-
catch (error) {
|
|
782
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
783
|
-
Error.captureStackTrace(error, this.toS3);
|
|
784
|
-
}
|
|
785
|
-
throw error;
|
|
786
|
-
}
|
|
787
|
-
{
|
|
788
|
-
return new CfnVerifiedAccessInstanceLogsMixin("VERIFIED_ACCESS_LOGS", new logsDelivery.S3LogsDelivery(bucket, {
|
|
789
|
-
permissionsVersion: logsDelivery.S3LogsDeliveryPermissionsVersion.V1,
|
|
790
|
-
kmsKey: props?.encryptionKey,
|
|
791
|
-
outputFormat: props?.outputFormat,
|
|
792
|
-
providedFields: undefined,
|
|
793
|
-
mandatoryFields: undefined
|
|
794
|
-
}));
|
|
795
|
-
}
|
|
796
|
-
}
|
|
797
|
-
/**
|
|
798
|
-
* Send logs to a CloudWatch Log Group
|
|
799
|
-
*
|
|
800
|
-
* @param props Additional properties that are optionally used in log delivery for Log Group destinations
|
|
801
|
-
*/
|
|
802
|
-
toLogGroup(logGroup, props) {
|
|
803
|
-
try {
|
|
804
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_ec2_mixins_CfnVerifiedAccessInstanceVerifiedAccessLogsLogGroupProps(props);
|
|
805
|
-
}
|
|
806
|
-
catch (error) {
|
|
807
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
808
|
-
Error.captureStackTrace(error, this.toLogGroup);
|
|
809
|
-
}
|
|
810
|
-
throw error;
|
|
811
|
-
}
|
|
812
|
-
{
|
|
813
|
-
return new CfnVerifiedAccessInstanceLogsMixin("VERIFIED_ACCESS_LOGS", new logsDelivery.LogGroupLogsDelivery(logGroup, {
|
|
814
|
-
outputFormat: props?.outputFormat,
|
|
815
|
-
providedFields: undefined,
|
|
816
|
-
mandatoryFields: undefined
|
|
817
|
-
}));
|
|
818
|
-
}
|
|
819
|
-
}
|
|
820
|
-
/**
|
|
821
|
-
* Send logs to a Firehose Delivery Stream
|
|
822
|
-
*
|
|
823
|
-
* @param props Additional properties that are optionally used in log delivery for Firehose destinations
|
|
824
|
-
*/
|
|
825
|
-
toFirehose(deliveryStream, props) {
|
|
826
|
-
try {
|
|
827
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_ec2_mixins_CfnVerifiedAccessInstanceVerifiedAccessLogsFirehoseProps(props);
|
|
828
|
-
}
|
|
829
|
-
catch (error) {
|
|
830
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
831
|
-
Error.captureStackTrace(error, this.toFirehose);
|
|
832
|
-
}
|
|
833
|
-
throw error;
|
|
834
|
-
}
|
|
835
|
-
{
|
|
836
|
-
return new CfnVerifiedAccessInstanceLogsMixin("VERIFIED_ACCESS_LOGS", new logsDelivery.FirehoseLogsDelivery(deliveryStream, {
|
|
837
|
-
outputFormat: props?.outputFormat,
|
|
838
|
-
providedFields: undefined,
|
|
839
|
-
mandatoryFields: undefined
|
|
840
|
-
}));
|
|
841
|
-
}
|
|
842
|
-
}
|
|
843
|
-
/**
|
|
844
|
-
* Delivers logs to a pre-created delivery destination
|
|
845
|
-
*
|
|
846
|
-
* Supported destinations are S3, CWL, FH
|
|
847
|
-
* You are responsible for setting up the correct permissions for your delivery destination, toDestination() does not set up any permissions for you.
|
|
848
|
-
* Delivery destinations that are imported from another stack using CfnDeliveryDestination.fromDeliveryDestinationArn() or CfnDeliveryDestination.fromDeliveryDestinationName() are supported by toDestination().
|
|
849
|
-
*/
|
|
850
|
-
toDestination(destination) {
|
|
851
|
-
{
|
|
852
|
-
return new CfnVerifiedAccessInstanceLogsMixin("VERIFIED_ACCESS_LOGS", new logsDelivery.DestinationLogsDelivery(destination, {
|
|
853
|
-
providedFields: undefined,
|
|
854
|
-
mandatoryFields: undefined
|
|
855
|
-
}));
|
|
856
|
-
}
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
-
exports.CfnVerifiedAccessInstanceVerifiedAccessLogs = CfnVerifiedAccessInstanceVerifiedAccessLogs;
|
|
860
|
-
/**
|
|
861
|
-
* An AWS Verified Access instance is a regional entity that evaluates application requests and grants access only when your security requirements are met.
|
|
862
|
-
*
|
|
863
|
-
* @cloudformationResource AWS::EC2::VerifiedAccessInstance
|
|
864
|
-
* @mixin true
|
|
865
|
-
* @stability external
|
|
866
|
-
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-verifiedaccessinstance.html
|
|
867
|
-
*/
|
|
868
|
-
class CfnVerifiedAccessInstanceLogsMixin extends cdk.Mixin {
|
|
869
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.mixins.CfnVerifiedAccessInstanceLogsMixin", version: "2.267.0-alpha.0" };
|
|
870
|
-
static VERIFIED_ACCESS_LOGS = new CfnVerifiedAccessInstanceVerifiedAccessLogs();
|
|
871
|
-
logType;
|
|
872
|
-
logDelivery;
|
|
873
|
-
/**
|
|
874
|
-
* Create a mixin to enable vended logs for `AWS::EC2::VerifiedAccessInstance`.
|
|
875
|
-
*
|
|
876
|
-
* @param logType Type of logs that are getting vended
|
|
877
|
-
* @param logDelivery Object in charge of setting up the delivery source, delivery destination, and delivery connection
|
|
878
|
-
*/
|
|
879
|
-
constructor(logType, logDelivery) {
|
|
880
|
-
super();
|
|
881
|
-
try {
|
|
882
|
-
jsiiDeprecationWarnings._aws_cdk_mixins_preview_aws_logs_ILogsDelivery(logDelivery);
|
|
883
|
-
}
|
|
884
|
-
catch (error) {
|
|
885
|
-
if (process.env.JSII_DEBUG !== "1" && error.name === "DeprecationError") {
|
|
886
|
-
Error.captureStackTrace(error, CfnVerifiedAccessInstanceLogsMixin);
|
|
887
|
-
}
|
|
888
|
-
throw error;
|
|
889
|
-
}
|
|
890
|
-
this.logType = logType;
|
|
891
|
-
this.logDelivery = logDelivery;
|
|
892
|
-
}
|
|
893
|
-
/**
|
|
894
|
-
* Check if this mixin supports the given construct (has vendedLogs property)
|
|
895
|
-
*/
|
|
896
|
-
supports(construct) {
|
|
897
|
-
return (cdk.CfnResource.isCfnResource(construct) && service.CfnVerifiedAccessInstance.isCfnVerifiedAccessInstance(construct));
|
|
898
|
-
}
|
|
899
|
-
/**
|
|
900
|
-
* Apply vended logs configuration to the construct
|
|
901
|
-
*/
|
|
902
|
-
applyTo(resource) {
|
|
903
|
-
if (!this.supports(resource)) {
|
|
904
|
-
return;
|
|
905
|
-
}
|
|
906
|
-
const sourceArn = service.CfnVerifiedAccessInstance.arnForVerifiedAccessInstance(resource);
|
|
907
|
-
this.logDelivery.bind(resource, this.logType, sourceArn);
|
|
908
|
-
}
|
|
909
|
-
}
|
|
910
|
-
exports.CfnVerifiedAccessInstanceLogsMixin = CfnVerifiedAccessInstanceLogsMixin;
|
|
911
|
-
/**
|
|
912
|
-
* Output Format options for each destination of CfnVerifiedAccessInstanceVerifiedAccessLogs.
|
|
913
|
-
*/
|
|
914
|
-
class CfnVerifiedAccessInstanceVerifiedAccessLogsOutputFormat {
|
|
915
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.mixins.CfnVerifiedAccessInstanceVerifiedAccessLogsOutputFormat", version: "2.267.0-alpha.0" };
|
|
916
|
-
}
|
|
917
|
-
exports.CfnVerifiedAccessInstanceVerifiedAccessLogsOutputFormat = CfnVerifiedAccessInstanceVerifiedAccessLogsOutputFormat;
|
|
918
|
-
(function (CfnVerifiedAccessInstanceVerifiedAccessLogsOutputFormat) {
|
|
919
|
-
let S3;
|
|
920
|
-
(function (S3) {
|
|
921
|
-
S3["JSON"] = "json";
|
|
922
|
-
S3["PLAIN"] = "plain";
|
|
923
|
-
S3["W3C"] = "w3c";
|
|
924
|
-
S3["PARQUET"] = "parquet";
|
|
925
|
-
})(S3 = CfnVerifiedAccessInstanceVerifiedAccessLogsOutputFormat.S3 || (CfnVerifiedAccessInstanceVerifiedAccessLogsOutputFormat.S3 = {}));
|
|
926
|
-
let LogGroup;
|
|
927
|
-
(function (LogGroup) {
|
|
928
|
-
LogGroup["PLAIN"] = "plain";
|
|
929
|
-
LogGroup["JSON"] = "json";
|
|
930
|
-
})(LogGroup = CfnVerifiedAccessInstanceVerifiedAccessLogsOutputFormat.LogGroup || (CfnVerifiedAccessInstanceVerifiedAccessLogsOutputFormat.LogGroup = {}));
|
|
931
|
-
let Firehose;
|
|
932
|
-
(function (Firehose) {
|
|
933
|
-
Firehose["JSON"] = "json";
|
|
934
|
-
Firehose["PLAIN"] = "plain";
|
|
935
|
-
Firehose["RAW"] = "raw";
|
|
936
|
-
})(Firehose = CfnVerifiedAccessInstanceVerifiedAccessLogsOutputFormat.Firehose || (CfnVerifiedAccessInstanceVerifiedAccessLogsOutputFormat.Firehose = {}));
|
|
937
|
-
})(CfnVerifiedAccessInstanceVerifiedAccessLogsOutputFormat || (exports.CfnVerifiedAccessInstanceVerifiedAccessLogsOutputFormat = CfnVerifiedAccessInstanceVerifiedAccessLogsOutputFormat = {}));
|
|
938
43
|
/**
|
|
939
44
|
* Builder for CfnRouteServerPeerLogsMixin to generate EVENT_LOGS for CfnRouteServerPeer
|
|
940
45
|
*
|
|
@@ -943,7 +48,7 @@ exports.CfnVerifiedAccessInstanceVerifiedAccessLogsOutputFormat = CfnVerifiedAcc
|
|
|
943
48
|
* @stability external
|
|
944
49
|
*/
|
|
945
50
|
class CfnRouteServerPeerEventLogs {
|
|
946
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.mixins.CfnRouteServerPeerEventLogs", version: "2.
|
|
51
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.mixins.CfnRouteServerPeerEventLogs", version: "2.268.0-alpha.0" };
|
|
947
52
|
/**
|
|
948
53
|
* Send logs to an S3 Bucket
|
|
949
54
|
*
|
|
@@ -1054,7 +159,7 @@ exports.CfnRouteServerPeerEventLogs = CfnRouteServerPeerEventLogs;
|
|
|
1054
159
|
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-routeserverpeer.html
|
|
1055
160
|
*/
|
|
1056
161
|
class CfnRouteServerPeerLogsMixin extends cdk.Mixin {
|
|
1057
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.mixins.CfnRouteServerPeerLogsMixin", version: "2.
|
|
162
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.mixins.CfnRouteServerPeerLogsMixin", version: "2.268.0-alpha.0" };
|
|
1058
163
|
static EVENT_LOGS = new CfnRouteServerPeerEventLogs();
|
|
1059
164
|
logType;
|
|
1060
165
|
logDelivery;
|
|
@@ -1100,14 +205,14 @@ exports.CfnRouteServerPeerLogsMixin = CfnRouteServerPeerLogsMixin;
|
|
|
1100
205
|
* Output Format options for each destination of CfnRouteServerPeerEventLogs.
|
|
1101
206
|
*/
|
|
1102
207
|
class CfnRouteServerPeerEventLogsOutputFormat {
|
|
1103
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.mixins.CfnRouteServerPeerEventLogsOutputFormat", version: "2.
|
|
208
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.mixins.CfnRouteServerPeerEventLogsOutputFormat", version: "2.268.0-alpha.0" };
|
|
1104
209
|
}
|
|
1105
210
|
exports.CfnRouteServerPeerEventLogsOutputFormat = CfnRouteServerPeerEventLogsOutputFormat;
|
|
1106
211
|
(function (CfnRouteServerPeerEventLogsOutputFormat) {
|
|
1107
212
|
let S3;
|
|
1108
213
|
(function (S3) {
|
|
1109
|
-
S3["JSON"] = "json";
|
|
1110
214
|
S3["PLAIN"] = "plain";
|
|
215
|
+
S3["JSON"] = "json";
|
|
1111
216
|
S3["W3C"] = "w3c";
|
|
1112
217
|
S3["PARQUET"] = "parquet";
|
|
1113
218
|
})(S3 = CfnRouteServerPeerEventLogsOutputFormat.S3 || (CfnRouteServerPeerEventLogsOutputFormat.S3 = {}));
|
|
@@ -1118,13 +223,15 @@ exports.CfnRouteServerPeerEventLogsOutputFormat = CfnRouteServerPeerEventLogsOut
|
|
|
1118
223
|
})(LogGroup = CfnRouteServerPeerEventLogsOutputFormat.LogGroup || (CfnRouteServerPeerEventLogsOutputFormat.LogGroup = {}));
|
|
1119
224
|
let Firehose;
|
|
1120
225
|
(function (Firehose) {
|
|
1121
|
-
Firehose["JSON"] = "json";
|
|
1122
226
|
Firehose["PLAIN"] = "plain";
|
|
227
|
+
Firehose["JSON"] = "json";
|
|
1123
228
|
Firehose["RAW"] = "raw";
|
|
1124
229
|
})(Firehose = CfnRouteServerPeerEventLogsOutputFormat.Firehose || (CfnRouteServerPeerEventLogsOutputFormat.Firehose = {}));
|
|
1125
230
|
})(CfnRouteServerPeerEventLogsOutputFormat || (exports.CfnRouteServerPeerEventLogsOutputFormat = CfnRouteServerPeerEventLogsOutputFormat = {}));
|
|
1126
231
|
var CfnRouteServerPeerEventLogsRecordFields;
|
|
1127
232
|
(function (CfnRouteServerPeerEventLogsRecordFields) {
|
|
233
|
+
CfnRouteServerPeerEventLogsRecordFields["TIMESTAMP"] = "timestamp";
|
|
234
|
+
CfnRouteServerPeerEventLogsRecordFields["RESOURCE_ID"] = "resource_id";
|
|
1128
235
|
CfnRouteServerPeerEventLogsRecordFields["STATUS"] = "status";
|
|
1129
236
|
CfnRouteServerPeerEventLogsRecordFields["MESSAGE"] = "message";
|
|
1130
237
|
CfnRouteServerPeerEventLogsRecordFields["RESOURCE_ARN"] = "resource_arn";
|