@aws-sdk/client-kms 3.36.0 → 3.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist-cjs/KMS.js +0 -92
  3. package/dist-cjs/KMSClient.js +0 -97
  4. package/dist-cjs/commands/CancelKeyDeletionCommand.js +0 -37
  5. package/dist-cjs/commands/ConnectCustomKeyStoreCommand.js +0 -85
  6. package/dist-cjs/commands/CreateAliasCommand.js +0 -81
  7. package/dist-cjs/commands/CreateCustomKeyStoreCommand.js +0 -73
  8. package/dist-cjs/commands/CreateGrantCommand.js +0 -86
  9. package/dist-cjs/commands/CreateKeyCommand.js +0 -148
  10. package/dist-cjs/commands/DecryptCommand.js +0 -112
  11. package/dist-cjs/commands/DeleteAliasCommand.js +0 -71
  12. package/dist-cjs/commands/DeleteCustomKeyStoreCommand.js +0 -78
  13. package/dist-cjs/commands/DeleteImportedKeyMaterialCommand.js +0 -53
  14. package/dist-cjs/commands/DescribeCustomKeyStoresCommand.js +0 -77
  15. package/dist-cjs/commands/DescribeKeyCommand.js +0 -103
  16. package/dist-cjs/commands/DisableKeyCommand.js +0 -39
  17. package/dist-cjs/commands/DisableKeyRotationCommand.js +0 -49
  18. package/dist-cjs/commands/DisconnectCustomKeyStoreCommand.js +0 -76
  19. package/dist-cjs/commands/EnableKeyCommand.js +0 -36
  20. package/dist-cjs/commands/EnableKeyRotationCommand.js +0 -49
  21. package/dist-cjs/commands/EncryptCommand.js +0 -148
  22. package/dist-cjs/commands/GenerateDataKeyCommand.js +0 -121
  23. package/dist-cjs/commands/GenerateDataKeyPairCommand.js +0 -100
  24. package/dist-cjs/commands/GenerateDataKeyPairWithoutPlaintextCommand.js +0 -90
  25. package/dist-cjs/commands/GenerateDataKeyWithoutPlaintextCommand.js +0 -95
  26. package/dist-cjs/commands/GenerateRandomCommand.js +0 -33
  27. package/dist-cjs/commands/GetKeyPolicyCommand.js +0 -32
  28. package/dist-cjs/commands/GetKeyRotationStatusCommand.js +0 -61
  29. package/dist-cjs/commands/GetParametersForImportCommand.js +0 -58
  30. package/dist-cjs/commands/GetPublicKeyCommand.js +0 -70
  31. package/dist-cjs/commands/ImportKeyMaterialCommand.js +0 -87
  32. package/dist-cjs/commands/ListAliasesCommand.js +0 -66
  33. package/dist-cjs/commands/ListGrantsCommand.js +0 -69
  34. package/dist-cjs/commands/ListKeyPoliciesCommand.js +0 -46
  35. package/dist-cjs/commands/ListKeysCommand.js +0 -54
  36. package/dist-cjs/commands/ListResourceTagsCommand.js +0 -58
  37. package/dist-cjs/commands/ListRetirableGrantsCommand.js +0 -67
  38. package/dist-cjs/commands/PutKeyPolicyCommand.js +0 -37
  39. package/dist-cjs/commands/ReEncryptCommand.js +0 -122
  40. package/dist-cjs/commands/ReplicateKeyCommand.js +0 -101
  41. package/dist-cjs/commands/RetireGrantCommand.js +0 -70
  42. package/dist-cjs/commands/RevokeGrantCommand.js +0 -67
  43. package/dist-cjs/commands/ScheduleKeyDeletionCommand.js +0 -78
  44. package/dist-cjs/commands/SignCommand.js +0 -69
  45. package/dist-cjs/commands/TagResourceCommand.js +0 -71
  46. package/dist-cjs/commands/UntagResourceCommand.js +0 -67
  47. package/dist-cjs/commands/UpdateAliasCommand.js +0 -86
  48. package/dist-cjs/commands/UpdateCustomKeyStoreCommand.js +0 -96
  49. package/dist-cjs/commands/UpdateKeyDescriptionCommand.js +0 -47
  50. package/dist-cjs/commands/UpdatePrimaryRegionCommand.js +0 -89
  51. package/dist-cjs/commands/VerifyCommand.js +0 -54
  52. package/dist-cjs/commands/index.js +51 -0
  53. package/dist-cjs/endpoints.js +6 -1
  54. package/dist-cjs/index.js +4 -55
  55. package/dist-cjs/models/models_0.js +0 -366
  56. package/dist-cjs/pagination/ListAliasesPaginator.js +0 -10
  57. package/dist-cjs/pagination/ListGrantsPaginator.js +0 -10
  58. package/dist-cjs/pagination/ListKeyPoliciesPaginator.js +0 -10
  59. package/dist-cjs/pagination/ListKeysPaginator.js +0 -10
  60. package/dist-cjs/pagination/index.js +8 -0
  61. package/dist-cjs/protocols/Aws_json1_1.js +0 -5
  62. package/dist-cjs/runtimeConfig.browser.js +1 -5
  63. package/dist-cjs/runtimeConfig.js +1 -5
  64. package/dist-cjs/runtimeConfig.native.js +0 -3
  65. package/dist-cjs/runtimeConfig.shared.js +0 -3
  66. package/dist-es/commands/index.js +48 -0
  67. package/dist-es/endpoints.js +6 -1
  68. package/dist-es/index.js +4 -55
  69. package/dist-es/pagination/index.js +5 -0
  70. package/dist-types/commands/index.d.ts +48 -0
  71. package/dist-types/index.d.ts +4 -55
  72. package/dist-types/pagination/index.d.ts +5 -0
  73. package/dist-types/ts3.4/KMS.d.ts +49 -2646
  74. package/dist-types/ts3.4/KMSClient.d.ts +24 -178
  75. package/dist-types/ts3.4/commands/CancelKeyDeletionCommand.d.ts +2 -33
  76. package/dist-types/ts3.4/commands/ConnectCustomKeyStoreCommand.d.ts +2 -81
  77. package/dist-types/ts3.4/commands/CreateAliasCommand.d.ts +2 -77
  78. package/dist-types/ts3.4/commands/CreateCustomKeyStoreCommand.d.ts +2 -69
  79. package/dist-types/ts3.4/commands/CreateGrantCommand.d.ts +2 -82
  80. package/dist-types/ts3.4/commands/CreateKeyCommand.d.ts +2 -144
  81. package/dist-types/ts3.4/commands/DecryptCommand.d.ts +2 -108
  82. package/dist-types/ts3.4/commands/DeleteAliasCommand.d.ts +2 -67
  83. package/dist-types/ts3.4/commands/DeleteCustomKeyStoreCommand.d.ts +2 -74
  84. package/dist-types/ts3.4/commands/DeleteImportedKeyMaterialCommand.d.ts +2 -49
  85. package/dist-types/ts3.4/commands/DescribeCustomKeyStoresCommand.d.ts +2 -73
  86. package/dist-types/ts3.4/commands/DescribeKeyCommand.d.ts +2 -99
  87. package/dist-types/ts3.4/commands/DisableKeyCommand.d.ts +2 -35
  88. package/dist-types/ts3.4/commands/DisableKeyRotationCommand.d.ts +2 -45
  89. package/dist-types/ts3.4/commands/DisconnectCustomKeyStoreCommand.d.ts +2 -72
  90. package/dist-types/ts3.4/commands/EnableKeyCommand.d.ts +2 -32
  91. package/dist-types/ts3.4/commands/EnableKeyRotationCommand.d.ts +2 -45
  92. package/dist-types/ts3.4/commands/EncryptCommand.d.ts +2 -144
  93. package/dist-types/ts3.4/commands/GenerateDataKeyCommand.d.ts +2 -117
  94. package/dist-types/ts3.4/commands/GenerateDataKeyPairCommand.d.ts +2 -96
  95. package/dist-types/ts3.4/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +2 -86
  96. package/dist-types/ts3.4/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +2 -91
  97. package/dist-types/ts3.4/commands/GenerateRandomCommand.d.ts +2 -29
  98. package/dist-types/ts3.4/commands/GetKeyPolicyCommand.d.ts +2 -28
  99. package/dist-types/ts3.4/commands/GetKeyRotationStatusCommand.d.ts +2 -57
  100. package/dist-types/ts3.4/commands/GetParametersForImportCommand.d.ts +2 -54
  101. package/dist-types/ts3.4/commands/GetPublicKeyCommand.d.ts +2 -66
  102. package/dist-types/ts3.4/commands/ImportKeyMaterialCommand.d.ts +2 -83
  103. package/dist-types/ts3.4/commands/ListAliasesCommand.d.ts +2 -62
  104. package/dist-types/ts3.4/commands/ListGrantsCommand.d.ts +2 -65
  105. package/dist-types/ts3.4/commands/ListKeyPoliciesCommand.d.ts +2 -42
  106. package/dist-types/ts3.4/commands/ListKeysCommand.d.ts +2 -50
  107. package/dist-types/ts3.4/commands/ListResourceTagsCommand.d.ts +2 -54
  108. package/dist-types/ts3.4/commands/ListRetirableGrantsCommand.d.ts +2 -63
  109. package/dist-types/ts3.4/commands/PutKeyPolicyCommand.d.ts +2 -33
  110. package/dist-types/ts3.4/commands/ReEncryptCommand.d.ts +2 -118
  111. package/dist-types/ts3.4/commands/ReplicateKeyCommand.d.ts +2 -97
  112. package/dist-types/ts3.4/commands/RetireGrantCommand.d.ts +2 -66
  113. package/dist-types/ts3.4/commands/RevokeGrantCommand.d.ts +2 -63
  114. package/dist-types/ts3.4/commands/ScheduleKeyDeletionCommand.d.ts +2 -74
  115. package/dist-types/ts3.4/commands/SignCommand.d.ts +2 -65
  116. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -67
  117. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -63
  118. package/dist-types/ts3.4/commands/UpdateAliasCommand.d.ts +2 -82
  119. package/dist-types/ts3.4/commands/UpdateCustomKeyStoreCommand.d.ts +2 -92
  120. package/dist-types/ts3.4/commands/UpdateKeyDescriptionCommand.d.ts +2 -43
  121. package/dist-types/ts3.4/commands/UpdatePrimaryRegionCommand.d.ts +2 -85
  122. package/dist-types/ts3.4/commands/VerifyCommand.d.ts +2 -50
  123. package/dist-types/ts3.4/commands/index.d.ts +48 -0
  124. package/dist-types/ts3.4/index.d.ts +4 -55
  125. package/dist-types/ts3.4/models/models_0.d.ts +445 -2963
  126. package/dist-types/ts3.4/pagination/index.d.ts +5 -0
  127. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  128. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  129. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  130. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  131. package/package.json +32 -32
@@ -6,63 +6,11 @@ export interface GetParametersForImportCommandInput extends GetParametersForImpo
6
6
  }
7
7
  export interface GetParametersForImportCommandOutput extends GetParametersForImportResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Returns the items you need to import key material into a symmetric, customer managed KMS
11
- * key. For more information about importing key material into KMS, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing Key Material</a>
12
- * in the <i>Key Management Service Developer Guide</i>.</p>
13
- * <p>This operation returns a public key and an import token. Use the public key to encrypt the
14
- * symmetric key material. Store the import token to send with a subsequent <a>ImportKeyMaterial</a> request.</p>
15
- * <p>You must specify the key ID of the symmetric KMS key into which you will import key
16
- * material. This KMS key's <code>Origin</code> must be <code>EXTERNAL</code>. You must also
17
- * specify the wrapping algorithm and type of wrapping key (public key) that you will use to
18
- * encrypt the key material. You cannot perform this operation on an asymmetric KMS key or on any KMS key in a different Amazon Web Services account.</p>
19
- * <p>To import key material, you must use the public key and import token from the same
20
- * response. These items are valid for 24 hours. The expiration date and time appear in the
21
- * <code>GetParametersForImport</code> response. You cannot use an expired token in an <a>ImportKeyMaterial</a> request. If your key and token expire, send another
22
- * <code>GetParametersForImport</code> request.</p>
23
- * <p>The KMS key that you use for this operation must be in a compatible key state. For
24
- * details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key state: Effect on your KMS key</a> in the <i>Key Management Service Developer Guide</i>.</p>
25
- * <p>
26
- * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.</p>
27
- *
28
- * <p>
29
- * <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:GetParametersForImport</a> (key policy)</p>
30
- * <p>
31
- * <b>Related operations:</b>
32
- * </p>
33
- * <ul>
34
- * <li>
35
- * <p>
36
- * <a>ImportKeyMaterial</a>
37
- * </p>
38
- * </li>
39
- * <li>
40
- * <p>
41
- * <a>DeleteImportedKeyMaterial</a>
42
- * </p>
43
- * </li>
44
- * </ul>
45
- * @example
46
- * Use a bare-bones client and the command you need to make an API call.
47
- * ```javascript
48
- * import { KMSClient, GetParametersForImportCommand } from "@aws-sdk/client-kms"; // ES Modules import
49
- * // const { KMSClient, GetParametersForImportCommand } = require("@aws-sdk/client-kms"); // CommonJS import
50
- * const client = new KMSClient(config);
51
- * const command = new GetParametersForImportCommand(input);
52
- * const response = await client.send(command);
53
- * ```
54
- *
55
- * @see {@link GetParametersForImportCommandInput} for command's `input` shape.
56
- * @see {@link GetParametersForImportCommandOutput} for command's `response` shape.
57
- * @see {@link KMSClientResolvedConfig | config} for command's `input` shape.
58
- *
59
- */
9
+
60
10
  export declare class GetParametersForImportCommand extends $Command<GetParametersForImportCommandInput, GetParametersForImportCommandOutput, KMSClientResolvedConfig> {
61
11
  readonly input: GetParametersForImportCommandInput;
62
12
  constructor(input: GetParametersForImportCommandInput);
63
- /**
64
- * @internal
65
- */
13
+
66
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetParametersForImportCommandInput, GetParametersForImportCommandOutput>;
67
15
  private serialize;
68
16
  private deserialize;
@@ -6,75 +6,11 @@ export interface GetPublicKeyCommandInput extends GetPublicKeyRequest {
6
6
  }
7
7
  export interface GetPublicKeyCommandOutput extends GetPublicKeyResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Returns the public key of an asymmetric KMS key. Unlike the private key of a asymmetric
11
- * KMS key, which never leaves KMS unencrypted, callers with <code>kms:GetPublicKey</code>
12
- * permission can download the public key of an asymmetric KMS key. You can share the public key
13
- * to allow others to encrypt messages and verify signatures outside of KMS.
14
- * For information about symmetric and asymmetric KMS keys, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Using Symmetric and Asymmetric KMS keys</a> in the <i>Key Management Service Developer Guide</i>.</p>
15
- * <p>You do not need to download the public key. Instead, you can use the public key within
16
- * KMS by calling the <a>Encrypt</a>, <a>ReEncrypt</a>, or <a>Verify</a> operations with the identifier of an asymmetric KMS key. When you use the
17
- * public key within KMS, you benefit from the authentication, authorization, and logging that
18
- * are part of every KMS operation. You also reduce of risk of encrypting data that cannot be
19
- * decrypted. These features are not effective outside of KMS. For details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/download-public-key.html#download-public-key-considerations">Special
20
- * Considerations for Downloading Public Keys</a>.</p>
21
- * <p>To help you use the public key safely outside of KMS, <code>GetPublicKey</code> returns
22
- * important information about the public key in the response, including:</p>
23
- * <ul>
24
- * <li>
25
- * <p>
26
- * <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_GetPublicKey.html#KMS-GetPublicKey-response-KeySpec">KeySpec</a>: The type of key material in the public key, such as
27
- * <code>RSA_4096</code> or <code>ECC_NIST_P521</code>.</p>
28
- * </li>
29
- * <li>
30
- * <p>
31
- * <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_GetPublicKey.html#KMS-GetPublicKey-response-KeyUsage">KeyUsage</a>: Whether the key is used for encryption or signing.</p>
32
- * </li>
33
- * <li>
34
- * <p>
35
- * <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_GetPublicKey.html#KMS-GetPublicKey-response-EncryptionAlgorithms">EncryptionAlgorithms</a> or <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_GetPublicKey.html#KMS-GetPublicKey-response-SigningAlgorithms">SigningAlgorithms</a>: A list of the encryption algorithms or the signing
36
- * algorithms for the key.</p>
37
- * </li>
38
- * </ul>
39
- * <p>Although KMS cannot enforce these restrictions on external operations, it is crucial
40
- * that you use this information to prevent the public key from being used improperly. For
41
- * example, you can prevent a public signing key from being used encrypt data, or prevent a
42
- * public key from being used with an encryption algorithm that is not supported by KMS. You
43
- * can also avoid errors, such as using the wrong signing algorithm in a verification
44
- * operation.</p>
45
- * <p>The KMS key that you use for this operation must be in a compatible key state. For
46
- * details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key state: Effect on your KMS key</a> in the <i>Key Management Service Developer Guide</i>.</p>
47
- * <p>
48
- * <b>Cross-account use</b>:
49
- * Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify
50
- * the key ARN or alias ARN in the value of the <code>KeyId</code> parameter.</p>
51
- *
52
- * <p>
53
- * <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:GetPublicKey</a> (key policy)</p>
54
- * <p>
55
- * <b>Related operations</b>: <a>CreateKey</a>
56
- * </p>
57
- * @example
58
- * Use a bare-bones client and the command you need to make an API call.
59
- * ```javascript
60
- * import { KMSClient, GetPublicKeyCommand } from "@aws-sdk/client-kms"; // ES Modules import
61
- * // const { KMSClient, GetPublicKeyCommand } = require("@aws-sdk/client-kms"); // CommonJS import
62
- * const client = new KMSClient(config);
63
- * const command = new GetPublicKeyCommand(input);
64
- * const response = await client.send(command);
65
- * ```
66
- *
67
- * @see {@link GetPublicKeyCommandInput} for command's `input` shape.
68
- * @see {@link GetPublicKeyCommandOutput} for command's `response` shape.
69
- * @see {@link KMSClientResolvedConfig | config} for command's `input` shape.
70
- *
71
- */
9
+
72
10
  export declare class GetPublicKeyCommand extends $Command<GetPublicKeyCommandInput, GetPublicKeyCommandOutput, KMSClientResolvedConfig> {
73
11
  readonly input: GetPublicKeyCommandInput;
74
12
  constructor(input: GetPublicKeyCommandInput);
75
- /**
76
- * @internal
77
- */
13
+
78
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetPublicKeyCommandInput, GetPublicKeyCommandOutput>;
79
15
  private serialize;
80
16
  private deserialize;
@@ -6,92 +6,11 @@ export interface ImportKeyMaterialCommandInput extends ImportKeyMaterialRequest
6
6
  }
7
7
  export interface ImportKeyMaterialCommandOutput extends ImportKeyMaterialResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Imports key material into an existing symmetric KMS KMS key that was created without key
11
- * material. After you successfully import key material into a KMS key, you can <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html#reimport-key-material">reimport
12
- * the same key material</a> into that KMS key, but you cannot import different key
13
- * material. </p>
14
- * <p>You cannot perform this operation on an asymmetric KMS key or on any KMS key in a different Amazon Web Services account. For more information about creating KMS keys with no key material
15
- * and then importing key material, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing Key Material</a> in the
16
- * <i>Key Management Service Developer Guide</i>.</p>
17
- * <p>Before using this operation, call <a>GetParametersForImport</a>. Its response
18
- * includes a public key and an import token. Use the public key to encrypt the key material.
19
- * Then, submit the import token from the same <code>GetParametersForImport</code>
20
- * response.</p>
21
- * <p>When calling this operation, you must specify the following values:</p>
22
- * <ul>
23
- * <li>
24
- * <p>The key ID or key ARN of a KMS key with no key material. Its <code>Origin</code> must
25
- * be <code>EXTERNAL</code>.</p>
26
- * <p>To create a KMS key with no key material, call <a>CreateKey</a> and set the
27
- * value of its <code>Origin</code> parameter to <code>EXTERNAL</code>. To get the
28
- * <code>Origin</code> of a KMS key, call <a>DescribeKey</a>.)</p>
29
- * </li>
30
- * <li>
31
- * <p>The encrypted key material. To get the public key to encrypt the key material, call
32
- * <a>GetParametersForImport</a>.</p>
33
- * </li>
34
- * <li>
35
- * <p>The import token that <a>GetParametersForImport</a> returned. You must use
36
- * a public key and token from the same <code>GetParametersForImport</code> response.</p>
37
- * </li>
38
- * <li>
39
- * <p>Whether the key material expires and if so, when. If you set an expiration date, KMS
40
- * deletes the key material from the KMS key on the specified date, and the KMS key becomes
41
- * unusable. To use the KMS key again, you must reimport the same key material. The only way
42
- * to change an expiration date is by reimporting the same key material and specifying a new
43
- * expiration date. </p>
44
- * </li>
45
- * </ul>
46
- * <p>When this operation is successful, the key state of the KMS key changes from
47
- * <code>PendingImport</code> to <code>Enabled</code>, and you can use the KMS key.</p>
48
- * <p>If this operation fails, use the exception to help determine the problem. If the error is
49
- * 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
50
- * and repeat the import procedure. For help, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html#importing-keys-overview">How To Import Key
51
- * Material</a> in the <i>Key Management Service Developer Guide</i>.</p>
52
- * <p>The KMS key that you use for this operation must be in a compatible key state. For
53
- * details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">Key state: Effect on your KMS key</a> in the <i>Key Management Service Developer Guide</i>.</p>
54
- * <p>
55
- * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.</p>
56
- *
57
- * <p>
58
- * <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ImportKeyMaterial</a> (key policy)</p>
59
- * <p>
60
- * <b>Related operations:</b>
61
- * </p>
62
- * <ul>
63
- * <li>
64
- * <p>
65
- * <a>DeleteImportedKeyMaterial</a>
66
- * </p>
67
- * </li>
68
- * <li>
69
- * <p>
70
- * <a>GetParametersForImport</a>
71
- * </p>
72
- * </li>
73
- * </ul>
74
- * @example
75
- * Use a bare-bones client and the command you need to make an API call.
76
- * ```javascript
77
- * import { KMSClient, ImportKeyMaterialCommand } from "@aws-sdk/client-kms"; // ES Modules import
78
- * // const { KMSClient, ImportKeyMaterialCommand } = require("@aws-sdk/client-kms"); // CommonJS import
79
- * const client = new KMSClient(config);
80
- * const command = new ImportKeyMaterialCommand(input);
81
- * const response = await client.send(command);
82
- * ```
83
- *
84
- * @see {@link ImportKeyMaterialCommandInput} for command's `input` shape.
85
- * @see {@link ImportKeyMaterialCommandOutput} for command's `response` shape.
86
- * @see {@link KMSClientResolvedConfig | config} for command's `input` shape.
87
- *
88
- */
9
+
89
10
  export declare class ImportKeyMaterialCommand extends $Command<ImportKeyMaterialCommandInput, ImportKeyMaterialCommandOutput, KMSClientResolvedConfig> {
90
11
  readonly input: ImportKeyMaterialCommandInput;
91
12
  constructor(input: ImportKeyMaterialCommandInput);
92
- /**
93
- * @internal
94
- */
13
+
95
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ImportKeyMaterialCommandInput, ImportKeyMaterialCommandOutput>;
96
15
  private serialize;
97
16
  private deserialize;
@@ -6,71 +6,11 @@ export interface ListAliasesCommandInput extends ListAliasesRequest {
6
6
  }
7
7
  export interface ListAliasesCommandOutput extends ListAliasesResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Gets a list of aliases in the caller's Amazon Web Services account and region. For more information
11
- * about aliases, see <a>CreateAlias</a>.</p>
12
- * <p>By default, the <code>ListAliases</code> operation returns all aliases in the account and
13
- * region. To get only the aliases associated with a particular KMS key, use the
14
- * <code>KeyId</code> parameter.</p>
15
- * <p>The <code>ListAliases</code> response can include aliases that you created and associated
16
- * with your customer managed keys, and aliases that Amazon Web Services created and associated with Amazon Web Services
17
- * managed keys in your account. You can recognize Amazon Web Services aliases because their names have the
18
- * format <code>aws/<service-name></code>, such as <code>aws/dynamodb</code>.</p>
19
- * <p>The response might also include aliases that have no <code>TargetKeyId</code> field. These
20
- * are predefined aliases that Amazon Web Services has created but has not yet associated with a KMS key.
21
- * Aliases that Amazon Web Services creates in your account, including predefined aliases, do not count against
22
- * your <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html#aliases-limit">KMS aliases
23
- * quota</a>.</p>
24
- * <p>
25
- * <b>Cross-account use</b>: No. <code>ListAliases</code> does not
26
- * return aliases in other Amazon Web Services accounts.</p>
27
- *
28
- *
29
- * <p>
30
- * <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ListAliases</a> (IAM policy)</p>
31
- * <p>For details, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-alias.html#alias-access">Controlling access to aliases</a> in the
32
- * <i>Key Management Service Developer Guide</i>.</p>
33
- * <p>
34
- * <b>Related operations:</b>
35
- * </p>
36
- * <ul>
37
- * <li>
38
- * <p>
39
- * <a>CreateAlias</a>
40
- * </p>
41
- * </li>
42
- * <li>
43
- * <p>
44
- * <a>DeleteAlias</a>
45
- * </p>
46
- * </li>
47
- * <li>
48
- * <p>
49
- * <a>UpdateAlias</a>
50
- * </p>
51
- * </li>
52
- * </ul>
53
- * @example
54
- * Use a bare-bones client and the command you need to make an API call.
55
- * ```javascript
56
- * import { KMSClient, ListAliasesCommand } from "@aws-sdk/client-kms"; // ES Modules import
57
- * // const { KMSClient, ListAliasesCommand } = require("@aws-sdk/client-kms"); // CommonJS import
58
- * const client = new KMSClient(config);
59
- * const command = new ListAliasesCommand(input);
60
- * const response = await client.send(command);
61
- * ```
62
- *
63
- * @see {@link ListAliasesCommandInput} for command's `input` shape.
64
- * @see {@link ListAliasesCommandOutput} for command's `response` shape.
65
- * @see {@link KMSClientResolvedConfig | config} for command's `input` shape.
66
- *
67
- */
9
+
68
10
  export declare class ListAliasesCommand extends $Command<ListAliasesCommandInput, ListAliasesCommandOutput, KMSClientResolvedConfig> {
69
11
  readonly input: ListAliasesCommandInput;
70
12
  constructor(input: ListAliasesCommandInput);
71
- /**
72
- * @internal
73
- */
13
+
74
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListAliasesCommandInput, ListAliasesCommandOutput>;
75
15
  private serialize;
76
16
  private deserialize;
@@ -6,74 +6,11 @@ export interface ListGrantsCommandInput extends ListGrantsRequest {
6
6
  }
7
7
  export interface ListGrantsCommandOutput extends ListGrantsResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Gets a list of all grants for the specified KMS key. </p>
11
- * <p>You must specify the KMS key in all requests. You can filter the grant list by grant ID or
12
- * grantee principal.</p>
13
- * <p>For detailed information about grants, including grant terminology, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Using grants</a> in the
14
- * <i>
15
- * <i>Key Management Service Developer Guide</i>
16
- * </i>. For examples of working with grants in several
17
- * programming languages, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>. </p>
18
- * <note>
19
- * <p>The <code>GranteePrincipal</code> field in the <code>ListGrants</code> response usually contains the
20
- * user or role designated as the grantee principal in the grant. However, when the grantee
21
- * principal in the grant is an Amazon Web Services service, the <code>GranteePrincipal</code> field contains
22
- * the <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#principal-services">service
23
- * principal</a>, which might represent several different grantee principals.</p>
24
- * </note>
25
- * <p>
26
- * <b>Cross-account use</b>: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key
27
- * ARN in the value of the <code>KeyId</code> parameter.</p>
28
- *
29
- * <p>
30
- * <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ListGrants</a> (key policy)</p>
31
- * <p>
32
- * <b>Related operations:</b>
33
- * </p>
34
- * <ul>
35
- * <li>
36
- * <p>
37
- * <a>CreateGrant</a>
38
- * </p>
39
- * </li>
40
- * <li>
41
- * <p>
42
- * <a>ListRetirableGrants</a>
43
- * </p>
44
- * </li>
45
- * <li>
46
- * <p>
47
- * <a>RetireGrant</a>
48
- * </p>
49
- * </li>
50
- * <li>
51
- * <p>
52
- * <a>RevokeGrant</a>
53
- * </p>
54
- * </li>
55
- * </ul>
56
- * @example
57
- * Use a bare-bones client and the command you need to make an API call.
58
- * ```javascript
59
- * import { KMSClient, ListGrantsCommand } from "@aws-sdk/client-kms"; // ES Modules import
60
- * // const { KMSClient, ListGrantsCommand } = require("@aws-sdk/client-kms"); // CommonJS import
61
- * const client = new KMSClient(config);
62
- * const command = new ListGrantsCommand(input);
63
- * const response = await client.send(command);
64
- * ```
65
- *
66
- * @see {@link ListGrantsCommandInput} for command's `input` shape.
67
- * @see {@link ListGrantsCommandOutput} for command's `response` shape.
68
- * @see {@link KMSClientResolvedConfig | config} for command's `input` shape.
69
- *
70
- */
9
+
71
10
  export declare class ListGrantsCommand extends $Command<ListGrantsCommandInput, ListGrantsCommandOutput, KMSClientResolvedConfig> {
72
11
  readonly input: ListGrantsCommandInput;
73
12
  constructor(input: ListGrantsCommandInput);
74
- /**
75
- * @internal
76
- */
13
+
77
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListGrantsCommandInput, ListGrantsCommandOutput>;
78
15
  private serialize;
79
16
  private deserialize;
@@ -6,51 +6,11 @@ export interface ListKeyPoliciesCommandInput extends ListKeyPoliciesRequest {
6
6
  }
7
7
  export interface ListKeyPoliciesCommandOutput extends ListKeyPoliciesResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Gets the names of the key policies that are attached to a KMS key. This operation is
11
- * designed to get policy names that you can use in a <a>GetKeyPolicy</a> operation.
12
- * However, the only valid policy name is <code>default</code>. </p>
13
- * <p>
14
- * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.</p>
15
- *
16
- * <p>
17
- * <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ListKeyPolicies</a> (key policy)</p>
18
- * <p>
19
- * <b>Related operations:</b>
20
- * </p>
21
- * <ul>
22
- * <li>
23
- * <p>
24
- * <a>GetKeyPolicy</a>
25
- * </p>
26
- * </li>
27
- * <li>
28
- * <p>
29
- * <a>PutKeyPolicy</a>
30
- * </p>
31
- * </li>
32
- * </ul>
33
- * @example
34
- * Use a bare-bones client and the command you need to make an API call.
35
- * ```javascript
36
- * import { KMSClient, ListKeyPoliciesCommand } from "@aws-sdk/client-kms"; // ES Modules import
37
- * // const { KMSClient, ListKeyPoliciesCommand } = require("@aws-sdk/client-kms"); // CommonJS import
38
- * const client = new KMSClient(config);
39
- * const command = new ListKeyPoliciesCommand(input);
40
- * const response = await client.send(command);
41
- * ```
42
- *
43
- * @see {@link ListKeyPoliciesCommandInput} for command's `input` shape.
44
- * @see {@link ListKeyPoliciesCommandOutput} for command's `response` shape.
45
- * @see {@link KMSClientResolvedConfig | config} for command's `input` shape.
46
- *
47
- */
9
+
48
10
  export declare class ListKeyPoliciesCommand extends $Command<ListKeyPoliciesCommandInput, ListKeyPoliciesCommandOutput, KMSClientResolvedConfig> {
49
11
  readonly input: ListKeyPoliciesCommandInput;
50
12
  constructor(input: ListKeyPoliciesCommandInput);
51
- /**
52
- * @internal
53
- */
13
+
54
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListKeyPoliciesCommandInput, ListKeyPoliciesCommandOutput>;
55
15
  private serialize;
56
16
  private deserialize;
@@ -6,59 +6,11 @@ export interface ListKeysCommandInput extends ListKeysRequest {
6
6
  }
7
7
  export interface ListKeysCommandOutput extends ListKeysResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Gets a list of all KMS keys in the caller's Amazon Web Services account and Region.</p>
11
- * <p>
12
- * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.</p>
13
- *
14
- * <p>
15
- * <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ListKeys</a> (IAM policy)</p>
16
- * <p>
17
- * <b>Related operations:</b>
18
- * </p>
19
- * <ul>
20
- * <li>
21
- * <p>
22
- * <a>CreateKey</a>
23
- * </p>
24
- * </li>
25
- * <li>
26
- * <p>
27
- * <a>DescribeKey</a>
28
- * </p>
29
- * </li>
30
- * <li>
31
- * <p>
32
- * <a>ListAliases</a>
33
- * </p>
34
- * </li>
35
- * <li>
36
- * <p>
37
- * <a>ListResourceTags</a>
38
- * </p>
39
- * </li>
40
- * </ul>
41
- * @example
42
- * Use a bare-bones client and the command you need to make an API call.
43
- * ```javascript
44
- * import { KMSClient, ListKeysCommand } from "@aws-sdk/client-kms"; // ES Modules import
45
- * // const { KMSClient, ListKeysCommand } = require("@aws-sdk/client-kms"); // CommonJS import
46
- * const client = new KMSClient(config);
47
- * const command = new ListKeysCommand(input);
48
- * const response = await client.send(command);
49
- * ```
50
- *
51
- * @see {@link ListKeysCommandInput} for command's `input` shape.
52
- * @see {@link ListKeysCommandOutput} for command's `response` shape.
53
- * @see {@link KMSClientResolvedConfig | config} for command's `input` shape.
54
- *
55
- */
9
+
56
10
  export declare class ListKeysCommand extends $Command<ListKeysCommandInput, ListKeysCommandOutput, KMSClientResolvedConfig> {
57
11
  readonly input: ListKeysCommandInput;
58
12
  constructor(input: ListKeysCommandInput);
59
- /**
60
- * @internal
61
- */
13
+
62
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListKeysCommandInput, ListKeysCommandOutput>;
63
15
  private serialize;
64
16
  private deserialize;
@@ -6,63 +6,11 @@ export interface ListResourceTagsCommandInput extends ListResourceTagsRequest {
6
6
  }
7
7
  export interface ListResourceTagsCommandOutput extends ListResourceTagsResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Returns all tags on the specified KMS key.</p>
11
- * <p>For general information about tags, including the format and syntax, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a> in
12
- * the <i>Amazon Web Services General Reference</i>. For information about using
13
- * tags in KMS, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/tagging-keys.html">Tagging
14
- * keys</a>.</p>
15
- * <p>
16
- * <b>Cross-account use</b>: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.</p>
17
- *
18
- * <p>
19
- * <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ListResourceTags</a> (key policy)</p>
20
- * <p>
21
- * <b>Related operations:</b>
22
- * </p>
23
- * <ul>
24
- * <li>
25
- * <p>
26
- * <a>CreateKey</a>
27
- * </p>
28
- * </li>
29
- * <li>
30
- * <p>
31
- * <a>ReplicateKey</a>
32
- * </p>
33
- * </li>
34
- * <li>
35
- * <p>
36
- * <a>TagResource</a>
37
- * </p>
38
- * </li>
39
- * <li>
40
- * <p>
41
- * <a>UntagResource</a>
42
- * </p>
43
- * </li>
44
- * </ul>
45
- * @example
46
- * Use a bare-bones client and the command you need to make an API call.
47
- * ```javascript
48
- * import { KMSClient, ListResourceTagsCommand } from "@aws-sdk/client-kms"; // ES Modules import
49
- * // const { KMSClient, ListResourceTagsCommand } = require("@aws-sdk/client-kms"); // CommonJS import
50
- * const client = new KMSClient(config);
51
- * const command = new ListResourceTagsCommand(input);
52
- * const response = await client.send(command);
53
- * ```
54
- *
55
- * @see {@link ListResourceTagsCommandInput} for command's `input` shape.
56
- * @see {@link ListResourceTagsCommandOutput} for command's `response` shape.
57
- * @see {@link KMSClientResolvedConfig | config} for command's `input` shape.
58
- *
59
- */
9
+
60
10
  export declare class ListResourceTagsCommand extends $Command<ListResourceTagsCommandInput, ListResourceTagsCommandOutput, KMSClientResolvedConfig> {
61
11
  readonly input: ListResourceTagsCommandInput;
62
12
  constructor(input: ListResourceTagsCommandInput);
63
- /**
64
- * @internal
65
- */
13
+
66
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListResourceTagsCommandInput, ListResourceTagsCommandOutput>;
67
15
  private serialize;
68
16
  private deserialize;
@@ -6,72 +6,11 @@ export interface ListRetirableGrantsCommandInput extends ListRetirableGrantsRequ
6
6
  }
7
7
  export interface ListRetirableGrantsCommandOutput extends ListGrantsResponse, __MetadataBearer {
8
8
  }
9
- /**
10
- * <p>Returns information about all grants in the Amazon Web Services account and Region that have the
11
- * specified retiring principal. </p>
12
- * <p>You can specify any principal in your Amazon Web Services account. The grants that are returned include
13
- * grants for KMS keys in your Amazon Web Services account and other Amazon Web Services accounts. You might use this
14
- * operation to determine which grants you may retire. To retire a grant, use the <a>RetireGrant</a> operation.</p>
15
- * <p>For detailed information about grants, including grant terminology, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/grants.html">Using grants</a> in the
16
- * <i>
17
- * <i>Key Management Service Developer Guide</i>
18
- * </i>. For examples of working with grants in several
19
- * programming languages, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/programming-grants.html">Programming grants</a>. </p>
20
- * <p>
21
- * <b>Cross-account use</b>: You must specify a principal in your
22
- * Amazon Web Services account. However, this operation can return grants in any Amazon Web Services account. You do not need
23
- * <code>kms:ListRetirableGrants</code> permission (or any other additional permission) in any
24
- * Amazon Web Services account other than your own.</p>
25
- *
26
- * <p>
27
- * <b>Required permissions</b>: <a href="https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html">kms:ListRetirableGrants</a> (IAM policy) in your
28
- * Amazon Web Services account.</p>
29
- * <p>
30
- * <b>Related operations:</b>
31
- * </p>
32
- * <ul>
33
- * <li>
34
- * <p>
35
- * <a>CreateGrant</a>
36
- * </p>
37
- * </li>
38
- * <li>
39
- * <p>
40
- * <a>ListGrants</a>
41
- * </p>
42
- * </li>
43
- * <li>
44
- * <p>
45
- * <a>RetireGrant</a>
46
- * </p>
47
- * </li>
48
- * <li>
49
- * <p>
50
- * <a>RevokeGrant</a>
51
- * </p>
52
- * </li>
53
- * </ul>
54
- * @example
55
- * Use a bare-bones client and the command you need to make an API call.
56
- * ```javascript
57
- * import { KMSClient, ListRetirableGrantsCommand } from "@aws-sdk/client-kms"; // ES Modules import
58
- * // const { KMSClient, ListRetirableGrantsCommand } = require("@aws-sdk/client-kms"); // CommonJS import
59
- * const client = new KMSClient(config);
60
- * const command = new ListRetirableGrantsCommand(input);
61
- * const response = await client.send(command);
62
- * ```
63
- *
64
- * @see {@link ListRetirableGrantsCommandInput} for command's `input` shape.
65
- * @see {@link ListRetirableGrantsCommandOutput} for command's `response` shape.
66
- * @see {@link KMSClientResolvedConfig | config} for command's `input` shape.
67
- *
68
- */
9
+
69
10
  export declare class ListRetirableGrantsCommand extends $Command<ListRetirableGrantsCommandInput, ListRetirableGrantsCommandOutput, KMSClientResolvedConfig> {
70
11
  readonly input: ListRetirableGrantsCommandInput;
71
12
  constructor(input: ListRetirableGrantsCommandInput);
72
- /**
73
- * @internal
74
- */
13
+
75
14
  resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: KMSClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListRetirableGrantsCommandInput, ListRetirableGrantsCommandOutput>;
76
15
  private serialize;
77
16
  private deserialize;