You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

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

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing AwsVpcConfiguration as input to an Aws::Client method, you can use a vanilla 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.

Returned by:

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 DISABLED.

Possible values:

  • ENABLED
  • DISABLED

Returns:

  • (String)

    Whether the task\'s elastic network interface receives a public IP address.

#security_groupsArray<String>

The IDs of 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 that can be specified per AwsVpcConfiguration.

All specified security groups must be from the same VPC.

Returns:

  • (Array<String>)

    The IDs of the security groups associated with the task or service.

#subnetsArray<String>

The IDs of the subnets associated with the task or service. There is a limit of 16 subnets that can be specified per AwsVpcConfiguration.

All specified subnets must be from the same VPC.

Returns:

  • (Array<String>)

    The IDs of the subnets associated with the task or service.