Struct aws_sdk_ram::model::resource_share::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }Expand description
A builder for ResourceShare
Implementations
sourceimpl Builder
impl Builder
The Amazon Resoure Name (ARN) of the resource share
The Amazon Resoure Name (ARN) of the resource share
sourcepub fn owning_account_id(self, input: impl Into<String>) -> Self
pub fn owning_account_id(self, input: impl Into<String>) -> Self
The ID of the Amazon Web Services account that owns the resource share.
sourcepub fn set_owning_account_id(self, input: Option<String>) -> Self
pub fn set_owning_account_id(self, input: Option<String>) -> Self
The ID of the Amazon Web Services account that owns the resource share.
sourcepub fn allow_external_principals(self, input: bool) -> Self
pub fn allow_external_principals(self, input: bool) -> Self
Indicates whether principals outside your organization in Organizations can be associated with a resource share.
sourcepub fn set_allow_external_principals(self, input: Option<bool>) -> Self
pub fn set_allow_external_principals(self, input: Option<bool>) -> Self
Indicates whether principals outside your organization in Organizations can be associated with a resource share.
sourcepub fn status(self, input: ResourceShareStatus) -> Self
pub fn status(self, input: ResourceShareStatus) -> Self
The current status of the resource share.
sourcepub fn set_status(self, input: Option<ResourceShareStatus>) -> Self
pub fn set_status(self, input: Option<ResourceShareStatus>) -> Self
The current status of the resource share.
sourcepub fn status_message(self, input: impl Into<String>) -> Self
pub fn status_message(self, input: impl Into<String>) -> Self
A message about the status of the resource share.
sourcepub fn set_status_message(self, input: Option<String>) -> Self
pub fn set_status_message(self, input: Option<String>) -> Self
A message about the status of the resource share.
Appends an item to tags.
To override the contents of this collection use set_tags.
The tag key and value pairs attached to the resource share.
The tag key and value pairs attached to the resource share.
sourcepub fn creation_time(self, input: DateTime) -> Self
pub fn creation_time(self, input: DateTime) -> Self
The date and time when the resource share was created.
sourcepub fn set_creation_time(self, input: Option<DateTime>) -> Self
pub fn set_creation_time(self, input: Option<DateTime>) -> Self
The date and time when the resource share was created.
sourcepub fn last_updated_time(self, input: DateTime) -> Self
pub fn last_updated_time(self, input: DateTime) -> Self
The date and time when the resource share was last updated.
sourcepub fn set_last_updated_time(self, input: Option<DateTime>) -> Self
pub fn set_last_updated_time(self, input: Option<DateTime>) -> Self
The date and time when the resource share was last updated.
sourcepub fn feature_set(self, input: ResourceShareFeatureSet) -> Self
pub fn feature_set(self, input: ResourceShareFeatureSet) -> Self
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.
sourcepub fn set_feature_set(self, input: Option<ResourceShareFeatureSet>) -> Self
pub fn set_feature_set(self, input: Option<ResourceShareFeatureSet>) -> Self
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.
sourcepub fn build(self) -> ResourceShare
pub fn build(self) -> ResourceShare
Consumes the builder and constructs a ResourceShare
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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