You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* <p>When the specified KMS key is in the <code>PendingDeletion</code> state, this operation
35
35
* does not change the KMS key's state. Otherwise, it changes the KMS key's state to
36
36
* <code>PendingImport</code>.</p>
37
+
* <p class="title">
38
+
* <b>Considerations for multi-Region symmetric encryption keys</b>
39
+
* </p>
40
+
* <ul>
41
+
* <li>
42
+
* <p>When you delete the key material of a primary Region key that is in
43
+
* <code>PENDING_ROTATION</code> or <code>PENDING_MULTI_REGION_IMPORT_AND_ROTATION</code>state,
44
+
* you'll also be deleting the key materials for the replica Region keys.</p>
45
+
* </li>
46
+
* <li>
47
+
* <p>If you delete any key material of a replica Region key, the primary Region key and
48
+
* other replica Region keys remain unchanged.</p>
49
+
* </li>
50
+
* </ul>
37
51
* <p>The KMS key that you use for this operation must be in a compatible key state. For
38
52
* details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key states of KMS keys</a> in the <i>Key Management Service Developer Guide</i>.</p>
* generate and import your own key material. For more information about importing key material,
35
35
* see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing key
36
36
* material</a>.</p>
37
-
* <p>For asymmetric, HMAC and multi-Region keys, you cannot change the key material after the
38
-
* initial import. You can import multiple key materials into single-Region, symmetric encryption
39
-
* keys and rotate the key material on demand using <code>RotateKeyOnDemand</code>.</p>
37
+
* <p>For asymmetric and HMAC keys, you cannot change the key material after the initial import.
38
+
* You can import multiple key materials into symmetric encryption keys and rotate the key
39
+
* material on demand using <code>RotateKeyOnDemand</code>.</p>
40
+
* <p>You can import new key materials into multi-Region symmetric encryption keys. To do so, you must
41
+
* import the new key material into the primary Region key. Then you can import the same key
42
+
* materials into the replica Region keys. You cannot directly import new key material into
43
+
* the replica Region keys.</p>
44
+
* <p>To import new key material for a multi-Region symmetric key, you’ll need to complete the
45
+
* following:</p>
46
+
* <ol>
47
+
* <li>
48
+
* <p>Call <code>ImportKeyMaterial</code> on the primary Region key with the
49
+
* <code>ImportType</code>set to <code>NEW_KEY_MATERIAL</code>.</p>
50
+
* </li>
51
+
* <li>
52
+
* <p>Call <code>ImportKeyMaterial</code> on the replica Region key with the
53
+
* <code>ImportType</code> set to <code>EXISTING_KEY_MATERIAL</code> using the same key
54
+
* material imported to the primary Region key. You must do this for every replica
55
+
* Region key before you can perform the <a>RotateKeyOnDemand</a> operation
56
+
* on the primary Region key.</p>
57
+
* </li>
58
+
* </ol>
40
59
* <p>After you import key material, you can <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-import-key-material.html#reimport-key-material">reimport
41
60
* the same key material</a> into that KMS key or, if the key supports on-demand rotation,
42
61
* import new key material. You can use the <code>ImportType</code> parameter to indicate whether
* <p>Then, in an <code>ImportKeyMaterial</code> request, you submit your encrypted key
90
+
* <p>Then, in an <code>ImportKeyMaterial</code> request, you submit your encrypted key
72
91
* material and import token. When calling this operation, you must specify the following
73
92
* values:</p>
74
93
* <ul>
75
94
* <li>
76
95
* <p>The key ID or key ARN of the KMS key to associate with the imported key material. Its
77
96
* <code>Origin</code> must be <code>EXTERNAL</code> and its <code>KeyState</code> must be
78
-
* <code>PendingImport</code>. You cannot perform this operation on a KMS key in a
79
-
* <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html">custom key store</a>, or on a KMS key in a different Amazon Web Services account. To get the
97
+
* <code>PendingImport</code> or <code>Enabled</code>. You cannot perform this operation on
98
+
* a KMS key in a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html">custom key store</a>, or on a KMS key in a different Amazon Web Services account. To get the
80
99
* <code>Origin</code> and <code>KeyState</code> of a KMS key, call <a>DescribeKey</a>.</p>
* time you reimport, you can eliminate or reset the expiration time.</p>
97
116
* </li>
98
117
* </ul>
99
-
* <p>When this operation is successful, the key state of the KMS key changes from
100
-
* <code>PendingImport</code> to <code>Enabled</code>, and you can use the KMS key in
101
-
* cryptographic operations. For single-Region, symmetric encryption keys, you will need to
102
-
* import all of the key materials associated with the KMS key to change its state to
103
-
* <code>Enabled</code>. Use the <code>ListKeyRotations</code> operation to list the ID and
104
-
* import state of each key material associated with a KMS key.</p>
118
+
* <p>When this operation is successful, the state of the KMS key changes to <code>Enabled</code>,
119
+
* and you can use the KMS key in cryptographic operations. For symmetric encryption keys, you will
120
+
* need to import all of the key materials associated with the KMS key to change its state to
121
+
* <code>Enabled</code>. Use the <code>ListKeyRotations</code> operation to list the ID and import
122
+
* state of each key material associated with a KMS key.</p>
105
123
* <p>If this operation fails, use the exception to help determine the problem. If the error is
106
124
* related to the key material, the import token, or wrapping key, use <a>GetParametersForImport</a> to get a new public key and import token for the KMS key
107
125
* and repeat the import procedure. For help, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-conceptual.html">Create a KMS key with imported key
* keys with <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">imported key
51
-
* material</a>, or KMS keys in a <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html">custom key store</a>. When you initiate on-demand key
52
-
* rotation on a symmetric encryption KMS key with imported key material, you must have already
53
-
* imported <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-import-key-material.html">new key material</a> and that
49
+
* perform on-demand rotation of <a href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">asymmetric KMS keys</a>, <a href="https://docs.aws.amazon.com/kms/latest/developerguide/hmac.html">HMAC KMS keys</a>, or KMS keys in a
50
+
* <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-store-overview.html">custom key store</a>. When you initiate on-demand key rotation on a symmetric encryption KMS key
51
+
* with imported key material, you must have already imported <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-import-key-material.html">new key material</a> and that
54
52
* key material's state should be <code>PENDING_ROTATION</code>. Use the
55
53
* <code>ListKeyRotations</code> operation to check the state of all key materials associated
56
-
* with a KMS key. To perform on-demand rotation of a set of related <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html#multi-region-rotate">multi-Region keys</a>, invoke
57
-
* the on-demand rotation on the primary key.</p>
54
+
* with a KMS key. To perform on-demand rotation of a set of related <a href="https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html#multi-region-rotate">multi-Region keys</a>, import
55
+
* new key material in the primary Region key, import the same key material in each replica
56
+
* Region key, and invoke the on-demand rotation on the primary Region key.</p>
58
57
* <p>You cannot initiate on-demand rotation of <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-key">Amazon Web Services managed KMS keys</a>. KMS
59
58
* always rotates the key material of Amazon Web Services managed keys every year. Rotation of <a href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-owned-key">Amazon Web Services owned KMS
60
59
* keys</a> is managed by the Amazon Web Services service that owns the key.</p>
0 commit comments