Class: AWSCDK::ECS::AppMeshProxyConfigurationConfigProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::AppMeshProxyConfigurationConfigProps
- 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
-
#container_name ⇒ String
readonly
The name of the container that will serve as the App Mesh proxy.
-
#properties ⇒ AWSCDK::ECS::AppMeshProxyConfigurationProps
readonly
The set of network configuration parameters to provide the Container Network Interface (CNI) plugin.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(container_name:, properties:) ⇒ AppMeshProxyConfigurationConfigProps
constructor
A new instance of AppMeshProxyConfigurationConfigProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(container_name:, properties:) ⇒ AppMeshProxyConfigurationConfigProps
Returns a new instance of AppMeshProxyConfigurationConfigProps.
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_name ⇒ String (readonly)
The name of the container that will serve as the App Mesh proxy.
19 20 21 |
# File 'ecs/app_mesh_proxy_configuration_config_props.rb', line 19 def container_name @container_name end |
#properties ⇒ AWSCDK::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_properties ⇒ Object
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_jsii ⇒ Object
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 |