Class: AWSCDK::ECS::AppMeshProxyConfiguration
- Inherits:
-
ProxyConfiguration
- Object
- ProxyConfiguration
- AWSCDK::ECS::AppMeshProxyConfiguration
- Defined in:
- ecs/app_mesh_proxy_configuration.rb
Overview
The class for App Mesh proxy configurations.
For tasks using the EC2 launch type, the container instances require at least version 1.26.0 of the container agent and at least version 1.26.0-1 of the ecs-init package to enable a proxy configuration. If your container instances are launched from the Amazon ECS-optimized AMI version 20190301 or later, then they contain the required versions of the container agent and ecs-init. For more information, see Amazon ECS-optimized AMIs.
For tasks using the Fargate launch type, the task or service requires platform version 1.3.0 or later.
Class Method Summary collapse
Instance Method Summary collapse
-
#bind(_scope, _task_definition) ⇒ AWSCDK::ECS::CfnTaskDefinition::ProxyConfigurationProperty
Called when the proxy configuration is configured on a task definition.
-
#initialize(props) ⇒ AppMeshProxyConfiguration
constructor
Constructs a new instance of the AppMeshProxyConfiguration class.
Constructor Details
#initialize(props) ⇒ AppMeshProxyConfiguration
Constructs a new instance of the AppMeshProxyConfiguration class.
18 19 20 21 22 |
# File 'ecs/app_mesh_proxy_configuration.rb', line 18 def initialize(props) props = props.is_a?(Hash) ? ::AWSCDK::ECS::AppMeshProxyConfigurationConfigProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLkFwcE1lc2hQcm94eUNvbmZpZ3VyYXRpb25Db25maWdQcm9wcyJ9")), "props") Jsii::Object.instance_method(:initialize).bind(self).call(props) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
24 25 26 27 28 |
# File 'ecs/app_mesh_proxy_configuration.rb', line 24 def self.jsii_overridable_methods { :bind => { kind: :method, name: "bind", is_optional: false }, } end |
Instance Method Details
#bind(_scope, _task_definition) ⇒ AWSCDK::ECS::CfnTaskDefinition::ProxyConfigurationProperty
Called when the proxy configuration is configured on a task definition.
35 36 37 38 39 |
# File 'ecs/app_mesh_proxy_configuration.rb', line 35 def bind(_scope, _task_definition) Jsii::Type.check_type(_scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "_scope") Jsii::Type.check_type(_task_definition, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLlRhc2tEZWZpbml0aW9uIn0=")), "_taskDefinition") jsii_call_method("bind", [_scope, _task_definition]) end |