@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
@@ -0,0 +1,240 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.CfnGameSessionQueueQueuePlacementLogsRecordFields = exports.CfnGameSessionQueueQueuePlacementLogsOutputFormat = exports.CfnGameSessionQueueLogsMixin = exports.CfnGameSessionQueueQueuePlacementLogs = void 0;
37
+ const jsiiDeprecationWarnings = require("../../../.warnings.jsii.js");
38
+ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
39
+ /* eslint-disable @stylistic/max-len, eol-last */
40
+ const cdk = __importStar(require("aws-cdk-lib/core"));
41
+ const logsDelivery = __importStar(require("../aws-logs/logs-delivery"));
42
+ const service = __importStar(require("aws-cdk-lib/aws-gamelift"));
43
+ /**
44
+ * Builder for CfnGameSessionQueueLogsMixin to generate QUEUE_PLACEMENT_LOGS for CfnGameSessionQueue
45
+ *
46
+ * @cloudformationResource AWS::GameLift::GameSessionQueue
47
+ * @logType QUEUE_PLACEMENT_LOGS
48
+ * @stability external
49
+ */
50
+ class CfnGameSessionQueueQueuePlacementLogs {
51
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_gamelift.mixins.CfnGameSessionQueueQueuePlacementLogs", version: "2.276.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_gamelift_mixins_CfnGameSessionQueueQueuePlacementLogsS3Props(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 CfnGameSessionQueueLogsMixin("QUEUE_PLACEMENT_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"]
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_gamelift_mixins_CfnGameSessionQueueQueuePlacementLogsLogGroupProps(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 CfnGameSessionQueueLogsMixin("QUEUE_PLACEMENT_LOGS", new logsDelivery.LogGroupLogsDelivery(logGroup, {
94
+ outputFormat: props?.outputFormat,
95
+ providedFields: props?.recordFields,
96
+ mandatoryFields: ["resource_arn", "event_timestamp"]
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_gamelift_mixins_CfnGameSessionQueueQueuePlacementLogsFirehoseProps(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 CfnGameSessionQueueLogsMixin("QUEUE_PLACEMENT_LOGS", new logsDelivery.FirehoseLogsDelivery(deliveryStream, {
117
+ outputFormat: props?.outputFormat,
118
+ providedFields: props?.recordFields,
119
+ mandatoryFields: ["resource_arn", "event_timestamp"]
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_gamelift_mixins_CfnGameSessionQueueQueuePlacementLogsDestProps(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 CfnGameSessionQueueLogsMixin("QUEUE_PLACEMENT_LOGS", new logsDelivery.DestinationLogsDelivery(destination, {
144
+ providedFields: props?.recordFields,
145
+ mandatoryFields: ["resource_arn", "event_timestamp"]
146
+ }));
147
+ }
148
+ }
149
+ }
150
+ exports.CfnGameSessionQueueQueuePlacementLogs = CfnGameSessionQueueQueuePlacementLogs;
151
+ /**
152
+ * The `AWS::GameLift::GameSessionQueue` resource creates a placement queue that processes requests for new game sessions.
153
+ *
154
+ * A queue uses FleetIQ algorithms to determine the best placement locations and find an available game server, then prompts the game server to start a new game session. Queues can have destinations (GameLift fleets or aliases), which determine where the queue can place new game sessions. A queue can have destinations with varied fleet type (Spot and On-Demand), instance type, and AWS Region .
155
+ *
156
+ * @cloudformationResource AWS::GameLift::GameSessionQueue
157
+ * @mixin true
158
+ * @stability external
159
+ * @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-gamelift-gamesessionqueue.html
160
+ */
161
+ class CfnGameSessionQueueLogsMixin extends cdk.Mixin {
162
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_gamelift.mixins.CfnGameSessionQueueLogsMixin", version: "2.276.0-alpha.0" };
163
+ static QUEUE_PLACEMENT_LOGS = new CfnGameSessionQueueQueuePlacementLogs();
164
+ logType;
165
+ logDelivery;
166
+ /**
167
+ * Create a mixin to enable vended logs for `AWS::GameLift::GameSessionQueue`.
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, CfnGameSessionQueueLogsMixin);
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.CfnGameSessionQueue.isCfnGameSessionQueue(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.CfnGameSessionQueue.arnForGameSessionQueue(resource);
200
+ this.logDelivery.bind(resource, this.logType, sourceArn);
201
+ }
202
+ }
203
+ exports.CfnGameSessionQueueLogsMixin = CfnGameSessionQueueLogsMixin;
204
+ /**
205
+ * Output Format options for each destination of CfnGameSessionQueueQueuePlacementLogs.
206
+ */
207
+ class CfnGameSessionQueueQueuePlacementLogsOutputFormat {
208
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_gamelift.mixins.CfnGameSessionQueueQueuePlacementLogsOutputFormat", version: "2.276.0-alpha.0" };
209
+ }
210
+ exports.CfnGameSessionQueueQueuePlacementLogsOutputFormat = CfnGameSessionQueueQueuePlacementLogsOutputFormat;
211
+ (function (CfnGameSessionQueueQueuePlacementLogsOutputFormat) {
212
+ let S3;
213
+ (function (S3) {
214
+ S3["PLAIN"] = "plain";
215
+ S3["JSON"] = "json";
216
+ S3["W3C"] = "w3c";
217
+ S3["PARQUET"] = "parquet";
218
+ })(S3 = CfnGameSessionQueueQueuePlacementLogsOutputFormat.S3 || (CfnGameSessionQueueQueuePlacementLogsOutputFormat.S3 = {}));
219
+ let LogGroup;
220
+ (function (LogGroup) {
221
+ LogGroup["PLAIN"] = "plain";
222
+ LogGroup["JSON"] = "json";
223
+ })(LogGroup = CfnGameSessionQueueQueuePlacementLogsOutputFormat.LogGroup || (CfnGameSessionQueueQueuePlacementLogsOutputFormat.LogGroup = {}));
224
+ let Firehose;
225
+ (function (Firehose) {
226
+ Firehose["PLAIN"] = "plain";
227
+ Firehose["JSON"] = "json";
228
+ Firehose["RAW"] = "raw";
229
+ })(Firehose = CfnGameSessionQueueQueuePlacementLogsOutputFormat.Firehose || (CfnGameSessionQueueQueuePlacementLogsOutputFormat.Firehose = {}));
230
+ })(CfnGameSessionQueueQueuePlacementLogsOutputFormat || (exports.CfnGameSessionQueueQueuePlacementLogsOutputFormat = CfnGameSessionQueueQueuePlacementLogsOutputFormat = {}));
231
+ var CfnGameSessionQueueQueuePlacementLogsRecordFields;
232
+ (function (CfnGameSessionQueueQueuePlacementLogsRecordFields) {
233
+ CfnGameSessionQueueQueuePlacementLogsRecordFields["TIMESTAMP"] = "timestamp";
234
+ CfnGameSessionQueueQueuePlacementLogsRecordFields["PLACEMENT_ID"] = "placement_id";
235
+ CfnGameSessionQueueQueuePlacementLogsRecordFields["EVENT_TYPE"] = "event_type";
236
+ CfnGameSessionQueueQueuePlacementLogsRecordFields["SUMMARY"] = "summary";
237
+ CfnGameSessionQueueQueuePlacementLogsRecordFields["DATA"] = "data";
238
+ CfnGameSessionQueueQueuePlacementLogsRecordFields["RESOURCE_ARN"] = "resource_arn";
239
+ CfnGameSessionQueueQueuePlacementLogsRecordFields["EVENT_TIMESTAMP"] = "event_timestamp";
240
+ })(CfnGameSessionQueueQueuePlacementLogsRecordFields || (exports.CfnGameSessionQueueQueuePlacementLogsRecordFields = CfnGameSessionQueueQueuePlacementLogsRecordFields = {}));
@@ -0,0 +1 @@
1
+ export * from './logs-delivery-mixins.generated';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./logs-delivery-mixins.generated"), exports);
@@ -7,7 +7,7 @@ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
7
7
  * EventBridge event pattern for aws.glue@GlueDataCatalogDatabaseStateChange
8
8
  */
9
9
  class GlueDataCatalogDatabaseStateChange {
10
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_glue.events.GlueDataCatalogDatabaseStateChange", version: "2.274.0-alpha.0" };
10
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_glue.events.GlueDataCatalogDatabaseStateChange", version: "2.276.0-alpha.0" };
11
11
  /**
12
12
  * EventBridge event pattern for Glue Data Catalog Database State Change
13
13
  */
@@ -35,7 +35,7 @@ exports.GlueDataCatalogDatabaseStateChange = GlueDataCatalogDatabaseStateChange;
35
35
  // @ts-ignore TS6133
36
36
  function convertGlueDataCatalogDatabaseStateChangeDetailToEventPattern(obj, iRef) {
37
37
  const ret = {
38
- databaseName: (obj?.databaseName ?? [iRef?.databaseRef.databaseName]),
38
+ databaseName: (obj?.databaseName ?? ((iRef === undefined) ? undefined : [iRef.databaseRef.databaseName])),
39
39
  typeOfChange: obj?.typeOfChange,
40
40
  changedTables: obj?.changedTables
41
41
  };
@@ -52,7 +52,7 @@ function convertGlueDataCatalogDatabaseStateChangeDetailToEventPattern(obj, iRef
52
52
  * EventBridge event patterns for Database
53
53
  */
54
54
  class DatabaseEvents {
55
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_glue.events.DatabaseEvents", version: "2.274.0-alpha.0" };
55
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_glue.events.DatabaseEvents", version: "2.276.0-alpha.0" };
56
56
  /**
57
57
  * Create DatabaseEvents from a Database reference
58
58
  */
@@ -116,7 +116,7 @@ exports.DatabaseEvents = DatabaseEvents;
116
116
  * EventBridge event pattern for aws.glue@GlueDataCatalogTableStateChange
117
117
  */
118
118
  class GlueDataCatalogTableStateChange {
119
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_glue.events.GlueDataCatalogTableStateChange", version: "2.274.0-alpha.0" };
119
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_glue.events.GlueDataCatalogTableStateChange", version: "2.276.0-alpha.0" };
120
120
  /**
121
121
  * EventBridge event pattern for Glue Data Catalog Table State Change
122
122
  */
@@ -144,7 +144,7 @@ exports.GlueDataCatalogTableStateChange = GlueDataCatalogTableStateChange;
144
144
  // @ts-ignore TS6133
145
145
  function convertGlueDataCatalogTableStateChangeDetailToEventPattern(obj, iRef) {
146
146
  const ret = {
147
- databaseName: (obj?.databaseName ?? [iRef?.databaseRef.databaseName]),
147
+ databaseName: (obj?.databaseName ?? ((iRef === undefined) ? undefined : [iRef.databaseRef.databaseName])),
148
148
  changedPartitions: obj?.changedPartitions,
149
149
  typeOfChange: obj?.typeOfChange,
150
150
  tableName: obj?.tableName
@@ -162,7 +162,7 @@ function convertGlueDataCatalogTableStateChangeDetailToEventPattern(obj, iRef) {
162
162
  * EventBridge event pattern for aws.glue@AWSAPICallViaCloudTrail
163
163
  */
164
164
  class AWSAPICallViaCloudTrail {
165
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_glue.events.AWSAPICallViaCloudTrail", version: "2.274.0-alpha.0" };
165
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_glue.events.AWSAPICallViaCloudTrail", version: "2.276.0-alpha.0" };
166
166
  /**
167
167
  * EventBridge event pattern for AWS API Call via CloudTrail
168
168
  */
@@ -204,7 +204,7 @@ function convertAWSAPICallViaCloudTrailResponseElementsToEventPattern(obj, iRef)
204
204
  // @ts-ignore TS6133
205
205
  function convertAWSAPICallViaCloudTrailRequestParametersToEventPattern(obj, iRef) {
206
206
  const ret = {
207
- jobName: (obj?.jobName ?? [iRef?.jobRef.jobName]),
207
+ jobName: (obj?.jobName ?? ((iRef === undefined) ? undefined : [iRef.jobRef.jobName])),
208
208
  allocatedCapacity: obj?.allocatedCapacity
209
209
  };
210
210
  for (const [key, value] of Object.entries(ret)) {
@@ -314,7 +314,7 @@ function convertAWSAPICallViaCloudTrailDetailToEventPattern(obj, iRef) {
314
314
  * EventBridge event patterns for Job
315
315
  */
316
316
  class JobEvents {
317
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_glue.events.JobEvents", version: "2.274.0-alpha.0" };
317
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_glue.events.JobEvents", version: "2.276.0-alpha.0" };
318
318
  /**
319
319
  * Create JobEvents from a Job reference
320
320
  */
@@ -400,7 +400,7 @@ exports.JobEvents = JobEvents;
400
400
  * EventBridge event pattern for aws.glue@GlueJobRunStatus
401
401
  */
402
402
  class GlueJobRunStatus {
403
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_glue.events.GlueJobRunStatus", version: "2.274.0-alpha.0" };
403
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_glue.events.GlueJobRunStatus", version: "2.276.0-alpha.0" };
404
404
  /**
405
405
  * EventBridge event pattern for Glue Job Run Status
406
406
  */
@@ -443,7 +443,7 @@ function convertGlueJobRunStatusNotificationConditionToEventPattern(obj, iRef) {
443
443
  function convertGlueJobRunStatusDetailToEventPattern(obj, iRef) {
444
444
  const ret = {
445
445
  notificationCondition: convertGlueJobRunStatusNotificationConditionToEventPattern(obj?.notificationCondition, iRef),
446
- jobName: (obj?.jobName ?? [iRef?.jobRef.jobName]),
446
+ jobName: (obj?.jobName ?? ((iRef === undefined) ? undefined : [iRef.jobRef.jobName])),
447
447
  severity: obj?.severity,
448
448
  state: obj?.state,
449
449
  jobRunId: obj?.jobRunId,
@@ -463,7 +463,7 @@ function convertGlueJobRunStatusDetailToEventPattern(obj, iRef) {
463
463
  * EventBridge event pattern for aws.glue@GlueJobStateChange
464
464
  */
465
465
  class GlueJobStateChange {
466
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_glue.events.GlueJobStateChange", version: "2.274.0-alpha.0" };
466
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_glue.events.GlueJobStateChange", version: "2.276.0-alpha.0" };
467
467
  /**
468
468
  * EventBridge event pattern for Glue Job State Change
469
469
  */
@@ -491,7 +491,7 @@ exports.GlueJobStateChange = GlueJobStateChange;
491
491
  // @ts-ignore TS6133
492
492
  function convertGlueJobStateChangeDetailToEventPattern(obj, iRef) {
493
493
  const ret = {
494
- jobName: (obj?.jobName ?? [iRef?.jobRef.jobName]),
494
+ jobName: (obj?.jobName ?? ((iRef === undefined) ? undefined : [iRef.jobRef.jobName])),
495
495
  severity: obj?.severity,
496
496
  state: obj?.state,
497
497
  jobRunId: obj?.jobRunId,
@@ -7,7 +7,7 @@ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
7
7
  * EventBridge event pattern for aws.guardduty@GuardDutyMalwareProtectionObjectScanResult
8
8
  */
9
9
  class GuardDutyMalwareProtectionObjectScanResult {
10
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_guardduty.events.GuardDutyMalwareProtectionObjectScanResult", version: "2.274.0-alpha.0" };
10
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_guardduty.events.GuardDutyMalwareProtectionObjectScanResult", version: "2.276.0-alpha.0" };
11
11
  /**
12
12
  * EventBridge event pattern for GuardDuty Malware Protection Object Scan Result
13
13
  */
@@ -101,7 +101,7 @@ function convertGuardDutyMalwareProtectionObjectScanResultDetailToEventPattern(o
101
101
  * EventBridge event pattern for aws.guardduty@GuardDutyMalwareProtectionPostScanActionFailed
102
102
  */
103
103
  class GuardDutyMalwareProtectionPostScanActionFailed {
104
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_guardduty.events.GuardDutyMalwareProtectionPostScanActionFailed", version: "2.274.0-alpha.0" };
104
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_guardduty.events.GuardDutyMalwareProtectionPostScanActionFailed", version: "2.276.0-alpha.0" };
105
105
  /**
106
106
  * EventBridge event pattern for GuardDuty Malware Protection Post Scan Action Failed
107
107
  */
@@ -180,7 +180,7 @@ function convertGuardDutyMalwareProtectionPostScanActionFailedDetailToEventPatte
180
180
  * EventBridge event pattern for aws.guardduty@GuardDutyMalwareProtectionResourceStatusActive
181
181
  */
182
182
  class GuardDutyMalwareProtectionResourceStatusActive {
183
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_guardduty.events.GuardDutyMalwareProtectionResourceStatusActive", version: "2.274.0-alpha.0" };
183
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_guardduty.events.GuardDutyMalwareProtectionResourceStatusActive", version: "2.276.0-alpha.0" };
184
184
  /**
185
185
  * EventBridge event pattern for GuardDuty Malware Protection Resource Status Active
186
186
  */
@@ -240,7 +240,7 @@ function convertGuardDutyMalwareProtectionResourceStatusActiveDetailToEventPatte
240
240
  * EventBridge event pattern for aws.guardduty@GuardDutyMalwareProtectionResourceStatusError
241
241
  */
242
242
  class GuardDutyMalwareProtectionResourceStatusError {
243
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_guardduty.events.GuardDutyMalwareProtectionResourceStatusError", version: "2.274.0-alpha.0" };
243
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_guardduty.events.GuardDutyMalwareProtectionResourceStatusError", version: "2.276.0-alpha.0" };
244
244
  /**
245
245
  * EventBridge event pattern for GuardDuty Malware Protection Resource Status Error
246
246
  */
@@ -315,7 +315,7 @@ function convertGuardDutyMalwareProtectionResourceStatusErrorDetailToEventPatter
315
315
  * EventBridge event pattern for aws.guardduty@GuardDutyMalwareProtectionResourceStatusWarning
316
316
  */
317
317
  class GuardDutyMalwareProtectionResourceStatusWarning {
318
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_guardduty.events.GuardDutyMalwareProtectionResourceStatusWarning", version: "2.274.0-alpha.0" };
318
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_guardduty.events.GuardDutyMalwareProtectionResourceStatusWarning", version: "2.276.0-alpha.0" };
319
319
  /**
320
320
  * EventBridge event pattern for GuardDuty Malware Protection Resource Status Warning
321
321
  */
@@ -390,7 +390,7 @@ function convertGuardDutyMalwareProtectionResourceStatusWarningDetailToEventPatt
390
390
  * EventBridge event pattern for aws.guardduty@GuardDutyFinding
391
391
  */
392
392
  class GuardDutyFinding {
393
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_guardduty.events.GuardDutyFinding", version: "2.274.0-alpha.0" };
393
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_guardduty.events.GuardDutyFinding", version: "2.276.0-alpha.0" };
394
394
  /**
395
395
  * EventBridge event pattern for GuardDuty Finding
396
396
  */
@@ -1914,7 +1914,7 @@ function convertGuardDutyFindingServiceToEventPattern(obj, iRef) {
1914
1914
  evidence: convertGuardDutyFindingEvidenceToEventPattern(obj?.evidence, iRef),
1915
1915
  archived: obj?.archived,
1916
1916
  count: obj?.count,
1917
- detectorId: (obj?.detectorId ?? [iRef?.detectorRef.detectorId]),
1917
+ detectorId: (obj?.detectorId ?? ((iRef === undefined) ? undefined : [iRef.detectorRef.detectorId])),
1918
1918
  eventFirstSeen: obj?.eventFirstSeen,
1919
1919
  eventLastSeen: obj?.eventLastSeen,
1920
1920
  featureName: obj?.featureName,
@@ -1961,7 +1961,7 @@ function convertGuardDutyFindingDetailToEventPattern(obj, iRef) {
1961
1961
  * EventBridge event patterns for Detector
1962
1962
  */
1963
1963
  class DetectorEvents {
1964
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_guardduty.events.DetectorEvents", version: "2.274.0-alpha.0" };
1964
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_guardduty.events.DetectorEvents", version: "2.276.0-alpha.0" };
1965
1965
  /**
1966
1966
  * Create DetectorEvents from a Detector reference
1967
1967
  */