Struct aws_sdk_ram::operation::replace_permission_associations::builders::ReplacePermissionAssociationsFluentBuilder
source · pub struct ReplacePermissionAssociationsFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to ReplacePermissionAssociations
.
Updates all resource shares that use a managed permission to a different managed permission. This operation always applies the default version of the target managed permission. You can optionally specify that the update applies to only resource shares that currently use a specified version. This enables you to update to the latest version, without changing the which managed permission is used.
You can use this operation to update all of your resource shares to use the current default version of the permission by specifying the same value for the fromPermissionArn
and toPermissionArn
parameters.
You can use the optional fromPermissionVersion
parameter to update only those resources that use a specified version of the managed permission to the new managed permission.
To successfully perform this operation, you must have permission to update the resource-based policy on all affected resource types.
Implementations§
source§impl ReplacePermissionAssociationsFluentBuilder
impl ReplacePermissionAssociationsFluentBuilder
sourcepub fn as_input(&self) -> &ReplacePermissionAssociationsInputBuilder
pub fn as_input(&self) -> &ReplacePermissionAssociationsInputBuilder
Access the ReplacePermissionAssociations as a reference.
sourcepub async fn send(
self
) -> Result<ReplacePermissionAssociationsOutput, SdkError<ReplacePermissionAssociationsError, HttpResponse>>
pub async fn send( self ) -> Result<ReplacePermissionAssociationsOutput, SdkError<ReplacePermissionAssociationsError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<ReplacePermissionAssociationsOutput, ReplacePermissionAssociationsError, Self>
pub fn customize( self ) -> CustomizableOperation<ReplacePermissionAssociationsOutput, ReplacePermissionAssociationsError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn from_permission_arn(self, input: impl Into<String>) -> Self
pub fn from_permission_arn(self, input: impl Into<String>) -> Self
Specifies the Amazon Resource Name (ARN) of the managed permission that you want to replace.
sourcepub fn set_from_permission_arn(self, input: Option<String>) -> Self
pub fn set_from_permission_arn(self, input: Option<String>) -> Self
Specifies the Amazon Resource Name (ARN) of the managed permission that you want to replace.
sourcepub fn get_from_permission_arn(&self) -> &Option<String>
pub fn get_from_permission_arn(&self) -> &Option<String>
Specifies the Amazon Resource Name (ARN) of the managed permission that you want to replace.
sourcepub fn from_permission_version(self, input: i32) -> Self
pub fn from_permission_version(self, input: i32) -> Self
Specifies that you want to updated the permissions for only those resource shares that use the specified version of the managed permission.
sourcepub fn set_from_permission_version(self, input: Option<i32>) -> Self
pub fn set_from_permission_version(self, input: Option<i32>) -> Self
Specifies that you want to updated the permissions for only those resource shares that use the specified version of the managed permission.
sourcepub fn get_from_permission_version(&self) -> &Option<i32>
pub fn get_from_permission_version(&self) -> &Option<i32>
Specifies that you want to updated the permissions for only those resource shares that use the specified version of the managed permission.
sourcepub fn to_permission_arn(self, input: impl Into<String>) -> Self
pub fn to_permission_arn(self, input: impl Into<String>) -> Self
Specifies the ARN of the managed permission that you want to associate with resource shares in place of the one specified by fromPerssionArn
and fromPermissionVersion
.
The operation always associates the version that is currently the default for the specified managed permission.
sourcepub fn set_to_permission_arn(self, input: Option<String>) -> Self
pub fn set_to_permission_arn(self, input: Option<String>) -> Self
Specifies the ARN of the managed permission that you want to associate with resource shares in place of the one specified by fromPerssionArn
and fromPermissionVersion
.
The operation always associates the version that is currently the default for the specified managed permission.
sourcepub fn get_to_permission_arn(&self) -> &Option<String>
pub fn get_to_permission_arn(&self) -> &Option<String>
Specifies the ARN of the managed permission that you want to associate with resource shares in place of the one specified by fromPerssionArn
and fromPermissionVersion
.
The operation always associates the version that is currently the default for the specified managed permission.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
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 set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
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 get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &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.
Trait Implementations§
source§impl Clone for ReplacePermissionAssociationsFluentBuilder
impl Clone for ReplacePermissionAssociationsFluentBuilder
source§fn clone(&self) -> ReplacePermissionAssociationsFluentBuilder
fn clone(&self) -> ReplacePermissionAssociationsFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for ReplacePermissionAssociationsFluentBuilder
impl !RefUnwindSafe for ReplacePermissionAssociationsFluentBuilder
impl Send for ReplacePermissionAssociationsFluentBuilder
impl Sync for ReplacePermissionAssociationsFluentBuilder
impl Unpin for ReplacePermissionAssociationsFluentBuilder
impl !UnwindSafe for ReplacePermissionAssociationsFluentBuilder
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