Class: AWSCDK::CfnHookProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cfn_hook_props.rb

Overview

Construction properties of CfnHook.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, properties: nil) ⇒ CfnHookProps

Returns a new instance of CfnHookProps.

Parameters:

  • type (String)

    The type of the hook (for example, "AWS::CodeDeploy::BlueGreen").

  • properties (Hash{String => Object}, nil) (defaults to: nil)

    The properties of the hook.



9
10
11
12
13
14
# File 'cfn_hook_props.rb', line 9

def initialize(type:, properties: nil)
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
  @properties = properties
  Jsii::Type.check_type(@properties, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6ImFueSJ9LCJraW5kIjoibWFwIn19")), "properties") unless @properties.nil?
end

Instance Attribute Details

#propertiesHash{String => Object}? (readonly)

Note:

Default: - no properties

The properties of the hook.

Returns:

  • (Hash{String => Object}, nil)


24
25
26
# File 'cfn_hook_props.rb', line 24

def properties
  @properties
end

#typeString (readonly)

The type of the hook (for example, "AWS::CodeDeploy::BlueGreen").

Returns:

  • (String)


19
20
21
# File 'cfn_hook_props.rb', line 19

def type
  @type
end

Class Method Details

.jsii_propertiesObject



26
27
28
29
30
31
# File 'cfn_hook_props.rb', line 26

def self.jsii_properties
  {
    :type => "type",
    :properties => "properties",
  }
end

Instance Method Details

#to_jsiiObject



33
34
35
36
37
38
39
40
# File 'cfn_hook_props.rb', line 33

def to_jsii
  result = {}
  result.merge!({
    "type" => @type,
    "properties" => @properties,
  })
  result.compact
end