{ "version": "2.0", "operations": { "CreateAlias": "

Creates a display name for a customer master key. An alias can be used to identify a key and should be unique. The console enforces a one-to-one mapping between the alias and a key. An alias name can contain only alphanumeric characters, forward slashes (/), underscores (_), and dashes (-). An alias must start with the word \"alias\" followed by a forward slash (alias/). An alias that begins with \"aws\" after the forward slash (alias/aws...) is reserved by Amazon Web Services (AWS).

To associate an alias with a different key, call UpdateAlias.

Note that you cannot create or update an alias that represents a key in another account.

", "CreateGrant": "

Adds a grant to a key to specify who can access the key and under what conditions. Grants are alternate permission mechanisms to key policies. For more information about grants, see Grants in the developer guide. If a grant is absent, access to the key is evaluated based on IAM policies attached to the user.

  1. ListGrants
  2. RetireGrant
  3. RevokeGrant

", "CreateKey": "

Creates a customer master key. Customer master keys can be used to encrypt small amounts of data (less than 4K) directly, but they are most commonly used to encrypt or envelope data keys that are then used to encrypt customer data. For more information about data keys, see GenerateDataKey and GenerateDataKeyWithoutPlaintext.

", "Decrypt": "

Decrypts ciphertext. Ciphertext is plaintext that has been previously encrypted by using any of the following functions:

Note that if a caller has been granted access permissions to all keys (through, for example, IAM user policies that grant Decrypt permission on all resources), then ciphertext encrypted by using keys in other accounts where the key grants access to the caller can be decrypted. To remedy this, we recommend that you do not grant Decrypt access in an IAM user policy. Instead grant Decrypt access only in key policies. If you must grant Decrypt access in an IAM user policy, you should scope the resource to specific keys or to specific trusted accounts.

", "DeleteAlias": "

Deletes the specified alias. To associate an alias with a different key, call UpdateAlias.

", "DescribeKey": "

Provides detailed information about the specified customer master key.

", "DisableKey": "

Marks a key as disabled, thereby preventing its use.

", "DisableKeyRotation": "Disables rotation of the specified key.", "EnableKey": "Marks a key as enabled, thereby permitting its use. You can have up to 25 enabled keys at one time.", "EnableKeyRotation": "Enables rotation of the specified customer master key.", "Encrypt": "

Encrypts plaintext into ciphertext by using a customer master key. The Encrypt function has two primary use cases:

Unless you are moving encrypted data from one region to another, you don't use this function to encrypt a generated data key within a region. You retrieve data keys already encrypted by calling the GenerateDataKey or GenerateDataKeyWithoutPlaintext function. Data keys don't need to be encrypted again by calling Encrypt.

If you want to encrypt data locally in your application, you can use the GenerateDataKey function to return a plaintext data encryption key and a copy of the key encrypted under the customer master key (CMK) of your choosing.

", "GenerateDataKey": "

Generates a data key that you can use in your application to locally encrypt data. This call returns a plaintext version of the key in the Plaintext field of the response object and an encrypted copy of the key in the CiphertextBlob field. The key is encrypted by using the master key specified by the KeyId field. To decrypt the encrypted key, pass it to the Decrypt API.

We recommend that you use the following pattern to locally encrypt data: call the GenerateDataKey API, use the key returned in the Plaintext response field to locally encrypt data, and then erase the plaintext data key from memory. Store the encrypted data key (contained in the CiphertextBlob field) alongside of the locally encrypted data.

You should not call the Encrypt function to re-encrypt your data keys within a region. GenerateDataKey always returns the data key encrypted and tied to the customer master key that will be used to decrypt it. There is no need to decrypt it twice.

If you decide to use the optional EncryptionContext parameter, you must also store the context in full or at least store enough information along with the encrypted data to be able to reconstruct the context when submitting the ciphertext to the Decrypt API. It is a good practice to choose a context that you can reconstruct on the fly to better secure the ciphertext. For more information about how this parameter is used, see Encryption Context.

To decrypt data, pass the encrypted data key to the Decrypt API. Decrypt uses the associated master key to decrypt the encrypted data key and returns it as plaintext. Use the plaintext data key to locally decrypt your data and then erase the key from memory. You must specify the encryption context, if any, that you specified when you generated the key. The encryption context is logged by CloudTrail, and you can use this log to help track the use of particular data.

", "GenerateDataKeyWithoutPlaintext": "

Returns a data key encrypted by a customer master key without the plaintext copy of that key. Otherwise, this API functions exactly like GenerateDataKey. You can use this API to, for example, satisfy an audit requirement that an encrypted key be made available without exposing the plaintext copy of that key.

", "GenerateRandom": "

Generates an unpredictable byte string.

", "GetKeyPolicy": "

Retrieves a policy attached to the specified key.

", "GetKeyRotationStatus": "Retrieves a Boolean value that indicates whether key rotation is enabled for the specified key.", "ListAliases": "

Lists all of the key aliases in the account.

", "ListGrants": "

List the grants for a specified key.

", "ListKeyPolicies": "

Retrieves a list of policies attached to a key.

", "ListKeys": "

Lists the customer master keys.

", "PutKeyPolicy": "

Attaches a policy to the specified key.

", "ReEncrypt": "

Encrypts data on the server side with a new customer master key without exposing the plaintext of the data on the client side. The data is first decrypted and then encrypted. This operation can also be used to change the encryption context of a ciphertext.

Unlike other actions, ReEncrypt is authorized twice - once as ReEncryptFrom on the source key and once as ReEncryptTo on the destination key. We therefore recommend that you include the \"action\":\"kms:ReEncrypt*\" statement in your key policies to permit re-encryption from or to the key. The statement is included automatically when you authorize use of the key through the console but must be included manually when you set a policy by using the PutKeyPolicy function.

", "RetireGrant": "

Retires a grant. You can retire a grant when you're done using it to clean up. You should revoke a grant when you intend to actively deny operations that depend on it. The following are permitted to call this API:

The grant to retire must be identified by its grant token or by a combination of the key ARN and the grant ID. A grant token is a unique variable-length base64-encoded string. A grant ID is a 64 character unique identifier of a grant. Both are returned by the CreateGrant function.

", "RevokeGrant": "Revokes a grant. You can revoke a grant to actively deny operations that depend on it.", "UpdateAlias": "

Updates an alias to associate it with a different key.

An alias name can contain only alphanumeric characters, forward slashes (/), underscores (_), and dashes (-). An alias must start with the word \"alias\" followed by a forward slash (alias/). An alias that begins with \"aws\" after the forward slash (alias/aws...) is reserved by Amazon Web Services (AWS).

An alias is not a property of a key. Therefore, an alias can be associated with and disassociated from an existing key without changing the properties of the key.

Note that you cannot create or update an alias that represents a key in another account.

", "UpdateKeyDescription": "

Updates the description of a key.

" }, "service": "AWS Key Management Service

AWS Key Management Service (KMS) is an encryption and key management web service. This guide describes the KMS actions that you can call programmatically. For general information about KMS, see the AWS Key Management Service Developer Guide

AWS provides SDKs that consist of libraries and sample code for various programming languages and platforms (Java, Ruby, .Net, iOS, Android, etc.). The SDKs provide a convenient way to create programmatic access to KMS and AWS. For example, the SDKs take care of tasks such as signing requests (see below), managing errors, and retrying requests automatically. For more information about the AWS SDKs, including how to download and install them, see Tools for Amazon Web Services.

We recommend that you use the AWS SDKs to make programmatic API calls to KMS.

Clients must support TLS (Transport Layer Security) 1.0. We recommend TLS 1.2. Clients must also support cipher suites with Perfect Forward Secrecy (PFS) such as Ephemeral Diffie-Hellman (DHE) or Elliptic Curve Ephemeral Diffie-Hellman (ECDHE). Most modern systems such as Java 7 and later support these modes.

Signing Requests

Requests must be signed by using an access key ID and a secret access key. We strongly recommend that you do not use your AWS account access key ID and secret key for everyday work with KMS. Instead, use the access key ID and secret access key for an IAM user, or you can use the AWS Security Token Service to generate temporary security credentials that you can use to sign requests.

All KMS operations require Signature Version 4.

Recording API Requests

KMS supports AWS CloudTrail, a service that records AWS API calls and related events for your AWS account and delivers them to an Amazon S3 bucket that you specify. By using the information collected by CloudTrail, you can determine what requests were made to KMS, who made the request, when it was made, and so on. To learn more about CloudTrail, including how to turn it on and find your log files, see the AWS CloudTrail User Guide

Additional Resources

For more information about credentials and request signing, see the following:

Commonly Used APIs

Of the APIs discussed in this guide, the following will prove the most useful for most applications. You will likely perform actions other than these, such as creating keys and assigning policies, by using the console.

", "shapes": { "AWSAccountIdType": { "base": null, "refs": { "KeyMetadata$AWSAccountId": "

Account ID number.

" } }, "AliasList": { "base": null, "refs": { "ListAliasesResponse$Aliases": "

A list of key aliases in the user's account.

" } }, "AliasListEntry": { "base": "Contains information about an alias.", "refs": { "AliasList$member": null } }, "AliasNameType": { "base": null, "refs": { "AliasListEntry$AliasName": "

String that contains the alias.

", "CreateAliasRequest$AliasName": "

String that contains the display name. The name must start with the word \"alias\" followed by a forward slash (alias/). Aliases that begin with \"alias/AWS\" are reserved.

", "DeleteAliasRequest$AliasName": "

The alias to be deleted. The name must start with the word \"alias\" followed by a forward slash (alias/). Aliases that begin with \"alias/AWS\" are reserved.

", "UpdateAliasRequest$AliasName": "String that contains the name of the alias to be modifed. The name must start with the word \"alias\" followed by a forward slash (alias/). Aliases that begin with \"alias/AWS\" are reserved." } }, "AlreadyExistsException": { "base": "

The request was rejected because it attempted to create a resource that already exists.

", "refs": { } }, "ArnType": { "base": null, "refs": { "AliasListEntry$AliasArn": "

String that contains the key ARN.

", "KeyListEntry$KeyArn": "

ARN of the key.

", "KeyMetadata$Arn": "

Key ARN (Amazon Resource Name).

" } }, "BooleanType": { "base": null, "refs": { "GetKeyRotationStatusResponse$KeyRotationEnabled": "A Boolean value that specifies whether key rotation is enabled.", "KeyMetadata$Enabled": "

Value that specifies whether the key is enabled.

", "ListAliasesResponse$Truncated": "

A flag that indicates whether there are more items in the list. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more aliases in the list.

", "ListGrantsResponse$Truncated": "

A flag that indicates whether there are more items in the list. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more grants in the list.

", "ListKeyPoliciesResponse$Truncated": "

A flag that indicates whether there are more items in the list. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more policies in the list.

", "ListKeysResponse$Truncated": "

A flag that indicates whether there are more items in the list. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more keys in the list.

" } }, "CiphertextType": { "base": null, "refs": { "DecryptRequest$CiphertextBlob": "

Ciphertext to be decrypted. The blob includes metadata.

", "EncryptResponse$CiphertextBlob": "

The encrypted plaintext. If you are using the CLI, the value is Base64 encoded. Otherwise, it is not encoded.

", "GenerateDataKeyResponse$CiphertextBlob": "

Ciphertext that contains the encrypted data key. You must store the blob and enough information to reconstruct the encryption context so that the data encrypted by using the key can later be decrypted. You must provide both the ciphertext blob and the encryption context to the Decrypt API to recover the plaintext data key and decrypt the object.

If you are using the CLI, the value is Base64 encoded. Otherwise, it is not encoded.

", "GenerateDataKeyWithoutPlaintextResponse$CiphertextBlob": "

Ciphertext that contains the wrapped data key. You must store the blob and encryption context so that the key can be used in a future decrypt operation.

If you are using the CLI, the value is Base64 encoded. Otherwise, it is not encoded.

", "ReEncryptRequest$CiphertextBlob": "

Ciphertext of the data to re-encrypt.

", "ReEncryptResponse$CiphertextBlob": "

The re-encrypted data. If you are using the CLI, the value is Base64 encoded. Otherwise, it is not encoded.

" } }, "CreateAliasRequest": { "base": null, "refs": { } }, "CreateGrantRequest": { "base": null, "refs": { } }, "CreateGrantResponse": { "base": null, "refs": { } }, "CreateKeyRequest": { "base": null, "refs": { } }, "CreateKeyResponse": { "base": null, "refs": { } }, "DataKeySpec": { "base": null, "refs": { "GenerateDataKeyRequest$KeySpec": "

Value that identifies the encryption algorithm and key size to generate a data key for. Currently this can be AES_128 or AES_256.

", "GenerateDataKeyWithoutPlaintextRequest$KeySpec": "

Value that identifies the encryption algorithm and key size. Currently this can be AES_128 or AES_256.

" } }, "DateType": { "base": null, "refs": { "KeyMetadata$CreationDate": "

Date the key was created.

" } }, "DecryptRequest": { "base": null, "refs": { } }, "DecryptResponse": { "base": null, "refs": { } }, "DeleteAliasRequest": { "base": null, "refs": { } }, "DependencyTimeoutException": { "base": "

The system timed out while trying to fulfill the request.

", "refs": { } }, "DescribeKeyRequest": { "base": null, "refs": { } }, "DescribeKeyResponse": { "base": null, "refs": { } }, "DescriptionType": { "base": null, "refs": { "CreateKeyRequest$Description": "

Description of the key. We recommend that you choose a description that helps your customer decide whether the key is appropriate for a task.

", "KeyMetadata$Description": "

The description of the key.

", "UpdateKeyDescriptionRequest$Description": "

New description for the key.

" } }, "DisableKeyRequest": { "base": null, "refs": { } }, "DisableKeyRotationRequest": { "base": null, "refs": { } }, "DisabledException": { "base": "

A request was rejected because the specified key was marked as disabled.

", "refs": { } }, "EnableKeyRequest": { "base": null, "refs": { } }, "EnableKeyRotationRequest": { "base": null, "refs": { } }, "EncryptRequest": { "base": null, "refs": { } }, "EncryptResponse": { "base": null, "refs": { } }, "EncryptionContextKey": { "base": null, "refs": { "EncryptionContextType$key": null } }, "EncryptionContextType": { "base": null, "refs": { "DecryptRequest$EncryptionContext": "

The encryption context. If this was specified in the Encrypt function, it must be specified here or the decryption operation will fail. For more information, see Encryption Context.

", "EncryptRequest$EncryptionContext": "

Name/value pair that specifies the encryption context to be used for authenticated encryption. If used here, the same value must be supplied to the Decrypt API or decryption will fail. For more information, see Encryption Context.

", "GenerateDataKeyRequest$EncryptionContext": "

Name/value pair that contains additional data to be authenticated during the encryption and decryption processes that use the key. This value is logged by AWS CloudTrail to provide context around the data encrypted by the key.

", "GenerateDataKeyWithoutPlaintextRequest$EncryptionContext": "

Name:value pair that contains additional data to be authenticated during the encryption and decryption processes.

", "GrantConstraints$EncryptionContextSubset": "The constraint equals the full encryption context.", "GrantConstraints$EncryptionContextEquals": "The constraint contains additional key/value pairs that serve to further limit the grant.", "ReEncryptRequest$SourceEncryptionContext": "

Encryption context used to encrypt and decrypt the data specified in the CiphertextBlob parameter.

", "ReEncryptRequest$DestinationEncryptionContext": "

Encryption context to be used when the data is re-encrypted.

" } }, "EncryptionContextValue": { "base": null, "refs": { "EncryptionContextType$value": null } }, "ErrorMessageType": { "base": null, "refs": { "AlreadyExistsException$message": null, "DependencyTimeoutException$message": null, "DisabledException$message": null, "InvalidAliasNameException$message": null, "InvalidArnException$message": null, "InvalidCiphertextException$message": null, "InvalidGrantTokenException$message": null, "InvalidKeyUsageException$message": null, "InvalidMarkerException$message": null, "KMSInternalException$message": null, "KeyUnavailableException$message": null, "LimitExceededException$message": null, "MalformedPolicyDocumentException$message": null, "NotFoundException$message": null, "UnsupportedOperationException$message": null } }, "GenerateDataKeyRequest": { "base": null, "refs": { } }, "GenerateDataKeyResponse": { "base": null, "refs": { } }, "GenerateDataKeyWithoutPlaintextRequest": { "base": null, "refs": { } }, "GenerateDataKeyWithoutPlaintextResponse": { "base": null, "refs": { } }, "GenerateRandomRequest": { "base": null, "refs": { } }, "GenerateRandomResponse": { "base": null, "refs": { } }, "GetKeyPolicyRequest": { "base": null, "refs": { } }, "GetKeyPolicyResponse": { "base": null, "refs": { } }, "GetKeyRotationStatusRequest": { "base": null, "refs": { } }, "GetKeyRotationStatusResponse": { "base": null, "refs": { } }, "GrantConstraints": { "base": "Contains constraints on the grant.", "refs": { "CreateGrantRequest$Constraints": "

Specifies the conditions under which the actions specified by the Operations parameter are allowed.

", "GrantListEntry$Constraints": "

Specifies the conditions under which the actions specified by the Operations parameter are allowed.

" } }, "GrantIdType": { "base": null, "refs": { "CreateGrantResponse$GrantId": "

Unique grant identifier. You can use the GrantId value to revoke a grant.

", "GrantListEntry$GrantId": "

Unique grant identifier.

", "RetireGrantRequest$GrantId": "

Unique identifier of the grant to be retired. The grant ID is returned by the CreateGrant function.

", "RevokeGrantRequest$GrantId": "

Identifier of the grant to be revoked.

" } }, "GrantList": { "base": null, "refs": { "ListGrantsResponse$Grants": "

A list of grants.

" } }, "GrantListEntry": { "base": "

Contains information about each entry in the grant list.

", "refs": { "GrantList$member": null } }, "GrantOperation": { "base": null, "refs": { "GrantOperationList$member": null } }, "GrantOperationList": { "base": null, "refs": { "CreateGrantRequest$Operations": "

List of operations permitted by the grant. This can be any combination of one or more of the following values:

  1. Decrypt
  2. Encrypt
  3. GenerateDataKey
  4. GenerateDataKeyWithoutPlaintext
  5. ReEncryptFrom
  6. ReEncryptTo
  7. CreateGrant
  8. RetireGrant

", "GrantListEntry$Operations": "

List of operations permitted by the grant. This can be any combination of one or more of the following values:

  1. Decrypt
  2. Encrypt
  3. GenerateDataKey
  4. GenerateDataKeyWithoutPlaintext
  5. ReEncryptFrom
  6. ReEncryptTo
  7. CreateGrant

" } }, "GrantTokenList": { "base": null, "refs": { "CreateGrantRequest$GrantTokens": "

For more information, see Grant Tokens.

", "DecryptRequest$GrantTokens": "

For more information, see Grant Tokens.

", "EncryptRequest$GrantTokens": "

For more information, see Grant Tokens.

", "GenerateDataKeyRequest$GrantTokens": "

For more information, see Grant Tokens.

", "GenerateDataKeyWithoutPlaintextRequest$GrantTokens": "

For more information, see Grant Tokens.

", "ReEncryptRequest$GrantTokens": "

For more information, see Grant Tokens.

" } }, "GrantTokenType": { "base": null, "refs": { "CreateGrantResponse$GrantToken": "

For more information, see Grant Tokens.

", "GrantTokenList$member": null, "RetireGrantRequest$GrantToken": "

Token that identifies the grant to be retired.

" } }, "InvalidAliasNameException": { "base": "

The request was rejected because the specified alias name is not valid.

", "refs": { } }, "InvalidArnException": { "base": "

The request was rejected because a specified ARN was not valid.

", "refs": { } }, "InvalidCiphertextException": { "base": "

The request was rejected because the specified ciphertext has been corrupted or is otherwise invalid.

", "refs": { } }, "InvalidGrantTokenException": { "base": "

A grant token provided as part of the request is invalid.

", "refs": { } }, "InvalidKeyUsageException": { "base": "

The request was rejected because the specified KeySpec parameter is not valid. The currently supported value is ENCRYPT/DECRYPT.

", "refs": { } }, "InvalidMarkerException": { "base": "

The request was rejected because the marker that specifies where pagination should next begin is not valid.

", "refs": { } }, "KMSInternalException": { "base": "

The request was rejected because an internal exception occurred. This error can be retried.

", "refs": { } }, "KeyIdType": { "base": null, "refs": { "AliasListEntry$TargetKeyId": "

String that contains the key identifier pointed to by the alias.

", "CreateAliasRequest$TargetKeyId": "

An identifier of the key for which you are creating the alias. This value cannot be another alias but can be a globally unique identifier or a fully specified ARN to a key.

", "CreateGrantRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

", "DecryptResponse$KeyId": "

ARN of the key used to perform the decryption. This value is returned if no errors are encountered during the operation.

", "DescribeKeyRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by \"alias/\".

", "DisableKeyRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

", "DisableKeyRotationRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

", "EnableKeyRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

", "EnableKeyRotationRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

", "EncryptRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by \"alias/\".

", "EncryptResponse$KeyId": "

The ID of the key used during encryption.

", "GenerateDataKeyRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by \"alias/\".

", "GenerateDataKeyResponse$KeyId": "

System generated unique identifier of the key to be used to decrypt the encrypted copy of the data key.

", "GenerateDataKeyWithoutPlaintextRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by \"alias/\".

", "GenerateDataKeyWithoutPlaintextResponse$KeyId": "

System generated unique identifier of the key to be used to decrypt the encrypted copy of the data key.

", "GetKeyPolicyRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

", "GetKeyRotationStatusRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

", "KeyListEntry$KeyId": "

Unique identifier of the key.

", "KeyMetadata$KeyId": "

Unique identifier for the key.

", "ListGrantsRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

", "ListKeyPoliciesRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by \"alias/\".

", "PutKeyPolicyRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

", "ReEncryptRequest$DestinationKeyId": "

A unique identifier for the customer master key used to re-encrypt the data. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by \"alias/\".

", "ReEncryptResponse$SourceKeyId": "

Unique identifier of the key used to originally encrypt the data.

", "ReEncryptResponse$KeyId": "

Unique identifier of the key used to re-encrypt the data.

", "RetireGrantRequest$KeyId": "

A unique identifier for the customer master key associated with the grant. This value can be a globally unique identifier or a fully specified ARN of the key.

", "RevokeGrantRequest$KeyId": "

A unique identifier for the customer master key associated with the grant. This value can be a globally unique identifier or the fully specified ARN to a key.

", "UpdateAliasRequest$TargetKeyId": "

Unique identifier of the customer master key to be associated with the alias. This value can be a globally unique identifier or the fully specified ARN of a key.

", "UpdateKeyDescriptionRequest$KeyId": "

A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key.

" } }, "KeyList": { "base": null, "refs": { "ListKeysResponse$Keys": "

A list of keys.

" } }, "KeyListEntry": { "base": "

Contains information about each entry in the key list.

", "refs": { "KeyList$member": null } }, "KeyMetadata": { "base": "Contains metadata associated with a specific key.", "refs": { "CreateKeyResponse$KeyMetadata": "

Metadata associated with the key.

", "DescribeKeyResponse$KeyMetadata": "

Metadata associated with the key.

" } }, "KeyUnavailableException": { "base": "

The request was rejected because the key was disabled, not found, or otherwise not available.

", "refs": { } }, "KeyUsageType": { "base": null, "refs": { "CreateKeyRequest$KeyUsage": "

Specifies the intended use of the key. Currently this defaults to ENCRYPT/DECRYPT, and only symmetric encryption and decryption are supported.

", "KeyMetadata$KeyUsage": "

A value that specifies what operation(s) the key can perform.

" } }, "LimitExceededException": { "base": "

The request was rejected because a quota was exceeded.

", "refs": { } }, "LimitType": { "base": null, "refs": { "ListAliasesRequest$Limit": "

Specify this parameter when paginating results to indicate the maximum number of aliases you want in each response. If there are additional aliases beyond the maximum you specify, the Truncated response element will be set to true.

", "ListGrantsRequest$Limit": "

Specify this parameter only when paginating results to indicate the maximum number of grants you want listed in the response. If there are additional grants beyond the maximum you specify, the Truncated response element will be set to true.

", "ListKeyPoliciesRequest$Limit": "

Specify this parameter only when paginating results to indicate the maximum number of policies you want listed in the response. If there are additional policies beyond the maximum you specify, the Truncated response element will be set to true.

", "ListKeysRequest$Limit": "

Specify this parameter only when paginating results to indicate the maximum number of keys you want listed in the response. If there are additional keys beyond the maximum you specify, the Truncated response element will be set to true.

" } }, "ListAliasesRequest": { "base": null, "refs": { } }, "ListAliasesResponse": { "base": null, "refs": { } }, "ListGrantsRequest": { "base": null, "refs": { } }, "ListGrantsResponse": { "base": null, "refs": { } }, "ListKeyPoliciesRequest": { "base": null, "refs": { } }, "ListKeyPoliciesResponse": { "base": null, "refs": { } }, "ListKeysRequest": { "base": null, "refs": { } }, "ListKeysResponse": { "base": null, "refs": { } }, "MalformedPolicyDocumentException": { "base": "

The request was rejected because the specified policy is not syntactically or semantically correct.

", "refs": { } }, "MarkerType": { "base": null, "refs": { "ListAliasesRequest$Marker": "

Use this parameter when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the NextMarker element in the response you just received.

", "ListAliasesResponse$NextMarker": "

If Truncated is true, this value is present and contains the value to use for the Marker request parameter in a subsequent pagination request.

", "ListGrantsRequest$Marker": "

Use this parameter only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the NextMarker in the response you just received.

", "ListGrantsResponse$NextMarker": "

If Truncated is true, this value is present and contains the value to use for the Marker request parameter in a subsequent pagination request.

", "ListKeyPoliciesRequest$Marker": "

Use this parameter only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the NextMarker in the response you just received.

", "ListKeyPoliciesResponse$NextMarker": "

If Truncated is true, this value is present and contains the value to use for the Marker request parameter in a subsequent pagination request.

", "ListKeysRequest$Marker": "

Use this parameter only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the NextMarker in the response you just received.

", "ListKeysResponse$NextMarker": "

If Truncated is true, this value is present and contains the value to use for the Marker request parameter in a subsequent pagination request.

" } }, "NotFoundException": { "base": "

The request was rejected because the specified entity or resource could not be found.

", "refs": { } }, "NumberOfBytesType": { "base": null, "refs": { "GenerateDataKeyRequest$NumberOfBytes": "

Integer that contains the number of bytes to generate. Common values are 128, 256, 512, and 1024. 1024 is the current limit. We recommend that you use the KeySpec parameter instead.

", "GenerateDataKeyWithoutPlaintextRequest$NumberOfBytes": "

Integer that contains the number of bytes to generate. Common values are 128, 256, 512, 1024 and so on. We recommend that you use the KeySpec parameter instead.

", "GenerateRandomRequest$NumberOfBytes": "

Integer that contains the number of bytes to generate. Common values are 128, 256, 512, 1024 and so on. The current limit is 1024 bytes.

" } }, "PlaintextType": { "base": null, "refs": { "DecryptResponse$Plaintext": "

Decrypted plaintext data. This value may not be returned if the customer master key is not available or if you didn't have permission to use it.

", "EncryptRequest$Plaintext": "

Data to be encrypted.

", "GenerateDataKeyResponse$Plaintext": "

Plaintext that contains the data key. Use this for encryption and decryption and then remove it from memory as soon as possible.

", "GenerateRandomResponse$Plaintext": "

Plaintext that contains the unpredictable byte string.

" } }, "PolicyNameList": { "base": null, "refs": { "ListKeyPoliciesResponse$PolicyNames": "

A list of policy names. Currently, there is only one policy and it is named \"Default\".

" } }, "PolicyNameType": { "base": null, "refs": { "GetKeyPolicyRequest$PolicyName": "

String that contains the name of the policy. Currently, this must be \"default\". Policy names can be discovered by calling ListKeyPolicies.

", "PolicyNameList$member": null, "PutKeyPolicyRequest$PolicyName": "

Name of the policy to be attached. Currently, the only supported name is \"default\".

" } }, "PolicyType": { "base": null, "refs": { "CreateKeyRequest$Policy": "

Policy to be attached to the key. This is required and delegates back to the account. The key is the root of trust.

", "GetKeyPolicyResponse$Policy": "

A policy document in JSON format.

", "PutKeyPolicyRequest$Policy": "

The policy, in JSON format, to be attached to the key.

" } }, "PrincipalIdType": { "base": null, "refs": { "CreateGrantRequest$GranteePrincipal": "

Principal given permission by the grant to use the key identified by the keyId parameter.

", "CreateGrantRequest$RetiringPrincipal": "

Principal given permission to retire the grant. For more information, see RetireGrant.

", "GrantListEntry$GranteePrincipal": "

The principal that receives the grant permission.

", "GrantListEntry$RetiringPrincipal": "

The principal that can retire the account.

", "GrantListEntry$IssuingAccount": "

The account under which the grant was issued.

" } }, "PutKeyPolicyRequest": { "base": null, "refs": { } }, "ReEncryptRequest": { "base": null, "refs": { } }, "ReEncryptResponse": { "base": null, "refs": { } }, "RetireGrantRequest": { "base": null, "refs": { } }, "RevokeGrantRequest": { "base": null, "refs": { } }, "UnsupportedOperationException": { "base": "

The request was rejected because a specified parameter is not supported.

", "refs": { } }, "UpdateAliasRequest": { "base": null, "refs": { } }, "UpdateKeyDescriptionRequest": { "base": null, "refs": { } } } }