AwsVpcConfiguration¶
Structure Class¶
AwsVpcConfiguration
dataclass
¶
Bases: _SerdeShape
An object representing the networking details for a task or service. For
example
awsVpcConfiguration={subnets=["subnet-12344321"],securityGroups=["sg-12344321"]}.
Attributes¶
assign_public_ip
class-attribute
instance-attribute
¶
assign_public_ip: str | None = ...
Whether the task's elastic network interface receives a public IP address.
Consider the following when you set this value:
-
When you use
create-serviceorupdate-service, the default isDISABLED. -
When the service
deploymentControllerisECS, the value must beDISABLED.
security_groups
class-attribute
instance-attribute
¶
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.
Note
All specified security groups must be from the same VPC.