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

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ecs/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

Instance Attribute Details

#assign_public_ipString

Specifies whether or not the task's elastic network interface receives a public IP address.

Returns:

  • (String)


149
150
151
152
153
154
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 149

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

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

Returns:

  • (Array<String>)


149
150
151
152
153
154
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 149

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

#subnetsArray<String>

The subnets associated with the task or service.

Returns:

  • (Array<String>)


149
150
151
152
153
154
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 149

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