-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(s3): add MetricsConfiguration Property to S3 Bucket #2163
Conversation
* | ||
* @see https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-metricsconfiguration.html | ||
*/ | ||
readonly metricsConfigurations?: Array<CfnBucket.MetricsConfigurationProperty | cdk.Token> | cdk.Token; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename to metrics
Thanks for your feedback! I reworked my commit and made it very similar to S3 Lifecycle Rules. @eladb suggested to use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like doc comments on everything, then it's good to merge.
…rics You can either specify the metrics as properties: new Bucket(stack, 'Bucket', { metrics: [{ id: "test", tagFilters: {tagname1: "tagvalue1", tagname2: "tagvalue2"} }] }); Or use the `addMetric` function: const bucket = new Bucket(stack, 'Bucket'); bucket.addMetric({ id: "test" });
b836ead
to
349c966
Compare
updated docs and rebased on latest commit in |
@workeitel looks great. Thanks for the contribution! |
Add metric Property to S3 Bucket for configuring bucket metrics. You can either specify the metrics as properties: new Bucket(stack, 'Bucket', { metrics: [{ id: "test", tagFilters: {tagname1: "tagvalue1", tagname2: "tagvalue2"} }] }); Or use the `addMetric` function: const bucket = new Bucket(stack, 'Bucket'); bucket.addMetric({ id: "test" });
Pull Request Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license.