GenerateDataKeyWithoutPlaintext
GET /?Action=GenerateDataKeyWithoutPlaintext
Description
Generates a data key using a Customer Master Key (CMK).
This method returns the encrypted data key only, not its decrypted form.
Body parameter
Required: false
Name: GenerateDataKeyWithoutPlaintextRequest
Name | Description | Required | Schema | Default | Example |
---|---|---|---|---|---|
EncryptionContext |
A context for the encryption, in the form of one or more |
false |
object |
||
KeyId |
The ID of the CMK. |
true |
string |
||
KeySpec |
The length of the data key you want to generate, in the AES standard: |
false |
string |
||
NumberOfBytes |
The length of the data key you want to generate, in bytes (between |
false |
integer |
Responses
HTTP Code 200
HTTP Code | Description | Schema |
---|---|---|
200 |
GenerateDataKeyWithoutPlaintextResult |
Response 200
Name | Description | Required | Schema | Default | Example |
---|---|---|---|---|---|
CiphertextBlob |
The encrypted data key, encoded in base64. |
false |
string |
||
KeyId |
The ID of the CMK. |
false |
string |