Class: AWSCDK::CfnDynamicReferenceProps

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

Overview

Properties for a Dynamic Reference.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reference_key:, service:) ⇒ CfnDynamicReferenceProps

Returns a new instance of CfnDynamicReferenceProps.

Parameters:

  • reference_key (String)

    The reference key of the dynamic reference.

  • service (AWSCDK::CfnDynamicReferenceService)

    The service to retrieve the dynamic reference from.



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_keyString (readonly)

The reference key of the dynamic reference.

Returns:

  • (String)


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

def reference_key
  @reference_key
end

#serviceAWSCDK::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_propertiesObject



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_jsiiObject



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