Struct aws_sdk_ram::model::ResourceShare
source · [−]#[non_exhaustive]pub struct ResourceShare {
pub resource_share_arn: Option<String>,
pub name: Option<String>,
pub owning_account_id: Option<String>,
pub allow_external_principals: Option<bool>,
pub status: Option<ResourceShareStatus>,
pub status_message: Option<String>,
pub tags: Option<Vec<Tag>>,
pub creation_time: Option<DateTime>,
pub last_updated_time: Option<DateTime>,
pub feature_set: Option<ResourceShareFeatureSet>,
}Expand description
Describes a resource share in RAM.
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 Resoure Name (ARN) of the resource share
name: Option<String>The name of the resource share.
owning_account_id: Option<String>The ID of the Amazon Web Services account that owns the resource share.
allow_external_principals: Option<bool>Indicates whether principals outside your organization in Organizations can be associated with a resource share.
status: Option<ResourceShareStatus>The current status of the resource share.
status_message: Option<String>A message about the status of the resource share.
The tag key and value pairs attached to the resource share.
creation_time: Option<DateTime>The date and time when the resource share was created.
last_updated_time: Option<DateTime>The date and time when the resource share was last updated.
feature_set: Option<ResourceShareFeatureSet>Indicates how the resource share was created. Possible values include:
-
CREATED_FROM_POLICY- Indicates that the resource share was created from an Identity and Access Management (IAM) resource-based permission policy attached to the resource. This type of resource share is visible only to the Amazon Web Services account that created it. You can't modify it in RAM unless you promote it. For more information, seePromoteResourceShareCreatedFromPolicy. -
PROMOTING_TO_STANDARD- The resource share is in the process of being promoted. For more information, seePromoteResourceShareCreatedFromPolicy. -
STANDARD- Indicates that the resource share was created in RAM using the console or APIs. These resource shares are visible to all principals you share the resource share with. You can modify these resource shares in RAM using the console or APIs.
Implementations
sourceimpl ResourceShare
impl ResourceShare
The Amazon Resoure Name (ARN) of the resource share
sourcepub fn owning_account_id(&self) -> Option<&str>
pub fn owning_account_id(&self) -> Option<&str>
The ID of the Amazon Web Services account that owns the resource share.
sourcepub fn allow_external_principals(&self) -> Option<bool>
pub fn allow_external_principals(&self) -> Option<bool>
Indicates whether principals outside your organization in Organizations can be associated with a resource share.
sourcepub fn status(&self) -> Option<&ResourceShareStatus>
pub fn status(&self) -> Option<&ResourceShareStatus>
The current status of the resource share.
sourcepub fn status_message(&self) -> Option<&str>
pub fn status_message(&self) -> Option<&str>
A message about the status of the resource share.
The tag key and value pairs attached to the resource share.
sourcepub fn creation_time(&self) -> Option<&DateTime>
pub fn creation_time(&self) -> Option<&DateTime>
The date and time when the resource share was created.
sourcepub fn last_updated_time(&self) -> Option<&DateTime>
pub fn last_updated_time(&self) -> Option<&DateTime>
The date and time when the resource share was last updated.
sourcepub fn feature_set(&self) -> Option<&ResourceShareFeatureSet>
pub fn feature_set(&self) -> Option<&ResourceShareFeatureSet>
Indicates how the resource share was created. Possible values include:
-
CREATED_FROM_POLICY- Indicates that the resource share was created from an Identity and Access Management (IAM) resource-based permission policy attached to the resource. This type of resource share is visible only to the Amazon Web Services account that created it. You can't modify it in RAM unless you promote it. For more information, seePromoteResourceShareCreatedFromPolicy. -
PROMOTING_TO_STANDARD- The resource share is in the process of being promoted. For more information, seePromoteResourceShareCreatedFromPolicy. -
STANDARD- Indicates that the resource share was created in RAM using the console or APIs. These resource shares are visible to all principals you share the resource share with. You can modify these resource shares in RAM using the console or APIs.
sourceimpl ResourceShare
impl ResourceShare
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ResourceShare
Trait Implementations
sourceimpl Clone for ResourceShare
impl Clone for ResourceShare
sourcefn clone(&self) -> ResourceShare
fn clone(&self) -> ResourceShare
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ResourceShare
impl Debug for ResourceShare
sourcefn eq(&self, other: &ResourceShare) -> bool
fn eq(&self, other: &ResourceShare) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ResourceShare) -> bool
fn ne(&self, other: &ResourceShare) -> bool
This method tests for !=.
impl StructuralPartialEq for ResourceShare
Auto Trait Implementations
impl RefUnwindSafe for ResourceShare
impl Send for ResourceShare
impl Sync for ResourceShare
impl Unpin for ResourceShare
impl UnwindSafe for ResourceShare
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more