Class: AWSCDK::Interfaces::AWSAutoscaling::LifecycleHookReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_autoscaling/lifecycle_hook_reference.rb

Overview

A reference to a LifecycleHook resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(auto_scaling_group_name:, lifecycle_hook_name:) ⇒ LifecycleHookReference

Returns a new instance of LifecycleHookReference.

Parameters:

  • auto_scaling_group_name (String)

    The AutoScalingGroupName of the LifecycleHook resource.

  • lifecycle_hook_name (String)

    The LifecycleHookName of the LifecycleHook resource.



9
10
11
12
13
14
# File 'interfaces/aws_autoscaling/lifecycle_hook_reference.rb', line 9

def initialize(auto_scaling_group_name:, lifecycle_hook_name:)
  @auto_scaling_group_name = auto_scaling_group_name
  Jsii::Type.check_type(@auto_scaling_group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "autoScalingGroupName")
  @lifecycle_hook_name = lifecycle_hook_name
  Jsii::Type.check_type(@lifecycle_hook_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "lifecycleHookName")
end

Instance Attribute Details

#auto_scaling_group_nameString (readonly)

The AutoScalingGroupName of the LifecycleHook resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/aws_autoscaling/lifecycle_hook_reference.rb', line 19

def auto_scaling_group_name
  @auto_scaling_group_name
end

#lifecycle_hook_nameString (readonly)

The LifecycleHookName of the LifecycleHook resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/aws_autoscaling/lifecycle_hook_reference.rb', line 23

def lifecycle_hook_name
  @lifecycle_hook_name
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'interfaces/aws_autoscaling/lifecycle_hook_reference.rb', line 25

def self.jsii_properties
  {
    :auto_scaling_group_name => "autoScalingGroupName",
    :lifecycle_hook_name => "lifecycleHookName",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'interfaces/aws_autoscaling/lifecycle_hook_reference.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "autoScalingGroupName" => @auto_scaling_group_name,
    "lifecycleHookName" => @lifecycle_hook_name,
  })
  result.compact
end