GlobalConfig / LoggingConfig / AccessLogBucketConfig

Accelerator global S3 access logging configuration

Example

accessLogBucket:
s3ResourcePolicyAttachments:
- policy: s3-policies/policy1.json
lifecycleRules:
- enabled: true
id: AccessLifecycle-01
abortIncompleteMultipartUpload: 14
expiration: 3563
expiredObjectDeleteMarker: false
noncurrentVersionExpiration: 3653
noncurrentVersionTransitions:
- storageClass: GLACIER
transitionAfter: 365
transitions:
- storageClass: GLACIER
transitionAfter: 365
prefix: PREFIX
- enabled: true
id: AccessLifecycle-02
abortIncompleteMultipartUpload: 14
expiredObjectDeleteMarker: true
noncurrentVersionExpiration: 3653
noncurrentVersionTransitions:
- storageClass: GLACIER
transitionAfter: 365
transitions:
- storageClass: GLACIER
transitionAfter: 365
prefix: PREFIX
importedBucket:
name: existing-access-log-bucket
applyAcceleratorManagedBucketPolicy: true

Hierarchy

  • AccessLogBucketConfig

Implements

Constructors

Properties

customPolicyOverrides: undefined | CustomS3ResourcePolicyOverridesConfig = undefined

Custom policy overrides configuration.

Remarks

Use this configuration to provide JSON string policy file for bucket resource policy. Bucket resource policy will be over written by content of this file, so when using these option policy files must contain complete policy document. When customPolicyOverrides.s3Policy defined importedBucket.applyAcceleratorManagedBucketPolicy can not be set to true also s3ResourcePolicyAttachments property can not be defined.

Use the following configuration to apply custom bucket resource policy overrides through policy JSON file.

customPolicyOverrides:
s3Policy: path/to/policy.json

Default

undefined

importedBucket: undefined | ImportedS3ManagedEncryptionKeyBucketConfig = undefined

Imported bucket configuration.

Remarks

Use this configuration when accelerator will import existing AccessLogs bucket.

Use the following configuration to imported AccessLogs bucket, manage bucket resource policy through solution.

importedBucket:
name: existing-access-log-bucket
applyAcceleratorManagedBucketPolicy: true

Default

undefined

lifecycleRules: undefined | LifeCycleRule[] = undefined

Declaration of (S3 Bucket) Lifecycle rules.

s3ResourcePolicyAttachments: undefined | {
    policy: string;
}[] = undefined

JSON policy files.

Remarks

Policy statements from these files will be added to the bucket resource policy. This property can not be used when customPolicyOverrides.s3Policy property has value.

Generated using TypeDoc