Struct aws_sdk_ec2::types::TransitGatewayAttachment
source · #[non_exhaustive]pub struct TransitGatewayAttachment {
pub transit_gateway_attachment_id: Option<String>,
pub transit_gateway_id: Option<String>,
pub transit_gateway_owner_id: Option<String>,
pub resource_owner_id: Option<String>,
pub resource_type: Option<TransitGatewayAttachmentResourceType>,
pub resource_id: Option<String>,
pub state: Option<TransitGatewayAttachmentState>,
pub association: Option<TransitGatewayAttachmentAssociation>,
pub creation_time: Option<DateTime>,
pub tags: Option<Vec<Tag>>,
}
Expand description
Describes an attachment between a resource and a transit gateway.
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.transit_gateway_attachment_id: Option<String>
The ID of the attachment.
transit_gateway_id: Option<String>
The ID of the transit gateway.
transit_gateway_owner_id: Option<String>
The ID of the Amazon Web Services account that owns the transit gateway.
resource_owner_id: Option<String>
The ID of the Amazon Web Services account that owns the resource.
resource_type: Option<TransitGatewayAttachmentResourceType>
The resource type. Note that the tgw-peering
resource type has been deprecated.
resource_id: Option<String>
The ID of the resource.
state: Option<TransitGatewayAttachmentState>
The attachment state. Note that the initiating
state has been deprecated.
association: Option<TransitGatewayAttachmentAssociation>
The association.
creation_time: Option<DateTime>
The creation time.
The tags for the attachment.
Implementations§
source§impl TransitGatewayAttachment
impl TransitGatewayAttachment
sourcepub fn transit_gateway_attachment_id(&self) -> Option<&str>
pub fn transit_gateway_attachment_id(&self) -> Option<&str>
The ID of the attachment.
sourcepub fn transit_gateway_id(&self) -> Option<&str>
pub fn transit_gateway_id(&self) -> Option<&str>
The ID of the transit gateway.
sourcepub fn transit_gateway_owner_id(&self) -> Option<&str>
pub fn transit_gateway_owner_id(&self) -> Option<&str>
The ID of the Amazon Web Services account that owns the transit gateway.
sourcepub fn resource_owner_id(&self) -> Option<&str>
pub fn resource_owner_id(&self) -> Option<&str>
The ID of the Amazon Web Services account that owns the resource.
sourcepub fn resource_type(&self) -> Option<&TransitGatewayAttachmentResourceType>
pub fn resource_type(&self) -> Option<&TransitGatewayAttachmentResourceType>
The resource type. Note that the tgw-peering
resource type has been deprecated.
sourcepub fn resource_id(&self) -> Option<&str>
pub fn resource_id(&self) -> Option<&str>
The ID of the resource.
sourcepub fn state(&self) -> Option<&TransitGatewayAttachmentState>
pub fn state(&self) -> Option<&TransitGatewayAttachmentState>
The attachment state. Note that the initiating
state has been deprecated.
sourcepub fn association(&self) -> Option<&TransitGatewayAttachmentAssociation>
pub fn association(&self) -> Option<&TransitGatewayAttachmentAssociation>
The association.
sourcepub fn creation_time(&self) -> Option<&DateTime>
pub fn creation_time(&self) -> Option<&DateTime>
The creation time.
The tags for the attachment.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
source§impl TransitGatewayAttachment
impl TransitGatewayAttachment
sourcepub fn builder() -> TransitGatewayAttachmentBuilder
pub fn builder() -> TransitGatewayAttachmentBuilder
Creates a new builder-style object to manufacture TransitGatewayAttachment
.
Trait Implementations§
source§impl Clone for TransitGatewayAttachment
impl Clone for TransitGatewayAttachment
source§fn clone(&self) -> TransitGatewayAttachment
fn clone(&self) -> TransitGatewayAttachment
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TransitGatewayAttachment
impl Debug for TransitGatewayAttachment
source§impl PartialEq for TransitGatewayAttachment
impl PartialEq for TransitGatewayAttachment
source§fn eq(&self, other: &TransitGatewayAttachment) -> bool
fn eq(&self, other: &TransitGatewayAttachment) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TransitGatewayAttachment
Auto Trait Implementations§
impl Freeze for TransitGatewayAttachment
impl RefUnwindSafe for TransitGatewayAttachment
impl Send for TransitGatewayAttachment
impl Sync for TransitGatewayAttachment
impl Unpin for TransitGatewayAttachment
impl UnwindSafe for TransitGatewayAttachment
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