class S3LogsDelivery
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Logs.S3LogsDelivery |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awslogs#S3LogsDelivery |
Java | software.amazon.awscdk.mixins.preview.services.logs.S3LogsDelivery |
Python | aws_cdk.mixins_preview.aws_logs.S3LogsDelivery |
TypeScript (source) | @aws-cdk/mixins-preview ยป aws_logs ยป S3LogsDelivery |
Implements
ILogs
Delivers vended logs to an S3 Bucket.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_logs as logs } from '@aws-cdk/mixins-preview';
import { aws_s3 as interfaces_s3 } from 'aws-cdk-lib/interfaces';
declare const bucketRef: interfaces_s3.IBucketRef;
const s3LogsDelivery = new logs.S3LogsDelivery(bucketRef, /* all optional props */ {
permissionsVersion: logs.S3LogsDeliveryPermissionsVersion.V1,
});
Initializer
new S3LogsDelivery(bucket: IBucketRef, props?: S3LogsDeliveryProps)
Parameters
- bucket
IBucketRef - props
S3Logs Delivery Props
Creates a new S3 Bucket delivery.
Methods
| Name | Description |
|---|---|
| bind(scope, logType, sourceResourceArn) | Binds S3 Bucket to a source resource for the purposes of log delivery and creates a delivery source, a delivery destination, and a connection between them. |
bind(scope, logType, sourceResourceArn)
public bind(scope: IConstruct, logType: string, sourceResourceArn: string): ILogsDeliveryConfig
Parameters
- scope
IConstruct - logType
string - sourceResourceArn
string
Returns
Binds S3 Bucket to a source resource for the purposes of log delivery and creates a delivery source, a delivery destination, and a connection between them.

.NET
Go
Java
Python
TypeScript (