Struct aws_sdk_pipes::types::builders::AwsVpcConfigurationBuilder
source · #[non_exhaustive]pub struct AwsVpcConfigurationBuilder { /* private fields */ }
Expand description
A builder for AwsVpcConfiguration
.
Implementations§
source§impl AwsVpcConfigurationBuilder
impl AwsVpcConfigurationBuilder
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
.
Specifies the subnets associated with the task. These subnets must all be in the same VPC. You can specify as many as 16 subnets.
sourcepub fn set_subnets(self, input: Option<Vec<String>>) -> Self
pub fn set_subnets(self, input: Option<Vec<String>>) -> Self
Specifies the subnets associated with the task. These subnets must all be in the same VPC. You can specify as many as 16 subnets.
sourcepub fn get_subnets(&self) -> &Option<Vec<String>>
pub fn get_subnets(&self) -> &Option<Vec<String>>
Specifies the subnets associated with the task. These subnets must all be in the same VPC. You can specify as many as 16 subnets.
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
.
Specifies the security groups associated with the task. These security groups must all be in the same VPC. You can specify as many as five security groups. If you do not specify a security group, the default security group for the VPC is used.
sourcepub fn set_security_groups(self, input: Option<Vec<String>>) -> Self
pub fn set_security_groups(self, input: Option<Vec<String>>) -> Self
Specifies the security groups associated with the task. These security groups must all be in the same VPC. You can specify as many as five security groups. If you do not specify a security group, the default security group for the VPC is used.
sourcepub fn get_security_groups(&self) -> &Option<Vec<String>>
pub fn get_security_groups(&self) -> &Option<Vec<String>>
Specifies the security groups associated with the task. These security groups must all be in the same VPC. You can specify as many as five security groups. If you do not specify a security group, the default security group for the VPC is used.
sourcepub fn assign_public_ip(self, input: AssignPublicIp) -> Self
pub fn assign_public_ip(self, input: AssignPublicIp) -> Self
Specifies whether the task's elastic network interface receives a public IP address. You can specify ENABLED
only when LaunchType
in EcsParameters
is set to FARGATE
.
sourcepub fn set_assign_public_ip(self, input: Option<AssignPublicIp>) -> Self
pub fn set_assign_public_ip(self, input: Option<AssignPublicIp>) -> Self
Specifies whether the task's elastic network interface receives a public IP address. You can specify ENABLED
only when LaunchType
in EcsParameters
is set to FARGATE
.
sourcepub fn get_assign_public_ip(&self) -> &Option<AssignPublicIp>
pub fn get_assign_public_ip(&self) -> &Option<AssignPublicIp>
Specifies whether the task's elastic network interface receives a public IP address. You can specify ENABLED
only when LaunchType
in EcsParameters
is set to FARGATE
.
sourcepub fn build(self) -> Result<AwsVpcConfiguration, BuildError>
pub fn build(self) -> Result<AwsVpcConfiguration, BuildError>
Consumes the builder and constructs a AwsVpcConfiguration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AwsVpcConfigurationBuilder
impl Clone for AwsVpcConfigurationBuilder
source§fn clone(&self) -> AwsVpcConfigurationBuilder
fn clone(&self) -> AwsVpcConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AwsVpcConfigurationBuilder
impl Debug for AwsVpcConfigurationBuilder
source§impl Default for AwsVpcConfigurationBuilder
impl Default for AwsVpcConfigurationBuilder
source§fn default() -> AwsVpcConfigurationBuilder
fn default() -> AwsVpcConfigurationBuilder
source§impl PartialEq for AwsVpcConfigurationBuilder
impl PartialEq for AwsVpcConfigurationBuilder
source§fn eq(&self, other: &AwsVpcConfigurationBuilder) -> bool
fn eq(&self, other: &AwsVpcConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.