Struct aws_sdk_securityhub::types::AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails
source · #[non_exhaustive]pub struct AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails {
pub assign_public_ip: Option<String>,
pub security_groups: Option<Vec<String>>,
pub subnets: Option<Vec<String>>,
}
Expand description
For tasks that use the awsvpc
networking mode, the VPC subnet and security group configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.assign_public_ip: Option<String>
Whether the task's elastic network interface receives a public IP address. The default value is DISABLED
.
Valid values: ENABLED
| DISABLED
security_groups: Option<Vec<String>>
The IDs of the security groups associated with the task or service.
You can provide up to five security groups.
subnets: Option<Vec<String>>
The IDs of the subnets associated with the task or service.
You can provide up to 16 subnets.
Implementations§
source§impl AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails
impl AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails
sourcepub fn assign_public_ip(&self) -> Option<&str>
pub fn assign_public_ip(&self) -> Option<&str>
Whether the task's elastic network interface receives a public IP address. The default value is DISABLED
.
Valid values: ENABLED
| DISABLED
sourcepub fn security_groups(&self) -> &[String]
pub fn security_groups(&self) -> &[String]
The IDs of the security groups associated with the task or service.
You can provide up to five security groups.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .security_groups.is_none()
.
source§impl AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails
impl AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails
sourcepub fn builder(
) -> AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetailsBuilder
pub fn builder( ) -> AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetailsBuilder
Creates a new builder-style object to manufacture AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails
.
Trait Implementations§
source§impl Clone for AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails
impl Clone for AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails
source§fn clone(&self) -> AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails
fn clone(&self) -> AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails
impl PartialEq for AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails
source§fn eq(
&self,
other: &AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails
) -> bool
fn eq( &self, other: &AwsEcsServiceNetworkConfigurationAwsVpcConfigurationDetails ) -> bool
self
and other
values to be equal, and is used
by ==
.