Struct aws_sdk_ecs::types::ServiceVolumeConfiguration
source · #[non_exhaustive]pub struct ServiceVolumeConfiguration {
pub name: String,
pub managed_ebs_volume: Option<ServiceManagedEbsVolumeConfiguration>,
}
Expand description
The configuration for a volume specified in the task definition as a volume that is configured at launch time. Currently, the only supported volume type is an Amazon EBS volume.
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.name: String
The name of the volume. This value must match the volume name from the Volume
object in the task definition.
managed_ebs_volume: Option<ServiceManagedEbsVolumeConfiguration>
The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. These settings are used to create each Amazon EBS volume, with one volume created for each task in the service. The Amazon EBS volumes are visible in your account in the Amazon EC2 console once they are created.
Implementations§
source§impl ServiceVolumeConfiguration
impl ServiceVolumeConfiguration
sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
The name of the volume. This value must match the volume name from the Volume
object in the task definition.
sourcepub fn managed_ebs_volume(
&self
) -> Option<&ServiceManagedEbsVolumeConfiguration>
pub fn managed_ebs_volume( &self ) -> Option<&ServiceManagedEbsVolumeConfiguration>
The configuration for the Amazon EBS volume that Amazon ECS creates and manages on your behalf. These settings are used to create each Amazon EBS volume, with one volume created for each task in the service. The Amazon EBS volumes are visible in your account in the Amazon EC2 console once they are created.
source§impl ServiceVolumeConfiguration
impl ServiceVolumeConfiguration
sourcepub fn builder() -> ServiceVolumeConfigurationBuilder
pub fn builder() -> ServiceVolumeConfigurationBuilder
Creates a new builder-style object to manufacture ServiceVolumeConfiguration
.
Trait Implementations§
source§impl Clone for ServiceVolumeConfiguration
impl Clone for ServiceVolumeConfiguration
source§fn clone(&self) -> ServiceVolumeConfiguration
fn clone(&self) -> ServiceVolumeConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ServiceVolumeConfiguration
impl Debug for ServiceVolumeConfiguration
source§impl PartialEq for ServiceVolumeConfiguration
impl PartialEq for ServiceVolumeConfiguration
source§fn eq(&self, other: &ServiceVolumeConfiguration) -> bool
fn eq(&self, other: &ServiceVolumeConfiguration) -> bool
self
and other
values to be equal, and is used
by ==
.