@aws-sdk/client-kms 3.477.0 → 3.481.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.
- package/dist-cjs/commands/CancelKeyDeletionCommand.js +18 -41
- package/dist-cjs/commands/ConnectCustomKeyStoreCommand.js +18 -41
- package/dist-cjs/commands/CreateAliasCommand.js +18 -41
- package/dist-cjs/commands/CreateCustomKeyStoreCommand.js +18 -41
- package/dist-cjs/commands/CreateGrantCommand.js +18 -41
- package/dist-cjs/commands/CreateKeyCommand.js +18 -41
- package/dist-cjs/commands/DecryptCommand.js +18 -41
- package/dist-cjs/commands/DeleteAliasCommand.js +18 -41
- package/dist-cjs/commands/DeleteCustomKeyStoreCommand.js +18 -41
- package/dist-cjs/commands/DeleteImportedKeyMaterialCommand.js +18 -41
- package/dist-cjs/commands/DescribeCustomKeyStoresCommand.js +18 -41
- package/dist-cjs/commands/DescribeKeyCommand.js +18 -41
- package/dist-cjs/commands/DisableKeyCommand.js +18 -41
- package/dist-cjs/commands/DisableKeyRotationCommand.js +18 -41
- package/dist-cjs/commands/DisconnectCustomKeyStoreCommand.js +18 -41
- package/dist-cjs/commands/EnableKeyCommand.js +18 -41
- package/dist-cjs/commands/EnableKeyRotationCommand.js +18 -41
- package/dist-cjs/commands/EncryptCommand.js +18 -41
- package/dist-cjs/commands/GenerateDataKeyCommand.js +18 -41
- package/dist-cjs/commands/GenerateDataKeyPairCommand.js +18 -41
- package/dist-cjs/commands/GenerateDataKeyPairWithoutPlaintextCommand.js +18 -41
- package/dist-cjs/commands/GenerateDataKeyWithoutPlaintextCommand.js +18 -41
- package/dist-cjs/commands/GenerateMacCommand.js +18 -41
- package/dist-cjs/commands/GenerateRandomCommand.js +18 -41
- package/dist-cjs/commands/GetKeyPolicyCommand.js +18 -41
- package/dist-cjs/commands/GetKeyRotationStatusCommand.js +18 -41
- package/dist-cjs/commands/GetParametersForImportCommand.js +18 -41
- package/dist-cjs/commands/GetPublicKeyCommand.js +18 -41
- package/dist-cjs/commands/ImportKeyMaterialCommand.js +18 -41
- package/dist-cjs/commands/ListAliasesCommand.js +18 -41
- package/dist-cjs/commands/ListGrantsCommand.js +18 -41
- package/dist-cjs/commands/ListKeyPoliciesCommand.js +18 -41
- package/dist-cjs/commands/ListKeysCommand.js +18 -41
- package/dist-cjs/commands/ListResourceTagsCommand.js +18 -41
- package/dist-cjs/commands/ListRetirableGrantsCommand.js +18 -41
- package/dist-cjs/commands/PutKeyPolicyCommand.js +18 -41
- package/dist-cjs/commands/ReEncryptCommand.js +18 -41
- package/dist-cjs/commands/ReplicateKeyCommand.js +18 -41
- package/dist-cjs/commands/RetireGrantCommand.js +18 -41
- package/dist-cjs/commands/RevokeGrantCommand.js +18 -41
- package/dist-cjs/commands/ScheduleKeyDeletionCommand.js +18 -41
- package/dist-cjs/commands/SignCommand.js +18 -41
- package/dist-cjs/commands/TagResourceCommand.js +18 -41
- package/dist-cjs/commands/UntagResourceCommand.js +18 -41
- package/dist-cjs/commands/UpdateAliasCommand.js +18 -41
- package/dist-cjs/commands/UpdateCustomKeyStoreCommand.js +18 -41
- package/dist-cjs/commands/UpdateKeyDescriptionCommand.js +18 -41
- package/dist-cjs/commands/UpdatePrimaryRegionCommand.js +18 -41
- package/dist-cjs/commands/VerifyCommand.js +18 -41
- package/dist-cjs/commands/VerifyMacCommand.js +18 -41
- package/dist-cjs/endpoint/EndpointParameters.js +7 -1
- package/dist-cjs/pagination/DescribeCustomKeyStoresPaginator.js +2 -24
- package/dist-cjs/pagination/ListAliasesPaginator.js +2 -24
- package/dist-cjs/pagination/ListGrantsPaginator.js +2 -24
- package/dist-cjs/pagination/ListKeyPoliciesPaginator.js +2 -24
- package/dist-cjs/pagination/ListKeysPaginator.js +2 -24
- package/dist-cjs/pagination/ListResourceTagsPaginator.js +2 -24
- package/dist-cjs/pagination/ListRetirableGrantsPaginator.js +2 -24
- package/dist-es/commands/CancelKeyDeletionCommand.js +18 -41
- package/dist-es/commands/ConnectCustomKeyStoreCommand.js +18 -41
- package/dist-es/commands/CreateAliasCommand.js +18 -41
- package/dist-es/commands/CreateCustomKeyStoreCommand.js +18 -41
- package/dist-es/commands/CreateGrantCommand.js +18 -41
- package/dist-es/commands/CreateKeyCommand.js +18 -41
- package/dist-es/commands/DecryptCommand.js +18 -41
- package/dist-es/commands/DeleteAliasCommand.js +18 -41
- package/dist-es/commands/DeleteCustomKeyStoreCommand.js +18 -41
- package/dist-es/commands/DeleteImportedKeyMaterialCommand.js +18 -41
- package/dist-es/commands/DescribeCustomKeyStoresCommand.js +18 -41
- package/dist-es/commands/DescribeKeyCommand.js +18 -41
- package/dist-es/commands/DisableKeyCommand.js +18 -41
- package/dist-es/commands/DisableKeyRotationCommand.js +18 -41
- package/dist-es/commands/DisconnectCustomKeyStoreCommand.js +18 -41
- package/dist-es/commands/EnableKeyCommand.js +18 -41
- package/dist-es/commands/EnableKeyRotationCommand.js +18 -41
- package/dist-es/commands/EncryptCommand.js +18 -41
- package/dist-es/commands/GenerateDataKeyCommand.js +18 -41
- package/dist-es/commands/GenerateDataKeyPairCommand.js +18 -41
- package/dist-es/commands/GenerateDataKeyPairWithoutPlaintextCommand.js +18 -41
- package/dist-es/commands/GenerateDataKeyWithoutPlaintextCommand.js +18 -41
- package/dist-es/commands/GenerateMacCommand.js +18 -41
- package/dist-es/commands/GenerateRandomCommand.js +18 -41
- package/dist-es/commands/GetKeyPolicyCommand.js +18 -41
- package/dist-es/commands/GetKeyRotationStatusCommand.js +18 -41
- package/dist-es/commands/GetParametersForImportCommand.js +18 -41
- package/dist-es/commands/GetPublicKeyCommand.js +18 -41
- package/dist-es/commands/ImportKeyMaterialCommand.js +18 -41
- package/dist-es/commands/ListAliasesCommand.js +18 -41
- package/dist-es/commands/ListGrantsCommand.js +18 -41
- package/dist-es/commands/ListKeyPoliciesCommand.js +18 -41
- package/dist-es/commands/ListKeysCommand.js +18 -41
- package/dist-es/commands/ListResourceTagsCommand.js +18 -41
- package/dist-es/commands/ListRetirableGrantsCommand.js +18 -41
- package/dist-es/commands/PutKeyPolicyCommand.js +18 -41
- package/dist-es/commands/ReEncryptCommand.js +18 -41
- package/dist-es/commands/ReplicateKeyCommand.js +18 -41
- package/dist-es/commands/RetireGrantCommand.js +18 -41
- package/dist-es/commands/RevokeGrantCommand.js +18 -41
- package/dist-es/commands/ScheduleKeyDeletionCommand.js +18 -41
- package/dist-es/commands/SignCommand.js +18 -41
- package/dist-es/commands/TagResourceCommand.js +18 -41
- package/dist-es/commands/UntagResourceCommand.js +18 -41
- package/dist-es/commands/UpdateAliasCommand.js +18 -41
- package/dist-es/commands/UpdateCustomKeyStoreCommand.js +18 -41
- package/dist-es/commands/UpdateKeyDescriptionCommand.js +18 -41
- package/dist-es/commands/UpdatePrimaryRegionCommand.js +18 -41
- package/dist-es/commands/VerifyCommand.js +18 -41
- package/dist-es/commands/VerifyMacCommand.js +18 -41
- package/dist-es/endpoint/EndpointParameters.js +6 -0
- package/dist-es/pagination/DescribeCustomKeyStoresPaginator.js +2 -23
- package/dist-es/pagination/ListAliasesPaginator.js +2 -23
- package/dist-es/pagination/ListGrantsPaginator.js +2 -23
- package/dist-es/pagination/ListKeyPoliciesPaginator.js +2 -23
- package/dist-es/pagination/ListKeysPaginator.js +2 -23
- package/dist-es/pagination/ListResourceTagsPaginator.js +2 -23
- package/dist-es/pagination/ListRetirableGrantsPaginator.js +2 -23
- package/dist-types/commands/CancelKeyDeletionCommand.d.ts +6 -21
- package/dist-types/commands/ConnectCustomKeyStoreCommand.d.ts +6 -21
- package/dist-types/commands/CreateAliasCommand.d.ts +6 -21
- package/dist-types/commands/CreateCustomKeyStoreCommand.d.ts +6 -21
- package/dist-types/commands/CreateGrantCommand.d.ts +6 -21
- package/dist-types/commands/CreateKeyCommand.d.ts +6 -21
- package/dist-types/commands/DecryptCommand.d.ts +6 -21
- package/dist-types/commands/DeleteAliasCommand.d.ts +6 -21
- package/dist-types/commands/DeleteCustomKeyStoreCommand.d.ts +6 -21
- package/dist-types/commands/DeleteImportedKeyMaterialCommand.d.ts +6 -21
- package/dist-types/commands/DescribeCustomKeyStoresCommand.d.ts +6 -21
- package/dist-types/commands/DescribeKeyCommand.d.ts +6 -21
- package/dist-types/commands/DisableKeyCommand.d.ts +6 -21
- package/dist-types/commands/DisableKeyRotationCommand.d.ts +6 -21
- package/dist-types/commands/DisconnectCustomKeyStoreCommand.d.ts +6 -21
- package/dist-types/commands/EnableKeyCommand.d.ts +6 -21
- package/dist-types/commands/EnableKeyRotationCommand.d.ts +6 -21
- package/dist-types/commands/EncryptCommand.d.ts +6 -21
- package/dist-types/commands/GenerateDataKeyCommand.d.ts +6 -21
- package/dist-types/commands/GenerateDataKeyPairCommand.d.ts +6 -21
- package/dist-types/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +6 -21
- package/dist-types/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +6 -21
- package/dist-types/commands/GenerateMacCommand.d.ts +6 -21
- package/dist-types/commands/GenerateRandomCommand.d.ts +6 -21
- package/dist-types/commands/GetKeyPolicyCommand.d.ts +6 -21
- package/dist-types/commands/GetKeyRotationStatusCommand.d.ts +6 -21
- package/dist-types/commands/GetParametersForImportCommand.d.ts +6 -21
- package/dist-types/commands/GetPublicKeyCommand.d.ts +6 -21
- package/dist-types/commands/ImportKeyMaterialCommand.d.ts +6 -21
- package/dist-types/commands/ListAliasesCommand.d.ts +6 -21
- package/dist-types/commands/ListGrantsCommand.d.ts +6 -21
- package/dist-types/commands/ListKeyPoliciesCommand.d.ts +6 -21
- package/dist-types/commands/ListKeysCommand.d.ts +6 -21
- package/dist-types/commands/ListResourceTagsCommand.d.ts +6 -21
- package/dist-types/commands/ListRetirableGrantsCommand.d.ts +6 -21
- package/dist-types/commands/PutKeyPolicyCommand.d.ts +6 -21
- package/dist-types/commands/ReEncryptCommand.d.ts +6 -21
- package/dist-types/commands/ReplicateKeyCommand.d.ts +6 -21
- package/dist-types/commands/RetireGrantCommand.d.ts +6 -21
- package/dist-types/commands/RevokeGrantCommand.d.ts +6 -21
- package/dist-types/commands/ScheduleKeyDeletionCommand.d.ts +6 -21
- package/dist-types/commands/SignCommand.d.ts +6 -21
- package/dist-types/commands/TagResourceCommand.d.ts +6 -21
- package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
- package/dist-types/commands/UpdateAliasCommand.d.ts +6 -21
- package/dist-types/commands/UpdateCustomKeyStoreCommand.d.ts +6 -21
- package/dist-types/commands/UpdateKeyDescriptionCommand.d.ts +6 -21
- package/dist-types/commands/UpdatePrimaryRegionCommand.d.ts +6 -21
- package/dist-types/commands/VerifyCommand.d.ts +6 -21
- package/dist-types/commands/VerifyMacCommand.d.ts +6 -21
- package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/pagination/DescribeCustomKeyStoresPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAliasesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListGrantsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListKeyPoliciesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListKeysPaginator.d.ts +1 -1
- package/dist-types/pagination/ListResourceTagsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRetirableGrantsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/commands/CancelKeyDeletionCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ConnectCustomKeyStoreCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/CreateAliasCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/CreateCustomKeyStoreCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/CreateGrantCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/CreateKeyCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DecryptCommand.d.ts +12 -23
- package/dist-types/ts3.4/commands/DeleteAliasCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DeleteCustomKeyStoreCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DeleteImportedKeyMaterialCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DescribeCustomKeyStoresCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/DescribeKeyCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DisableKeyCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DisableKeyRotationCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/DisconnectCustomKeyStoreCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/EnableKeyCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/EnableKeyRotationCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/EncryptCommand.d.ts +12 -23
- package/dist-types/ts3.4/commands/GenerateDataKeyCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GenerateDataKeyPairCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GenerateDataKeyPairWithoutPlaintextCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GenerateDataKeyWithoutPlaintextCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GenerateMacCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GenerateRandomCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetKeyPolicyCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/GetKeyRotationStatusCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GetParametersForImportCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/GetPublicKeyCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ImportKeyMaterialCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListAliasesCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListGrantsCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListKeyPoliciesCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListKeysCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListResourceTagsCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ListRetirableGrantsCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/PutKeyPolicyCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ReEncryptCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ReplicateKeyCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/RetireGrantCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/RevokeGrantCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/ScheduleKeyDeletionCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/SignCommand.d.ts +12 -23
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UpdateAliasCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/UpdateCustomKeyStoreCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/UpdateKeyDescriptionCommand.d.ts +12 -24
- package/dist-types/ts3.4/commands/UpdatePrimaryRegionCommand.d.ts +14 -23
- package/dist-types/ts3.4/commands/VerifyCommand.d.ts +12 -23
- package/dist-types/ts3.4/commands/VerifyMacCommand.d.ts +14 -23
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
- package/dist-types/ts3.4/pagination/DescribeCustomKeyStoresPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAliasesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListGrantsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListKeyPoliciesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListKeysPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListResourceTagsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRetirableGrantsPaginator.d.ts +3 -3
- package/package.json +11 -10
|
@@ -5,48 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
11
|
-
class UpdateCustomKeyStoreCommand extends smithy_client_1.Command
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const { logger } = configuration;
|
|
29
|
-
const clientName = "KMSClient";
|
|
30
|
-
const commandName = "UpdateCustomKeyStoreCommand";
|
|
31
|
-
const handlerExecutionContext = {
|
|
32
|
-
logger,
|
|
33
|
-
clientName,
|
|
34
|
-
commandName,
|
|
35
|
-
inputFilterSensitiveLog: models_0_1.UpdateCustomKeyStoreRequestFilterSensitiveLog,
|
|
36
|
-
outputFilterSensitiveLog: (_) => _,
|
|
37
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
38
|
-
service: "TrentService",
|
|
39
|
-
operation: "UpdateCustomKeyStore",
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
const { requestHandler } = configuration;
|
|
43
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
44
|
-
}
|
|
45
|
-
serialize(input, context) {
|
|
46
|
-
return (0, Aws_json1_1_1.se_UpdateCustomKeyStoreCommand)(input, context);
|
|
47
|
-
}
|
|
48
|
-
deserialize(output, context) {
|
|
49
|
-
return (0, Aws_json1_1_1.de_UpdateCustomKeyStoreCommand)(output, context);
|
|
50
|
-
}
|
|
11
|
+
class UpdateCustomKeyStoreCommand extends smithy_client_1.Command
|
|
12
|
+
.classBuilder()
|
|
13
|
+
.ep({
|
|
14
|
+
...EndpointParameters_1.commonParams,
|
|
15
|
+
})
|
|
16
|
+
.m(function (Command, cs, config, o) {
|
|
17
|
+
return [
|
|
18
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
19
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
20
|
+
];
|
|
21
|
+
})
|
|
22
|
+
.s("TrentService", "UpdateCustomKeyStore", {})
|
|
23
|
+
.n("KMSClient", "UpdateCustomKeyStoreCommand")
|
|
24
|
+
.f(models_0_1.UpdateCustomKeyStoreRequestFilterSensitiveLog, void 0)
|
|
25
|
+
.ser(Aws_json1_1_1.se_UpdateCustomKeyStoreCommand)
|
|
26
|
+
.de(Aws_json1_1_1.de_UpdateCustomKeyStoreCommand)
|
|
27
|
+
.build() {
|
|
51
28
|
}
|
|
52
29
|
exports.UpdateCustomKeyStoreCommand = UpdateCustomKeyStoreCommand;
|
|
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
10
|
-
class UpdateKeyDescriptionCommand extends smithy_client_1.Command
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const { logger } = configuration;
|
|
28
|
-
const clientName = "KMSClient";
|
|
29
|
-
const commandName = "UpdateKeyDescriptionCommand";
|
|
30
|
-
const handlerExecutionContext = {
|
|
31
|
-
logger,
|
|
32
|
-
clientName,
|
|
33
|
-
commandName,
|
|
34
|
-
inputFilterSensitiveLog: (_) => _,
|
|
35
|
-
outputFilterSensitiveLog: (_) => _,
|
|
36
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
-
service: "TrentService",
|
|
38
|
-
operation: "UpdateKeyDescription",
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
const { requestHandler } = configuration;
|
|
42
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
-
}
|
|
44
|
-
serialize(input, context) {
|
|
45
|
-
return (0, Aws_json1_1_1.se_UpdateKeyDescriptionCommand)(input, context);
|
|
46
|
-
}
|
|
47
|
-
deserialize(output, context) {
|
|
48
|
-
return (0, Aws_json1_1_1.de_UpdateKeyDescriptionCommand)(output, context);
|
|
49
|
-
}
|
|
10
|
+
class UpdateKeyDescriptionCommand extends smithy_client_1.Command
|
|
11
|
+
.classBuilder()
|
|
12
|
+
.ep({
|
|
13
|
+
...EndpointParameters_1.commonParams,
|
|
14
|
+
})
|
|
15
|
+
.m(function (Command, cs, config, o) {
|
|
16
|
+
return [
|
|
17
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
18
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
19
|
+
];
|
|
20
|
+
})
|
|
21
|
+
.s("TrentService", "UpdateKeyDescription", {})
|
|
22
|
+
.n("KMSClient", "UpdateKeyDescriptionCommand")
|
|
23
|
+
.f(void 0, void 0)
|
|
24
|
+
.ser(Aws_json1_1_1.se_UpdateKeyDescriptionCommand)
|
|
25
|
+
.de(Aws_json1_1_1.de_UpdateKeyDescriptionCommand)
|
|
26
|
+
.build() {
|
|
50
27
|
}
|
|
51
28
|
exports.UpdateKeyDescriptionCommand = UpdateKeyDescriptionCommand;
|
|
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
10
|
-
class UpdatePrimaryRegionCommand extends smithy_client_1.Command
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const { logger } = configuration;
|
|
28
|
-
const clientName = "KMSClient";
|
|
29
|
-
const commandName = "UpdatePrimaryRegionCommand";
|
|
30
|
-
const handlerExecutionContext = {
|
|
31
|
-
logger,
|
|
32
|
-
clientName,
|
|
33
|
-
commandName,
|
|
34
|
-
inputFilterSensitiveLog: (_) => _,
|
|
35
|
-
outputFilterSensitiveLog: (_) => _,
|
|
36
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
-
service: "TrentService",
|
|
38
|
-
operation: "UpdatePrimaryRegion",
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
const { requestHandler } = configuration;
|
|
42
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
-
}
|
|
44
|
-
serialize(input, context) {
|
|
45
|
-
return (0, Aws_json1_1_1.se_UpdatePrimaryRegionCommand)(input, context);
|
|
46
|
-
}
|
|
47
|
-
deserialize(output, context) {
|
|
48
|
-
return (0, Aws_json1_1_1.de_UpdatePrimaryRegionCommand)(output, context);
|
|
49
|
-
}
|
|
10
|
+
class UpdatePrimaryRegionCommand extends smithy_client_1.Command
|
|
11
|
+
.classBuilder()
|
|
12
|
+
.ep({
|
|
13
|
+
...EndpointParameters_1.commonParams,
|
|
14
|
+
})
|
|
15
|
+
.m(function (Command, cs, config, o) {
|
|
16
|
+
return [
|
|
17
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
18
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
19
|
+
];
|
|
20
|
+
})
|
|
21
|
+
.s("TrentService", "UpdatePrimaryRegion", {})
|
|
22
|
+
.n("KMSClient", "UpdatePrimaryRegionCommand")
|
|
23
|
+
.f(void 0, void 0)
|
|
24
|
+
.ser(Aws_json1_1_1.se_UpdatePrimaryRegionCommand)
|
|
25
|
+
.de(Aws_json1_1_1.de_UpdatePrimaryRegionCommand)
|
|
26
|
+
.build() {
|
|
50
27
|
}
|
|
51
28
|
exports.UpdatePrimaryRegionCommand = UpdatePrimaryRegionCommand;
|
|
@@ -5,48 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
11
|
-
class VerifyCommand extends smithy_client_1.Command
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const { logger } = configuration;
|
|
29
|
-
const clientName = "KMSClient";
|
|
30
|
-
const commandName = "VerifyCommand";
|
|
31
|
-
const handlerExecutionContext = {
|
|
32
|
-
logger,
|
|
33
|
-
clientName,
|
|
34
|
-
commandName,
|
|
35
|
-
inputFilterSensitiveLog: models_0_1.VerifyRequestFilterSensitiveLog,
|
|
36
|
-
outputFilterSensitiveLog: (_) => _,
|
|
37
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
38
|
-
service: "TrentService",
|
|
39
|
-
operation: "Verify",
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
const { requestHandler } = configuration;
|
|
43
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
44
|
-
}
|
|
45
|
-
serialize(input, context) {
|
|
46
|
-
return (0, Aws_json1_1_1.se_VerifyCommand)(input, context);
|
|
47
|
-
}
|
|
48
|
-
deserialize(output, context) {
|
|
49
|
-
return (0, Aws_json1_1_1.de_VerifyCommand)(output, context);
|
|
50
|
-
}
|
|
11
|
+
class VerifyCommand extends smithy_client_1.Command
|
|
12
|
+
.classBuilder()
|
|
13
|
+
.ep({
|
|
14
|
+
...EndpointParameters_1.commonParams,
|
|
15
|
+
})
|
|
16
|
+
.m(function (Command, cs, config, o) {
|
|
17
|
+
return [
|
|
18
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
19
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
20
|
+
];
|
|
21
|
+
})
|
|
22
|
+
.s("TrentService", "Verify", {})
|
|
23
|
+
.n("KMSClient", "VerifyCommand")
|
|
24
|
+
.f(models_0_1.VerifyRequestFilterSensitiveLog, void 0)
|
|
25
|
+
.ser(Aws_json1_1_1.se_VerifyCommand)
|
|
26
|
+
.de(Aws_json1_1_1.de_VerifyCommand)
|
|
27
|
+
.build() {
|
|
51
28
|
}
|
|
52
29
|
exports.VerifyCommand = VerifyCommand;
|
|
@@ -5,48 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
-
const
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
11
|
-
class VerifyMacCommand extends smithy_client_1.Command
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const { logger } = configuration;
|
|
29
|
-
const clientName = "KMSClient";
|
|
30
|
-
const commandName = "VerifyMacCommand";
|
|
31
|
-
const handlerExecutionContext = {
|
|
32
|
-
logger,
|
|
33
|
-
clientName,
|
|
34
|
-
commandName,
|
|
35
|
-
inputFilterSensitiveLog: models_0_1.VerifyMacRequestFilterSensitiveLog,
|
|
36
|
-
outputFilterSensitiveLog: (_) => _,
|
|
37
|
-
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
38
|
-
service: "TrentService",
|
|
39
|
-
operation: "VerifyMac",
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
const { requestHandler } = configuration;
|
|
43
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
44
|
-
}
|
|
45
|
-
serialize(input, context) {
|
|
46
|
-
return (0, Aws_json1_1_1.se_VerifyMacCommand)(input, context);
|
|
47
|
-
}
|
|
48
|
-
deserialize(output, context) {
|
|
49
|
-
return (0, Aws_json1_1_1.de_VerifyMacCommand)(output, context);
|
|
50
|
-
}
|
|
11
|
+
class VerifyMacCommand extends smithy_client_1.Command
|
|
12
|
+
.classBuilder()
|
|
13
|
+
.ep({
|
|
14
|
+
...EndpointParameters_1.commonParams,
|
|
15
|
+
})
|
|
16
|
+
.m(function (Command, cs, config, o) {
|
|
17
|
+
return [
|
|
18
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
19
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
20
|
+
];
|
|
21
|
+
})
|
|
22
|
+
.s("TrentService", "VerifyMac", {})
|
|
23
|
+
.n("KMSClient", "VerifyMacCommand")
|
|
24
|
+
.f(models_0_1.VerifyMacRequestFilterSensitiveLog, void 0)
|
|
25
|
+
.ser(Aws_json1_1_1.se_VerifyMacCommand)
|
|
26
|
+
.de(Aws_json1_1_1.de_VerifyMacCommand)
|
|
27
|
+
.build() {
|
|
51
28
|
}
|
|
52
29
|
exports.VerifyMacCommand = VerifyMacCommand;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveClientEndpointParameters = void 0;
|
|
3
|
+
exports.commonParams = exports.resolveClientEndpointParameters = void 0;
|
|
4
4
|
const resolveClientEndpointParameters = (options) => {
|
|
5
5
|
return {
|
|
6
6
|
...options,
|
|
@@ -10,3 +10,9 @@ const resolveClientEndpointParameters = (options) => {
|
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
|
|
13
|
+
exports.commonParams = {
|
|
14
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
15
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
16
|
+
Region: { type: "builtInParams", name: "region" },
|
|
17
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
|
+
};
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeCustomKeyStores = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const DescribeCustomKeyStoresCommand_1 = require("../commands/DescribeCustomKeyStoresCommand");
|
|
5
6
|
const KMSClient_1 = require("../KMSClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeCustomKeyStoresCommand_1.DescribeCustomKeyStoresCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeCustomKeyStores(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.Marker = token;
|
|
15
|
-
input["Limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof KMSClient_1.KMSClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected KMS | KMSClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextMarker;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateDescribeCustomKeyStores = paginateDescribeCustomKeyStores;
|
|
7
|
+
exports.paginateDescribeCustomKeyStores = (0, core_1.createPaginator)(KMSClient_1.KMSClient, DescribeCustomKeyStoresCommand_1.DescribeCustomKeyStoresCommand, "Marker", "NextMarker", "Limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAliases = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListAliasesCommand_1 = require("../commands/ListAliasesCommand");
|
|
5
6
|
const KMSClient_1 = require("../KMSClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAliasesCommand_1.ListAliasesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAliases(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.Marker = token;
|
|
15
|
-
input["Limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof KMSClient_1.KMSClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected KMS | KMSClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextMarker;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListAliases = paginateListAliases;
|
|
7
|
+
exports.paginateListAliases = (0, core_1.createPaginator)(KMSClient_1.KMSClient, ListAliasesCommand_1.ListAliasesCommand, "Marker", "NextMarker", "Limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListGrants = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListGrantsCommand_1 = require("../commands/ListGrantsCommand");
|
|
5
6
|
const KMSClient_1 = require("../KMSClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListGrantsCommand_1.ListGrantsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListGrants(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.Marker = token;
|
|
15
|
-
input["Limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof KMSClient_1.KMSClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected KMS | KMSClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextMarker;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListGrants = paginateListGrants;
|
|
7
|
+
exports.paginateListGrants = (0, core_1.createPaginator)(KMSClient_1.KMSClient, ListGrantsCommand_1.ListGrantsCommand, "Marker", "NextMarker", "Limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListKeyPolicies = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListKeyPoliciesCommand_1 = require("../commands/ListKeyPoliciesCommand");
|
|
5
6
|
const KMSClient_1 = require("../KMSClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListKeyPoliciesCommand_1.ListKeyPoliciesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListKeyPolicies(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.Marker = token;
|
|
15
|
-
input["Limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof KMSClient_1.KMSClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected KMS | KMSClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextMarker;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListKeyPolicies = paginateListKeyPolicies;
|
|
7
|
+
exports.paginateListKeyPolicies = (0, core_1.createPaginator)(KMSClient_1.KMSClient, ListKeyPoliciesCommand_1.ListKeyPoliciesCommand, "Marker", "NextMarker", "Limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListKeys = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListKeysCommand_1 = require("../commands/ListKeysCommand");
|
|
5
6
|
const KMSClient_1 = require("../KMSClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListKeysCommand_1.ListKeysCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListKeys(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.Marker = token;
|
|
15
|
-
input["Limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof KMSClient_1.KMSClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected KMS | KMSClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextMarker;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListKeys = paginateListKeys;
|
|
7
|
+
exports.paginateListKeys = (0, core_1.createPaginator)(KMSClient_1.KMSClient, ListKeysCommand_1.ListKeysCommand, "Marker", "NextMarker", "Limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListResourceTags = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListResourceTagsCommand_1 = require("../commands/ListResourceTagsCommand");
|
|
5
6
|
const KMSClient_1 = require("../KMSClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListResourceTagsCommand_1.ListResourceTagsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListResourceTags(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.Marker = token;
|
|
15
|
-
input["Limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof KMSClient_1.KMSClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected KMS | KMSClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextMarker;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListResourceTags = paginateListResourceTags;
|
|
7
|
+
exports.paginateListResourceTags = (0, core_1.createPaginator)(KMSClient_1.KMSClient, ListResourceTagsCommand_1.ListResourceTagsCommand, "Marker", "NextMarker", "Limit");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListRetirableGrants = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const ListRetirableGrantsCommand_1 = require("../commands/ListRetirableGrantsCommand");
|
|
5
6
|
const KMSClient_1 = require("../KMSClient");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListRetirableGrantsCommand_1.ListRetirableGrantsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListRetirableGrants(config, input, ...additionalArguments) {
|
|
10
|
-
let token = config.startingToken || undefined;
|
|
11
|
-
let hasNext = true;
|
|
12
|
-
let page;
|
|
13
|
-
while (hasNext) {
|
|
14
|
-
input.Marker = token;
|
|
15
|
-
input["Limit"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof KMSClient_1.KMSClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected KMS | KMSClient");
|
|
21
|
-
}
|
|
22
|
-
yield page;
|
|
23
|
-
const prevToken = token;
|
|
24
|
-
token = page.NextMarker;
|
|
25
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
-
}
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
exports.paginateListRetirableGrants = paginateListRetirableGrants;
|
|
7
|
+
exports.paginateListRetirableGrants = (0, core_1.createPaginator)(KMSClient_1.KMSClient, ListRetirableGrantsCommand_1.ListRetirableGrantsCommand, "Marker", "NextMarker", "Limit");
|