Class: AWSCDK::ServiceCatalog::CfnServiceAction::DefinitionParameterProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
service_catalog/cfn_service_action.rb

Overview

The list of parameters in JSON format.

For example: [{\"Name\":\"InstanceId\",\"Type\":\"TARGET\"}] or [{\"Name\":\"InstanceId\",\"Type\":\"TEXT_VALUE\"}] .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ DefinitionParameterProperty

Returns a new instance of DefinitionParameterProperty.

Parameters:

  • key (String)

    The parameter key.

  • value (String)

    The value of the parameter.



557
558
559
560
561
562
# File 'service_catalog/cfn_service_action.rb', line 557

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("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value")
end

Instance Attribute Details

#keyString (readonly)

The parameter key.



568
569
570
# File 'service_catalog/cfn_service_action.rb', line 568

def key
  @key
end

#valueString (readonly)

The value of the parameter.



573
574
575
# File 'service_catalog/cfn_service_action.rb', line 573

def value
  @value
end

Class Method Details

.jsii_propertiesObject



575
576
577
578
579
580
# File 'service_catalog/cfn_service_action.rb', line 575

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

Instance Method Details

#to_jsiiObject



582
583
584
585
586
587
588
589
# File 'service_catalog/cfn_service_action.rb', line 582

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