Struct aws_sdk_ecs::model::aws_vpc_configuration::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for AwsVpcConfiguration.
Implementations§
source§impl Builder
impl Builder
sourcepub fn subnets(self, input: impl Into<String>) -> Self
pub fn subnets(self, input: impl Into<String>) -> Self
Appends an item to subnets.
To override the contents of this collection use set_subnets.
The IDs of the subnets associated with the task or service. There's a limit of 16 subnets that can be specified per AwsVpcConfiguration.
All specified subnets must be from the same VPC.
sourcepub fn set_subnets(self, input: Option<Vec<String>>) -> Self
pub fn set_subnets(self, input: Option<Vec<String>>) -> Self
The IDs of the subnets associated with the task or service. There's a limit of 16 subnets that can be specified per AwsVpcConfiguration.
All specified subnets must be from the same VPC.
sourcepub fn security_groups(self, input: impl Into<String>) -> Self
pub fn security_groups(self, input: impl Into<String>) -> Self
Appends an item to security_groups.
To override the contents of this collection use set_security_groups.
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 per AwsVpcConfiguration.
All specified security groups must be from the same VPC.
sourcepub fn set_security_groups(self, input: Option<Vec<String>>) -> Self
pub fn set_security_groups(self, input: Option<Vec<String>>) -> Self
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 per AwsVpcConfiguration.
All specified security groups must be from the same VPC.
sourcepub fn assign_public_ip(self, input: AssignPublicIp) -> Self
pub fn assign_public_ip(self, input: AssignPublicIp) -> Self
Whether the task's elastic network interface receives a public IP address. The default value is DISABLED.
sourcepub fn set_assign_public_ip(self, input: Option<AssignPublicIp>) -> Self
pub fn set_assign_public_ip(self, input: Option<AssignPublicIp>) -> Self
Whether the task's elastic network interface receives a public IP address. The default value is DISABLED.
sourcepub fn build(self) -> AwsVpcConfiguration
pub fn build(self) -> AwsVpcConfiguration
Consumes the builder and constructs a AwsVpcConfiguration.