#[non_exhaustive]pub struct AssociateResourceShareInput {
pub resource_share_arn: Option<String>,
pub resource_arns: Option<Vec<String>>,
pub principals: Option<Vec<String>>,
pub client_token: Option<String>,
pub sources: Option<Vec<String>>,
}
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.Specifies the Amazon Resource Name (ARN) of the resource share that you want to add principals or resources to.
resource_arns: Option<Vec<String>>
Specifies a list of Amazon Resource Names (ARNs) of the resources that you want to share. This can be null
if you want to add only principals.
principals: Option<Vec<String>>
Specifies a list of principals to whom you want to the resource share. This can be null
if you want to add only resources.
What the principals can do with the resources in the share is determined by the RAM permissions that you associate with the resource share. See AssociateResourceSharePermission
.
You can include the following values:
-
An Amazon Web Services account ID, for example:
123456789012
-
An Amazon Resource Name (ARN) of an organization in Organizations, for example:
organizations::123456789012:organization/o-exampleorgid
-
An ARN of an organizational unit (OU) in Organizations, for example:
organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid123
-
An ARN of an IAM role, for example:
iam::123456789012:role/rolename
-
An ARN of an IAM user, for example:
iam::123456789012user/username
Not all resource types can be shared with IAM roles and users. For more information, see Sharing with IAM roles and users in the Resource Access Manager User Guide.
client_token: Option<String>
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same ClientToken
, but with different parameters, the retry fails with an IdempotentParameterMismatch
error.
sources: Option<Vec<String>>
Specifies from which source accounts the service principal has access to the resources in this resource share.
Implementations§
Specifies the Amazon Resource Name (ARN) of the resource share that you want to add principals or resources to.
sourcepub fn resource_arns(&self) -> &[String]
pub fn resource_arns(&self) -> &[String]
Specifies a list of Amazon Resource Names (ARNs) of the resources that you want to share. This can be null
if you want to add only principals.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .resource_arns.is_none()
.
sourcepub fn principals(&self) -> &[String]
pub fn principals(&self) -> &[String]
Specifies a list of principals to whom you want to the resource share. This can be null
if you want to add only resources.
What the principals can do with the resources in the share is determined by the RAM permissions that you associate with the resource share. See AssociateResourceSharePermission
.
You can include the following values:
-
An Amazon Web Services account ID, for example:
123456789012
-
An Amazon Resource Name (ARN) of an organization in Organizations, for example:
organizations::123456789012:organization/o-exampleorgid
-
An ARN of an organizational unit (OU) in Organizations, for example:
organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid123
-
An ARN of an IAM role, for example:
iam::123456789012:role/rolename
-
An ARN of an IAM user, for example:
iam::123456789012user/username
Not all resource types can be shared with IAM roles and users. For more information, see Sharing with IAM roles and users in the Resource Access Manager User Guide.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .principals.is_none()
.
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same ClientToken
, but with different parameters, the retry fails with an IdempotentParameterMismatch
error.
sourcepub fn builder() -> AssociateResourceShareInputBuilder
pub fn builder() -> AssociateResourceShareInputBuilder
Creates a new builder-style object to manufacture AssociateResourceShareInput
.
Trait Implementations§
source§fn clone(&self) -> AssociateResourceShareInput
fn clone(&self) -> AssociateResourceShareInput
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: &AssociateResourceShareInput) -> bool
fn eq(&self, other: &AssociateResourceShareInput) -> 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