Skip to content

ECS  >  Dictionaries  >  AwsVpcConfigurationDict

AwsVpcConfigurationDict

Dictionary Type

AwsVpcConfigurationDict

Bases: TypedDict

Dictionary form of AwsVpcConfiguration.

Attributes

assign_public_ip 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-service or update-service, the default is DISABLED.

  • When the service deploymentController is ECS, the value must be DISABLED.

security_groups instance-attribute
security_groups: Sequence[str] | None

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.

subnets instance-attribute
subnets: Required[Sequence[str]]

The IDs of the subnets associated with the task or service. There's a limit of 16 subnets that can be specified.

Note

All specified subnets must be from the same VPC.