#[non_exhaustive]pub struct AssociateCrossAccountReplicaInput {
pub secret_id: Option<String>,
pub cross_account_replica_arn: Option<String>,
pub replica_restriction: Option<ReplicaRestrictionType>,
pub replication_role_arn: Option<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.secret_id: 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.
cross_account_replica_arn: 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.
replica_restriction: 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.
replication_role_arn: 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.
Implementations§
Source§impl AssociateCrossAccountReplicaInput
impl AssociateCrossAccountReplicaInput
Sourcepub fn secret_id(&self) -> Option<&str>
pub fn secret_id(&self) -> Option<&str>
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) -> Option<&str>
pub fn cross_account_replica_arn(&self) -> Option<&str>
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) -> Option<&ReplicaRestrictionType>
pub fn 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) -> Option<&str>
pub fn replication_role_arn(&self) -> Option<&str>
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.
Source§impl AssociateCrossAccountReplicaInput
impl AssociateCrossAccountReplicaInput
Sourcepub fn builder() -> AssociateCrossAccountReplicaInputBuilder
pub fn builder() -> AssociateCrossAccountReplicaInputBuilder
Creates a new builder-style object to manufacture AssociateCrossAccountReplicaInput.
Source§impl AssociateCrossAccountReplicaInput
impl AssociateCrossAccountReplicaInput
Sourcepub fn deserialize(
deserializer: &mut dyn ShapeDeserializer,
) -> Result<Self, SerdeError>
pub fn deserialize( deserializer: &mut dyn ShapeDeserializer, ) -> Result<Self, SerdeError>
Deserializes this structure from a [ShapeDeserializer].
Trait Implementations§
Source§impl Clone for AssociateCrossAccountReplicaInput
impl Clone for AssociateCrossAccountReplicaInput
Source§fn clone(&self) -> AssociateCrossAccountReplicaInput
fn clone(&self) -> AssociateCrossAccountReplicaInput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl SerializableStruct for AssociateCrossAccountReplicaInput
impl SerializableStruct for AssociateCrossAccountReplicaInput
Source§fn schema(&self) -> &Schema<'_>
fn schema(&self) -> &Schema<'_>
Source§fn serialize_members(
&self,
ser: &mut dyn ShapeSerializer,
) -> Result<(), SerdeError>
fn serialize_members( &self, ser: &mut dyn ShapeSerializer, ) -> Result<(), SerdeError>
impl StructuralPartialEq for AssociateCrossAccountReplicaInput
Auto Trait Implementations§
impl Freeze for AssociateCrossAccountReplicaInput
impl RefUnwindSafe for AssociateCrossAccountReplicaInput
impl Send for AssociateCrossAccountReplicaInput
impl Sync for AssociateCrossAccountReplicaInput
impl Unpin for AssociateCrossAccountReplicaInput
impl UnsafeUnpin for AssociateCrossAccountReplicaInput
impl UnwindSafe for AssociateCrossAccountReplicaInput
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