Class: AWSCDK::CfnDynamicReferenceProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CfnDynamicReferenceProps
- Defined in:
- cfn_dynamic_reference_props.rb
Overview
Properties for a Dynamic Reference.
Instance Attribute Summary collapse
-
#reference_key ⇒ String
readonly
The reference key of the dynamic reference.
-
#service ⇒ AWSCDK::CfnDynamicReferenceService
readonly
The service to retrieve the dynamic reference from.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(reference_key:, service:) ⇒ CfnDynamicReferenceProps
constructor
A new instance of CfnDynamicReferenceProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(reference_key:, service:) ⇒ CfnDynamicReferenceProps
Returns a new instance of CfnDynamicReferenceProps.
9 10 11 12 13 14 |
# File 'cfn_dynamic_reference_props.rb', line 9 def initialize(reference_key:, service:) @reference_key = reference_key Jsii::Type.check_type(@reference_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "referenceKey") @service = service Jsii::Type.check_type(@service, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5DZm5EeW5hbWljUmVmZXJlbmNlU2VydmljZSJ9")), "service") end |
Instance Attribute Details
#reference_key ⇒ String (readonly)
The reference key of the dynamic reference.
19 20 21 |
# File 'cfn_dynamic_reference_props.rb', line 19 def reference_key @reference_key end |
#service ⇒ AWSCDK::CfnDynamicReferenceService (readonly)
The service to retrieve the dynamic reference from.
23 24 25 |
# File 'cfn_dynamic_reference_props.rb', line 23 def service @service end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'cfn_dynamic_reference_props.rb', line 25 def self.jsii_properties { :reference_key => "referenceKey", :service => "service", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'cfn_dynamic_reference_props.rb', line 32 def to_jsii result = {} result.merge!({ "referenceKey" => @reference_key, "service" => @service, }) result.compact end |