class CfnBucketLogsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.S3.Mixins.CfnBucketLogsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awss3/mixins#CfnBucketLogsMixin |
Java | software.amazon.awscdk.mixins.preview.services.s3.mixins.CfnBucketLogsMixin |
Python | aws_cdk.mixins_preview.aws_s3.mixins.CfnBucketLogsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_s3 » mixins » CfnBucketLogsMixin |
Implements
IMixin
Extends
Mixin
The AWS::S3::Bucket resource creates an Amazon S3 bucket in the same AWS Region where you create the AWS CloudFormation stack.
To control how AWS CloudFormation handles the bucket when the stack is deleted, you can set a deletion policy for your bucket. You can choose to retain the bucket or to delete the bucket. For more information, see DeletionPolicy Attribute .
You can only delete empty buckets. Deletion fails for buckets that have contents.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-s3-bucket.html
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 { mixins as s3_mixins } from '@aws-cdk/mixins-preview/aws-s3';
declare const logsDelivery: logs.ILogsDelivery;
const cfnBucketLogsMixin = new s3_mixins.CfnBucketLogsMixin('logType', logsDelivery);
Initializer
new CfnBucketLogsMixin(logType: string, logDelivery: ILogsDelivery)
Parameters
- logType
string— Type of logs that are getting vended. - logDelivery
ILogs— Object in charge of setting up the delivery source, delivery destination, and delivery connection.Delivery
Create a mixin to enable vended logs for AWS::S3::Bucket.
Properties
| Name | Type | Description |
|---|---|---|
| log | ILogs | |
| log | string | |
| static S3_SERVER_ACCESS_LOGS | Cfn |
logDelivery
Type:
ILogs
logType
Type:
string
static S3_SERVER_ACCESS_LOGS
Type:
Cfn
Methods
| Name | Description |
|---|---|
| apply | Apply vended logs configuration to the construct. |
| supports(construct) | Check if this mixin supports the given construct (has vendedLogs property). |
applyTo(resource)
public applyTo(resource: IConstruct): void
Parameters
- resource
IConstruct
Apply vended logs configuration to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct (has vendedLogs property).

.NET
Go
Java
Python
TypeScript