Class: AWSCDK::IntrinsicProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IntrinsicProps
- Defined in:
- intrinsic_props.rb
Overview
Customization properties for an Intrinsic token.
Instance Attribute Summary collapse
-
#stack_trace ⇒ Boolean?
readonly
Capture the stack trace of where this token is created.
-
#type_hint ⇒ AWSCDK::ResolutionTypeHint?
readonly
Type that this token is expected to evaluate to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(stack_trace: nil, type_hint: nil) ⇒ IntrinsicProps
constructor
A new instance of IntrinsicProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(stack_trace: nil, type_hint: nil) ⇒ IntrinsicProps
Returns a new instance of IntrinsicProps.
9 10 11 12 13 14 |
# File 'intrinsic_props.rb', line 9 def initialize(stack_trace: nil, type_hint: nil) @stack_trace = stack_trace Jsii::Type.check_type(@stack_trace, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "stackTrace") unless @stack_trace.nil? @type_hint = type_hint Jsii::Type.check_type(@type_hint, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5SZXNvbHV0aW9uVHlwZUhpbnQifQ==")), "typeHint") unless @type_hint.nil? end |
Instance Attribute Details
#stack_trace ⇒ Boolean? (readonly)
Note:
Default: true
Capture the stack trace of where this token is created.
20 21 22 |
# File 'intrinsic_props.rb', line 20 def stack_trace @stack_trace end |
#type_hint ⇒ AWSCDK::ResolutionTypeHint? (readonly)
Note:
Default: ResolutionTypeHint.STRING
Type that this token is expected to evaluate to.
25 26 27 |
# File 'intrinsic_props.rb', line 25 def type_hint @type_hint end |
Class Method Details
.jsii_properties ⇒ Object
27 28 29 30 31 32 |
# File 'intrinsic_props.rb', line 27 def self.jsii_properties { :stack_trace => "stackTrace", :type_hint => "typeHint", } end |
Instance Method Details
#to_jsii ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'intrinsic_props.rb', line 34 def to_jsii result = {} result.merge!({ "stackTrace" => @stack_trace, "typeHint" => @type_hint, }) result.compact end |