Struct aws_sdk_ecs::types::Attachment
source · #[non_exhaustive]pub struct Attachment {
pub id: Option<String>,
pub type: Option<String>,
pub status: Option<String>,
pub details: Option<Vec<KeyValuePair>>,
}
Expand description
An object representing a container instance or task attachment.
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.id: Option<String>
The unique identifier for the attachment.
type: Option<String>
The type of the attachment, such as ElasticNetworkInterface
, Service Connect
, and AmazonElasticBlockStorage
.
status: Option<String>
The status of the attachment. Valid values are PRECREATED
, CREATED
, ATTACHING
, ATTACHED
, DETACHING
, DETACHED
, DELETED
, and FAILED
.
details: Option<Vec<KeyValuePair>>
Details of the attachment.
For elastic network interfaces, this includes the network interface ID, the MAC address, the subnet ID, and the private IPv4 address.
For Service Connect services, this includes portName
, clientAliases
, discoveryName
, and ingressPortOverride
.
For elastic block storage, this includes roleArn
, encrypted
, filesystemType
, iops
, kmsKeyId
, sizeInGiB
, snapshotId
, tagSpecifications
, throughput
, and volumeType
.
Implementations§
source§impl Attachment
impl Attachment
sourcepub fn type(&self) -> Option<&str>
pub fn type(&self) -> Option<&str>
The type of the attachment, such as ElasticNetworkInterface
, Service Connect
, and AmazonElasticBlockStorage
.
sourcepub fn status(&self) -> Option<&str>
pub fn status(&self) -> Option<&str>
The status of the attachment. Valid values are PRECREATED
, CREATED
, ATTACHING
, ATTACHED
, DETACHING
, DETACHED
, DELETED
, and FAILED
.
sourcepub fn details(&self) -> &[KeyValuePair]
pub fn details(&self) -> &[KeyValuePair]
Details of the attachment.
For elastic network interfaces, this includes the network interface ID, the MAC address, the subnet ID, and the private IPv4 address.
For Service Connect services, this includes portName
, clientAliases
, discoveryName
, and ingressPortOverride
.
For elastic block storage, this includes roleArn
, encrypted
, filesystemType
, iops
, kmsKeyId
, sizeInGiB
, snapshotId
, tagSpecifications
, throughput
, and volumeType
.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .details.is_none()
.
source§impl Attachment
impl Attachment
sourcepub fn builder() -> AttachmentBuilder
pub fn builder() -> AttachmentBuilder
Creates a new builder-style object to manufacture Attachment
.
Trait Implementations§
source§impl Clone for Attachment
impl Clone for Attachment
source§fn clone(&self) -> Attachment
fn clone(&self) -> Attachment
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Attachment
impl Debug for Attachment
source§impl PartialEq for Attachment
impl PartialEq for Attachment
source§fn eq(&self, other: &Attachment) -> bool
fn eq(&self, other: &Attachment) -> bool
self
and other
values to be equal, and is used
by ==
.