@gammarers/aws-secure-log-bucket
v2.3.16
Published
secure multiple transition phases in a single lifecycle policy bucket.
Maintainers
Readme
AWS Secure Log Bucket
secure multiple transition phases in a single lifecycle policy bucket.
Lifecycle rule
The storage class will be changed with the following lifecycle configuration.
| Storage Class | Default transition after days | | ------------------- |------------------------------ | | INFREQUENT_ACCESS | 400 days | | GLACIER | 720 days | | DEEP_ARCHIVE | 980 days |
Additional Properties
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| logBucketType | SecureLogBucketType | SecureLogBucketType.NORMAL | The type of the bucket. Available types: NORMAL, VPC_FLOW_LOG |
| vpcFlowLog | VPCFlowLog | - | ⚠️ Deprecated: This property is deprecated. Use the logBucketType property instead. Configuration for VPC Flow Log bucket settings. |
Install
TypeScript
install by npm
npm install @gammarers/aws-secure-log-bucketinstall by yarn
yarn add @gammarers/aws-secure-log-bucketPython
pip install gammarers.aws-secure-log-bucketC# / .NET
dotnet add package Gammarers.CDK.AWS.SecureLogBucketExample
Normal log Bucket
import { SecureLogBucket } from '@gammarers/aws-secure-log-bucket';
new SecureLogBucket(stack, 'SecureLogBucket');VPC Flow Log Bucket
import { SecureLogBucket } from '@gammarers/aws-secure-log-bucket';
new SecureLogBucket(stack, 'SecureFlowLogBucket', {
logBucketType: SecureLogBucketType.VPC_FLOW_LOG,
bucketObjectKeyPrefix: [
'example-prefix-a',
'example-prefix-b',
],
});License
This project is licensed under the Apache-2.0 License.
