Module: AWSCDK::Autoscaling::ILifecycleHookTarget
- Included in:
- AWSCDK::AutoScalingHookTargets::FunctionHook, AWSCDK::AutoScalingHookTargets::QueueHook, AWSCDK::AutoScalingHookTargets::TopicHook
- Defined in:
- autoscaling/i_lifecycle_hook_target.rb
Overview
Interface for autoscaling lifecycle hook targets.
Class Method Summary collapse
Instance Method Summary collapse
-
#bind(scope, options) ⇒ AWSCDK::Autoscaling::LifecycleHookTargetConfig
Called when this object is used as the target of a lifecycle hook.
Class Method Details
.jsii_overridable_methods ⇒ Object
19 20 21 22 23 |
# File 'autoscaling/i_lifecycle_hook_target.rb', line 19 def self.jsii_overridable_methods { :bind => { kind: :method, name: "bind", is_optional: false }, } end |
Instance Method Details
#bind(scope, options) ⇒ AWSCDK::Autoscaling::LifecycleHookTargetConfig
Called when this object is used as the target of a lifecycle hook.
12 13 14 15 16 17 |
# File 'autoscaling/i_lifecycle_hook_target.rb', line 12 def bind(scope, ) Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") = .is_a?(Hash) ? ::AWSCDK::Autoscaling::BindHookTargetOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXV0b3NjYWxpbmcuQmluZEhvb2tUYXJnZXRPcHRpb25zIn0=")), "options") jsii_call_method("bind", [scope, ]) end |