Module: AWSCDK::Autoscaling::ILifecycleHookTarget

Overview

Interface for autoscaling lifecycle hook targets.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.jsii_overridable_methodsObject



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.

Parameters:

Returns:



12
13
14
15
16
17
# File 'autoscaling/i_lifecycle_hook_target.rb', line 12

def bind(scope, options)
  Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope")
  options = options.is_a?(Hash) ? ::AWSCDK::Autoscaling::BindHookTargetOptions.new(**options.transform_keys(&:to_sym)) : options
  Jsii::Type.check_type(options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXV0b3NjYWxpbmcuQmluZEhvb2tUYXJnZXRPcHRpb25zIn0=")), "options")
  jsii_call_method("bind", [scope, options])
end