---
type: resource-type
title: ReplicaKey
description: aws resource type AWS::KMS::ReplicaKey
name: ReplicaKey
lexicon: aws
resource_type: AWS::KMS::ReplicaKey
---
`AWS::KMS::ReplicaKey`, a resource type of the aws lexicon.

## Properties

- `KeyPolicy` (`Record<string, unknown>`, required): The key policy that authorizes use of the AWS KMS key. The key policy must observe the following rules.
- `PrimaryKeyArn` (`string`, required): Identifies the primary AWS KMS key to create a replica of. Specify the Amazon Resource Name (ARN) of the AWS KMS key. You cannot specify an alias or key ID. For help finding the ARN, see Finding the Key ID and ARN in the AWS Key Management Service Developer Guide.
- `Arn` (`string`, optional)
- `Description` (`string`, optional): A description of the AWS KMS key. Use a description that helps you to distinguish this AWS KMS key from others in the account, such as its intended use.
- `Enabled` (`boolean`, optional): Specifies whether the AWS KMS key is enabled. Disabled AWS KMS keys cannot be used in cryptographic operations.
- `KeyId` (`string`, optional)
- `PendingWindowInDays` (`number`, optional): Specifies the number of days in the waiting period before AWS KMS deletes an AWS KMS key that has been removed from a CloudFormation stack. Enter a value between 7 and 30 days. The default value is 30 days.
- `Tags` (`ReplicaKey_Tag[]`, optional): An array of key-value pairs to apply to this resource.

## Attributes

- `Arn`
- `KeyId`
