KMSClient.replicate_key
rboto-kms==0.4.0 · Service index · Types
Model summary (excerpt): Replicates a multi-Region key into the specified Region. This operation creates a multi-Region replica key based on a multi-Region primary key in a different Region of the same Amazon Web Services partition. You can create multiple replicas of a primary key, but each must be in a different Region. To create a multi-Region primary key, use the CreateKey operation. This operation supports...
Install and imports
from rboto import KMSClient
from collections.abc import Sequence
from rboto_kms.types import (
ReplicateKeyOutput,
Tag,
)
Signature
async def replicate_key(
*,
key_id: str,
replica_region: str,
policy: str | None = None,
bypass_policy_lockout_safety_check: bool | None = None,
description: str | None = None,
tags: Sequence[Tag] | None = None,
) -> ReplicateKeyOutput: ...
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) |
|---|---|---|
key_id |
Yes | Identifies the multi-Region primary key that is being replicated. To determine whether a KMS key is a multi-Region primary key, use the DescribeKey operation to check the value of the MultiRegionKeyType property. Specify the key ID or key ARN of a multi-Region primary key. For example: Key ID: mrk-1234abcd12ab34cd56ef1234567890ab Key ARN:... |
replica_region |
Yes | The Region ID of the Amazon Web Services Region for this replica key. Enter the Region ID, such as us-east-1 or ap-southeast-2 . For a list of Amazon Web Services Regions in which KMS is supported, see KMS service endpoints in the Amazon Web Services General Reference . The replica must be in a different Amazon Web Services Region than its primary key and other replicas of that primary key,... |
policy |
No | The key policy to attach to the KMS key. This parameter is optional. If you do not provide a key policy, KMS attaches the default key policy to the KMS key. The key policy is not a shared property of multi-Region keys. You can specify the same key policy or a different key policy for each key in a set of related multi-Region keys. KMS does not synchronize this property. If you provide a key... |
bypass_policy_lockout_safety_check |
No | Skips ("bypasses") the key policy lockout safety check. The default value is false. Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately. For more information, see Default key policy in the Key Management Service Developer Guide . Use this parameter only when you intend to prevent the principal that is making the... |
description |
No | A description of the KMS key. The default value is an empty string (no description). Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output. The description is not a shared property of multi-Region keys. You can specify the same description or a different description for each key in a set of related... |
tags |
No | Assigns one or more tags to the replica key. Use this parameter to tag the KMS key when it is created. To tag an existing KMS key, use the TagResource operation. Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output. Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details,... |
Output
ReplicateKeyOutput.
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 |
|---|---|---|---|
replica_key_metadata |
KeyMetadataOutput | None |
Always present | KeyMetadataOutput |
replica_policy |
str | None |
Always present | — |
replica_tags |
list[TagOutput] | None |
Always present | TagOutput |
| 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
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_kms.exceptions:
AlreadyExistsError, DisabledError, InvalidArnError, KMSInternalError, KMSInvalidStateError, LimitExceededError, MalformedPolicyDocumentError, NotFoundError, TagError, UnsupportedOperationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.