Class: AWSCDK::ECS::AppMeshProxyConfigurationConfigProps

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

Overview

The configuration to use when setting an App Mesh proxy configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(container_name:, properties:) ⇒ AppMeshProxyConfigurationConfigProps

Returns a new instance of AppMeshProxyConfigurationConfigProps.

Parameters:

  • container_name (String)

    The name of the container that will serve as the App Mesh proxy.

  • properties (AWSCDK::ECS::AppMeshProxyConfigurationProps)

    The set of network configuration parameters to provide the Container Network Interface (CNI) plugin.



9
10
11
12
13
14
# File 'ecs/app_mesh_proxy_configuration_config_props.rb', line 9

def initialize(container_name:, properties:)
  @container_name = container_name
  Jsii::Type.check_type(@container_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "containerName")
  @properties = properties.is_a?(Hash) ? ::AWSCDK::ECS::AppMeshProxyConfigurationProps.new(**properties.transform_keys(&:to_sym)) : properties
  Jsii::Type.check_type(@properties, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLkFwcE1lc2hQcm94eUNvbmZpZ3VyYXRpb25Qcm9wcyJ9")), "properties")
end

Instance Attribute Details

#container_nameString (readonly)

The name of the container that will serve as the App Mesh proxy.

Returns:

  • (String)


19
20
21
# File 'ecs/app_mesh_proxy_configuration_config_props.rb', line 19

def container_name
  @container_name
end

#propertiesAWSCDK::ECS::AppMeshProxyConfigurationProps (readonly)

The set of network configuration parameters to provide the Container Network Interface (CNI) plugin.



23
24
25
# File 'ecs/app_mesh_proxy_configuration_config_props.rb', line 23

def properties
  @properties
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'ecs/app_mesh_proxy_configuration_config_props.rb', line 25

def self.jsii_properties
  {
    :container_name => "containerName",
    :properties => "properties",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'ecs/app_mesh_proxy_configuration_config_props.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "containerName" => @container_name,
    "properties" => @properties,
  })
  result.compact
end