Struct aws_sdk_ecs::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
.
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 get_subnets(&self) -> &Option<Vec<String>>
pub fn get_subnets(&self) -> &Option<Vec<String>>
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 get_security_groups(&self) -> &Option<Vec<String>>
pub fn get_security_groups(&self) -> &Option<Vec<String>>
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 get_assign_public_ip(&self) -> &Option<AssignPublicIp>
pub fn get_assign_public_ip(&self) -> &Option<AssignPublicIp>
Whether the task's elastic network interface receives a public IP address. The default value is DISABLED
.
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 ==
.impl StructuralPartialEq for AwsVpcConfigurationBuilder
Auto Trait Implementations§
impl Freeze for AwsVpcConfigurationBuilder
impl RefUnwindSafe for AwsVpcConfigurationBuilder
impl Send for AwsVpcConfigurationBuilder
impl Sync for AwsVpcConfigurationBuilder
impl Unpin for AwsVpcConfigurationBuilder
impl UnwindSafe for AwsVpcConfigurationBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more