AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

This is the response object from the ReplicateKey operation.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceResponse
    Amazon.KeyManagementService.Model.ReplicateKeyResponse

Namespace: Amazon.KeyManagementService.Model
Assembly: AWSSDK.KeyManagementService.dll
Version: 3.x.y.z

Syntax

C#
public class ReplicateKeyResponse : AmazonWebServiceResponse

The ReplicateKeyResponse type exposes the following members

Constructors

NameDescription
Public Method ReplicateKeyResponse()

Properties

NameTypeDescription
Public Property ContentLength System.Int64 Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property HttpStatusCode System.Net.HttpStatusCode Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property ReplicaKeyMetadata Amazon.KeyManagementService.Model.KeyMetadata

Gets and sets the property ReplicaKeyMetadata.

Displays details about the new replica key, including its Amazon Resource Name (key ARN) and Key states of KMS keys. It also includes the ARN and Amazon Web Services Region of its primary key and other replica keys.

Public Property ReplicaPolicy System.String

Gets and sets the property ReplicaPolicy.

The key policy of the new replica key. The value is a key policy document in JSON format.

Public Property ReplicaTags System.Collections.Generic.List<Amazon.KeyManagementService.Model.Tag>

Gets and sets the property ReplicaTags.

The tags on the new replica key. The value is a list of tag key and tag value pairs.

Public Property ResponseMetadata Amazon.Runtime.ResponseMetadata Inherited from Amazon.Runtime.AmazonWebServiceResponse.

Examples

This example creates a multi-Region replica key in us-west-2 of a multi-Region primary key in us-east-1.

To replicate a multi-Region key in a different AWS Region


var client = new AmazonKeyManagementServiceClient();
var response = client.ReplicateKey(new ReplicateKeyRequest 
{
    KeyId = "arn:aws:kms:us-east-1:111122223333:key/mrk-1234abcd12ab34cd56ef1234567890ab", // The key ID or key ARN of the multi-Region primary key
    ReplicaRegion = "us-west-2" // The Region of the new replica.
});

KeyMetadata replicaKeyMetadata = response.ReplicaKeyMetadata; // An object that displays detailed information about the replica key.
string replicaPolicy = response.ReplicaPolicy; // The key policy of the replica key. If you don't specify a key policy, the replica key gets the default key policy for a KMS key.
List<Tag> replicaTags = response.ReplicaTags; // The tags on the replica key, if any.

            

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5