interface S3DeliveryDestinationProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Logs.S3DeliveryDestinationProps |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awslogs#S3DeliveryDestinationProps |
Java | software.amazon.awscdk.mixins.preview.services.logs.S3DeliveryDestinationProps |
Python | aws_cdk.mixins_preview.aws_logs.S3DeliveryDestinationProps |
TypeScript (source) | @aws-cdk/mixins-preview ยป aws_logs ยป S3DeliveryDestinationProps |
Properties for S3 delivery destination.
Example
import * as logDestinations from '@aws-cdk/mixins-preview/aws-logs';
import * as cloudfrontMixins from '@aws-cdk/mixins-preview/aws-cloudfront/mixins';
const destinationAccount = '123456789012';
const sourceAccount = '234567890123';
const region = 'us-east-1';
const app = new App();
const destStack = new Stack(app, 'destination-stack', {
env: {
account: destinationAccount,
region,
},
});
// Create destination bucket
const destBucket = new s3.Bucket(destStack, 'DeliveryBucket');
new logDestinations.S3DeliveryDestination(destStack, 'Destination', {
bucket: destBucket,
sourceAccountId: sourceAccount,
});
const sourceStack = new Stack(app, 'source-stack', {
env: {
account: sourceAccount,
region,
},
});
// Create CloudFront distribution
declare const origin: s3.IBucket;
const distribution = new cloudfront.Distribution(sourceStack, 'Distribution', {
defaultBehavior: {
origin: origins.S3BucketOrigin.withOriginAccessControl(origin),
},
});
const destination = logs.CfnDeliveryDestination.fromDeliveryDestinationArn(sourceStack, 'Destination', `arn of Delivery Destination in destinationAccount`);
distribution
.with(cloudfrontMixins.CfnDistributionLogsMixin.CONNECTION_LOGS.toDestination(destination));
Properties
| Name | Type | Description |
|---|---|---|
| bucket | IBucket | The S3 bucket to deliver logs to. |
| encryption | IKey | KMS key to use for encrypting logs in the S3 bucket. |
| output | string | Format of the logs that are sent to this delivery destination. |
| permissions | S3 | The permissions version ('V1' or 'V2') to be used for this delivery. |
| source | string | Optional acount id for account the delivery source is in for cross account Vended Logs. |
bucket
Type:
IBucket
The S3 bucket to deliver logs to.
encryptionKey?
Type:
IKey
(optional, default: No encryption key is configured)
KMS key to use for encrypting logs in the S3 bucket.
When provided, grants the logs delivery service permissions to use the key.
outputFormat?
Type:
string
(optional)
Format of the logs that are sent to this delivery destination.
permissionsVersion?
Type:
S3
(optional, default: "V2")
The permissions version ('V1' or 'V2') to be used for this delivery.
Depending on the source of the logs, different permissions are required.
sourceAccountId?
Type:
string
(optional)
Optional acount id for account the delivery source is in for cross account Vended Logs.

.NET
Go
Java
Python
TypeScript (