Skip to content

AwsVpcConfiguration

Source code in docs_src/capo_ecs/types/aws_vpc_configuration.py
class AwsVpcConfiguration(TypedDict, closed=True):
    subnets: "capo_ecs.types.string_list.StringList"
    """<p>The IDs of the subnets associated with the task or service. There's a limit of 16 subnets that can be specified.</p> <note> <p>All specified subnets must be from the same VPC.</p> </note>"""
    security_groups: NotRequired["capo_ecs.types.string_list.StringList"]
    """<p>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.</p> <note> <p>All specified security groups must be from the same VPC.</p> </note>"""
    assign_public_ip: NotRequired["capo_ecs.types.assign_public_ip.AssignPublicIp"]
    """<p>Whether the task's elastic network interface receives a public IP address. </p> <p>Consider the following when you set this value:</p> <ul> <li> <p>When you use <code>create-service</code> or <code>update-service</code>, the default is <code>DISABLED</code>. </p> </li> <li> <p>When the service <code>deploymentController</code> is <code>ECS</code>, the value must be <code>DISABLED</code>. </p> </li> </ul>"""

assign_public_ip instance-attribute

assign_public_ip: NotRequired[AssignPublicIp]

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: NotRequired[StringList]

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.

All specified security groups must be from the same VPC.

subnets instance-attribute

subnets: StringList

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

All specified subnets must be from the same VPC.