@aws-cdk/mixins-preview 2.274.0-alpha.0 → 2.276.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.
Files changed (106) hide show
  1. package/.jsii.gz +0 -0
  2. package/.jsii.tabl.json.gz +0 -0
  3. package/.warnings.jsii.js +51 -12
  4. package/lib/services/aws-appmesh/events.generated.js +1 -1
  5. package/lib/services/aws-athena/events.generated.js +3 -3
  6. package/lib/services/aws-autoscaling/events.generated.js +14 -14
  7. package/lib/services/aws-b2bi/events.generated.js +4 -4
  8. package/lib/services/aws-batch/events.generated.js +2 -2
  9. package/lib/services/aws-bedrock/logs-delivery-mixins.generated.js +12 -12
  10. package/lib/services/aws-bedrockagentcore/logs-delivery-mixins.generated.js +34 -34
  11. package/lib/services/aws-chime/events.generated.js +1 -1
  12. package/lib/services/aws-cloudformation/events.generated.js +1 -1
  13. package/lib/services/aws-cloudfront/logs-delivery-mixins.generated.js +5 -5
  14. package/lib/services/aws-cloudwatch/events.generated.js +5 -5
  15. package/lib/services/aws-codebuild/events.generated.js +7 -7
  16. package/lib/services/aws-codecommit/events.generated.js +10 -10
  17. package/lib/services/aws-codedeploy/events.generated.js +2 -2
  18. package/lib/services/aws-codeguruprofiler/events.generated.js +1 -1
  19. package/lib/services/aws-codepipeline/events.generated.js +3 -3
  20. package/lib/services/aws-connect/events.generated.js +7 -7
  21. package/lib/services/aws-dataexchange/events.generated.js +4 -4
  22. package/lib/services/aws-datasync/events.generated.js +4 -4
  23. package/lib/services/aws-deadline/events.generated.js +1 -1
  24. package/lib/services/aws-devopsagent/logs-delivery-mixins.generated.js +3 -3
  25. package/lib/services/aws-devopsguru/events.generated.js +5 -5
  26. package/lib/services/aws-dlm/events.generated.js +2 -2
  27. package/lib/services/aws-ec2/events.generated.js +11 -11
  28. package/lib/services/aws-ec2/logs-delivery-mixins.generated.d.ts +136 -0
  29. package/lib/services/aws-ec2/logs-delivery-mixins.generated.js +200 -4
  30. package/lib/services/aws-ecr/events.generated.js +13 -13
  31. package/lib/services/aws-ecs/events.generated.js +9 -9
  32. package/lib/services/aws-ecs/logs-delivery-mixins.generated.js +3 -3
  33. package/lib/services/aws-eks/logs-delivery-mixins.generated.d.ts +226 -102
  34. package/lib/services/aws-eks/logs-delivery-mixins.generated.js +273 -112
  35. package/lib/services/aws-elasticache/events.generated.js +10 -10
  36. package/lib/services/aws-elasticloadbalancing/events.generated.js +1 -1
  37. package/lib/services/aws-elasticloadbalancingv2/logs-delivery-mixins.generated.js +9 -9
  38. package/lib/services/aws-elementalinference/logs-delivery-mixins.generated.js +3 -3
  39. package/lib/services/aws-emr/events.generated.js +7 -7
  40. package/lib/services/aws-entityresolution/logs-delivery-mixins.generated.js +6 -6
  41. package/lib/services/aws-events/events.generated.js +1 -1
  42. package/lib/services/aws-events/logs-delivery-mixins.generated.js +7 -7
  43. package/lib/services/aws-fis/events.generated.js +1 -1
  44. package/lib/services/aws-gamelift/.mixins.jsiirc.json +16 -0
  45. package/lib/services/aws-gamelift/events.generated.js +2 -2
  46. package/lib/services/aws-gamelift/index.d.ts +1 -0
  47. package/lib/services/aws-gamelift/index.js +2 -1
  48. package/lib/services/aws-gamelift/logs-delivery-mixins.generated.d.ts +143 -0
  49. package/lib/services/aws-gamelift/logs-delivery-mixins.generated.js +240 -0
  50. package/lib/services/aws-gamelift/mixins.d.ts +1 -0
  51. package/lib/services/aws-gamelift/mixins.js +17 -0
  52. package/lib/services/aws-glue/events.generated.js +12 -12
  53. package/lib/services/aws-guardduty/events.generated.js +8 -8
  54. package/lib/services/aws-healthimaging/events.generated.js +39 -39
  55. package/lib/services/aws-healthlake/events.generated.js +14 -14
  56. package/lib/services/aws-imagebuilder/events.generated.js +3 -3
  57. package/lib/services/aws-iotanalytics/events.generated.js +4 -4
  58. package/lib/services/aws-ivs/events.generated.js +4 -4
  59. package/lib/services/aws-kms/events.generated.js +9 -9
  60. package/lib/services/aws-logs/events.generated.js +3 -3
  61. package/lib/services/aws-logs/logs-delivery.js +5 -5
  62. package/lib/services/aws-logs/logs-destination.js +4 -4
  63. package/lib/services/aws-managedblockchain/events.generated.js +2 -2
  64. package/lib/services/aws-medialive/events.generated.js +7 -7
  65. package/lib/services/aws-mediapackage/events.generated.js +5 -5
  66. package/lib/services/aws-mediapackagev2/logs-delivery-mixins.generated.js +5 -5
  67. package/lib/services/aws-mediatailor/logs-delivery-mixins.generated.js +7 -7
  68. package/lib/services/aws-mgn/events.generated.js +3 -3
  69. package/lib/services/aws-networkfirewall/events.generated.js +3 -3
  70. package/lib/services/aws-networkfirewall/logs-delivery-mixins.generated.js +7 -7
  71. package/lib/services/aws-networkmanager/events.generated.js +5 -5
  72. package/lib/services/aws-omics/events.generated.js +24 -24
  73. package/lib/services/aws-opsworks/events.generated.js +4 -4
  74. package/lib/services/aws-organizations/events.generated.js +3 -3
  75. package/lib/services/aws-pcs/logs-delivery-mixins.generated.d.ts +85 -85
  76. package/lib/services/aws-pcs/logs-delivery-mixins.generated.js +99 -99
  77. package/lib/services/aws-qbusiness/logs-delivery-mixins.generated.js +5 -5
  78. package/lib/services/aws-qldb/events.generated.js +1 -1
  79. package/lib/services/aws-rds/events.generated.js +7 -7
  80. package/lib/services/aws-route53recoveryreadiness/events.generated.js +9 -9
  81. package/lib/services/aws-route53resolver/events.generated.js +5 -5
  82. package/lib/services/aws-rtbfabric/logs-delivery-mixins.generated.js +3 -3
  83. package/lib/services/aws-s3/events.generated.js +23 -23
  84. package/lib/services/aws-s3/logs-delivery-mixins.generated.js +3 -3
  85. package/lib/services/aws-sagemaker/events.generated.js +14 -14
  86. package/lib/services/aws-securityhub/events.generated.js +3 -3
  87. package/lib/services/aws-securityhub/logs-delivery-mixins.generated.js +6 -6
  88. package/lib/services/aws-ses/events.generated.js +2 -2
  89. package/lib/services/aws-ses/logs-delivery-mixins.generated.js +8 -8
  90. package/lib/services/aws-shield/logs-delivery-mixins.generated.js +3 -3
  91. package/lib/services/aws-ssm/events.generated.js +1 -1
  92. package/lib/services/aws-storagegateway/events.generated.js +3 -3
  93. package/lib/services/aws-synthetics/events.generated.js +3 -3
  94. package/lib/services/aws-transcribe/events.generated.js +3 -3
  95. package/lib/services/aws-transfer/events.generated.js +74 -74
  96. package/lib/services/aws-translate/events.generated.js +2 -2
  97. package/lib/services/aws-voiceid/events.generated.js +17 -17
  98. package/lib/services/aws-wellarchitected/events.generated.js +1 -1
  99. package/lib/services/aws-wisdom/logs-delivery-mixins.generated.js +3 -3
  100. package/lib/services/aws-workspaces/events.generated.js +3 -3
  101. package/lib/services/aws-xray/events.generated.js +1 -1
  102. package/package.json +10 -10
  103. package/scripts/gen.js +2 -2
  104. package/scripts/spec2eventbridge/builder.js +4 -1
  105. package/scripts/spec2eventbridge/generate.d.ts +1 -1
  106. package/scripts/spec2eventbridge/generate.js +2 -1
@@ -7,7 +7,7 @@ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
7
7
  * EventBridge event pattern for aws.connect@CodeConnectContact
8
8
  */
9
9
  class CodeConnectContact {
10
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_connect.events.CodeConnectContact", version: "2.274.0-alpha.0" };
10
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_connect.events.CodeConnectContact", version: "2.276.0-alpha.0" };
11
11
  /**
12
12
  * EventBridge event pattern for Amazon Connect Contact Event
13
13
  */
@@ -71,7 +71,7 @@ function convertCodeConnectContactDetailToEventPattern(obj, iRef) {
71
71
  eventType: obj?.eventType,
72
72
  initialContactId: obj?.initialContactId,
73
73
  initiationMethod: obj?.initiationMethod,
74
- instanceArn: (obj?.instanceArn ?? [iRef?.instanceRef.instanceArn]),
74
+ instanceArn: (obj?.instanceArn ?? ((iRef === undefined) ? undefined : [iRef.instanceRef.instanceArn])),
75
75
  previousContactId: obj?.previousContactId
76
76
  };
77
77
  for (const [key, value] of Object.entries(ret)) {
@@ -87,7 +87,7 @@ function convertCodeConnectContactDetailToEventPattern(obj, iRef) {
87
87
  * EventBridge event patterns for Instance
88
88
  */
89
89
  class InstanceEvents {
90
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_connect.events.InstanceEvents", version: "2.274.0-alpha.0" };
90
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_connect.events.InstanceEvents", version: "2.276.0-alpha.0" };
91
91
  /**
92
92
  * Create InstanceEvents from a Instance reference
93
93
  */
@@ -173,7 +173,7 @@ exports.InstanceEvents = InstanceEvents;
173
173
  * EventBridge event pattern for aws.connect@ContactLensPostCallRulesMatched
174
174
  */
175
175
  class ContactLensPostCallRulesMatched {
176
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_connect.events.ContactLensPostCallRulesMatched", version: "2.274.0-alpha.0" };
176
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_connect.events.ContactLensPostCallRulesMatched", version: "2.276.0-alpha.0" };
177
177
  /**
178
178
  * EventBridge event pattern for Contact Lens Post Call Rules Matched
179
179
  */
@@ -204,7 +204,7 @@ function convertContactLensPostCallRulesMatchedDetailToEventPattern(obj, iRef) {
204
204
  actionName: obj?.actionName,
205
205
  agentArn: obj?.agentArn,
206
206
  contactArn: obj?.contactArn,
207
- instanceArn: (obj?.instanceArn ?? [iRef?.instanceRef.instanceArn]),
207
+ instanceArn: (obj?.instanceArn ?? ((iRef === undefined) ? undefined : [iRef.instanceRef.instanceArn])),
208
208
  queueArn: obj?.queueArn,
209
209
  ruleName: obj?.ruleName,
210
210
  version: obj?.version
@@ -222,7 +222,7 @@ function convertContactLensPostCallRulesMatchedDetailToEventPattern(obj, iRef) {
222
222
  * EventBridge event pattern for aws.connect@ContactLensRealtimeRulesMatched
223
223
  */
224
224
  class ContactLensRealtimeRulesMatched {
225
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_connect.events.ContactLensRealtimeRulesMatched", version: "2.274.0-alpha.0" };
225
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_connect.events.ContactLensRealtimeRulesMatched", version: "2.276.0-alpha.0" };
226
226
  /**
227
227
  * EventBridge event pattern for Contact Lens Realtime Rules Matched
228
228
  */
@@ -253,7 +253,7 @@ function convertContactLensRealtimeRulesMatchedDetailToEventPattern(obj, iRef) {
253
253
  actionName: obj?.actionName,
254
254
  agentArn: obj?.agentArn,
255
255
  contactArn: obj?.contactArn,
256
- instanceArn: (obj?.instanceArn ?? [iRef?.instanceRef.instanceArn]),
256
+ instanceArn: (obj?.instanceArn ?? ((iRef === undefined) ? undefined : [iRef.instanceRef.instanceArn])),
257
257
  queueArn: obj?.queueArn,
258
258
  ruleName: obj?.ruleName,
259
259
  version: obj?.version
@@ -7,7 +7,7 @@ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
7
7
  * EventBridge event pattern for aws.dataexchange@DataSetUpdateDelayed
8
8
  */
9
9
  class DataSetUpdateDelayed {
10
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_dataexchange.events.DataSetUpdateDelayed", version: "2.274.0-alpha.0" };
10
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_dataexchange.events.DataSetUpdateDelayed", version: "2.276.0-alpha.0" };
11
11
  /**
12
12
  * EventBridge event pattern for Data Set Update Delayed
13
13
  */
@@ -164,7 +164,7 @@ function convertDataSetUpdateDelayedDetailToEventPattern(obj) {
164
164
  * EventBridge event pattern for aws.dataexchange@DataUpdatedInDataSet
165
165
  */
166
166
  class DataUpdatedInDataSet {
167
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_dataexchange.events.DataUpdatedInDataSet", version: "2.274.0-alpha.0" };
167
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_dataexchange.events.DataUpdatedInDataSet", version: "2.276.0-alpha.0" };
168
168
  /**
169
169
  * EventBridge event pattern for Data Updated in Data Set
170
170
  */
@@ -350,7 +350,7 @@ function convertDataUpdatedInDataSetDetailToEventPattern(obj) {
350
350
  * EventBridge event pattern for aws.dataexchange@DeprecationPlannedForDataSet
351
351
  */
352
352
  class DeprecationPlannedForDataSet {
353
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_dataexchange.events.DeprecationPlannedForDataSet", version: "2.274.0-alpha.0" };
353
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_dataexchange.events.DeprecationPlannedForDataSet", version: "2.276.0-alpha.0" };
354
354
  /**
355
355
  * EventBridge event pattern for Deprecation Planned for Data Set
356
356
  */
@@ -537,7 +537,7 @@ function convertDeprecationPlannedForDataSetDetailToEventPattern(obj) {
537
537
  * EventBridge event pattern for aws.dataexchange@SchemaChangePlannedForDataSet
538
538
  */
539
539
  class SchemaChangePlannedForDataSet {
540
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_dataexchange.events.SchemaChangePlannedForDataSet", version: "2.274.0-alpha.0" };
540
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_dataexchange.events.SchemaChangePlannedForDataSet", version: "2.276.0-alpha.0" };
541
541
  /**
542
542
  * EventBridge event pattern for Schema Change Planned for Data Set
543
543
  */
@@ -7,7 +7,7 @@ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
7
7
  * EventBridge event pattern for aws.datasync@DataSyncAgentStateChange
8
8
  */
9
9
  class DataSyncAgentStateChange {
10
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_datasync.events.DataSyncAgentStateChange", version: "2.274.0-alpha.0" };
10
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_datasync.events.DataSyncAgentStateChange", version: "2.276.0-alpha.0" };
11
11
  /**
12
12
  * EventBridge event pattern for DataSync Agent State Change
13
13
  */
@@ -50,7 +50,7 @@ function convertDataSyncAgentStateChangeDetailToEventPattern(obj) {
50
50
  * EventBridge event pattern for aws.datasync@DataSyncLocationStateChange
51
51
  */
52
52
  class DataSyncLocationStateChange {
53
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_datasync.events.DataSyncLocationStateChange", version: "2.274.0-alpha.0" };
53
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_datasync.events.DataSyncLocationStateChange", version: "2.276.0-alpha.0" };
54
54
  /**
55
55
  * EventBridge event pattern for DataSync Location State Change
56
56
  */
@@ -93,7 +93,7 @@ function convertDataSyncLocationStateChangeDetailToEventPattern(obj) {
93
93
  * EventBridge event pattern for aws.datasync@DataSyncTaskExecutionStateChange
94
94
  */
95
95
  class DataSyncTaskExecutionStateChange {
96
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_datasync.events.DataSyncTaskExecutionStateChange", version: "2.274.0-alpha.0" };
96
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_datasync.events.DataSyncTaskExecutionStateChange", version: "2.276.0-alpha.0" };
97
97
  /**
98
98
  * EventBridge event pattern for DataSync Task Execution State Change
99
99
  */
@@ -136,7 +136,7 @@ function convertDataSyncTaskExecutionStateChangeDetailToEventPattern(obj) {
136
136
  * EventBridge event pattern for aws.datasync@DataSyncTaskStateChange
137
137
  */
138
138
  class DataSyncTaskStateChange {
139
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_datasync.events.DataSyncTaskStateChange", version: "2.274.0-alpha.0" };
139
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_datasync.events.DataSyncTaskStateChange", version: "2.276.0-alpha.0" };
140
140
  /**
141
141
  * EventBridge event pattern for DataSync Task State Change
142
142
  */
@@ -7,7 +7,7 @@ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
7
7
  * EventBridge event pattern for aws.deadline@FleetSizeRecommendationChange
8
8
  */
9
9
  class FleetSizeRecommendationChange {
10
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_deadline.events.FleetSizeRecommendationChange", version: "2.274.0-alpha.0" };
10
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_deadline.events.FleetSizeRecommendationChange", version: "2.276.0-alpha.0" };
11
11
  /**
12
12
  * EventBridge event pattern for Fleet Size Recommendation Change
13
13
  */
@@ -48,7 +48,7 @@ const service = __importStar(require("aws-cdk-lib/aws-devopsagent"));
48
48
  * @stability external
49
49
  */
50
50
  class CfnAgentSpaceApplicationLogs {
51
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_devopsagent.mixins.CfnAgentSpaceApplicationLogs", version: "2.274.0-alpha.0" };
51
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_devopsagent.mixins.CfnAgentSpaceApplicationLogs", version: "2.276.0-alpha.0" };
52
52
  /**
53
53
  * Send logs to an S3 Bucket
54
54
  *
@@ -157,7 +157,7 @@ exports.CfnAgentSpaceApplicationLogs = CfnAgentSpaceApplicationLogs;
157
157
  * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-devopsagent-agentspace.html
158
158
  */
159
159
  class CfnAgentSpaceLogsMixin extends cdk.Mixin {
160
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_devopsagent.mixins.CfnAgentSpaceLogsMixin", version: "2.274.0-alpha.0" };
160
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_devopsagent.mixins.CfnAgentSpaceLogsMixin", version: "2.276.0-alpha.0" };
161
161
  static APPLICATION_LOGS = new CfnAgentSpaceApplicationLogs();
162
162
  logType;
163
163
  logDelivery;
@@ -203,7 +203,7 @@ exports.CfnAgentSpaceLogsMixin = CfnAgentSpaceLogsMixin;
203
203
  * Output Format options for each destination of CfnAgentSpaceApplicationLogs.
204
204
  */
205
205
  class CfnAgentSpaceApplicationLogsOutputFormat {
206
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_devopsagent.mixins.CfnAgentSpaceApplicationLogsOutputFormat", version: "2.274.0-alpha.0" };
206
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_devopsagent.mixins.CfnAgentSpaceApplicationLogsOutputFormat", version: "2.276.0-alpha.0" };
207
207
  }
208
208
  exports.CfnAgentSpaceApplicationLogsOutputFormat = CfnAgentSpaceApplicationLogsOutputFormat;
209
209
  (function (CfnAgentSpaceApplicationLogsOutputFormat) {
@@ -7,7 +7,7 @@ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
7
7
  * EventBridge event pattern for aws.devopsguru@DevOpsGuruInsightClosed
8
8
  */
9
9
  class DevOpsGuruInsightClosed {
10
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_devopsguru.events.DevOpsGuruInsightClosed", version: "2.274.0-alpha.0" };
10
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_devopsguru.events.DevOpsGuruInsightClosed", version: "2.276.0-alpha.0" };
11
11
  /**
12
12
  * EventBridge event pattern for DevOps Guru Insight Closed
13
13
  */
@@ -290,7 +290,7 @@ function convertDevOpsGuruInsightClosedDetailToEventPattern(obj) {
290
290
  * EventBridge event pattern for aws.devopsguru@DevOpsGuruInsightSeverityUpgraded
291
291
  */
292
292
  class DevOpsGuruInsightSeverityUpgraded {
293
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_devopsguru.events.DevOpsGuruInsightSeverityUpgraded", version: "2.274.0-alpha.0" };
293
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_devopsguru.events.DevOpsGuruInsightSeverityUpgraded", version: "2.276.0-alpha.0" };
294
294
  /**
295
295
  * EventBridge event pattern for DevOps Guru Insight Severity Upgraded
296
296
  */
@@ -568,7 +568,7 @@ function convertDevOpsGuruInsightSeverityUpgradedDetailToEventPattern(obj) {
568
568
  * EventBridge event pattern for aws.devopsguru@DevOpsGuruNewAnomalyAssociation
569
569
  */
570
570
  class DevOpsGuruNewAnomalyAssociation {
571
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_devopsguru.events.DevOpsGuruNewAnomalyAssociation", version: "2.274.0-alpha.0" };
571
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_devopsguru.events.DevOpsGuruNewAnomalyAssociation", version: "2.276.0-alpha.0" };
572
572
  /**
573
573
  * EventBridge event pattern for DevOps Guru New Anomaly Association
574
574
  */
@@ -846,7 +846,7 @@ function convertDevOpsGuruNewAnomalyAssociationDetailToEventPattern(obj) {
846
846
  * EventBridge event pattern for aws.devopsguru@DevOpsGuruNewInsightOpen
847
847
  */
848
848
  class DevOpsGuruNewInsightOpen {
849
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_devopsguru.events.DevOpsGuruNewInsightOpen", version: "2.274.0-alpha.0" };
849
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_devopsguru.events.DevOpsGuruNewInsightOpen", version: "2.276.0-alpha.0" };
850
850
  /**
851
851
  * EventBridge event pattern for DevOps Guru New Insight Open
852
852
  */
@@ -1124,7 +1124,7 @@ function convertDevOpsGuruNewInsightOpenDetailToEventPattern(obj) {
1124
1124
  * EventBridge event pattern for aws.devopsguru@DevOpsGuruNewRecommendationCreated
1125
1125
  */
1126
1126
  class DevOpsGuruNewRecommendationCreated {
1127
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_devopsguru.events.DevOpsGuruNewRecommendationCreated", version: "2.274.0-alpha.0" };
1127
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_devopsguru.events.DevOpsGuruNewRecommendationCreated", version: "2.276.0-alpha.0" };
1128
1128
  /**
1129
1129
  * EventBridge event pattern for DevOps Guru New Recommendation Created
1130
1130
  */
@@ -7,7 +7,7 @@ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
7
7
  * EventBridge event pattern for aws.dlm@AWSAPICallViaCloudTrail
8
8
  */
9
9
  class AWSAPICallViaCloudTrail {
10
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_dlm.events.AWSAPICallViaCloudTrail", version: "2.274.0-alpha.0" };
10
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_dlm.events.AWSAPICallViaCloudTrail", version: "2.276.0-alpha.0" };
11
11
  /**
12
12
  * EventBridge event pattern for AWS API Call via CloudTrail
13
13
  */
@@ -273,7 +273,7 @@ function convertAWSAPICallViaCloudTrailDetailToEventPattern(obj) {
273
273
  * EventBridge event pattern for aws.dlm@DLMPolicyStateChange
274
274
  */
275
275
  class DLMPolicyStateChange {
276
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_dlm.events.DLMPolicyStateChange", version: "2.274.0-alpha.0" };
276
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_dlm.events.DLMPolicyStateChange", version: "2.276.0-alpha.0" };
277
277
  /**
278
278
  * EventBridge event pattern for DLM Policy State Change
279
279
  */
@@ -7,7 +7,7 @@ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
7
7
  * EventBridge event pattern for aws.ec2@EBSMultiVolumeSnapshotsCompletionStatus
8
8
  */
9
9
  class EBSMultiVolumeSnapshotsCompletionStatus {
10
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.events.EBSMultiVolumeSnapshotsCompletionStatus", version: "2.274.0-alpha.0" };
10
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.events.EBSMultiVolumeSnapshotsCompletionStatus", version: "2.276.0-alpha.0" };
11
11
  /**
12
12
  * EventBridge event pattern for EBS Multi-Volume Snapshots Completion Status
13
13
  */
@@ -72,7 +72,7 @@ function convertEBSMultiVolumeSnapshotsCompletionStatusDetailToEventPattern(obj)
72
72
  * EventBridge event pattern for aws.ec2@EBSSnapshotNotification
73
73
  */
74
74
  class EBSSnapshotNotification {
75
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.events.EBSSnapshotNotification", version: "2.274.0-alpha.0" };
75
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.events.EBSSnapshotNotification", version: "2.276.0-alpha.0" };
76
76
  /**
77
77
  * EventBridge event pattern for EBS Snapshot Notification
78
78
  */
@@ -122,7 +122,7 @@ function convertEBSSnapshotNotificationDetailToEventPattern(obj) {
122
122
  * EventBridge event pattern for aws.ec2@EBSVolumeNotification
123
123
  */
124
124
  class EBSVolumeNotification {
125
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.events.EBSVolumeNotification", version: "2.274.0-alpha.0" };
125
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.events.EBSVolumeNotification", version: "2.276.0-alpha.0" };
126
126
  /**
127
127
  * EventBridge event pattern for EBS Volume Notification
128
128
  */
@@ -168,7 +168,7 @@ function convertEBSVolumeNotificationDetailToEventPattern(obj) {
168
168
  * EventBridge event pattern for aws.ec2@EC2FastLaunchStateChangeNotification
169
169
  */
170
170
  class EC2FastLaunchStateChangeNotification {
171
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.events.EC2FastLaunchStateChangeNotification", version: "2.274.0-alpha.0" };
171
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.events.EC2FastLaunchStateChangeNotification", version: "2.276.0-alpha.0" };
172
172
  /**
173
173
  * EventBridge event pattern for EC2 Fast Launch State-change Notification
174
174
  */
@@ -214,7 +214,7 @@ function convertEC2FastLaunchStateChangeNotificationDetailToEventPattern(obj) {
214
214
  * EventBridge event pattern for aws.ec2@AWSAPICallViaCloudTrail
215
215
  */
216
216
  class AWSAPICallViaCloudTrail {
217
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.events.AWSAPICallViaCloudTrail", version: "2.274.0-alpha.0" };
217
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.events.AWSAPICallViaCloudTrail", version: "2.276.0-alpha.0" };
218
218
  /**
219
219
  * EventBridge event pattern for AWS API Call via CloudTrail
220
220
  */
@@ -522,7 +522,7 @@ function convertAWSAPICallViaCloudTrailInstancesSetItemToEventPattern(obj, iRef)
522
522
  virtualizationType: obj?.virtualizationType,
523
523
  amiLaunchIndex: obj?.amiLaunchIndex,
524
524
  sourceDestCheck: obj?.sourceDestCheck,
525
- instanceId: (obj?.instanceId ?? [iRef?.instanceRef.instanceId]),
525
+ instanceId: (obj?.instanceId ?? ((iRef === undefined) ? undefined : [iRef.instanceRef.instanceId])),
526
526
  vpcId: obj?.vpcId,
527
527
  hypervisor: obj?.hypervisor,
528
528
  rootDeviceName: obj?.rootDeviceName,
@@ -1260,7 +1260,7 @@ function convertAWSAPICallViaCloudTrailDetailToEventPattern(obj, iRef) {
1260
1260
  * EventBridge event patterns for Instance
1261
1261
  */
1262
1262
  class InstanceEvents {
1263
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.events.InstanceEvents", version: "2.274.0-alpha.0" };
1263
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.events.InstanceEvents", version: "2.276.0-alpha.0" };
1264
1264
  /**
1265
1265
  * Create InstanceEvents from a Instance reference
1266
1266
  */
@@ -1346,7 +1346,7 @@ exports.InstanceEvents = InstanceEvents;
1346
1346
  * EventBridge event pattern for aws.ec2@EC2InstanceStateChangeNotification
1347
1347
  */
1348
1348
  class EC2InstanceStateChangeNotification {
1349
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.events.EC2InstanceStateChangeNotification", version: "2.274.0-alpha.0" };
1349
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.events.EC2InstanceStateChangeNotification", version: "2.276.0-alpha.0" };
1350
1350
  /**
1351
1351
  * EventBridge event pattern for EC2 Instance State-change Notification
1352
1352
  */
@@ -1374,7 +1374,7 @@ exports.EC2InstanceStateChangeNotification = EC2InstanceStateChangeNotification;
1374
1374
  // @ts-ignore TS6133
1375
1375
  function convertEC2InstanceStateChangeNotificationDetailToEventPattern(obj, iRef) {
1376
1376
  const ret = {
1377
- "instance-id": (obj?.instanceId ?? [iRef?.instanceRef.instanceId]),
1377
+ "instance-id": (obj?.instanceId ?? ((iRef === undefined) ? undefined : [iRef.instanceRef.instanceId])),
1378
1378
  state: obj?.state
1379
1379
  };
1380
1380
  for (const [key, value] of Object.entries(ret)) {
@@ -1390,7 +1390,7 @@ function convertEC2InstanceStateChangeNotificationDetailToEventPattern(obj, iRef
1390
1390
  * EventBridge event pattern for aws.ec2@EC2SpotInstanceInterruptionWarning
1391
1391
  */
1392
1392
  class EC2SpotInstanceInterruptionWarning {
1393
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.events.EC2SpotInstanceInterruptionWarning", version: "2.274.0-alpha.0" };
1393
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.events.EC2SpotInstanceInterruptionWarning", version: "2.276.0-alpha.0" };
1394
1394
  /**
1395
1395
  * EventBridge event pattern for EC2 Spot Instance Interruption Warning
1396
1396
  */
@@ -1418,7 +1418,7 @@ exports.EC2SpotInstanceInterruptionWarning = EC2SpotInstanceInterruptionWarning;
1418
1418
  // @ts-ignore TS6133
1419
1419
  function convertEC2SpotInstanceInterruptionWarningDetailToEventPattern(obj, iRef) {
1420
1420
  const ret = {
1421
- "instance-id": (obj?.instanceId ?? [iRef?.instanceRef.instanceId]),
1421
+ "instance-id": (obj?.instanceId ?? ((iRef === undefined) ? undefined : [iRef.instanceRef.instanceId])),
1422
1422
  "instance-action": obj?.instanceAction
1423
1423
  };
1424
1424
  for (const [key, value] of Object.entries(ret)) {
@@ -3,6 +3,142 @@ import * as interfaces from "aws-cdk-lib/interfaces";
3
3
  import * as constructs from "constructs";
4
4
  import * as logsDelivery from "../aws-logs/logs-delivery";
5
5
  import * as service from "aws-cdk-lib/aws-ec2";
6
+ /**
7
+ * Builder for CfnInstanceLogsMixin to generate CONSOLE_LOGS for CfnInstance
8
+ *
9
+ * @cloudformationResource AWS::EC2::Instance
10
+ * @logType CONSOLE_LOGS
11
+ * @stability external
12
+ */
13
+ export declare class CfnInstanceConsoleLogs {
14
+ /**
15
+ * Send logs to an S3 Bucket
16
+ *
17
+ * @param props Additional properties that are optionally used in log delivery for S3 destinations
18
+ */
19
+ toS3(bucket: interfaces.aws_s3.IBucketRef, props?: CfnInstanceConsoleLogsS3Props): CfnInstanceLogsMixin;
20
+ /**
21
+ * Send logs to a CloudWatch Log Group
22
+ *
23
+ * @param props Additional properties that are optionally used in log delivery for Log Group destinations
24
+ */
25
+ toLogGroup(logGroup: interfaces.aws_logs.ILogGroupRef, props?: CfnInstanceConsoleLogsLogGroupProps): CfnInstanceLogsMixin;
26
+ /**
27
+ * Send logs to a Firehose Delivery Stream
28
+ *
29
+ * @param props Additional properties that are optionally used in log delivery for Firehose destinations
30
+ */
31
+ toFirehose(deliveryStream: interfaces.aws_kinesisfirehose.IDeliveryStreamRef, props?: CfnInstanceConsoleLogsFirehoseProps): CfnInstanceLogsMixin;
32
+ /**
33
+ * Delivers logs to a pre-created delivery destination
34
+ *
35
+ * Supported destinations are S3, CWL, FH
36
+ * You are responsible for setting up the correct permissions for your delivery destination, toDestination() does not set up any permissions for you.
37
+ * Delivery destinations that are imported from another stack using CfnDeliveryDestination.fromDeliveryDestinationArn() or CfnDeliveryDestination.fromDeliveryDestinationName() are supported by toDestination().
38
+ *
39
+ * @param props Additional properties that are optionally used in log delivery for destinations
40
+ */
41
+ toDestination(destination: interfaces.aws_logs.IDeliveryDestinationRef, props?: CfnInstanceConsoleLogsDestProps): CfnInstanceLogsMixin;
42
+ }
43
+ /**
44
+ * Specifies an EC2 instance.
45
+ *
46
+ * 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) .
47
+ *
48
+ * @cloudformationResource AWS::EC2::Instance
49
+ * @mixin true
50
+ * @stability external
51
+ * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-instance.html
52
+ */
53
+ export declare class CfnInstanceLogsMixin extends cdk.Mixin implements constructs.IMixin {
54
+ static readonly CONSOLE_LOGS: CfnInstanceConsoleLogs;
55
+ protected readonly logType: string;
56
+ protected readonly logDelivery: logsDelivery.ILogsDelivery;
57
+ /**
58
+ * Create a mixin to enable vended logs for `AWS::EC2::Instance`.
59
+ *
60
+ * @param logType Type of logs that are getting vended
61
+ * @param logDelivery Object in charge of setting up the delivery source, delivery destination, and delivery connection
62
+ */
63
+ constructor(logType: string, logDelivery: logsDelivery.ILogsDelivery);
64
+ /**
65
+ * Check if this mixin supports the given construct (has vendedLogs property)
66
+ */
67
+ supports(construct: constructs.IConstruct): construct is service.CfnInstance;
68
+ /**
69
+ * Apply vended logs configuration to the construct
70
+ */
71
+ applyTo(resource: constructs.IConstruct): void;
72
+ }
73
+ /**
74
+ * Output Format options for each destination of CfnInstanceConsoleLogs.
75
+ */
76
+ export declare class CfnInstanceConsoleLogsOutputFormat {
77
+ }
78
+ export declare namespace CfnInstanceConsoleLogsOutputFormat {
79
+ enum S3 {
80
+ PLAIN = "plain",
81
+ JSON = "json",
82
+ W3C = "w3c",
83
+ PARQUET = "parquet"
84
+ }
85
+ enum LogGroup {
86
+ PLAIN = "plain",
87
+ JSON = "json"
88
+ }
89
+ enum Firehose {
90
+ PLAIN = "plain",
91
+ JSON = "json",
92
+ RAW = "raw"
93
+ }
94
+ }
95
+ export declare enum CfnInstanceConsoleLogsRecordFields {
96
+ TIMESTAMP = "timestamp",
97
+ RESOURCE_ID = "resource_id",
98
+ RESOURCE_ARN = "resource_arn",
99
+ EVENT_TIMESTAMP = "event_timestamp",
100
+ MESSAGE = "message"
101
+ }
102
+ export interface CfnInstanceConsoleLogsS3Props {
103
+ /**
104
+ * Encrpytion key for your delivery bucket
105
+ */
106
+ readonly encryptionKey?: interfaces.aws_kms.IKeyRef;
107
+ /**
108
+ * Format for log output, options are plain,json,w3c,parquet
109
+ */
110
+ readonly outputFormat?: CfnInstanceConsoleLogsOutputFormat.S3;
111
+ /**
112
+ * Record fields that can be provided to a log delivery
113
+ */
114
+ readonly recordFields?: Array<CfnInstanceConsoleLogsRecordFields>;
115
+ }
116
+ export interface CfnInstanceConsoleLogsLogGroupProps {
117
+ /**
118
+ * Format for log output, options are plain,json
119
+ */
120
+ readonly outputFormat?: CfnInstanceConsoleLogsOutputFormat.LogGroup;
121
+ /**
122
+ * Record fields that can be provided to a log delivery
123
+ */
124
+ readonly recordFields?: Array<CfnInstanceConsoleLogsRecordFields>;
125
+ }
126
+ export interface CfnInstanceConsoleLogsFirehoseProps {
127
+ /**
128
+ * Format for log output, options are plain,json,raw
129
+ */
130
+ readonly outputFormat?: CfnInstanceConsoleLogsOutputFormat.Firehose;
131
+ /**
132
+ * Record fields that can be provided to a log delivery
133
+ */
134
+ readonly recordFields?: Array<CfnInstanceConsoleLogsRecordFields>;
135
+ }
136
+ export interface CfnInstanceConsoleLogsDestProps {
137
+ /**
138
+ * Record fields that can be provided to a log delivery
139
+ */
140
+ readonly recordFields?: Array<CfnInstanceConsoleLogsRecordFields>;
141
+ }
6
142
  /**
7
143
  * Builder for CfnRouteServerPeerLogsMixin to generate EVENT_LOGS for CfnRouteServerPeer
8
144
  *