This operation returns a public key and an import token. Use the public
key to encrypt the symmetric key material. Store the import token to
send with a subsequent ImportKeyMaterial request.
You must specify the key ID of the symmetric CMK into which you will
import key material. This CMK\'s Origin
must be EXTERNAL
. You must
also specify the wrapping algorithm and type of wrapping key (public
key) that you will use to encrypt the key material. You cannot perform
this operation on an asymmetric CMK or on any CMK in a different AWS
account.
To import key material, you must use the public key and import token
from the same response. These items are valid for 24 hours. The
expiration date and time appear in the GetParametersForImport
response. You cannot use an expired token in an ImportKeyMaterial
request. If your key and token expire, send another
GetParametersForImport
request.
The CMK that you use for this operation must be in a compatible key
state. For details, see How Key State Affects Use of a Customer Master Key
in the AWS Key Management Service Developer Guide.