Class: Aws::ECS::Types::AwsVpcConfiguration
- Inherits:
-
Struct
- Object
- Struct
- Aws::ECS::Types::AwsVpcConfiguration
- Defined in:
- gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb
Overview
An object representing the networking details for a task or service.
For example
awsVpcConfiguration={subnets=["subnet-12344321"],securityGroups=["sg-12344321"]}
.
Constant Summary collapse
- SENSITIVE =
[]
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 IDs of the security groups associated with the task or service.
-
#subnets ⇒ Array<String>
The IDs of 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.
Consider the following when you set this value:
When you use
create-service
orupdate-service
, the default isDISABLED
.When the service
deploymentController
isECS
, the value must beDISABLED
.When you use
create-service
orupdate-service
, the default isENABLED
.
285 286 287 288 289 290 291 |
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 285 class AwsVpcConfiguration < Struct.new( :subnets, :security_groups, :assign_public_ip) SENSITIVE = [] include Aws::Structure end |
#security_groups ⇒ Array<String>
The IDs of the security groups associated with the task or service. If you don't specify a security group, the default security group for the VPC is used. There's a limit of 5 security groups that can be specified.
285 286 287 288 289 290 291 |
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 285 class AwsVpcConfiguration < Struct.new( :subnets, :security_groups, :assign_public_ip) SENSITIVE = [] include Aws::Structure end |
#subnets ⇒ Array<String>
The IDs of the subnets associated with the task or service. There's a limit of 16 subnets that can be specified.
285 286 287 288 289 290 291 |
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 285 class AwsVpcConfiguration < Struct.new( :subnets, :security_groups, :assign_public_ip) SENSITIVE = [] include Aws::Structure end |