Skip to content

Commit

Permalink
fix integ
Browse files Browse the repository at this point in the history
  • Loading branch information
sakurai-ryo committed Jan 20, 2024
1 parent 2f823fd commit 2b03fba
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 20 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"Arn"
]
},
"/example*"
"/example2*"
]
]
}
Expand Down Expand Up @@ -116,7 +116,7 @@
"Arn"
]
},
"/example*"
"/example3*"
]
]
}
Expand Down Expand Up @@ -152,7 +152,7 @@
"Arn"
]
},
"/example*"
"/example4*"
]
]
}
Expand Down Expand Up @@ -182,7 +182,7 @@
"DestinationBucketName": {
"Ref": "MyAccessLogsBucketF7FE6635"
},
"LogFilePrefix": "example",
"LogFilePrefix": "example2",
"TargetObjectKeyFormat": {
"SimplePrefix": {}
}
Expand All @@ -198,7 +198,7 @@
"DestinationBucketName": {
"Ref": "MyAccessLogsBucketF7FE6635"
},
"LogFilePrefix": "example",
"LogFilePrefix": "example3",
"TargetObjectKeyFormat": {
"PartitionedPrefix": {
"PartitionDateSource": "EventTime"
Expand All @@ -216,7 +216,7 @@
"DestinationBucketName": {
"Ref": "MyAccessLogsBucketF7FE6635"
},
"LogFilePrefix": "example",
"LogFilePrefix": "example4",
"TargetObjectKeyFormat": {
"PartitionedPrefix": {
"PartitionDateSource": "DeliveryTime"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ new s3.Bucket(stack, 'MyBucket', {

new s3.Bucket(stack, 'MyBucket2', {
serverAccessLogsBucket: accessLogBucket,
serverAccessLogsPrefix: 'example',
serverAccessLogsPrefix: 'example2',
logObjectKeyFormat: s3.LogObjectKeyFormat.simplePrefix(),
removalPolicy: cdk.RemovalPolicy.DESTROY,
});

new s3.Bucket(stack, 'MyBucket3', {
serverAccessLogsBucket: accessLogBucket,
serverAccessLogsPrefix: 'example',
serverAccessLogsPrefix: 'example3',
logObjectKeyFormat: s3.LogObjectKeyFormat.partitionedPrefix(s3.PartitionDateSource.EVENT_TIME),
removalPolicy: cdk.RemovalPolicy.DESTROY,
});

new s3.Bucket(stack, 'MyBucket4', {
serverAccessLogsBucket: accessLogBucket,
serverAccessLogsPrefix: 'example',
serverAccessLogsPrefix: 'example4',
logObjectKeyFormat: s3.LogObjectKeyFormat.partitionedPrefix(s3.PartitionDateSource.DELIVERY_TIME),
removalPolicy: cdk.RemovalPolicy.DESTROY,
});
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-s3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ const accessLogsBucket = new s3.Bucket(this, 'AccessLogsBucket');
const bucket = new s3.Bucket(this, 'MyBucket', {
serverAccessLogsBucket: accessLogsBucket,
serverAccessLogsPrefix: 'logs',
// You can use a simple prefix with `LogObjectKeyFormat.simplePrefix()`, but it is the same even if you do not specify it.
// You can use a simple prefix with `LogObjectKeyFormat.simplePrefix()`, but it is the same even if you do not specify `logObjectKeyFormat` property.
logObjectKeyFormat: s3.LogObjectKeyFormat.simplePrefix(),
});
```
Expand Down
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-s3/lib/bucket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1390,7 +1390,7 @@ export abstract class LogObjectKeyFormat {
}

/**
* Render the log file key format.
* Render the log object key format.
*
* @internal
*/
Expand Down

0 comments on commit 2b03fba

Please sign in to comment.