Class: AWSCDK::AppRunner::CfnService::KeyValuePairProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_runner/cfn_service.rb

Overview

Describes a key-value pair, which is a string-to-string mapping.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name: nil, value: nil) ⇒ KeyValuePairProperty

Returns a new instance of KeyValuePairProperty.

Parameters:

  • name (String, nil) (defaults to: nil)

    The key name string to map to a value.

  • value (String, nil) (defaults to: nil)

    The value string to which the key name is mapped.



1327
1328
1329
1330
1331
1332
# File 'app_runner/cfn_service.rb', line 1327

def initialize(name: nil, value: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") unless @value.nil?
end

Instance Attribute Details

#nameString? (readonly)

The key name string to map to a value.



1338
1339
1340
# File 'app_runner/cfn_service.rb', line 1338

def name
  @name
end

#valueString? (readonly)

The value string to which the key name is mapped.



1343
1344
1345
# File 'app_runner/cfn_service.rb', line 1343

def value
  @value
end

Class Method Details

.jsii_propertiesObject



1345
1346
1347
1348
1349
1350
# File 'app_runner/cfn_service.rb', line 1345

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

Instance Method Details

#to_jsiiObject



1352
1353
1354
1355
1356
1357
1358
1359
# File 'app_runner/cfn_service.rb', line 1352

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