chore(kinesisfirehose-destinations): refactor logging to combine logGroup and logging properties into loggingConfig#31488
Conversation
…roup and logging properties into loggingConfig
aws-cdk-automation
left a comment
There was a problem hiding this comment.
The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.
A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed add Clarification Request to a comment.
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/lib/logging-config.ts
Outdated
Show resolved
Hide resolved
packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/lib/logging-config.ts
Show resolved
Hide resolved
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
|
Comments on closed issues and PRs are hard for our team to see. |
Reason for this change
The
loggingandlogGroupproperties contain a restriction where alogGroupcannot be provided ifloggingis set tofalse. This was previously handled by error handling but we want to change this to make it impossible for a user to run into that scenario in the first place.Description of changes
BREAKING CHANGE: the
loggingandlogGroupproperties inDestinationLoggingPropshave been removed and replaced with a single optional propertyloggingConfigwhich accepts a class of typeLoggingConfig.Details
Combine the
loggingandlogGroupproperties into a single new optional property calledloggingConfigwhich accepts a class of typeLoggingConfig.LoggingConfigis an abstract class which can be instantiated through either an instance ofEnableLoggingorDisableLoggingwhich can be used in the following 3 ways:Description of how you validated changes
unit + integ test
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license
…yptionKey