Class: AWSCDK::ECS::CfnService::NetworkConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::CfnService::NetworkConfigurationProperty
- Defined in:
- ecs/cfn_service.rb
Overview
The network configuration for a task or service.
Instance Attribute Summary collapse
-
#awsvpc_configuration ⇒ AWSCDK::IResolvable, ...
readonly
The VPC subnets and security groups that are associated with a task.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(awsvpc_configuration: nil) ⇒ NetworkConfigurationProperty
constructor
A new instance of NetworkConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(awsvpc_configuration: nil) ⇒ NetworkConfigurationProperty
Returns a new instance of NetworkConfigurationProperty.
2213 2214 2215 2216 |
# File 'ecs/cfn_service.rb', line 2213 def initialize(awsvpc_configuration: nil) @awsvpc_configuration = awsvpc_configuration.is_a?(Hash) ? ::AWSCDK::ECS::CfnService::AWSVPCConfigurationProperty.new(**awsvpc_configuration.transform_keys(&:to_sym)) : awsvpc_configuration Jsii::Type.check_type(@awsvpc_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lY3MuQ2ZuU2VydmljZS5Bd3NWcGNDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "awsvpcConfiguration") unless @awsvpc_configuration.nil? end |
Instance Attribute Details
#awsvpc_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
The VPC subnets and security groups that are associated with a task.
All specified subnets and security groups must be from the same VPC.
2224 2225 2226 |
# File 'ecs/cfn_service.rb', line 2224 def awsvpc_configuration @awsvpc_configuration end |
Class Method Details
.jsii_properties ⇒ Object
2226 2227 2228 2229 2230 |
# File 'ecs/cfn_service.rb', line 2226 def self.jsii_properties { :awsvpc_configuration => "awsvpcConfiguration", } end |
Instance Method Details
#to_jsii ⇒ Object
2232 2233 2234 2235 2236 2237 2238 |
# File 'ecs/cfn_service.rb', line 2232 def to_jsii result = {} result.merge!({ "awsvpcConfiguration" => @awsvpc_configuration, }) result.compact end |