@aws-cdk/mixins-preview 2.243.0-alpha.0 → 2.244.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 +65 -1
- package/lib/services/aws-appmesh/events.generated.js +1 -1
- package/lib/services/aws-aps/logs-delivery-mixins.generated.js +6 -6
- package/lib/services/aws-athena/events.generated.js +2 -2
- package/lib/services/aws-autoscaling/events.generated.js +8 -8
- package/lib/services/aws-b2bi/events.generated.js +4 -4
- package/lib/services/aws-b2bi/logs-delivery-mixins.generated.js +3 -3
- package/lib/services/aws-backupgateway/logs-delivery-mixins.generated.js +5 -5
- package/lib/services/aws-batch/events.generated.js +2 -2
- package/lib/services/aws-bedrock/logs-delivery-mixins.generated.js +16 -16
- package/lib/services/aws-bedrockagentcore/logs-delivery-mixins.generated.js +28 -28
- package/lib/services/aws-cleanrooms/logs-delivery-mixins.generated.js +3 -3
- 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 +3 -3
- package/lib/services/aws-codebuild/events.generated.js +5 -5
- package/lib/services/aws-codecommit/events.generated.js +7 -7
- package/lib/services/aws-codedeploy/events.generated.js +2 -2
- package/lib/services/aws-codeguruprofiler/events.generated.js +1 -1
- package/lib/services/aws-codepipeline/events.generated.js +3 -3
- package/lib/services/aws-cognito/logs-delivery-mixins.generated.js +3 -3
- package/lib/services/aws-connect/events.generated.js +4 -4
- package/lib/services/aws-connect/logs-delivery-mixins.generated.js +3 -3
- 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 +8 -8
- package/lib/services/aws-ec2/logs-delivery-mixins.generated.js +14 -14
- package/lib/services/aws-ecr/events.generated.d.ts +32 -0
- package/lib/services/aws-ecr/events.generated.js +13 -9
- package/lib/services/aws-ecs/events.generated.js +5 -5
- package/lib/services/aws-eks/logs-delivery-mixins.generated.js +16 -16
- package/lib/services/aws-elasticache/events.generated.js +10 -10
- package/lib/services/aws-elasticloadbalancingv2/logs-delivery-mixins.generated.js +9 -9
- 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-glue/events.generated.js +7 -7
- package/lib/services/aws-guardduty/events.generated.js +7 -7
- package/lib/services/aws-healthimaging/events.generated.js +20 -20
- package/lib/services/aws-healthlake/events.generated.js +14 -14
- package/lib/services/aws-imagebuilder/events.generated.js +3 -3
- package/lib/services/aws-iotanalytics/events.generated.js +3 -3
- package/lib/services/aws-iotfleetwise/logs-delivery-mixins.generated.js +6 -6
- package/lib/services/aws-ivschat/logs-delivery-mixins.generated.js +3 -3
- package/lib/services/aws-kafkaconnect/logs-delivery-mixins.generated.js +3 -3
- package/lib/services/aws-kms/events.generated.js +5 -5
- package/lib/services/aws-logs/events.generated.js +2 -2
- package/lib/services/aws-logs/logs-delivery-mixins.generated.js +3 -3
- package/lib/services/aws-logs/logs-delivery.js +5 -5
- package/lib/services/aws-logs/logs-destination.d.ts +1 -15
- package/lib/services/aws-logs/logs-destination.js +57 -129
- package/lib/services/aws-logs/reflections.d.ts +0 -18
- package/lib/services/aws-logs/reflections.js +0 -32
- package/lib/services/aws-m2/logs-delivery-mixins.generated.js +9 -9
- package/lib/services/aws-managedblockchain/events.generated.js +2 -2
- package/lib/services/aws-medialive/events.generated.js +6 -6
- 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-msk/logs-delivery-mixins.generated.js +6 -6
- package/lib/services/aws-networkfirewall/.events.jsiirc.json +16 -0
- package/lib/services/aws-networkfirewall/events.d.ts +1 -0
- package/lib/services/aws-networkfirewall/events.generated.d.ts +310 -0
- package/lib/services/aws-networkfirewall/events.generated.js +234 -0
- package/lib/services/aws-networkfirewall/events.js +17 -0
- package/lib/services/aws-networkfirewall/index.d.ts +1 -0
- package/lib/services/aws-networkfirewall/index.js +2 -1
- package/lib/services/aws-networkfirewall/logs-delivery-mixins.generated.js +7 -7
- package/lib/services/aws-networkmanager/events.generated.js +3 -3
- package/lib/services/aws-omics/events.generated.js +18 -18
- package/lib/services/aws-opsworks/events.generated.js +6 -6
- package/lib/services/aws-organizations/events.generated.js +2 -2
- package/lib/services/aws-osis/logs-delivery-mixins.generated.js +3 -3
- package/lib/services/aws-pcs/logs-delivery-mixins.generated.js +7 -7
- package/lib/services/aws-pipes/logs-delivery-mixins.generated.js +3 -3
- 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-route53profiles/logs-delivery-mixins.generated.js +3 -3
- package/lib/services/aws-route53recoveryreadiness/events.generated.js +6 -6
- package/lib/services/aws-route53resolver/events.generated.js +3 -3
- package/lib/services/aws-rum/logs-delivery-mixins.generated.js +7 -7
- package/lib/services/aws-s3/events.generated.js +12 -12
- package/lib/services/aws-s3/logs-delivery-mixins.generated.js +3 -3
- package/lib/services/aws-sagemaker/events.generated.js +16 -16
- package/lib/services/aws-sagemaker/logs-delivery-mixins.generated.js +3 -3
- package/lib/services/aws-securityhub/events.generated.js +3 -3
- 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-stepfunctions/logs-delivery-mixins.generated.js +5 -5
- package/lib/services/aws-synthetics/events.generated.js +3 -3
- package/lib/services/aws-transfer/events.generated.js +56 -56
- package/lib/services/aws-transfer/logs-delivery-mixins.generated.js +3 -3
- package/lib/services/aws-voiceid/events.generated.js +9 -9
- package/lib/services/aws-vpclattice/logs-delivery-mixins.generated.js +6 -6
- package/lib/services/aws-wafv2/logs-delivery-mixins.generated.js +5 -5
- package/lib/services/aws-wisdom/logs-delivery-mixins.generated.js +3 -3
- package/lib/services/aws-workspaces/events.generated.js +2 -2
- package/lib/services/aws-xray/events.generated.js +1 -1
- package/package.json +10 -9
- package/scripts/spec2logs/generate.js +1 -0
|
@@ -26,7 +26,7 @@ var S3LogsDeliveryPermissionsVersion;
|
|
|
26
26
|
* Delivers vended logs to an S3 Bucket.
|
|
27
27
|
*/
|
|
28
28
|
class S3LogsDelivery {
|
|
29
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_logs.S3LogsDelivery", version: "2.
|
|
29
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_logs.S3LogsDelivery", version: "2.244.0-alpha.0" };
|
|
30
30
|
bucket;
|
|
31
31
|
permissions;
|
|
32
32
|
kmsKey;
|
|
@@ -86,7 +86,7 @@ exports.S3LogsDelivery = S3LogsDelivery;
|
|
|
86
86
|
* Delivers vended logs to a Firehose Delivery Stream.
|
|
87
87
|
*/
|
|
88
88
|
class FirehoseLogsDelivery {
|
|
89
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_logs.FirehoseLogsDelivery", version: "2.
|
|
89
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_logs.FirehoseLogsDelivery", version: "2.244.0-alpha.0" };
|
|
90
90
|
deliveryStream;
|
|
91
91
|
outputFormat;
|
|
92
92
|
providedFields;
|
|
@@ -140,7 +140,7 @@ exports.FirehoseLogsDelivery = FirehoseLogsDelivery;
|
|
|
140
140
|
* Delivers vended logs to a CloudWatch Log Group.
|
|
141
141
|
*/
|
|
142
142
|
class LogGroupLogsDelivery {
|
|
143
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_logs.LogGroupLogsDelivery", version: "2.
|
|
143
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_logs.LogGroupLogsDelivery", version: "2.244.0-alpha.0" };
|
|
144
144
|
logGroup;
|
|
145
145
|
outputFormat;
|
|
146
146
|
providedFields;
|
|
@@ -195,7 +195,7 @@ exports.LogGroupLogsDelivery = LogGroupLogsDelivery;
|
|
|
195
195
|
* Delivers vended logs to AWS X-Ray.
|
|
196
196
|
*/
|
|
197
197
|
class XRayLogsDelivery {
|
|
198
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_logs.XRayLogsDelivery", version: "2.
|
|
198
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_logs.XRayLogsDelivery", version: "2.244.0-alpha.0" };
|
|
199
199
|
providedFields;
|
|
200
200
|
mandatoryFields;
|
|
201
201
|
/**
|
|
@@ -243,7 +243,7 @@ exports.XRayLogsDelivery = XRayLogsDelivery;
|
|
|
243
243
|
* Delivers vended logs to a CfnDeliveryDestination specified by an arn.
|
|
244
244
|
*/
|
|
245
245
|
class DestinationLogsDelivery {
|
|
246
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_logs.DestinationLogsDelivery", version: "2.
|
|
246
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_logs.DestinationLogsDelivery", version: "2.244.0-alpha.0" };
|
|
247
247
|
providedFields;
|
|
248
248
|
mandatoryFields;
|
|
249
249
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as logs from 'aws-cdk-lib/aws-logs';
|
|
2
2
|
import * as s3 from 'aws-cdk-lib/aws-s3';
|
|
3
3
|
import type { Construct } from 'constructs';
|
|
4
|
-
import type
|
|
4
|
+
import { type IKeyRef } from 'aws-cdk-lib/aws-kms';
|
|
5
5
|
import type { IDeliveryStreamRef } from 'aws-cdk-lib/aws-kinesisfirehose';
|
|
6
6
|
import { S3LogsDeliveryPermissionsVersion } from './logs-delivery';
|
|
7
7
|
/**
|
|
@@ -78,21 +78,13 @@ export interface XRayDeliveryDestinationProps {
|
|
|
78
78
|
export declare class S3DeliveryDestination extends logs.CfnDeliveryDestination {
|
|
79
79
|
private readonly bucket;
|
|
80
80
|
private readonly permissions;
|
|
81
|
-
private readonly kmsKey;
|
|
82
81
|
private readonly sourceAccount;
|
|
83
82
|
constructor(scope: Construct, id: string, props: S3DeliveryDestinationProps);
|
|
84
|
-
/**
|
|
85
|
-
* Gets or creates a bucket policy for the S3 destination Bucket.
|
|
86
|
-
* @param scope - The construct scope
|
|
87
|
-
* @returns The bucket policy
|
|
88
|
-
*/
|
|
89
|
-
private getOrCreateBucketPolicy;
|
|
90
83
|
/**
|
|
91
84
|
* Grants permissions for log delivery to the bucket policy.
|
|
92
85
|
* @param policy - The bucket policy
|
|
93
86
|
*/
|
|
94
87
|
private grantLogsDelivery;
|
|
95
|
-
private findEncryptionKey;
|
|
96
88
|
private addToEncryptionKeyPolicy;
|
|
97
89
|
}
|
|
98
90
|
/**
|
|
@@ -107,12 +99,6 @@ export declare class FirehoseDeliveryDestination extends logs.CfnDeliveryDestina
|
|
|
107
99
|
export declare class CloudwatchDeliveryDestination extends logs.CfnDeliveryDestination {
|
|
108
100
|
private readonly logGroup;
|
|
109
101
|
constructor(scope: Construct, id: string, props: CloudwatchDeliveryDestinationProps);
|
|
110
|
-
/**
|
|
111
|
-
* Gets or creates a singleton Logs Resource Policy.
|
|
112
|
-
* @param scope - The construct scope
|
|
113
|
-
* @returns The resource policy
|
|
114
|
-
*/
|
|
115
|
-
private getOrCreateLogsResourcePolicy;
|
|
116
102
|
/**
|
|
117
103
|
* Grants permissions for log delivery to the resource policy.
|
|
118
104
|
* @param policy - The resource policy
|
|
@@ -6,18 +6,17 @@ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
|
|
|
6
6
|
const core_1 = require("aws-cdk-lib/core");
|
|
7
7
|
const logs = require("aws-cdk-lib/aws-logs");
|
|
8
8
|
const s3 = require("aws-cdk-lib/aws-s3");
|
|
9
|
-
const reflections_1 = require("./reflections");
|
|
10
9
|
const aws_iam_1 = require("aws-cdk-lib/aws-iam");
|
|
10
|
+
const aws_kms_1 = require("aws-cdk-lib/aws-kms");
|
|
11
11
|
const xray = require("./xray-policy");
|
|
12
12
|
const logs_delivery_1 = require("./logs-delivery");
|
|
13
13
|
/**
|
|
14
14
|
* Creates an S3 delivery destination for CloudWatch Logs.
|
|
15
15
|
*/
|
|
16
16
|
class S3DeliveryDestination extends logs.CfnDeliveryDestination {
|
|
17
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_logs.S3DeliveryDestination", version: "2.
|
|
17
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_logs.S3DeliveryDestination", version: "2.244.0-alpha.0" };
|
|
18
18
|
bucket;
|
|
19
19
|
permissions;
|
|
20
|
-
kmsKey;
|
|
21
20
|
sourceAccount;
|
|
22
21
|
constructor(scope, id, props) {
|
|
23
22
|
super(scope, id, {
|
|
@@ -40,114 +39,62 @@ class S3DeliveryDestination extends logs.CfnDeliveryDestination {
|
|
|
40
39
|
}
|
|
41
40
|
this.bucket = props.bucket;
|
|
42
41
|
this.permissions = props.permissionsVersion ? props.permissionsVersion : logs_delivery_1.S3LogsDeliveryPermissionsVersion.V2;
|
|
43
|
-
this.kmsKey = props.encryptionKey;
|
|
44
42
|
this.sourceAccount = props.sourceAccountId;
|
|
45
|
-
const bucketPolicy = this.
|
|
46
|
-
this.grantLogsDelivery(bucketPolicy);
|
|
43
|
+
const bucketPolicy = this.grantLogsDelivery();
|
|
47
44
|
this.node.addDependency(bucketPolicy);
|
|
48
|
-
|
|
49
|
-
if (kmsKey) {
|
|
50
|
-
this.addToEncryptionKeyPolicy(kmsKey);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Gets or creates a bucket policy for the S3 destination Bucket.
|
|
55
|
-
* @param scope - The construct scope
|
|
56
|
-
* @returns The bucket policy
|
|
57
|
-
*/
|
|
58
|
-
getOrCreateBucketPolicy(scope) {
|
|
59
|
-
const existingPolicy = (0, reflections_1.tryFindBucketPolicyForBucket)(this.bucket);
|
|
60
|
-
return existingPolicy ?? new s3.CfnBucketPolicy(scope, 'BucketPolicy', {
|
|
61
|
-
bucket: this.bucket.bucketRef.bucketName,
|
|
62
|
-
policyDocument: {
|
|
63
|
-
Version: '2012-10-17',
|
|
64
|
-
Statement: [],
|
|
65
|
-
},
|
|
66
|
-
});
|
|
45
|
+
this.addToEncryptionKeyPolicy(aws_iam_1.EncryptedResources.of(this.bucket));
|
|
67
46
|
}
|
|
68
47
|
/**
|
|
69
48
|
* Grants permissions for log delivery to the bucket policy.
|
|
70
49
|
* @param policy - The bucket policy
|
|
71
50
|
*/
|
|
72
|
-
grantLogsDelivery(
|
|
73
|
-
const
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
's3:x-amz-acl': 'bucket-owner-full-control',
|
|
85
|
-
'aws:SourceAccount': account,
|
|
86
|
-
},
|
|
87
|
-
ArnLike: {
|
|
88
|
-
'aws:SourceArn': `arn:${stack.partition}:logs:${stack.region}:${account}:delivery-source:*`,
|
|
89
|
-
},
|
|
90
|
-
},
|
|
91
|
-
}),
|
|
92
|
-
];
|
|
51
|
+
grantLogsDelivery() {
|
|
52
|
+
const account = this.sourceAccount ? this.sourceAccount : this.bucket.env.account;
|
|
53
|
+
const principal = new aws_iam_1.PrincipalWithConditions(new aws_iam_1.ServicePrincipal('delivery.logs.amazonaws.com'), {
|
|
54
|
+
StringEquals: {
|
|
55
|
+
's3:x-amz-acl': 'bucket-owner-full-control',
|
|
56
|
+
'aws:SourceAccount': account,
|
|
57
|
+
},
|
|
58
|
+
ArnLike: {
|
|
59
|
+
'aws:SourceArn': `arn:${core_1.Aws.PARTITION}:logs:${this.bucket.env.region}:${account}:delivery-source:*`,
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
const bucketGrants = s3.BucketGrants.fromBucket(this.bucket).actionsOnObjectKeys(principal, `AWSLogs/${account}/*`, 's3:PutObject');
|
|
93
63
|
if (this.permissions == 'V1') {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
StringEquals: {
|
|
101
|
-
'aws:SourceAccount': account,
|
|
102
|
-
},
|
|
103
|
-
ArnLike: {
|
|
104
|
-
'aws:SourceArn': `arn:${stack.partition}:logs:${stack.region}:${account}:*`,
|
|
105
|
-
},
|
|
64
|
+
const v1Principal = new aws_iam_1.PrincipalWithConditions(new aws_iam_1.ServicePrincipal('delivery.logs.amazonaws.com'), {
|
|
65
|
+
StringEquals: {
|
|
66
|
+
'aws:SourceAccount': account,
|
|
67
|
+
},
|
|
68
|
+
ArnLike: {
|
|
69
|
+
'aws:SourceArn': `arn:${core_1.Aws.PARTITION}:logs:${this.bucket.env.region}:${account}:*`,
|
|
106
70
|
},
|
|
107
|
-
})
|
|
71
|
+
});
|
|
72
|
+
s3.BucketGrants.fromBucket(this.bucket).actionsOnBucketAndObjectKeys(v1Principal, undefined, 's3:GetBucketAcl', 's3:ListBucket');
|
|
108
73
|
}
|
|
109
|
-
|
|
110
|
-
.apply(new s3.mixins.BucketPolicyStatements(statements));
|
|
74
|
+
return bucketGrants;
|
|
111
75
|
}
|
|
112
|
-
|
|
113
|
-
if (
|
|
114
|
-
return
|
|
76
|
+
addToEncryptionKeyPolicy(encryptedKey) {
|
|
77
|
+
if (!encryptedKey) {
|
|
78
|
+
return;
|
|
115
79
|
}
|
|
116
|
-
return (0, reflections_1.tryFindKmsKeyforBucket)(this.bucket);
|
|
117
|
-
}
|
|
118
|
-
addToEncryptionKeyPolicy(key) {
|
|
119
|
-
const existingKeyPolicy = key.keyPolicy;
|
|
120
80
|
const sourceArnPostfix = this.permissions === logs_delivery_1.S3LogsDeliveryPermissionsVersion.V1 ? '*' : 'delivery-source:*';
|
|
121
|
-
const account = this.sourceAccount ? this.sourceAccount :
|
|
122
|
-
const
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
actions,
|
|
129
|
-
resources: ['*'],
|
|
130
|
-
conditions: {
|
|
131
|
-
StringEquals: {
|
|
132
|
-
'aws:SourceAccount': [account],
|
|
133
|
-
},
|
|
134
|
-
ArnLike: {
|
|
135
|
-
'aws:SourceArn': [`arn:${core_1.Aws.PARTITION}:logs:${key.env.region}:${account}:${sourceArnPostfix}`],
|
|
136
|
-
},
|
|
81
|
+
const account = this.sourceAccount ? this.sourceAccount : encryptedKey.env.account;
|
|
82
|
+
const principal = new aws_iam_1.PrincipalWithConditions(new aws_iam_1.ServicePrincipal('delivery.logs.amazonaws.com'), {
|
|
83
|
+
StringEquals: {
|
|
84
|
+
'aws:SourceAccount': [account],
|
|
85
|
+
},
|
|
86
|
+
ArnLike: {
|
|
87
|
+
'aws:SourceArn': [`arn:${core_1.Aws.PARTITION}:logs:${encryptedKey.env.region}:${account}:${sourceArnPostfix}`],
|
|
137
88
|
},
|
|
138
89
|
});
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
return;
|
|
90
|
+
const actions = this.sourceAccount ? ['kms:GenerateDataKey*'] : ['kms:Encrypt', 'kms:Decrypt', 'kms:ReEncrypt*', 'kms:GenerateDataKey*', 'kms:DescribeKey'];
|
|
91
|
+
if (encryptedKey instanceof aws_kms_1.CfnKey) {
|
|
92
|
+
const keyGrant = aws_kms_1.KeyGrants.fromKey(encryptedKey);
|
|
93
|
+
keyGrant.actions(principal, ...actions);
|
|
144
94
|
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
if (hasDuplicateSid) {
|
|
148
|
-
return;
|
|
95
|
+
else {
|
|
96
|
+
encryptedKey.grantOnKey(principal, ...actions);
|
|
149
97
|
}
|
|
150
|
-
existingKeyPolicy.addStatements(keyStatement);
|
|
151
98
|
}
|
|
152
99
|
}
|
|
153
100
|
exports.S3DeliveryDestination = S3DeliveryDestination;
|
|
@@ -155,7 +102,7 @@ exports.S3DeliveryDestination = S3DeliveryDestination;
|
|
|
155
102
|
* Firehose delivery destination for CloudWatch Logs.
|
|
156
103
|
*/
|
|
157
104
|
class FirehoseDeliveryDestination extends logs.CfnDeliveryDestination {
|
|
158
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_logs.FirehoseDeliveryDestination", version: "2.
|
|
105
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_logs.FirehoseDeliveryDestination", version: "2.244.0-alpha.0" };
|
|
159
106
|
constructor(scope, id, props) {
|
|
160
107
|
super(scope, id, {
|
|
161
108
|
destinationResourceArn: props.deliveryStream.deliveryStreamRef.deliveryStreamArn,
|
|
@@ -183,7 +130,7 @@ exports.FirehoseDeliveryDestination = FirehoseDeliveryDestination;
|
|
|
183
130
|
* CloudWatch delivery destination for CloudWatch Logs.
|
|
184
131
|
*/
|
|
185
132
|
class CloudwatchDeliveryDestination extends logs.CfnDeliveryDestination {
|
|
186
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_logs.CloudwatchDeliveryDestination", version: "2.
|
|
133
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_logs.CloudwatchDeliveryDestination", version: "2.244.0-alpha.0" };
|
|
187
134
|
logGroup;
|
|
188
135
|
constructor(scope, id, props) {
|
|
189
136
|
super(scope, id, {
|
|
@@ -202,44 +149,25 @@ class CloudwatchDeliveryDestination extends logs.CfnDeliveryDestination {
|
|
|
202
149
|
throw error;
|
|
203
150
|
}
|
|
204
151
|
this.logGroup = props.logGroup;
|
|
205
|
-
const
|
|
206
|
-
this.
|
|
207
|
-
this.node.addDependency(logGroupPolicy);
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* Gets or creates a singleton Logs Resource Policy.
|
|
211
|
-
* @param scope - The construct scope
|
|
212
|
-
* @returns The resource policy
|
|
213
|
-
*/
|
|
214
|
-
getOrCreateLogsResourcePolicy(scope) {
|
|
215
|
-
const stack = core_1.Stack.of(scope);
|
|
216
|
-
const policyId = 'CdkLogGroupLogsDeliveryPolicy';
|
|
217
|
-
// Singleton policy per stack
|
|
218
|
-
const existingPolicy = stack.node.tryFindChild(policyId);
|
|
219
|
-
return existingPolicy ?? new logs.ResourcePolicy(stack, policyId, {
|
|
220
|
-
resourcePolicyName: core_1.Names.uniqueResourceName(scope, { maxLength: 255 }),
|
|
221
|
-
});
|
|
152
|
+
const logPolicy = this.grantLogsDelivery();
|
|
153
|
+
this.node.addDependency(logPolicy);
|
|
222
154
|
}
|
|
223
155
|
/**
|
|
224
156
|
* Grants permissions for log delivery to the resource policy.
|
|
225
157
|
* @param policy - The resource policy
|
|
226
158
|
*/
|
|
227
|
-
grantLogsDelivery(
|
|
228
|
-
const stack = core_1.Stack.of(
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
actions: ['logs:CreateLogStream', 'logs:PutLogEvents'],
|
|
233
|
-
resources: [`${this.logGroup.logGroupRef.logGroupArn}:log-stream:*`],
|
|
234
|
-
conditions: {
|
|
235
|
-
StringEquals: {
|
|
236
|
-
'aws:SourceAccount': stack.account,
|
|
237
|
-
},
|
|
238
|
-
ArnLike: {
|
|
239
|
-
'aws:SourceArn': `arn:${stack.partition}:logs:${stack.region}:${stack.account}:*`,
|
|
240
|
-
},
|
|
159
|
+
grantLogsDelivery() {
|
|
160
|
+
const stack = core_1.Stack.of(this.logGroup);
|
|
161
|
+
const principal = new aws_iam_1.PrincipalWithConditions(new aws_iam_1.ServicePrincipal('delivery.logs.amazonaws.com'), {
|
|
162
|
+
StringEquals: {
|
|
163
|
+
'aws:SourceAccount': stack.account,
|
|
241
164
|
},
|
|
242
|
-
|
|
165
|
+
ArnLike: {
|
|
166
|
+
'aws:SourceArn': `arn:${stack.partition}:logs:${stack.region}:${stack.account}:*`,
|
|
167
|
+
},
|
|
168
|
+
});
|
|
169
|
+
const logGrants = logs.LogGroupGrants.fromLogGroup(this.logGroup);
|
|
170
|
+
return logGrants.write(principal);
|
|
243
171
|
}
|
|
244
172
|
}
|
|
245
173
|
exports.CloudwatchDeliveryDestination = CloudwatchDeliveryDestination;
|
|
@@ -247,7 +175,7 @@ exports.CloudwatchDeliveryDestination = CloudwatchDeliveryDestination;
|
|
|
247
175
|
* XRay delivery destination for XRay traces.
|
|
248
176
|
*/
|
|
249
177
|
class XRayDeliveryDestination extends logs.CfnDeliveryDestination {
|
|
250
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_logs.XRayDeliveryDestination", version: "2.
|
|
178
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_logs.XRayDeliveryDestination", version: "2.244.0-alpha.0" };
|
|
251
179
|
constructor(scope, id, props) {
|
|
252
180
|
super(scope, id, {
|
|
253
181
|
name: deliveryDestName('xray', id, scope),
|
|
@@ -1,21 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ATTENTION: these functions are partly copied from the aws-cdk-lib package, because
|
|
3
|
-
* they are not exported from there. Before mixins goes GA, vended logs should be
|
|
4
|
-
* updated to use resource traits instead and duplicate reflections removed.
|
|
5
|
-
*/
|
|
6
1
|
import type { IConstruct } from 'constructs';
|
|
7
|
-
import type { CfnBucketPolicy } from 'aws-cdk-lib/aws-s3';
|
|
8
|
-
import { type IBucketRef } from 'aws-cdk-lib/aws-s3';
|
|
9
2
|
import type { CfnDeliverySource } from 'aws-cdk-lib/aws-logs';
|
|
10
|
-
import type { CfnKey, IKeyRef } from 'aws-cdk-lib/aws-kms';
|
|
11
|
-
/**
|
|
12
|
-
* Attempts to find an existing bucket policy for the specified S3 bucket.
|
|
13
|
-
* Finds the closest matching policy to the specified bucket.
|
|
14
|
-
*
|
|
15
|
-
* @param bucket - The S3 bucket reference to search for an associated bucket policy
|
|
16
|
-
* @returns The bucket policy if found, undefined otherwise
|
|
17
|
-
*/
|
|
18
|
-
export declare function tryFindBucketPolicyForBucket(bucket: IBucketRef): CfnBucketPolicy | undefined;
|
|
19
3
|
export declare function tryFindDeliverySourceForResource(source: IConstruct, sourceArn: string, logType: string): CfnDeliverySource | undefined;
|
|
20
|
-
export declare function tryFindKmsKeyforBucket(bucket: IBucketRef): CfnKey | undefined;
|
|
21
|
-
export declare function tryFindKmsKeyConstruct(kmsKey: IKeyRef): CfnKey | undefined;
|
|
@@ -1,39 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.tryFindBucketPolicyForBucket = tryFindBucketPolicyForBucket;
|
|
4
3
|
exports.tryFindDeliverySourceForResource = tryFindDeliverySourceForResource;
|
|
5
|
-
exports.tryFindKmsKeyforBucket = tryFindKmsKeyforBucket;
|
|
6
|
-
exports.tryFindKmsKeyConstruct = tryFindKmsKeyConstruct;
|
|
7
4
|
const helpers_internal_1 = require("aws-cdk-lib/core/lib/helpers-internal");
|
|
8
|
-
/**
|
|
9
|
-
* Attempts to find an existing bucket policy for the specified S3 bucket.
|
|
10
|
-
* Finds the closest matching policy to the specified bucket.
|
|
11
|
-
*
|
|
12
|
-
* @param bucket - The S3 bucket reference to search for an associated bucket policy
|
|
13
|
-
* @returns The bucket policy if found, undefined otherwise
|
|
14
|
-
*/
|
|
15
|
-
function tryFindBucketPolicyForBucket(bucket) {
|
|
16
|
-
return (0, helpers_internal_1.findClosestRelatedResource)(bucket, 'AWS::S3::BucketPolicy', (b, policy) => {
|
|
17
|
-
const possibleRefs = new Set([b.ref, b.bucketName, b.bucketArn, b.bucketRef?.bucketName, b.bucketRef?.bucketArn].filter(Boolean));
|
|
18
|
-
return possibleRefs.has(policy.bucket) || String(policy.bucket).includes(b.node.id);
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
5
|
function tryFindDeliverySourceForResource(source, sourceArn, logType) {
|
|
22
6
|
return (0, helpers_internal_1.findClosestRelatedResource)(source, 'AWS::Logs::DeliverySource', (_, deliverySource) => deliverySource.resourceArn === sourceArn && deliverySource.logType === logType);
|
|
23
7
|
}
|
|
24
|
-
function tryFindKmsKeyforBucket(bucket) {
|
|
25
|
-
const cfnBucket = tryFindBucketConstruct(bucket);
|
|
26
|
-
const kmsMasterKeyId = cfnBucket && Array.isArray(cfnBucket.bucketEncryption?.serverSideEncryptionConfiguration) ?
|
|
27
|
-
cfnBucket.bucketEncryption.serverSideEncryptionConfiguration[0]?.serverSideEncryptionByDefault?.kmsMasterKeyId
|
|
28
|
-
: undefined;
|
|
29
|
-
if (!kmsMasterKeyId) {
|
|
30
|
-
return undefined;
|
|
31
|
-
}
|
|
32
|
-
return (0, helpers_internal_1.findClosestRelatedResource)(bucket, 'AWS::KMS::Key', (_, key) => key.ref === kmsMasterKeyId || key.attrKeyId === kmsMasterKeyId || key.attrArn === kmsMasterKeyId);
|
|
33
|
-
}
|
|
34
|
-
function tryFindKmsKeyConstruct(kmsKey) {
|
|
35
|
-
return (0, helpers_internal_1.findL1FromRef)(kmsKey, 'AWS::KMS::Key', (cfn, ref) => ref.keyRef === cfn.keyRef);
|
|
36
|
-
}
|
|
37
|
-
function tryFindBucketConstruct(bucket) {
|
|
38
|
-
return (0, helpers_internal_1.findL1FromRef)(bucket, 'AWS::S3::Bucket', (cfn, ref) => ref.bucketRef == cfn.bucketRef);
|
|
39
|
-
}
|
|
@@ -15,7 +15,7 @@ const service = require("aws-cdk-lib/aws-m2");
|
|
|
15
15
|
* @stability external
|
|
16
16
|
*/
|
|
17
17
|
class CfnApplicationConfigLogs {
|
|
18
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_m2.mixins.CfnApplicationConfigLogs", version: "2.
|
|
18
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_m2.mixins.CfnApplicationConfigLogs", version: "2.244.0-alpha.0" };
|
|
19
19
|
/**
|
|
20
20
|
* Send logs to an S3 Bucket
|
|
21
21
|
*
|
|
@@ -112,7 +112,7 @@ exports.CfnApplicationConfigLogs = CfnApplicationConfigLogs;
|
|
|
112
112
|
* @stability external
|
|
113
113
|
*/
|
|
114
114
|
class CfnApplicationBatchJobLogs {
|
|
115
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_m2.mixins.CfnApplicationBatchJobLogs", version: "2.
|
|
115
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_m2.mixins.CfnApplicationBatchJobLogs", version: "2.244.0-alpha.0" };
|
|
116
116
|
/**
|
|
117
117
|
* Send logs to an S3 Bucket
|
|
118
118
|
*
|
|
@@ -209,7 +209,7 @@ exports.CfnApplicationBatchJobLogs = CfnApplicationBatchJobLogs;
|
|
|
209
209
|
* @stability external
|
|
210
210
|
*/
|
|
211
211
|
class CfnApplicationConsoleLogs {
|
|
212
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_m2.mixins.CfnApplicationConsoleLogs", version: "2.
|
|
212
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_m2.mixins.CfnApplicationConsoleLogs", version: "2.244.0-alpha.0" };
|
|
213
213
|
/**
|
|
214
214
|
* Send logs to an S3 Bucket
|
|
215
215
|
*
|
|
@@ -306,7 +306,7 @@ exports.CfnApplicationConsoleLogs = CfnApplicationConsoleLogs;
|
|
|
306
306
|
* @stability external
|
|
307
307
|
*/
|
|
308
308
|
class CfnApplicationDatasetImportLogs {
|
|
309
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_m2.mixins.CfnApplicationDatasetImportLogs", version: "2.
|
|
309
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_m2.mixins.CfnApplicationDatasetImportLogs", version: "2.244.0-alpha.0" };
|
|
310
310
|
/**
|
|
311
311
|
* Send logs to an S3 Bucket
|
|
312
312
|
*
|
|
@@ -406,7 +406,7 @@ exports.CfnApplicationDatasetImportLogs = CfnApplicationDatasetImportLogs;
|
|
|
406
406
|
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-m2-application.html
|
|
407
407
|
*/
|
|
408
408
|
class CfnApplicationLogsMixin extends cdk.Mixin {
|
|
409
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_m2.mixins.CfnApplicationLogsMixin", version: "2.
|
|
409
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_m2.mixins.CfnApplicationLogsMixin", version: "2.244.0-alpha.0" };
|
|
410
410
|
static CONFIG_LOGS = new CfnApplicationConfigLogs();
|
|
411
411
|
static BATCH_JOB_LOGS = new CfnApplicationBatchJobLogs();
|
|
412
412
|
static CONSOLE_LOGS = new CfnApplicationConsoleLogs();
|
|
@@ -455,7 +455,7 @@ exports.CfnApplicationLogsMixin = CfnApplicationLogsMixin;
|
|
|
455
455
|
* Output Format options for each destination of CfnApplicationConfigLogs.
|
|
456
456
|
*/
|
|
457
457
|
class CfnApplicationConfigLogsOutputFormat {
|
|
458
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_m2.mixins.CfnApplicationConfigLogsOutputFormat", version: "2.
|
|
458
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_m2.mixins.CfnApplicationConfigLogsOutputFormat", version: "2.244.0-alpha.0" };
|
|
459
459
|
}
|
|
460
460
|
exports.CfnApplicationConfigLogsOutputFormat = CfnApplicationConfigLogsOutputFormat;
|
|
461
461
|
(function (CfnApplicationConfigLogsOutputFormat) {
|
|
@@ -482,7 +482,7 @@ exports.CfnApplicationConfigLogsOutputFormat = CfnApplicationConfigLogsOutputFor
|
|
|
482
482
|
* Output Format options for each destination of CfnApplicationBatchJobLogs.
|
|
483
483
|
*/
|
|
484
484
|
class CfnApplicationBatchJobLogsOutputFormat {
|
|
485
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_m2.mixins.CfnApplicationBatchJobLogsOutputFormat", version: "2.
|
|
485
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_m2.mixins.CfnApplicationBatchJobLogsOutputFormat", version: "2.244.0-alpha.0" };
|
|
486
486
|
}
|
|
487
487
|
exports.CfnApplicationBatchJobLogsOutputFormat = CfnApplicationBatchJobLogsOutputFormat;
|
|
488
488
|
(function (CfnApplicationBatchJobLogsOutputFormat) {
|
|
@@ -509,7 +509,7 @@ exports.CfnApplicationBatchJobLogsOutputFormat = CfnApplicationBatchJobLogsOutpu
|
|
|
509
509
|
* Output Format options for each destination of CfnApplicationConsoleLogs.
|
|
510
510
|
*/
|
|
511
511
|
class CfnApplicationConsoleLogsOutputFormat {
|
|
512
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_m2.mixins.CfnApplicationConsoleLogsOutputFormat", version: "2.
|
|
512
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_m2.mixins.CfnApplicationConsoleLogsOutputFormat", version: "2.244.0-alpha.0" };
|
|
513
513
|
}
|
|
514
514
|
exports.CfnApplicationConsoleLogsOutputFormat = CfnApplicationConsoleLogsOutputFormat;
|
|
515
515
|
(function (CfnApplicationConsoleLogsOutputFormat) {
|
|
@@ -536,7 +536,7 @@ exports.CfnApplicationConsoleLogsOutputFormat = CfnApplicationConsoleLogsOutputF
|
|
|
536
536
|
* Output Format options for each destination of CfnApplicationDatasetImportLogs.
|
|
537
537
|
*/
|
|
538
538
|
class CfnApplicationDatasetImportLogsOutputFormat {
|
|
539
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_m2.mixins.CfnApplicationDatasetImportLogsOutputFormat", version: "2.
|
|
539
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_m2.mixins.CfnApplicationDatasetImportLogsOutputFormat", version: "2.244.0-alpha.0" };
|
|
540
540
|
}
|
|
541
541
|
exports.CfnApplicationDatasetImportLogsOutputFormat = CfnApplicationDatasetImportLogsOutputFormat;
|
|
542
542
|
(function (CfnApplicationDatasetImportLogsOutputFormat) {
|
|
@@ -7,7 +7,7 @@ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
|
|
|
7
7
|
* EventBridge event pattern for aws.managedblockchain@ManagedBlockchainInvitationStatusChange
|
|
8
8
|
*/
|
|
9
9
|
class ManagedBlockchainInvitationStatusChange {
|
|
10
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_managedblockchain.events.ManagedBlockchainInvitationStatusChange", version: "2.
|
|
10
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_managedblockchain.events.ManagedBlockchainInvitationStatusChange", version: "2.244.0-alpha.0" };
|
|
11
11
|
/**
|
|
12
12
|
* EventBridge event pattern for Managed Blockchain Invitation Status Change
|
|
13
13
|
*/
|
|
@@ -57,7 +57,7 @@ function convertManagedBlockchainInvitationStatusChangeDetailToEventPattern(obj)
|
|
|
57
57
|
* EventBridge event pattern for aws.managedblockchain@ManagedBlockchainProposalStatusChange
|
|
58
58
|
*/
|
|
59
59
|
class ManagedBlockchainProposalStatusChange {
|
|
60
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_managedblockchain.events.ManagedBlockchainProposalStatusChange", version: "2.
|
|
60
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_managedblockchain.events.ManagedBlockchainProposalStatusChange", version: "2.244.0-alpha.0" };
|
|
61
61
|
/**
|
|
62
62
|
* EventBridge event pattern for Managed Blockchain Proposal Status Change
|
|
63
63
|
*/
|
|
@@ -7,7 +7,7 @@ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
|
|
|
7
7
|
* EventBridge event pattern for aws.medialive@MediaLiveChannelAlert
|
|
8
8
|
*/
|
|
9
9
|
class MediaLiveChannelAlert {
|
|
10
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_medialive.events.MediaLiveChannelAlert", version: "2.
|
|
10
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_medialive.events.MediaLiveChannelAlert", version: "2.244.0-alpha.0" };
|
|
11
11
|
/**
|
|
12
12
|
* EventBridge event pattern for MediaLive Channel Alert
|
|
13
13
|
*/
|
|
@@ -55,7 +55,7 @@ function convertMediaLiveChannelAlertDetailToEventPattern(obj) {
|
|
|
55
55
|
* EventBridge event pattern for aws.medialive@MediaLiveChannelStateChange
|
|
56
56
|
*/
|
|
57
57
|
class MediaLiveChannelStateChange {
|
|
58
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_medialive.events.MediaLiveChannelStateChange", version: "2.
|
|
58
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_medialive.events.MediaLiveChannelStateChange", version: "2.244.0-alpha.0" };
|
|
59
59
|
/**
|
|
60
60
|
* EventBridge event pattern for MediaLive Channel State Change
|
|
61
61
|
*/
|
|
@@ -102,7 +102,7 @@ function convertMediaLiveChannelStateChangeDetailToEventPattern(obj) {
|
|
|
102
102
|
* EventBridge event pattern for aws.medialive@MediaLiveMultiplexAlert
|
|
103
103
|
*/
|
|
104
104
|
class MediaLiveMultiplexAlert {
|
|
105
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_medialive.events.MediaLiveMultiplexAlert", version: "2.
|
|
105
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_medialive.events.MediaLiveMultiplexAlert", version: "2.244.0-alpha.0" };
|
|
106
106
|
/**
|
|
107
107
|
* EventBridge event pattern for MediaLive Multiplex Alert
|
|
108
108
|
*/
|
|
@@ -148,7 +148,7 @@ function convertMediaLiveMultiplexAlertDetailToEventPattern(obj) {
|
|
|
148
148
|
* EventBridge event pattern for aws.medialive@MediaLiveMultiplexStateChange
|
|
149
149
|
*/
|
|
150
150
|
class MediaLiveMultiplexStateChange {
|
|
151
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_medialive.events.MediaLiveMultiplexStateChange", version: "2.
|
|
151
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_medialive.events.MediaLiveMultiplexStateChange", version: "2.244.0-alpha.0" };
|
|
152
152
|
/**
|
|
153
153
|
* EventBridge event pattern for MediaLive Multiplex State Change
|
|
154
154
|
*/
|
|
@@ -193,7 +193,7 @@ function convertMediaLiveMultiplexStateChangeDetailToEventPattern(obj) {
|
|
|
193
193
|
* EventBridge event pattern for aws.medialive@MediaLiveChannelInputChange
|
|
194
194
|
*/
|
|
195
195
|
class MediaLiveChannelInputChange {
|
|
196
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_medialive.events.MediaLiveChannelInputChange", version: "2.
|
|
196
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_medialive.events.MediaLiveChannelInputChange", version: "2.244.0-alpha.0" };
|
|
197
197
|
/**
|
|
198
198
|
* EventBridge event pattern for MediaLive Channel Input Change
|
|
199
199
|
*/
|
|
@@ -240,7 +240,7 @@ function convertMediaLiveChannelInputChangeDetailToEventPattern(obj, iRef) {
|
|
|
240
240
|
* EventBridge event patterns for Channel
|
|
241
241
|
*/
|
|
242
242
|
class ChannelEvents {
|
|
243
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_medialive.events.ChannelEvents", version: "2.
|
|
243
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_medialive.events.ChannelEvents", version: "2.244.0-alpha.0" };
|
|
244
244
|
/**
|
|
245
245
|
* Create ChannelEvents from a Channel reference
|
|
246
246
|
*/
|
|
@@ -15,7 +15,7 @@ const service = require("aws-cdk-lib/aws-mediapackagev2");
|
|
|
15
15
|
* @stability external
|
|
16
16
|
*/
|
|
17
17
|
class CfnChannelGroupEgressAccessLogs {
|
|
18
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_mediapackagev2.mixins.CfnChannelGroupEgressAccessLogs", version: "2.
|
|
18
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_mediapackagev2.mixins.CfnChannelGroupEgressAccessLogs", version: "2.244.0-alpha.0" };
|
|
19
19
|
/**
|
|
20
20
|
* Send logs to an S3 Bucket
|
|
21
21
|
*
|
|
@@ -123,7 +123,7 @@ exports.CfnChannelGroupEgressAccessLogs = CfnChannelGroupEgressAccessLogs;
|
|
|
123
123
|
* @stability external
|
|
124
124
|
*/
|
|
125
125
|
class CfnChannelGroupIngressAccessLogs {
|
|
126
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_mediapackagev2.mixins.CfnChannelGroupIngressAccessLogs", version: "2.
|
|
126
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_mediapackagev2.mixins.CfnChannelGroupIngressAccessLogs", version: "2.244.0-alpha.0" };
|
|
127
127
|
/**
|
|
128
128
|
* Send logs to an S3 Bucket
|
|
129
129
|
*
|
|
@@ -232,7 +232,7 @@ exports.CfnChannelGroupIngressAccessLogs = CfnChannelGroupIngressAccessLogs;
|
|
|
232
232
|
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackagev2-channelgroup.html
|
|
233
233
|
*/
|
|
234
234
|
class CfnChannelGroupLogsMixin extends cdk.Mixin {
|
|
235
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_mediapackagev2.mixins.CfnChannelGroupLogsMixin", version: "2.
|
|
235
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_mediapackagev2.mixins.CfnChannelGroupLogsMixin", version: "2.244.0-alpha.0" };
|
|
236
236
|
static EGRESS_ACCESS_LOGS = new CfnChannelGroupEgressAccessLogs();
|
|
237
237
|
static INGRESS_ACCESS_LOGS = new CfnChannelGroupIngressAccessLogs();
|
|
238
238
|
logType;
|
|
@@ -279,7 +279,7 @@ exports.CfnChannelGroupLogsMixin = CfnChannelGroupLogsMixin;
|
|
|
279
279
|
* Output Format options for each destination of CfnChannelGroupEgressAccessLogs.
|
|
280
280
|
*/
|
|
281
281
|
class CfnChannelGroupEgressAccessLogsOutputFormat {
|
|
282
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_mediapackagev2.mixins.CfnChannelGroupEgressAccessLogsOutputFormat", version: "2.
|
|
282
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_mediapackagev2.mixins.CfnChannelGroupEgressAccessLogsOutputFormat", version: "2.244.0-alpha.0" };
|
|
283
283
|
}
|
|
284
284
|
exports.CfnChannelGroupEgressAccessLogsOutputFormat = CfnChannelGroupEgressAccessLogsOutputFormat;
|
|
285
285
|
(function (CfnChannelGroupEgressAccessLogsOutputFormat) {
|
|
@@ -331,7 +331,7 @@ var CfnChannelGroupEgressAccessLogsRecordFields;
|
|
|
331
331
|
* Output Format options for each destination of CfnChannelGroupIngressAccessLogs.
|
|
332
332
|
*/
|
|
333
333
|
class CfnChannelGroupIngressAccessLogsOutputFormat {
|
|
334
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_mediapackagev2.mixins.CfnChannelGroupIngressAccessLogsOutputFormat", version: "2.
|
|
334
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@aws-cdk/mixins-preview.aws_mediapackagev2.mixins.CfnChannelGroupIngressAccessLogsOutputFormat", version: "2.244.0-alpha.0" };
|
|
335
335
|
}
|
|
336
336
|
exports.CfnChannelGroupIngressAccessLogsOutputFormat = CfnChannelGroupIngressAccessLogsOutputFormat;
|
|
337
337
|
(function (CfnChannelGroupIngressAccessLogsOutputFormat) {
|