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

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-ecs/types.rb

Overview

An object representing the networking details for a task or service. For example ‘awsVpcConfiguration="subnet-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. The default value is ‘ENABLED`.

Returns:

  • (String)


275
276
277
278
279
280
281
# File 'lib/aws-sdk-ecs/types.rb', line 275

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 per ‘awsvpcConfiguration`.

<note markdown=“1”> All specified security groups must be from the same VPC.

</note>

Returns:

  • (Array<String>)


275
276
277
278
279
280
281
# File 'lib/aws-sdk-ecs/types.rb', line 275

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 per ‘awsvpcConfiguration`.

<note markdown=“1”> All specified subnets must be from the same VPC.

</note>

Returns:

  • (Array<String>)


275
276
277
278
279
280
281
# File 'lib/aws-sdk-ecs/types.rb', line 275

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