Class: AWSCDK::EC2::CfnInstance::AssociationParameterProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/cfn_instance.rb

Overview

Specifies input parameter values for an SSM document in AWS Systems Manager .

AssociationParameter is a property of the SsmAssociation property type.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ AssociationParameterProperty

Returns a new instance of AssociationParameterProperty.

Parameters:

  • key (String)

    The name of an input parameter that is in the associated SSM document.

  • value (Array<String>)

    The value of an input parameter.



1132
1133
1134
1135
1136
1137
# File 'ec2/cfn_instance.rb', line 1132

def initialize(key:, value:)
  @key = key
  Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key")
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "value")
end

Instance Attribute Details

#keyString (readonly)

The name of an input parameter that is in the associated SSM document.



1143
1144
1145
# File 'ec2/cfn_instance.rb', line 1143

def key
  @key
end

#valueArray<String> (readonly)

The value of an input parameter.



1148
1149
1150
# File 'ec2/cfn_instance.rb', line 1148

def value
  @value
end

Class Method Details

.jsii_propertiesObject



1150
1151
1152
1153
1154
1155
# File 'ec2/cfn_instance.rb', line 1150

def self.jsii_properties
  {
    :key => "key",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



1157
1158
1159
1160
1161
1162
1163
1164
# File 'ec2/cfn_instance.rb', line 1157

def to_jsii
  result = {}
  result.merge!({
    "key" => @key,
    "value" => @value,
  })
  result.compact
end