Skip to content

AssociateCrossAccountReplicaRequest

Source code in docs_src/capo_secrets_manager/types/associate_cross_account_replica_request.py
class AssociateCrossAccountReplicaRequest(TypedDict, closed=True):
    secret_id: "capo_secrets_manager.types.secret_id_type.SecretIdType"
    """<p>The ARN or name of the primary secret in your account to replicate.</p> <p>For an ARN, we recommend that you specify a complete ARN rather than a partial ARN. See <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/troubleshoot.html#ARN_secretnamehyphen">Finding a secret from a partial ARN</a>.</p>"""
    cross_account_replica_arn: (
        "capo_secrets_manager.types.secret_arn_type.SecretARNType"
    )
    """<p>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 <a>CreateSecret</a>.</p>"""
    replica_restriction: NotRequired[
        "capo_secrets_manager.types.replica_restriction_type.ReplicaRestrictionType"
    ]
    """<p>Whether the replica account must belong to the same Amazon Web Services organization as the primary account:</p> <ul> <li> <p> <code>SameOrg</code>, which requires the replica account to be in the same organization as the primary account. This is the default.</p> </li> <li> <p> <code>NoRestriction</code>, which allows the replica account to be in any organization.</p> </li> </ul>"""
    replication_role_arn: NotRequired[
        "capo_secrets_manager.types.role_arn_type.RoleARNType"
    ]
    """<p>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 <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/cross-account-replicate-permissions.html"> Cross-account replication permissions</a>.</p>"""

cross_account_replica_arn instance-attribute

cross_account_replica_arn: SecretARNType

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 instance-attribute

replica_restriction: NotRequired[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 instance-attribute

replication_role_arn: NotRequired[RoleARNType]

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.

secret_id instance-attribute

secret_id: SecretIdType

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.