Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Class: Aws::ECS::Types::AwsVpcConfiguration

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#assign_public_ipString

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 or update-service, the default is DISABLED.

  • When the service deploymentController is ECS, the value must be DISABLED.

Returns:

  • (String)

282
283
284
285
286
287
288
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 282

class AwsVpcConfiguration < Struct.new(
  :subnets,
  :security_groups,
  :assign_public_ip)
  SENSITIVE = []
  include Aws::Structure
end

#security_groupsArray<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.

All specified security groups must be from the same VPC.

Returns:

  • (Array<String>)

282
283
284
285
286
287
288
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 282

class AwsVpcConfiguration < Struct.new(
  :subnets,
  :security_groups,
  :assign_public_ip)
  SENSITIVE = []
  include Aws::Structure
end

#subnetsArray<String>

The IDs of the subnets associated with the task or service. There's a limit of 16 subnets that can be specified.

All specified subnets must be from the same VPC.

Returns:

  • (Array<String>)

282
283
284
285
286
287
288
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 282

class AwsVpcConfiguration < Struct.new(
  :subnets,
  :security_groups,
  :assign_public_ip)
  SENSITIVE = []
  include Aws::Structure
end