-
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
fix(autoscaling): move lifecycle hook targets to their own module #2628
Conversation
In accordance with new guidelines, we're centralizing cross-service integrations into their own package. In this case, centralizing AutoScaling Lifecycle Hook Targets into `@aws-cdk/aws-autoscaling-hooktargets`. Fixes #2447. BREAKING CHANGE: using a Topic, Queue or Lambda as Lifecycle Hook Target now requires an integration object from the `@aws-cdk/aws-autoscaling-hooktargets` package.
…g-lifecycle-hooks
…g-lifecycle-hooks
@@ -1,5 +1,3 @@ | |||
lambda/bundle.zip |
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.
Should we leave this package for another version as we deprecate it?
constructor(private readonly fn: lambda.IFunction) { | ||
} | ||
|
||
public bind(lifecycleHook: autoscaling.ILifecycleHook): autoscaling.LifecycleHookTargetProps { |
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 wonder if bind
should pass a scope: Construct
(sounds like a useful pattern in general).
In accordance with new guidelines, we're centralizing cross-service
integrations into their own package. In this case, centralizing
AutoScaling Lifecycle Hook Targets into
@aws-cdk/aws-autoscaling-hooktargets
.Fixes #2447.
BREAKING CHANGE: using a Topic, Queue or Lambda as Lifecycle Hook
Target now requires an integration
object from the
@aws-cdk/aws-autoscaling-hooktargets
package.Pull Request Checklist
design
folderBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license.