Class: AWSCDK::CfnJsonProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CfnJsonProps
- Defined in:
- cfn_json_props.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
The value to resolve.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(value:) ⇒ CfnJsonProps
constructor
A new instance of CfnJsonProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(value:) ⇒ CfnJsonProps
Returns a new instance of CfnJsonProps.
7 8 9 10 |
# File 'cfn_json_props.rb', line 7 def initialize(value:) @value = value Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "value") end |
Instance Attribute Details
#value ⇒ Object (readonly)
The value to resolve.
Can be any JavaScript object, including tokens and references in keys or values.
18 19 20 |
# File 'cfn_json_props.rb', line 18 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
20 21 22 23 24 |
# File 'cfn_json_props.rb', line 20 def self.jsii_properties { :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
26 27 28 29 30 31 32 |
# File 'cfn_json_props.rb', line 26 def to_jsii result = {} result.merge!({ "value" => @value, }) result.compact end |