AWS SDK Version 2 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.

.NET Framework 3.5
Contains metadata about a customer master key (CMK).

This data type is used as a response element for the CreateKey and DescribeKey operations.

Inheritance Hierarchy


Namespace: Amazon.KeyManagementService.Model
Assembly: AWSSDK.dll
Version: (assembly version)


public class KeyMetadata : Object

The KeyMetadata type exposes the following members


Public Method KeyMetadata()


Public Property Arn System.String Gets and sets the property Arn.

The Amazon Resource Name (ARN) of the key. For examples, see AWS Key Management Service (AWS KMS) in the Example ARNs section of the AWS General Reference.

Public Property AWSAccountId System.String Gets and sets the property AWSAccountId.

The twelve-digit account ID of the AWS account that owns the key.

Public Property CreationDate System.DateTime Gets and sets the property CreationDate.

The date and time when the key was created.

Public Property DeletionDate System.DateTime Gets and sets the property DeletionDate.

The date and time after which AWS KMS deletes the customer master key (CMK). This value is present only when KeyState is PendingDeletion, otherwise this value is null.

Public Property Description System.String Gets and sets the property Description.

The friendly description of the key.

Public Property Enabled System.Boolean Gets and sets the property Enabled.

Specifies whether the key is enabled. When KeyState is Enabled this value is true, otherwise it is false.

Public Property KeyId System.String Gets and sets the property KeyId.

The globally unique identifier for the key.

Public Property KeyState Amazon.KeyManagementService.KeyState Gets and sets the property KeyState.

The state of the customer master key (CMK).

For more information about how key state affects the use of a CMK, go to How Key State Affects the Use of a Customer Master Key in the AWS Key Management Service Developer Guide.

Public Property KeyUsage Amazon.KeyManagementService.KeyUsageType Gets and sets the property KeyUsage.

The cryptographic operations for which you can use the key. Currently the only allowed value is ENCRYPT_DECRYPT, which means you can use the key for the Encrypt and Decrypt operations.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8

.NET for Windows Phone:
Supported in: Windows Phone 8.1, Windows Phone 8