Class: AWSCDK::SSMIncidents::CfnResponsePlan::SSMParameterProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ssm_incidents/cfn_response_plan.rb

Overview

The key-value pair parameters to use when running the Automation runbook.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, values:) ⇒ SSMParameterProperty

Returns a new instance of SSMParameterProperty.

Parameters:

  • key (String)

    The key parameter to use when running the Automation runbook.

  • values (Array<String>)

    The value parameter to use when running the Automation runbook.



1102
1103
1104
1105
1106
1107
# File 'ssm_incidents/cfn_response_plan.rb', line 1102

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

Instance Attribute Details

#keyString (readonly)

The key parameter to use when running the Automation runbook.



1113
1114
1115
# File 'ssm_incidents/cfn_response_plan.rb', line 1113

def key
  @key
end

#valuesArray<String> (readonly)

The value parameter to use when running the Automation runbook.



1118
1119
1120
# File 'ssm_incidents/cfn_response_plan.rb', line 1118

def values
  @values
end

Class Method Details

.jsii_propertiesObject



1120
1121
1122
1123
1124
1125
# File 'ssm_incidents/cfn_response_plan.rb', line 1120

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

Instance Method Details

#to_jsiiObject



1127
1128
1129
1130
1131
1132
1133
1134
# File 'ssm_incidents/cfn_response_plan.rb', line 1127

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