Struct aws_sdk_securityhub::types::AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails
source · #[non_exhaustive]pub struct AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails {
pub autoprovision: Option<bool>,
pub driver: Option<String>,
pub driver_opts: Option<HashMap<String, String>>,
pub labels: Option<HashMap<String, String>>,
pub scope: Option<String>,
}Expand description
Information about a Docker 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.autoprovision: Option<bool>Whether to create the Docker volume automatically if it does not already exist.
driver: Option<String>The Docker volume driver to use.
driver_opts: Option<HashMap<String, String>>A map of Docker driver-specific options that are passed through.
labels: Option<HashMap<String, String>>Custom metadata to add to the Docker volume.
scope: Option<String>The scope for the Docker volume that determines its lifecycle. Docker volumes that are scoped to a task are provisioned automatically when the task starts and destroyed when the task stops. Docker volumes that are shared persist after the task stops. Valid values are shared or task.
Implementations§
source§impl AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails
impl AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails
sourcepub fn autoprovision(&self) -> Option<bool>
pub fn autoprovision(&self) -> Option<bool>
Whether to create the Docker volume automatically if it does not already exist.
sourcepub fn driver_opts(&self) -> Option<&HashMap<String, String>>
pub fn driver_opts(&self) -> Option<&HashMap<String, String>>
A map of Docker driver-specific options that are passed through.
sourcepub fn labels(&self) -> Option<&HashMap<String, String>>
pub fn labels(&self) -> Option<&HashMap<String, String>>
Custom metadata to add to the Docker volume.
sourcepub fn scope(&self) -> Option<&str>
pub fn scope(&self) -> Option<&str>
The scope for the Docker volume that determines its lifecycle. Docker volumes that are scoped to a task are provisioned automatically when the task starts and destroyed when the task stops. Docker volumes that are shared persist after the task stops. Valid values are shared or task.
source§impl AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails
impl AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails
sourcepub fn builder(
) -> AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetailsBuilder
pub fn builder( ) -> AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetailsBuilder
Creates a new builder-style object to manufacture AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails.
Trait Implementations§
source§impl Clone for AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails
impl Clone for AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails
source§fn clone(&self) -> AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails
fn clone(&self) -> AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails
impl PartialEq for AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails
source§fn eq(
&self,
other: &AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails
) -> bool
fn eq( &self, other: &AwsEcsTaskDefinitionVolumesDockerVolumeConfigurationDetails ) -> bool
self and other values to be equal, and is used
by ==.