Class: Aws::ECS::Types::AwsVpcConfiguration
- Inherits:
-
Struct
- Object
- Struct
- Aws::ECS::Types::AwsVpcConfiguration
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-ecs/types.rb
Overview
Note:
When making an API call, you may pass AwsVpcConfiguration data as a hash:
{
subnets: ["String"], # required
security_groups: ["String"],
assign_public_ip: "ENABLED", # accepts ENABLED, DISABLED
}
An object representing the networking details for a task or service.
Instance Attribute Summary collapse
-
#assign_public_ip ⇒ String
Whether the task’s elastic network interface receives a public IP address.
-
#security_groups ⇒ Array<String>
The security groups associated with the task or service.
-
#subnets ⇒ Array<String>
The subnets associated with the task or service.
Instance Attribute Details
#assign_public_ip ⇒ String
Whether the task’s elastic network interface receives a public IP address.
151 152 153 154 155 156 |
# File 'lib/aws-sdk-ecs/types.rb', line 151 class AwsVpcConfiguration < Struct.new( :subnets, :security_groups, :assign_public_ip) include Aws::Structure end |
#security_groups ⇒ Array<String>
The security groups associated with the task or service. If you do not specify a security group, the default security group for the VPC is used. There is a limit of 5 security groups able to be specified per AwsVpcConfiguration.
151 152 153 154 155 156 |
# File 'lib/aws-sdk-ecs/types.rb', line 151 class AwsVpcConfiguration < Struct.new( :subnets, :security_groups, :assign_public_ip) include Aws::Structure end |
#subnets ⇒ Array<String>
The subnets associated with the task or service. There is a limit of 10 subnets able to be specified per AwsVpcConfiguration.
151 152 153 154 155 156 |
# File 'lib/aws-sdk-ecs/types.rb', line 151 class AwsVpcConfiguration < Struct.new( :subnets, :security_groups, :assign_public_ip) include Aws::Structure end |