@aws-cdk/mixins-preview 2.275.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.
- package/.jsii.gz +0 -0
- package/.jsii.tabl.json.gz +0 -0
- package/.warnings.jsii.js +25 -12
- package/lib/services/aws-appmesh/events.generated.js +1 -1
- package/lib/services/aws-athena/events.generated.js +3 -3
- package/lib/services/aws-autoscaling/events.generated.js +14 -14
- package/lib/services/aws-b2bi/events.generated.js +4 -4
- package/lib/services/aws-batch/events.generated.js +2 -2
- package/lib/services/aws-bedrock/logs-delivery-mixins.generated.js +12 -12
- package/lib/services/aws-bedrockagentcore/logs-delivery-mixins.generated.js +34 -34
- package/lib/services/aws-chime/events.generated.js +1 -1
- package/lib/services/aws-cloudformation/events.generated.js +1 -1
- package/lib/services/aws-cloudfront/logs-delivery-mixins.generated.js +5 -5
- package/lib/services/aws-cloudwatch/events.generated.js +5 -5
- package/lib/services/aws-codebuild/events.generated.js +7 -7
- package/lib/services/aws-codecommit/events.generated.js +10 -10
- 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 +7 -7
- package/lib/services/aws-dataexchange/events.generated.js +4 -4
- package/lib/services/aws-datasync/events.generated.js +4 -4
- package/lib/services/aws-deadline/events.generated.js +1 -1
- package/lib/services/aws-devopsagent/logs-delivery-mixins.generated.js +3 -3
- package/lib/services/aws-devopsguru/events.generated.js +5 -5
- package/lib/services/aws-dlm/events.generated.js +2 -2
- package/lib/services/aws-ec2/events.generated.js +11 -11
- package/lib/services/aws-ec2/logs-delivery-mixins.generated.d.ts +136 -0
- package/lib/services/aws-ec2/logs-delivery-mixins.generated.js +200 -4
- package/lib/services/aws-ecr/events.generated.js +13 -13
- package/lib/services/aws-ecs/events.generated.js +9 -9
- package/lib/services/aws-ecs/logs-delivery-mixins.generated.js +3 -3
- package/lib/services/aws-eks/logs-delivery-mixins.generated.d.ts +177 -176
- package/lib/services/aws-eks/logs-delivery-mixins.generated.js +190 -189
- package/lib/services/aws-elasticache/events.generated.js +10 -10
- package/lib/services/aws-elasticloadbalancing/events.generated.js +1 -1
- package/lib/services/aws-elasticloadbalancingv2/logs-delivery-mixins.generated.js +9 -9
- package/lib/services/aws-elementalinference/logs-delivery-mixins.generated.js +3 -3
- package/lib/services/aws-emr/events.generated.js +7 -7
- package/lib/services/aws-entityresolution/logs-delivery-mixins.generated.js +6 -6
- package/lib/services/aws-events/events.generated.js +1 -1
- package/lib/services/aws-events/logs-delivery-mixins.generated.js +7 -7
- package/lib/services/aws-fis/events.generated.js +1 -1
- package/lib/services/aws-gamelift/events.generated.js +2 -2
- package/lib/services/aws-gamelift/logs-delivery-mixins.generated.js +3 -3
- package/lib/services/aws-glue/events.generated.js +12 -12
- package/lib/services/aws-guardduty/events.generated.js +8 -8
- package/lib/services/aws-healthimaging/events.generated.js +39 -39
- 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 +4 -4
- package/lib/services/aws-ivs/events.generated.js +4 -4
- package/lib/services/aws-kms/events.generated.js +9 -9
- package/lib/services/aws-logs/events.generated.js +3 -3
- 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 +7 -7
- package/lib/services/aws-mediapackage/events.generated.js +5 -5
- package/lib/services/aws-mediapackagev2/logs-delivery-mixins.generated.js +5 -5
- package/lib/services/aws-mediatailor/logs-delivery-mixins.generated.js +7 -7
- package/lib/services/aws-mgn/events.generated.js +3 -3
- package/lib/services/aws-networkfirewall/events.generated.js +3 -3
- package/lib/services/aws-networkfirewall/logs-delivery-mixins.generated.js +7 -7
- package/lib/services/aws-networkmanager/events.generated.js +5 -5
- package/lib/services/aws-omics/events.generated.js +24 -24
- package/lib/services/aws-opsworks/events.generated.js +4 -4
- package/lib/services/aws-organizations/events.generated.js +3 -3
- package/lib/services/aws-pcs/logs-delivery-mixins.generated.js +9 -9
- package/lib/services/aws-qbusiness/logs-delivery-mixins.generated.js +5 -5
- package/lib/services/aws-qldb/events.generated.js +1 -1
- package/lib/services/aws-rds/events.generated.js +7 -7
- package/lib/services/aws-route53recoveryreadiness/events.generated.js +9 -9
- package/lib/services/aws-route53resolver/events.generated.js +5 -5
- package/lib/services/aws-rtbfabric/logs-delivery-mixins.generated.js +3 -3
- package/lib/services/aws-s3/events.generated.js +23 -23
- package/lib/services/aws-s3/logs-delivery-mixins.generated.js +3 -3
- package/lib/services/aws-sagemaker/events.generated.js +14 -14
- package/lib/services/aws-securityhub/events.generated.js +3 -3
- package/lib/services/aws-securityhub/logs-delivery-mixins.generated.js +6 -6
- package/lib/services/aws-ses/events.generated.js +2 -2
- package/lib/services/aws-ses/logs-delivery-mixins.generated.js +8 -8
- package/lib/services/aws-shield/logs-delivery-mixins.generated.js +3 -3
- package/lib/services/aws-ssm/events.generated.js +1 -1
- package/lib/services/aws-storagegateway/events.generated.js +3 -3
- package/lib/services/aws-synthetics/events.generated.js +3 -3
- package/lib/services/aws-transcribe/events.generated.js +3 -3
- package/lib/services/aws-transfer/events.generated.js +74 -74
- package/lib/services/aws-translate/events.generated.js +2 -2
- package/lib/services/aws-voiceid/events.generated.js +17 -17
- package/lib/services/aws-wellarchitected/events.generated.js +1 -1
- package/lib/services/aws-wisdom/logs-delivery-mixins.generated.js +3 -3
- package/lib/services/aws-workspaces/events.generated.js +3 -3
- package/lib/services/aws-xray/events.generated.js +1 -1
- package/package.json +10 -10
- package/scripts/gen.js +2 -2
- package/scripts/spec2eventbridge/builder.js +4 -1
- package/scripts/spec2eventbridge/generate.d.ts +1 -1
- package/scripts/spec2eventbridge/generate.js +2 -1
|
@@ -33,13 +33,209 @@ 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 = void 0;
|
|
36
|
+
exports.CfnRouteServerPeerEventLogsRecordFields = exports.CfnRouteServerPeerEventLogsOutputFormat = exports.CfnRouteServerPeerLogsMixin = exports.CfnRouteServerPeerEventLogs = exports.CfnInstanceConsoleLogsRecordFields = exports.CfnInstanceConsoleLogsOutputFormat = exports.CfnInstanceLogsMixin = exports.CfnInstanceConsoleLogs = 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.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_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.276.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.276.0-alpha.0" };
|
|
209
|
+
}
|
|
210
|
+
exports.CfnInstanceConsoleLogsOutputFormat = CfnInstanceConsoleLogsOutputFormat;
|
|
211
|
+
(function (CfnInstanceConsoleLogsOutputFormat) {
|
|
212
|
+
let S3;
|
|
213
|
+
(function (S3) {
|
|
214
|
+
S3["PLAIN"] = "plain";
|
|
215
|
+
S3["JSON"] = "json";
|
|
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["PLAIN"] = "plain";
|
|
227
|
+
Firehose["JSON"] = "json";
|
|
228
|
+
Firehose["RAW"] = "raw";
|
|
229
|
+
})(Firehose = CfnInstanceConsoleLogsOutputFormat.Firehose || (CfnInstanceConsoleLogsOutputFormat.Firehose = {}));
|
|
230
|
+
})(CfnInstanceConsoleLogsOutputFormat || (exports.CfnInstanceConsoleLogsOutputFormat = CfnInstanceConsoleLogsOutputFormat = {}));
|
|
231
|
+
var CfnInstanceConsoleLogsRecordFields;
|
|
232
|
+
(function (CfnInstanceConsoleLogsRecordFields) {
|
|
233
|
+
CfnInstanceConsoleLogsRecordFields["TIMESTAMP"] = "timestamp";
|
|
234
|
+
CfnInstanceConsoleLogsRecordFields["RESOURCE_ID"] = "resource_id";
|
|
235
|
+
CfnInstanceConsoleLogsRecordFields["RESOURCE_ARN"] = "resource_arn";
|
|
236
|
+
CfnInstanceConsoleLogsRecordFields["EVENT_TIMESTAMP"] = "event_timestamp";
|
|
237
|
+
CfnInstanceConsoleLogsRecordFields["MESSAGE"] = "message";
|
|
238
|
+
})(CfnInstanceConsoleLogsRecordFields || (exports.CfnInstanceConsoleLogsRecordFields = CfnInstanceConsoleLogsRecordFields = {}));
|
|
43
239
|
/**
|
|
44
240
|
* Builder for CfnRouteServerPeerLogsMixin to generate EVENT_LOGS for CfnRouteServerPeer
|
|
45
241
|
*
|
|
@@ -48,7 +244,7 @@ const service = __importStar(require("aws-cdk-lib/aws-ec2"));
|
|
|
48
244
|
* @stability external
|
|
49
245
|
*/
|
|
50
246
|
class CfnRouteServerPeerEventLogs {
|
|
51
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.mixins.CfnRouteServerPeerEventLogs", version: "2.
|
|
247
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.mixins.CfnRouteServerPeerEventLogs", version: "2.276.0-alpha.0" };
|
|
52
248
|
/**
|
|
53
249
|
* Send logs to an S3 Bucket
|
|
54
250
|
*
|
|
@@ -159,7 +355,7 @@ exports.CfnRouteServerPeerEventLogs = CfnRouteServerPeerEventLogs;
|
|
|
159
355
|
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-routeserverpeer.html
|
|
160
356
|
*/
|
|
161
357
|
class CfnRouteServerPeerLogsMixin extends cdk.Mixin {
|
|
162
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.mixins.CfnRouteServerPeerLogsMixin", version: "2.
|
|
358
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.mixins.CfnRouteServerPeerLogsMixin", version: "2.276.0-alpha.0" };
|
|
163
359
|
static EVENT_LOGS = new CfnRouteServerPeerEventLogs();
|
|
164
360
|
logType;
|
|
165
361
|
logDelivery;
|
|
@@ -205,7 +401,7 @@ exports.CfnRouteServerPeerLogsMixin = CfnRouteServerPeerLogsMixin;
|
|
|
205
401
|
* Output Format options for each destination of CfnRouteServerPeerEventLogs.
|
|
206
402
|
*/
|
|
207
403
|
class CfnRouteServerPeerEventLogsOutputFormat {
|
|
208
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.mixins.CfnRouteServerPeerEventLogsOutputFormat", version: "2.
|
|
404
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ec2.mixins.CfnRouteServerPeerEventLogsOutputFormat", version: "2.276.0-alpha.0" };
|
|
209
405
|
}
|
|
210
406
|
exports.CfnRouteServerPeerEventLogsOutputFormat = CfnRouteServerPeerEventLogsOutputFormat;
|
|
211
407
|
(function (CfnRouteServerPeerEventLogsOutputFormat) {
|
|
@@ -7,7 +7,7 @@ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
|
|
|
7
7
|
* EventBridge event pattern for aws.ecr@AWSAPICallViaCloudTrail
|
|
8
8
|
*/
|
|
9
9
|
class AWSAPICallViaCloudTrail {
|
|
10
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ecr.events.AWSAPICallViaCloudTrail", version: "2.
|
|
10
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ecr.events.AWSAPICallViaCloudTrail", version: "2.276.0-alpha.0" };
|
|
11
11
|
/**
|
|
12
12
|
* EventBridge event pattern for AWS API Call via CloudTrail
|
|
13
13
|
*/
|
|
@@ -51,7 +51,7 @@ function convertAWSAPICallViaCloudTrailRequestParametersToEventPattern(obj, iRef
|
|
|
51
51
|
const ret = {
|
|
52
52
|
acceptedMediaTypes: obj?.acceptedMediaTypes,
|
|
53
53
|
registryId: obj?.registryId,
|
|
54
|
-
repositoryName: (obj?.repositoryName ?? [iRef
|
|
54
|
+
repositoryName: (obj?.repositoryName ?? ((iRef === undefined) ? undefined : [iRef.repositoryRef.repositoryName])),
|
|
55
55
|
imageIds: obj?.imageIds
|
|
56
56
|
};
|
|
57
57
|
for (const [key, value] of Object.entries(ret)) {
|
|
@@ -178,7 +178,7 @@ function convertAWSAPICallViaCloudTrailDetailToEventPattern(obj, iRef) {
|
|
|
178
178
|
* EventBridge event patterns for Repository
|
|
179
179
|
*/
|
|
180
180
|
class RepositoryEvents {
|
|
181
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ecr.events.RepositoryEvents", version: "2.
|
|
181
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ecr.events.RepositoryEvents", version: "2.276.0-alpha.0" };
|
|
182
182
|
/**
|
|
183
183
|
* Create RepositoryEvents from a Repository reference
|
|
184
184
|
*/
|
|
@@ -330,7 +330,7 @@ exports.RepositoryEvents = RepositoryEvents;
|
|
|
330
330
|
* EventBridge event pattern for aws.ecr@ECRImageAction
|
|
331
331
|
*/
|
|
332
332
|
class ECRImageAction {
|
|
333
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ecr.events.ECRImageAction", version: "2.
|
|
333
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ecr.events.ECRImageAction", version: "2.276.0-alpha.0" };
|
|
334
334
|
/**
|
|
335
335
|
* EventBridge event pattern for ECR Image Action
|
|
336
336
|
*/
|
|
@@ -362,7 +362,7 @@ function convertECRImageActionDetailToEventPattern(obj, iRef) {
|
|
|
362
362
|
"target-storage-class": obj?.targetStorageClass,
|
|
363
363
|
"image-digest": obj?.imageDigest,
|
|
364
364
|
"image-tag": obj?.imageTag,
|
|
365
|
-
"repository-name": (obj?.repositoryName ?? [iRef
|
|
365
|
+
"repository-name": (obj?.repositoryName ?? ((iRef === undefined) ? undefined : [iRef.repositoryRef.repositoryName])),
|
|
366
366
|
result: obj?.result,
|
|
367
367
|
"manifest-media-type": obj?.manifestMediaType,
|
|
368
368
|
"artifact-media-type": obj?.artifactMediaType,
|
|
@@ -381,7 +381,7 @@ function convertECRImageActionDetailToEventPattern(obj, iRef) {
|
|
|
381
381
|
* EventBridge event pattern for aws.ecr@ECRImageScan
|
|
382
382
|
*/
|
|
383
383
|
class ECRImageScan {
|
|
384
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ecr.events.ECRImageScan", version: "2.
|
|
384
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ecr.events.ECRImageScan", version: "2.276.0-alpha.0" };
|
|
385
385
|
/**
|
|
386
386
|
* EventBridge event pattern for ECR Image Scan
|
|
387
387
|
*/
|
|
@@ -430,7 +430,7 @@ function convertECRImageScanDetailToEventPattern(obj, iRef) {
|
|
|
430
430
|
const ret = {
|
|
431
431
|
"image-digest": obj?.imageDigest,
|
|
432
432
|
"image-tags": obj?.imageTags,
|
|
433
|
-
"repository-name": (obj?.repositoryName ?? [iRef
|
|
433
|
+
"repository-name": (obj?.repositoryName ?? ((iRef === undefined) ? undefined : [iRef.repositoryRef.repositoryName])),
|
|
434
434
|
"scan-status": obj?.scanStatus,
|
|
435
435
|
"finding-severity-counts": convertECRImageScanFindingSeverityCountsToEventPattern(obj?.findingSeverityCounts, iRef)
|
|
436
436
|
};
|
|
@@ -447,7 +447,7 @@ function convertECRImageScanDetailToEventPattern(obj, iRef) {
|
|
|
447
447
|
* EventBridge event pattern for aws.ecr@ECRPullThroughCacheAction
|
|
448
448
|
*/
|
|
449
449
|
class ECRPullThroughCacheAction {
|
|
450
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ecr.events.ECRPullThroughCacheAction", version: "2.
|
|
450
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ecr.events.ECRPullThroughCacheAction", version: "2.276.0-alpha.0" };
|
|
451
451
|
/**
|
|
452
452
|
* EventBridge event pattern for ECR Pull Through Cache Action
|
|
453
453
|
*/
|
|
@@ -477,7 +477,7 @@ function convertECRPullThroughCacheActionDetailToEventPattern(obj, iRef) {
|
|
|
477
477
|
const ret = {
|
|
478
478
|
"sync-status": obj?.syncStatus,
|
|
479
479
|
"ecr-repository-prefix": obj?.ecrRepositoryPrefix,
|
|
480
|
-
"repository-name": (obj?.repositoryName ?? [iRef
|
|
480
|
+
"repository-name": (obj?.repositoryName ?? ((iRef === undefined) ? undefined : [iRef.repositoryRef.repositoryName])),
|
|
481
481
|
"upstream-registry-url": obj?.upstreamRegistryUrl,
|
|
482
482
|
"image-tag": obj?.imageTag,
|
|
483
483
|
"image-digest": obj?.imageDigest,
|
|
@@ -497,7 +497,7 @@ function convertECRPullThroughCacheActionDetailToEventPattern(obj, iRef) {
|
|
|
497
497
|
* EventBridge event pattern for aws.ecr@ECRReferrerAction
|
|
498
498
|
*/
|
|
499
499
|
class ECRReferrerAction {
|
|
500
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ecr.events.ECRReferrerAction", version: "2.
|
|
500
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ecr.events.ECRReferrerAction", version: "2.276.0-alpha.0" };
|
|
501
501
|
/**
|
|
502
502
|
* EventBridge event pattern for ECR Referrer Action
|
|
503
503
|
*/
|
|
@@ -529,7 +529,7 @@ function convertECRReferrerActionDetailToEventPattern(obj, iRef) {
|
|
|
529
529
|
"target-storage-class": obj?.targetStorageClass,
|
|
530
530
|
"image-digest": obj?.imageDigest,
|
|
531
531
|
"image-tag": obj?.imageTag,
|
|
532
|
-
"repository-name": (obj?.repositoryName ?? [iRef
|
|
532
|
+
"repository-name": (obj?.repositoryName ?? ((iRef === undefined) ? undefined : [iRef.repositoryRef.repositoryName])),
|
|
533
533
|
result: obj?.result,
|
|
534
534
|
"manifest-media-type": obj?.manifestMediaType,
|
|
535
535
|
"artifact-media-type": obj?.artifactMediaType,
|
|
@@ -548,7 +548,7 @@ function convertECRReferrerActionDetailToEventPattern(obj, iRef) {
|
|
|
548
548
|
* EventBridge event pattern for aws.ecr@ECRReplicationAction
|
|
549
549
|
*/
|
|
550
550
|
class ECRReplicationAction {
|
|
551
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ecr.events.ECRReplicationAction", version: "2.
|
|
551
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ecr.events.ECRReplicationAction", version: "2.276.0-alpha.0" };
|
|
552
552
|
/**
|
|
553
553
|
* EventBridge event pattern for ECR Replication Action
|
|
554
554
|
*/
|
|
@@ -579,7 +579,7 @@ function convertECRReplicationActionDetailToEventPattern(obj, iRef) {
|
|
|
579
579
|
"action-type": obj?.actionType,
|
|
580
580
|
"image-digest": obj?.imageDigest,
|
|
581
581
|
"image-tag": obj?.imageTag,
|
|
582
|
-
"repository-name": (obj?.repositoryName ?? [iRef
|
|
582
|
+
"repository-name": (obj?.repositoryName ?? ((iRef === undefined) ? undefined : [iRef.repositoryRef.repositoryName])),
|
|
583
583
|
result: obj?.result,
|
|
584
584
|
"source-account": obj?.sourceAccount,
|
|
585
585
|
"source-region": obj?.sourceRegion
|
|
@@ -7,7 +7,7 @@ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
|
|
|
7
7
|
* EventBridge event pattern for aws.ecs@AWSAPICallViaCloudTrail
|
|
8
8
|
*/
|
|
9
9
|
class AWSAPICallViaCloudTrail {
|
|
10
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ecs.events.AWSAPICallViaCloudTrail", version: "2.
|
|
10
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ecs.events.AWSAPICallViaCloudTrail", version: "2.276.0-alpha.0" };
|
|
11
11
|
/**
|
|
12
12
|
* EventBridge event pattern for AWS API Call via CloudTrail
|
|
13
13
|
*/
|
|
@@ -131,7 +131,7 @@ function convertAWSAPICallViaCloudTrailResponseElementsItemToEventPattern(obj, i
|
|
|
131
131
|
version: obj?.version,
|
|
132
132
|
tags: obj?.tags,
|
|
133
133
|
createdAt: obj?.createdAt,
|
|
134
|
-
clusterArn: (obj?.clusterArn ?? [iRef
|
|
134
|
+
clusterArn: (obj?.clusterArn ?? ((iRef === undefined) ? undefined : [iRef.clusterRef.clusterArn])),
|
|
135
135
|
taskDefinitionArn: obj?.taskDefinitionArn,
|
|
136
136
|
platformVersion: obj?.platformVersion,
|
|
137
137
|
containers: obj?.containers,
|
|
@@ -391,7 +391,7 @@ function convertAWSAPICallViaCloudTrailDetailToEventPattern(obj, iRef) {
|
|
|
391
391
|
* EventBridge event patterns for Cluster
|
|
392
392
|
*/
|
|
393
393
|
class ClusterEvents {
|
|
394
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ecs.events.ClusterEvents", version: "2.
|
|
394
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ecs.events.ClusterEvents", version: "2.276.0-alpha.0" };
|
|
395
395
|
/**
|
|
396
396
|
* Create ClusterEvents from a Cluster reference
|
|
397
397
|
*/
|
|
@@ -499,7 +499,7 @@ exports.ClusterEvents = ClusterEvents;
|
|
|
499
499
|
* EventBridge event pattern for aws.ecs@ECSContainerInstanceStateChange
|
|
500
500
|
*/
|
|
501
501
|
class ECSContainerInstanceStateChange {
|
|
502
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ecs.events.ECSContainerInstanceStateChange", version: "2.
|
|
502
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ecs.events.ECSContainerInstanceStateChange", version: "2.276.0-alpha.0" };
|
|
503
503
|
/**
|
|
504
504
|
* EventBridge event pattern for ECS Container Instance State Change
|
|
505
505
|
*/
|
|
@@ -620,7 +620,7 @@ function convertECSContainerInstanceStateChangeDetailToEventPattern(obj, iRef) {
|
|
|
620
620
|
agentUpdateStatus: obj?.agentUpdateStatus,
|
|
621
621
|
version: obj?.version,
|
|
622
622
|
pendingTasksCount: obj?.pendingTasksCount,
|
|
623
|
-
clusterArn: (obj?.clusterArn ?? [iRef
|
|
623
|
+
clusterArn: (obj?.clusterArn ?? ((iRef === undefined) ? undefined : [iRef.clusterRef.clusterArn])),
|
|
624
624
|
attributes: obj?.attributes,
|
|
625
625
|
containerInstanceArn: obj?.containerInstanceArn,
|
|
626
626
|
status: obj?.status,
|
|
@@ -641,7 +641,7 @@ function convertECSContainerInstanceStateChangeDetailToEventPattern(obj, iRef) {
|
|
|
641
641
|
* EventBridge event pattern for aws.ecs@ECSServiceAction
|
|
642
642
|
*/
|
|
643
643
|
class ECSServiceAction {
|
|
644
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ecs.events.ECSServiceAction", version: "2.
|
|
644
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ecs.events.ECSServiceAction", version: "2.276.0-alpha.0" };
|
|
645
645
|
/**
|
|
646
646
|
* EventBridge event pattern for ECS Service Action
|
|
647
647
|
*/
|
|
@@ -670,7 +670,7 @@ exports.ECSServiceAction = ECSServiceAction;
|
|
|
670
670
|
function convertECSServiceActionDetailToEventPattern(obj, iRef) {
|
|
671
671
|
const ret = {
|
|
672
672
|
capacityProviderArns: obj?.capacityProviderArns,
|
|
673
|
-
clusterArn: (obj?.clusterArn ?? [iRef
|
|
673
|
+
clusterArn: (obj?.clusterArn ?? ((iRef === undefined) ? undefined : [iRef.clusterRef.clusterArn])),
|
|
674
674
|
createdAt: obj?.createdAt,
|
|
675
675
|
eventName: obj?.eventName,
|
|
676
676
|
eventType: obj?.eventType,
|
|
@@ -698,7 +698,7 @@ function convertECSServiceActionDetailToEventPattern(obj, iRef) {
|
|
|
698
698
|
* EventBridge event pattern for aws.ecs@ECSTaskStateChange
|
|
699
699
|
*/
|
|
700
700
|
class ECSTaskStateChange {
|
|
701
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ecs.events.ECSTaskStateChange", version: "2.
|
|
701
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ecs.events.ECSTaskStateChange", version: "2.276.0-alpha.0" };
|
|
702
702
|
/**
|
|
703
703
|
* EventBridge event pattern for ECS Task State Change
|
|
704
704
|
*/
|
|
@@ -875,7 +875,7 @@ function convertECSTaskStateChangeDetailToEventPattern(obj, iRef) {
|
|
|
875
875
|
taskArn: obj?.taskArn,
|
|
876
876
|
startedAt: obj?.startedAt,
|
|
877
877
|
createdAt: obj?.createdAt,
|
|
878
|
-
clusterArn: (obj?.clusterArn ?? [iRef
|
|
878
|
+
clusterArn: (obj?.clusterArn ?? ((iRef === undefined) ? undefined : [iRef.clusterRef.clusterArn])),
|
|
879
879
|
connectivity: obj?.connectivity,
|
|
880
880
|
platformVersion: obj?.platformVersion,
|
|
881
881
|
containerInstanceArn: obj?.containerInstanceArn,
|
|
@@ -48,7 +48,7 @@ const service = __importStar(require("aws-cdk-lib/aws-ecs"));
|
|
|
48
48
|
* @stability external
|
|
49
49
|
*/
|
|
50
50
|
class CfnClusterActionLogs {
|
|
51
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ecs.mixins.CfnClusterActionLogs", version: "2.
|
|
51
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ecs.mixins.CfnClusterActionLogs", version: "2.276.0-alpha.0" };
|
|
52
52
|
/**
|
|
53
53
|
* Send logs to an S3 Bucket
|
|
54
54
|
*
|
|
@@ -157,7 +157,7 @@ exports.CfnClusterActionLogs = CfnClusterActionLogs;
|
|
|
157
157
|
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-cluster.html
|
|
158
158
|
*/
|
|
159
159
|
class CfnClusterLogsMixin extends cdk.Mixin {
|
|
160
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ecs.mixins.CfnClusterLogsMixin", version: "2.
|
|
160
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ecs.mixins.CfnClusterLogsMixin", version: "2.276.0-alpha.0" };
|
|
161
161
|
static ACTION_LOGS = new CfnClusterActionLogs();
|
|
162
162
|
logType;
|
|
163
163
|
logDelivery;
|
|
@@ -203,7 +203,7 @@ exports.CfnClusterLogsMixin = CfnClusterLogsMixin;
|
|
|
203
203
|
* Output Format options for each destination of CfnClusterActionLogs.
|
|
204
204
|
*/
|
|
205
205
|
class CfnClusterActionLogsOutputFormat {
|
|
206
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ecs.mixins.CfnClusterActionLogsOutputFormat", version: "2.
|
|
206
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_ecs.mixins.CfnClusterActionLogsOutputFormat", version: "2.276.0-alpha.0" };
|
|
207
207
|
}
|
|
208
208
|
exports.CfnClusterActionLogsOutputFormat = CfnClusterActionLogsOutputFormat;
|
|
209
209
|
(function (CfnClusterActionLogsOutputFormat) {
|