pub struct StopReplicationToReplicaFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to StopReplicationToReplica.
Removes the link between a replica secret and its primary secret, and stops replication to the replica. You call this operation from the replica account or Region. Depending on the type of replica, the behavior is:
-
Cross-Region replica: promotes the replica to a standalone primary secret in the replica Region.
-
Cross-account replica: promotes the replica in your account to a standalone secret and stops replication from its primary secret in the other account. Secrets Manager updates the primary secret's replication status to
Detachedfor this replica.
To stop cross-account replication from the primary account instead, use DisassociateCrossAccountReplica.
Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters because it might be logged. For more information, see Logging Secrets Manager events with CloudTrail.
Required permissions: secretsmanager:StopReplicationToReplica. For cross-account replica secrets, you must also have secretsmanager:DeleteResourcePolicy permissions. For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager.
Implementations§
Source§impl StopReplicationToReplicaFluentBuilder
impl StopReplicationToReplicaFluentBuilder
Sourcepub fn as_input(&self) -> &StopReplicationToReplicaInputBuilder
pub fn as_input(&self) -> &StopReplicationToReplicaInputBuilder
Access the StopReplicationToReplica as a reference.
Sourcepub async fn send(
self,
) -> Result<StopReplicationToReplicaOutput, SdkError<StopReplicationToReplicaError, HttpResponse>>
pub async fn send( self, ) -> Result<StopReplicationToReplicaOutput, SdkError<StopReplicationToReplicaError, 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<StopReplicationToReplicaOutput, StopReplicationToReplicaError, Self>
pub fn customize( self, ) -> CustomizableOperation<StopReplicationToReplicaOutput, StopReplicationToReplicaError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
Sourcepub fn secret_id(self, input: impl Into<String>) -> Self
pub fn secret_id(self, input: impl Into<String>) -> Self
The ARN or name of the replica secret.
For a cross-region replica, the replica ARN is the same as the original primary secret ARN except that the Region is changed to the replica Region. For a cross-account replica, this is the ARN or name of the replica secret in your account.
Sourcepub fn set_secret_id(self, input: Option<String>) -> Self
pub fn set_secret_id(self, input: Option<String>) -> Self
The ARN or name of the replica secret.
For a cross-region replica, the replica ARN is the same as the original primary secret ARN except that the Region is changed to the replica Region. For a cross-account replica, this is the ARN or name of the replica secret in your account.
Sourcepub fn get_secret_id(&self) -> &Option<String>
pub fn get_secret_id(&self) -> &Option<String>
The ARN or name of the replica secret.
For a cross-region replica, the replica ARN is the same as the original primary secret ARN except that the Region is changed to the replica Region. For a cross-account replica, this is the ARN or name of the replica secret in your account.
Trait Implementations§
Source§impl Clone for StopReplicationToReplicaFluentBuilder
impl Clone for StopReplicationToReplicaFluentBuilder
Source§fn clone(&self) -> StopReplicationToReplicaFluentBuilder
fn clone(&self) -> StopReplicationToReplicaFluentBuilder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for StopReplicationToReplicaFluentBuilder
impl !UnwindSafe for StopReplicationToReplicaFluentBuilder
impl Freeze for StopReplicationToReplicaFluentBuilder
impl Send for StopReplicationToReplicaFluentBuilder
impl Sync for StopReplicationToReplicaFluentBuilder
impl Unpin for StopReplicationToReplicaFluentBuilder
impl UnsafeUnpin for StopReplicationToReplicaFluentBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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