#[non_exhaustive]pub struct AssociateCrossAccountReplicaInputBuilder { /* private fields */ }Expand description
A builder for AssociateCrossAccountReplicaInput.
Implementations§
Source§impl AssociateCrossAccountReplicaInputBuilder
impl AssociateCrossAccountReplicaInputBuilder
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 primary secret in your account to replicate.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.
This field is required.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 primary secret in your account to replicate.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.
Sourcepub fn get_secret_id(&self) -> &Option<String>
pub fn get_secret_id(&self) -> &Option<String>
The ARN or name of the primary secret in your account to replicate.
For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See Finding a secret from a partial ARN.
Sourcepub fn cross_account_replica_arn(self, input: impl Into<String>) -> Self
pub fn cross_account_replica_arn(self, input: impl Into<String>) -> Self
The ARN of the replica secret in the other Amazon Web Services account. The replica secret must be in the same Region and partition as the primary secret. Additionally, the replica account owner must have created the replica secret as a cross-account replica of the primary secret. For more information see CreateSecret.
Sourcepub fn set_cross_account_replica_arn(self, input: Option<String>) -> Self
pub fn set_cross_account_replica_arn(self, input: Option<String>) -> Self
The ARN of the replica secret in the other Amazon Web Services account. The replica secret must be in the same Region and partition as the primary secret. Additionally, the replica account owner must have created the replica secret as a cross-account replica of the primary secret. For more information see CreateSecret.
Sourcepub fn get_cross_account_replica_arn(&self) -> &Option<String>
pub fn get_cross_account_replica_arn(&self) -> &Option<String>
The ARN of the replica secret in the other Amazon Web Services account. The replica secret must be in the same Region and partition as the primary secret. Additionally, the replica account owner must have created the replica secret as a cross-account replica of the primary secret. For more information see CreateSecret.
Sourcepub fn replica_restriction(self, input: ReplicaRestrictionType) -> Self
pub fn replica_restriction(self, input: ReplicaRestrictionType) -> Self
Whether the replica account must belong to the same Amazon Web Services organization as the primary account:
-
SameOrg, which requires the replica account to be in the same organization as the primary account. This is the default. -
NoRestriction, which allows the replica account to be in any organization.
Sourcepub fn set_replica_restriction(
self,
input: Option<ReplicaRestrictionType>,
) -> Self
pub fn set_replica_restriction( self, input: Option<ReplicaRestrictionType>, ) -> Self
Whether the replica account must belong to the same Amazon Web Services organization as the primary account:
-
SameOrg, which requires the replica account to be in the same organization as the primary account. This is the default. -
NoRestriction, which allows the replica account to be in any organization.
Sourcepub fn get_replica_restriction(&self) -> &Option<ReplicaRestrictionType>
pub fn get_replica_restriction(&self) -> &Option<ReplicaRestrictionType>
Whether the replica account must belong to the same Amazon Web Services organization as the primary account:
-
SameOrg, which requires the replica account to be in the same organization as the primary account. This is the default. -
NoRestriction, which allows the replica account to be in any organization.
Sourcepub fn replication_role_arn(self, input: impl Into<String>) -> Self
pub fn replication_role_arn(self, input: impl Into<String>) -> Self
The ARN of an IAM role in the primary account that Secrets Manager assumes to perform replication. If you don't include this field, Secrets Manager replicates using the credentials of caller who updates the primary secret. For more information, see Cross-account replication permissions.
Sourcepub fn set_replication_role_arn(self, input: Option<String>) -> Self
pub fn set_replication_role_arn(self, input: Option<String>) -> Self
The ARN of an IAM role in the primary account that Secrets Manager assumes to perform replication. If you don't include this field, Secrets Manager replicates using the credentials of caller who updates the primary secret. For more information, see Cross-account replication permissions.
Sourcepub fn get_replication_role_arn(&self) -> &Option<String>
pub fn get_replication_role_arn(&self) -> &Option<String>
The ARN of an IAM role in the primary account that Secrets Manager assumes to perform replication. If you don't include this field, Secrets Manager replicates using the credentials of caller who updates the primary secret. For more information, see Cross-account replication permissions.
Sourcepub fn build(self) -> Result<AssociateCrossAccountReplicaInput, BuildError>
pub fn build(self) -> Result<AssociateCrossAccountReplicaInput, BuildError>
Consumes the builder and constructs a AssociateCrossAccountReplicaInput.
Source§impl AssociateCrossAccountReplicaInputBuilder
impl AssociateCrossAccountReplicaInputBuilder
Sourcepub async fn send_with(
self,
client: &Client,
) -> Result<AssociateCrossAccountReplicaOutput, SdkError<AssociateCrossAccountReplicaError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<AssociateCrossAccountReplicaOutput, SdkError<AssociateCrossAccountReplicaError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
Source§impl Clone for AssociateCrossAccountReplicaInputBuilder
impl Clone for AssociateCrossAccountReplicaInputBuilder
Source§fn clone(&self) -> AssociateCrossAccountReplicaInputBuilder
fn clone(&self) -> AssociateCrossAccountReplicaInputBuilder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for AssociateCrossAccountReplicaInputBuilder
impl Default for AssociateCrossAccountReplicaInputBuilder
Source§fn default() -> AssociateCrossAccountReplicaInputBuilder
fn default() -> AssociateCrossAccountReplicaInputBuilder
impl StructuralPartialEq for AssociateCrossAccountReplicaInputBuilder
Auto Trait Implementations§
impl Freeze for AssociateCrossAccountReplicaInputBuilder
impl RefUnwindSafe for AssociateCrossAccountReplicaInputBuilder
impl Send for AssociateCrossAccountReplicaInputBuilder
impl Sync for AssociateCrossAccountReplicaInputBuilder
impl Unpin for AssociateCrossAccountReplicaInputBuilder
impl UnsafeUnpin for AssociateCrossAccountReplicaInputBuilder
impl UnwindSafe for AssociateCrossAccountReplicaInputBuilder
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