Class: AWSCDK::CfnHookProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CfnHookProps
- Defined in:
- cfn_hook_props.rb
Overview
Construction properties of CfnHook.
Instance Attribute Summary collapse
-
#properties ⇒ Hash{String => Object}?
readonly
The properties of the hook.
-
#type ⇒ String
readonly
The type of the hook (for example, "AWS::CodeDeploy::BlueGreen").
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, properties: nil) ⇒ CfnHookProps
constructor
A new instance of CfnHookProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, properties: nil) ⇒ CfnHookProps
Returns a new instance of CfnHookProps.
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
#properties ⇒ Hash{String => Object}? (readonly)
Note:
Default: - no properties
The properties of the hook.
24 25 26 |
# File 'cfn_hook_props.rb', line 24 def properties @properties end |
#type ⇒ String (readonly)
The type of the hook (for example, "AWS::CodeDeploy::BlueGreen").
19 20 21 |
# File 'cfn_hook_props.rb', line 19 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |