Class: AWSCDK::ECS::CfnExpressGatewayService::KeyValuePairProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ecs/cfn_express_gateway_service.rb

Overview

A key-value pair object.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, value:) ⇒ KeyValuePairProperty

Returns a new instance of KeyValuePairProperty.

Parameters:

  • name (String)

    The name of the key-value pair.

  • value (String)

    The value of the key-value pair.



1508
1509
1510
1511
1512
1513
# File 'ecs/cfn_express_gateway_service.rb', line 1508

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

Instance Attribute Details

#nameString (readonly)

The name of the key-value pair.

For environment variables, this is the name of the environment variable.



1521
1522
1523
# File 'ecs/cfn_express_gateway_service.rb', line 1521

def name
  @name
end

#valueString (readonly)

The value of the key-value pair.

For environment variables, this is the value of the environment variable.



1528
1529
1530
# File 'ecs/cfn_express_gateway_service.rb', line 1528

def value
  @value
end

Class Method Details

.jsii_propertiesObject



1530
1531
1532
1533
1534
1535
# File 'ecs/cfn_express_gateway_service.rb', line 1530

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

Instance Method Details

#to_jsiiObject



1537
1538
1539
1540
1541
1542
1543
1544
# File 'ecs/cfn_express_gateway_service.rb', line 1537

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