Struct aws_sdk_ram::types::Principal
source · #[non_exhaustive]pub struct Principal {
pub id: Option<String>,
pub resource_share_arn: Option<String>,
pub creation_time: Option<DateTime>,
pub last_updated_time: Option<DateTime>,
pub external: Option<bool>,
}Expand description
Describes a principal for use with Resource Access Manager.
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 ID of the principal that can be associated with a resource share.
The Amazon Resource Name (ARN) of a resource share the principal is associated with.
creation_time: Option<DateTime>The date and time when the principal was associated with the resource share.
last_updated_time: Option<DateTime>The date and time when the association between the resource share and the principal was last updated.
external: Option<bool>Indicates the relationship between the Amazon Web Services account the principal belongs to and the account that owns the resource share:
-
True– The two accounts belong to same organization. -
False– The two accounts do not belong to the same organization.
Implementations§
source§impl Principal
impl Principal
sourcepub fn id(&self) -> Option<&str>
pub fn id(&self) -> Option<&str>
The ID of the principal that can be associated with a resource share.
The Amazon Resource Name (ARN) of a resource share the principal is associated with.
sourcepub fn creation_time(&self) -> Option<&DateTime>
pub fn creation_time(&self) -> Option<&DateTime>
The date and time when the principal was associated with the resource share.
sourcepub fn last_updated_time(&self) -> Option<&DateTime>
pub fn last_updated_time(&self) -> Option<&DateTime>
The date and time when the association between the resource share and the principal was last updated.