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
- Struct
- Aws::ECS::Types::AwsVpcConfiguration
 
- Defined in:
- (unknown)
Overview
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
- 
  
    
      #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. The default value is DISABLED. 
Possible values:
- ENABLED
- DISABLED
#security_groups ⇒ Array<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.
#subnets ⇒ Array<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.