SecretsManagerClient.replicate_secret_to_regions
rboto-secrets-manager==0.4.0 · Service index · Types
Model summary (excerpt): Replicates the secret to a new Regions. See Multi-Region secrets . 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:ReplicateSecretToRegions . If the primary secret is...
Install and imports
from rboto import SecretsManagerClient
from collections.abc import Sequence
from rboto_secrets_manager.types import (
ReplicaRegionType,
ReplicateSecretToRegionsOutput,
)
Signature
async def replicate_secret_to_regions(
*,
secret_id: str,
add_replica_regions: Sequence[ReplicaRegionType],
force_overwrite_replica_secret: bool | None = None,
) -> ReplicateSecretToRegionsOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
secret_id |
Yes | The ARN or name of the secret to replicate. |
add_replica_regions |
Yes | A list of Regions in which to replicate the secret. |
force_overwrite_replica_secret |
No | Specifies whether to overwrite a secret with the same name in the destination Region. By default, secrets aren't overwritten. |
Output
ReplicateSecretToRegionsOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
arn |
str | None |
Always present | — |
replication_status |
list[ReplicationStatusTypeOutput] | None |
Always present | ReplicationStatusTypeOutput |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
ReplicaRegionType, ReplicateSecretToRegionsOutput
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_secrets_manager.exceptions:
InternalServiceError, InvalidParameterError, InvalidRequestError, ResourceNotFoundError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.