Class: AWSCDK::ECS::CfnTaskSet::NetworkConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::CfnTaskSet::NetworkConfigurationProperty
- Defined in:
- ecs/cfn_task_set.rb
Overview
The network configuration for a task or service.
Instance Attribute Summary collapse
-
#aws_vpc_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(aws_vpc_configuration: nil) ⇒ NetworkConfigurationProperty
constructor
A new instance of NetworkConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(aws_vpc_configuration: nil) ⇒ NetworkConfigurationProperty
Returns a new instance of NetworkConfigurationProperty.
899 900 901 902 |
# File 'ecs/cfn_task_set.rb', line 899 def initialize(aws_vpc_configuration: nil) @aws_vpc_configuration = aws_vpc_configuration.is_a?(Hash) ? ::AWSCDK::ECS::CfnTaskSet::AWSVPCConfigurationProperty.new(**aws_vpc_configuration.transform_keys(&:to_sym)) : aws_vpc_configuration Jsii::Type.check_type(@aws_vpc_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lY3MuQ2ZuVGFza1NldC5Bd3NWcGNDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "awsVpcConfiguration") unless @aws_vpc_configuration.nil? end |
Instance Attribute Details
#aws_vpc_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.
910 911 912 |
# File 'ecs/cfn_task_set.rb', line 910 def aws_vpc_configuration @aws_vpc_configuration end |
Class Method Details
.jsii_properties ⇒ Object
912 913 914 915 916 |
# File 'ecs/cfn_task_set.rb', line 912 def self.jsii_properties { :aws_vpc_configuration => "awsVpcConfiguration", } end |
Instance Method Details
#to_jsii ⇒ Object
918 919 920 921 922 923 924 |
# File 'ecs/cfn_task_set.rb', line 918 def to_jsii result = {} result.merge!({ "awsVpcConfiguration" => @aws_vpc_configuration, }) result.compact end |