class CfnBucketS3ServerAccessLogs
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.S3.Mixins.CfnBucketS3ServerAccessLogs |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awss3/mixins#CfnBucketS3ServerAccessLogs |
Java | software.amazon.awscdk.mixins.preview.services.s3.mixins.CfnBucketS3ServerAccessLogs |
Python | aws_cdk.mixins_preview.aws_s3.mixins.CfnBucketS3ServerAccessLogs |
TypeScript | @aws-cdk/mixins-preview » aws_s3 » mixins » CfnBucketS3ServerAccessLogs |
Builder for CfnBucketLogsMixin to generate S3_SERVER_ACCESS_LOGS for CfnBucket.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as s3_mixins } from '@aws-cdk/mixins-preview/aws-s3';
const cfnBucketS3ServerAccessLogs = new s3_mixins.CfnBucketS3ServerAccessLogs();
Initializer
new CfnBucketS3ServerAccessLogs()
Methods
| Name | Description |
|---|---|
| to | Delivers logs to a pre-created delivery destination. |
| to | Send logs to a Firehose Delivery Stream. |
| to | Send logs to a CloudWatch Log Group. |
| to | Send logs to an S3 Bucket. |
toDestination(destination)
public toDestination(destination: IDeliveryDestinationRef): CfnBucketLogsMixin
Parameters
- destination
IDeliveryDestination Ref
Returns
Delivers logs to a pre-created delivery destination.
Supported destinations are S3, CWL, FH You are responsible for setting up the correct permissions for your delivery destination, toDestination() does not set up any permissions for you. Delivery destinations that are imported from another stack using CfnDeliveryDestination.fromDeliveryDestinationArn() or CfnDeliveryDestination.fromDeliveryDestinationName() are supported by toDestination().
toFirehose(deliveryStream)
public toFirehose(deliveryStream: IDeliveryStreamRef): CfnBucketLogsMixin
Parameters
- deliveryStream
IDeliveryStream Ref
Returns
Send logs to a Firehose Delivery Stream.
toLogGroup(logGroup)
public toLogGroup(logGroup: ILogGroupRef): CfnBucketLogsMixin
Parameters
- logGroup
ILogGroup Ref
Returns
Send logs to a CloudWatch Log Group.
toS3(bucket, props?)
public toS3(bucket: IBucketRef, props?: IS3LogsDestinationProps): CfnBucketLogsMixin
Parameters
- bucket
IBucketRef - props
IS3Logs Destination Props
Returns
Send logs to an S3 Bucket.

.NET
Go
Java
Python
TypeScript