Struct aws_sdk_ram::types::ResourceShareAssociation
source · #[non_exhaustive]pub struct ResourceShareAssociation {
pub resource_share_arn: Option<String>,
pub resource_share_name: Option<String>,
pub associated_entity: Option<String>,
pub association_type: Option<ResourceShareAssociationType>,
pub status: Option<ResourceShareAssociationStatus>,
pub status_message: Option<String>,
pub creation_time: Option<DateTime>,
pub last_updated_time: Option<DateTime>,
pub external: Option<bool>,
}
Expand description
Describes an association between a resource share and either a principal or a resource.
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.The Amazon Resource Name (ARN) of the resource share.
The name of the resource share.
associated_entity: Option<String>
The associated entity. This can be either of the following:
-
For a resource association, this is the Amazon Resource Name (ARN) of the resource.
-
For principal associations, this is one of the following:
-
The ID of an Amazon Web Services account
-
The Amazon Resource Name (ARN) of an organization in Organizations
-
The ARN of an organizational unit (OU) in Organizations
-
The ARN of an IAM role
-
The ARN of an IAM user
-
association_type: Option<ResourceShareAssociationType>
The type of entity included in this association.
status: Option<ResourceShareAssociationStatus>
The current status of the association.
status_message: Option<String>
A message about the status of the association.
creation_time: Option<DateTime>
The date and time when the association was created.
last_updated_time: Option<DateTime>
The date and time when the association was last updated.
external: Option<bool>
Indicates whether the principal belongs to the same organization in Organizations as the Amazon Web Services account that owns the resource share.
Implementations§
The Amazon Resource Name (ARN) of the resource share.
The name of the resource share.
sourcepub fn associated_entity(&self) -> Option<&str>
pub fn associated_entity(&self) -> Option<&str>
The associated entity. This can be either of the following:
-
For a resource association, this is the Amazon Resource Name (ARN) of the resource.
-
For principal associations, this is one of the following:
-
The ID of an Amazon Web Services account
-
The Amazon Resource Name (ARN) of an organization in Organizations
-
The ARN of an organizational unit (OU) in Organizations
-
The ARN of an IAM role
-
The ARN of an IAM user
-
sourcepub fn association_type(&self) -> Option<&ResourceShareAssociationType>
pub fn association_type(&self) -> Option<&ResourceShareAssociationType>
The type of entity included in this association.
sourcepub fn status(&self) -> Option<&ResourceShareAssociationStatus>
pub fn status(&self) -> Option<&ResourceShareAssociationStatus>
The current status of the association.
sourcepub fn status_message(&self) -> Option<&str>
pub fn status_message(&self) -> Option<&str>
A message about the status of the association.
sourcepub fn creation_time(&self) -> Option<&DateTime>
pub fn creation_time(&self) -> Option<&DateTime>
The date and time when the association was created.
sourcepub fn last_updated_time(&self) -> Option<&DateTime>
pub fn last_updated_time(&self) -> Option<&DateTime>
The date and time when the association was last updated.
sourcepub fn builder() -> ResourceShareAssociationBuilder
pub fn builder() -> ResourceShareAssociationBuilder
Creates a new builder-style object to manufacture ResourceShareAssociation
.
Trait Implementations§
source§fn clone(&self) -> ResourceShareAssociation
fn clone(&self) -> ResourceShareAssociation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§fn eq(&self, other: &ResourceShareAssociation) -> bool
fn eq(&self, other: &ResourceShareAssociation) -> bool
self
and other
values to be equal, and is used
by ==
.Auto Trait Implementations§
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