@aws-sdk/client-kms 3.552.0 → 3.555.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/README.md +16 -0
- package/dist-cjs/index.js +151 -1
- package/dist-es/KMS.js +4 -0
- package/dist-es/commands/ListKeyRotationsCommand.js +24 -0
- package/dist-es/commands/RotateKeyOnDemandCommand.js +24 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +16 -0
- package/dist-es/pagination/ListKeyRotationsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +83 -2
- package/dist-types/KMS.d.ts +14 -0
- package/dist-types/KMSClient.d.ts +4 -2
- package/dist-types/commands/CreateCustomKeyStoreCommand.d.ts +2 -2
- package/dist-types/commands/DisableKeyRotationCommand.d.ts +10 -0
- package/dist-types/commands/EnableKeyRotationCommand.d.ts +29 -7
- package/dist-types/commands/GetKeyRotationStatusCommand.d.ts +22 -6
- package/dist-types/commands/ListKeyRotationsCommand.d.ts +146 -0
- package/dist-types/commands/RotateKeyOnDemandCommand.d.ts +170 -0
- package/dist-types/commands/UpdateCustomKeyStoreCommand.d.ts +2 -2
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +194 -8
- package/dist-types/pagination/ListKeyRotationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +18 -0
- package/dist-types/ts3.4/KMS.d.ts +34 -0
- package/dist-types/ts3.4/KMSClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/ListKeyRotationsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/RotateKeyOnDemandCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +36 -0
- package/dist-types/ts3.4/pagination/ListKeyRotationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +24 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -553,6 +553,14 @@ ListKeyPolicies
|
|
|
553
553
|
|
|
554
554
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/kms/command/ListKeyPoliciesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kms/Interface/ListKeyPoliciesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kms/Interface/ListKeyPoliciesCommandOutput/)
|
|
555
555
|
|
|
556
|
+
</details>
|
|
557
|
+
<details>
|
|
558
|
+
<summary>
|
|
559
|
+
ListKeyRotations
|
|
560
|
+
</summary>
|
|
561
|
+
|
|
562
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/kms/command/ListKeyRotationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kms/Interface/ListKeyRotationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kms/Interface/ListKeyRotationsCommandOutput/)
|
|
563
|
+
|
|
556
564
|
</details>
|
|
557
565
|
<details>
|
|
558
566
|
<summary>
|
|
@@ -617,6 +625,14 @@ RevokeGrant
|
|
|
617
625
|
|
|
618
626
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/kms/command/RevokeGrantCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kms/Interface/RevokeGrantCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kms/Interface/RevokeGrantCommandOutput/)
|
|
619
627
|
|
|
628
|
+
</details>
|
|
629
|
+
<details>
|
|
630
|
+
<summary>
|
|
631
|
+
RotateKeyOnDemand
|
|
632
|
+
</summary>
|
|
633
|
+
|
|
634
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/kms/command/RotateKeyOnDemandCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kms/Interface/RotateKeyOnDemandCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kms/Interface/RotateKeyOnDemandCommandOutput/)
|
|
635
|
+
|
|
620
636
|
</details>
|
|
621
637
|
<details>
|
|
622
638
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -29,6 +29,7 @@ __export(src_exports, {
|
|
|
29
29
|
CloudHsmClusterNotActiveException: () => CloudHsmClusterNotActiveException,
|
|
30
30
|
CloudHsmClusterNotFoundException: () => CloudHsmClusterNotFoundException,
|
|
31
31
|
CloudHsmClusterNotRelatedException: () => CloudHsmClusterNotRelatedException,
|
|
32
|
+
ConflictException: () => ConflictException,
|
|
32
33
|
ConnectCustomKeyStoreCommand: () => ConnectCustomKeyStoreCommand,
|
|
33
34
|
ConnectionErrorCodeType: () => ConnectionErrorCodeType,
|
|
34
35
|
ConnectionStateType: () => ConnectionStateType,
|
|
@@ -112,6 +113,7 @@ __export(src_exports, {
|
|
|
112
113
|
ListAliasesCommand: () => ListAliasesCommand,
|
|
113
114
|
ListGrantsCommand: () => ListGrantsCommand,
|
|
114
115
|
ListKeyPoliciesCommand: () => ListKeyPoliciesCommand,
|
|
116
|
+
ListKeyRotationsCommand: () => ListKeyRotationsCommand,
|
|
115
117
|
ListKeysCommand: () => ListKeysCommand,
|
|
116
118
|
ListResourceTagsCommand: () => ListResourceTagsCommand,
|
|
117
119
|
ListRetirableGrantsCommand: () => ListRetirableGrantsCommand,
|
|
@@ -126,6 +128,8 @@ __export(src_exports, {
|
|
|
126
128
|
ReplicateKeyCommand: () => ReplicateKeyCommand,
|
|
127
129
|
RetireGrantCommand: () => RetireGrantCommand,
|
|
128
130
|
RevokeGrantCommand: () => RevokeGrantCommand,
|
|
131
|
+
RotateKeyOnDemandCommand: () => RotateKeyOnDemandCommand,
|
|
132
|
+
RotationType: () => RotationType,
|
|
129
133
|
ScheduleKeyDeletionCommand: () => ScheduleKeyDeletionCommand,
|
|
130
134
|
SignCommand: () => SignCommand,
|
|
131
135
|
SignRequestFilterSensitiveLog: () => SignRequestFilterSensitiveLog,
|
|
@@ -164,6 +168,7 @@ __export(src_exports, {
|
|
|
164
168
|
paginateListAliases: () => paginateListAliases,
|
|
165
169
|
paginateListGrants: () => paginateListGrants,
|
|
166
170
|
paginateListKeyPolicies: () => paginateListKeyPolicies,
|
|
171
|
+
paginateListKeyRotations: () => paginateListKeyRotations,
|
|
167
172
|
paginateListKeys: () => paginateListKeys,
|
|
168
173
|
paginateListResourceTags: () => paginateListResourceTags,
|
|
169
174
|
paginateListRetirableGrants: () => paginateListRetirableGrants
|
|
@@ -537,6 +542,23 @@ var _CloudHsmClusterNotRelatedException = class _CloudHsmClusterNotRelatedExcept
|
|
|
537
542
|
};
|
|
538
543
|
__name(_CloudHsmClusterNotRelatedException, "CloudHsmClusterNotRelatedException");
|
|
539
544
|
var CloudHsmClusterNotRelatedException = _CloudHsmClusterNotRelatedException;
|
|
545
|
+
var _ConflictException = class _ConflictException extends KMSServiceException {
|
|
546
|
+
/**
|
|
547
|
+
* @internal
|
|
548
|
+
*/
|
|
549
|
+
constructor(opts) {
|
|
550
|
+
super({
|
|
551
|
+
name: "ConflictException",
|
|
552
|
+
$fault: "client",
|
|
553
|
+
...opts
|
|
554
|
+
});
|
|
555
|
+
this.name = "ConflictException";
|
|
556
|
+
this.$fault = "client";
|
|
557
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
558
|
+
}
|
|
559
|
+
};
|
|
560
|
+
__name(_ConflictException, "ConflictException");
|
|
561
|
+
var ConflictException = _ConflictException;
|
|
540
562
|
var _CustomKeyStoreInvalidStateException = class _CustomKeyStoreInvalidStateException extends KMSServiceException {
|
|
541
563
|
/**
|
|
542
564
|
* @internal
|
|
@@ -1311,6 +1333,10 @@ var _KMSInvalidSignatureException = class _KMSInvalidSignatureException extends
|
|
|
1311
1333
|
};
|
|
1312
1334
|
__name(_KMSInvalidSignatureException, "KMSInvalidSignatureException");
|
|
1313
1335
|
var KMSInvalidSignatureException = _KMSInvalidSignatureException;
|
|
1336
|
+
var RotationType = {
|
|
1337
|
+
AUTOMATIC: "AUTOMATIC",
|
|
1338
|
+
ON_DEMAND: "ON_DEMAND"
|
|
1339
|
+
};
|
|
1314
1340
|
var MessageType = {
|
|
1315
1341
|
DIGEST: "DIGEST",
|
|
1316
1342
|
RAW: "RAW"
|
|
@@ -1588,6 +1614,12 @@ var se_ListKeyPoliciesCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
1588
1614
|
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
1589
1615
|
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
1590
1616
|
}, "se_ListKeyPoliciesCommand");
|
|
1617
|
+
var se_ListKeyRotationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1618
|
+
const headers = sharedHeaders("ListKeyRotations");
|
|
1619
|
+
let body;
|
|
1620
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
1621
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
1622
|
+
}, "se_ListKeyRotationsCommand");
|
|
1591
1623
|
var se_ListKeysCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1592
1624
|
const headers = sharedHeaders("ListKeys");
|
|
1593
1625
|
let body;
|
|
@@ -1636,6 +1668,12 @@ var se_RevokeGrantCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1636
1668
|
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
1637
1669
|
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
1638
1670
|
}, "se_RevokeGrantCommand");
|
|
1671
|
+
var se_RotateKeyOnDemandCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1672
|
+
const headers = sharedHeaders("RotateKeyOnDemand");
|
|
1673
|
+
let body;
|
|
1674
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
1675
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
1676
|
+
}, "se_RotateKeyOnDemandCommand");
|
|
1639
1677
|
var se_ScheduleKeyDeletionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1640
1678
|
const headers = sharedHeaders("ScheduleKeyDeletion");
|
|
1641
1679
|
let body;
|
|
@@ -2006,7 +2044,7 @@ var de_GetKeyRotationStatusCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2006
2044
|
}
|
|
2007
2045
|
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2008
2046
|
let contents = {};
|
|
2009
|
-
contents = (
|
|
2047
|
+
contents = de_GetKeyRotationStatusResponse(data, context);
|
|
2010
2048
|
const response = {
|
|
2011
2049
|
$metadata: deserializeMetadata(output),
|
|
2012
2050
|
...contents
|
|
@@ -2091,6 +2129,19 @@ var de_ListKeyPoliciesCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2091
2129
|
};
|
|
2092
2130
|
return response;
|
|
2093
2131
|
}, "de_ListKeyPoliciesCommand");
|
|
2132
|
+
var de_ListKeyRotationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2133
|
+
if (output.statusCode >= 300) {
|
|
2134
|
+
return de_CommandError(output, context);
|
|
2135
|
+
}
|
|
2136
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2137
|
+
let contents = {};
|
|
2138
|
+
contents = de_ListKeyRotationsResponse(data, context);
|
|
2139
|
+
const response = {
|
|
2140
|
+
$metadata: deserializeMetadata(output),
|
|
2141
|
+
...contents
|
|
2142
|
+
};
|
|
2143
|
+
return response;
|
|
2144
|
+
}, "de_ListKeyRotationsCommand");
|
|
2094
2145
|
var de_ListKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2095
2146
|
if (output.statusCode >= 300) {
|
|
2096
2147
|
return de_CommandError(output, context);
|
|
@@ -2186,6 +2237,19 @@ var de_RevokeGrantCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2186
2237
|
};
|
|
2187
2238
|
return response;
|
|
2188
2239
|
}, "de_RevokeGrantCommand");
|
|
2240
|
+
var de_RotateKeyOnDemandCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2241
|
+
if (output.statusCode >= 300) {
|
|
2242
|
+
return de_CommandError(output, context);
|
|
2243
|
+
}
|
|
2244
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2245
|
+
let contents = {};
|
|
2246
|
+
contents = (0, import_smithy_client._json)(data);
|
|
2247
|
+
const response = {
|
|
2248
|
+
$metadata: deserializeMetadata(output),
|
|
2249
|
+
...contents
|
|
2250
|
+
};
|
|
2251
|
+
return response;
|
|
2252
|
+
}, "de_RotateKeyOnDemandCommand");
|
|
2189
2253
|
var de_ScheduleKeyDeletionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2190
2254
|
if (output.statusCode >= 300) {
|
|
2191
2255
|
return de_CommandError(output, context);
|
|
@@ -2440,6 +2504,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2440
2504
|
case "InvalidGrantIdException":
|
|
2441
2505
|
case "com.amazonaws.kms#InvalidGrantIdException":
|
|
2442
2506
|
throw await de_InvalidGrantIdExceptionRes(parsedOutput, context);
|
|
2507
|
+
case "ConflictException":
|
|
2508
|
+
case "com.amazonaws.kms#ConflictException":
|
|
2509
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2443
2510
|
case "CloudHsmClusterNotRelatedException":
|
|
2444
2511
|
case "com.amazonaws.kms#CloudHsmClusterNotRelatedException":
|
|
2445
2512
|
throw await de_CloudHsmClusterNotRelatedExceptionRes(parsedOutput, context);
|
|
@@ -2512,6 +2579,15 @@ var de_CloudHsmClusterNotRelatedExceptionRes = /* @__PURE__ */ __name(async (par
|
|
|
2512
2579
|
});
|
|
2513
2580
|
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
2514
2581
|
}, "de_CloudHsmClusterNotRelatedExceptionRes");
|
|
2582
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2583
|
+
const body = parsedOutput.body;
|
|
2584
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
2585
|
+
const exception = new ConflictException({
|
|
2586
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2587
|
+
...deserialized
|
|
2588
|
+
});
|
|
2589
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
2590
|
+
}, "de_ConflictExceptionRes");
|
|
2515
2591
|
var de_CustomKeyStoreHasCMKsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2516
2592
|
const body = parsedOutput.body;
|
|
2517
2593
|
const deserialized = (0, import_smithy_client._json)(body);
|
|
@@ -3109,6 +3185,15 @@ var de_GenerateRandomResponse = /* @__PURE__ */ __name((output, context) => {
|
|
|
3109
3185
|
Plaintext: context.base64Decoder
|
|
3110
3186
|
});
|
|
3111
3187
|
}, "de_GenerateRandomResponse");
|
|
3188
|
+
var de_GetKeyRotationStatusResponse = /* @__PURE__ */ __name((output, context) => {
|
|
3189
|
+
return (0, import_smithy_client.take)(output, {
|
|
3190
|
+
KeyId: import_smithy_client.expectString,
|
|
3191
|
+
KeyRotationEnabled: import_smithy_client.expectBoolean,
|
|
3192
|
+
NextRotationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
3193
|
+
OnDemandRotationStartDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
3194
|
+
RotationPeriodInDays: import_smithy_client.expectInt32
|
|
3195
|
+
});
|
|
3196
|
+
}, "de_GetKeyRotationStatusResponse");
|
|
3112
3197
|
var de_GetParametersForImportResponse = /* @__PURE__ */ __name((output, context) => {
|
|
3113
3198
|
return (0, import_smithy_client.take)(output, {
|
|
3114
3199
|
ImportToken: context.base64Decoder,
|
|
@@ -3189,6 +3274,13 @@ var de_ListGrantsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
|
3189
3274
|
Truncated: import_smithy_client.expectBoolean
|
|
3190
3275
|
});
|
|
3191
3276
|
}, "de_ListGrantsResponse");
|
|
3277
|
+
var de_ListKeyRotationsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
3278
|
+
return (0, import_smithy_client.take)(output, {
|
|
3279
|
+
NextMarker: import_smithy_client.expectString,
|
|
3280
|
+
Rotations: (_) => de_RotationsList(_, context),
|
|
3281
|
+
Truncated: import_smithy_client.expectBoolean
|
|
3282
|
+
});
|
|
3283
|
+
}, "de_ListKeyRotationsResponse");
|
|
3192
3284
|
var de_ReEncryptResponse = /* @__PURE__ */ __name((output, context) => {
|
|
3193
3285
|
return (0, import_smithy_client.take)(output, {
|
|
3194
3286
|
CiphertextBlob: context.base64Decoder,
|
|
@@ -3205,6 +3297,19 @@ var de_ReplicateKeyResponse = /* @__PURE__ */ __name((output, context) => {
|
|
|
3205
3297
|
ReplicaTags: import_smithy_client._json
|
|
3206
3298
|
});
|
|
3207
3299
|
}, "de_ReplicateKeyResponse");
|
|
3300
|
+
var de_RotationsList = /* @__PURE__ */ __name((output, context) => {
|
|
3301
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
3302
|
+
return de_RotationsListEntry(entry, context);
|
|
3303
|
+
});
|
|
3304
|
+
return retVal;
|
|
3305
|
+
}, "de_RotationsList");
|
|
3306
|
+
var de_RotationsListEntry = /* @__PURE__ */ __name((output, context) => {
|
|
3307
|
+
return (0, import_smithy_client.take)(output, {
|
|
3308
|
+
KeyId: import_smithy_client.expectString,
|
|
3309
|
+
RotationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
3310
|
+
RotationType: import_smithy_client.expectString
|
|
3311
|
+
});
|
|
3312
|
+
}, "de_RotationsListEntry");
|
|
3208
3313
|
var de_ScheduleKeyDeletionResponse = /* @__PURE__ */ __name((output, context) => {
|
|
3209
3314
|
return (0, import_smithy_client.take)(output, {
|
|
3210
3315
|
DeletionDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
@@ -3793,6 +3898,23 @@ var _ListKeyPoliciesCommand = class _ListKeyPoliciesCommand extends import_smith
|
|
|
3793
3898
|
__name(_ListKeyPoliciesCommand, "ListKeyPoliciesCommand");
|
|
3794
3899
|
var ListKeyPoliciesCommand = _ListKeyPoliciesCommand;
|
|
3795
3900
|
|
|
3901
|
+
// src/commands/ListKeyRotationsCommand.ts
|
|
3902
|
+
|
|
3903
|
+
|
|
3904
|
+
|
|
3905
|
+
|
|
3906
|
+
var _ListKeyRotationsCommand = class _ListKeyRotationsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3907
|
+
...commonParams
|
|
3908
|
+
}).m(function(Command, cs, config, o) {
|
|
3909
|
+
return [
|
|
3910
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3911
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3912
|
+
];
|
|
3913
|
+
}).s("TrentService", "ListKeyRotations", {}).n("KMSClient", "ListKeyRotationsCommand").f(void 0, void 0).ser(se_ListKeyRotationsCommand).de(de_ListKeyRotationsCommand).build() {
|
|
3914
|
+
};
|
|
3915
|
+
__name(_ListKeyRotationsCommand, "ListKeyRotationsCommand");
|
|
3916
|
+
var ListKeyRotationsCommand = _ListKeyRotationsCommand;
|
|
3917
|
+
|
|
3796
3918
|
// src/commands/ListKeysCommand.ts
|
|
3797
3919
|
|
|
3798
3920
|
|
|
@@ -3929,6 +4051,23 @@ var _RevokeGrantCommand = class _RevokeGrantCommand extends import_smithy_client
|
|
|
3929
4051
|
__name(_RevokeGrantCommand, "RevokeGrantCommand");
|
|
3930
4052
|
var RevokeGrantCommand = _RevokeGrantCommand;
|
|
3931
4053
|
|
|
4054
|
+
// src/commands/RotateKeyOnDemandCommand.ts
|
|
4055
|
+
|
|
4056
|
+
|
|
4057
|
+
|
|
4058
|
+
|
|
4059
|
+
var _RotateKeyOnDemandCommand = class _RotateKeyOnDemandCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
4060
|
+
...commonParams
|
|
4061
|
+
}).m(function(Command, cs, config, o) {
|
|
4062
|
+
return [
|
|
4063
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
4064
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
4065
|
+
];
|
|
4066
|
+
}).s("TrentService", "RotateKeyOnDemand", {}).n("KMSClient", "RotateKeyOnDemandCommand").f(void 0, void 0).ser(se_RotateKeyOnDemandCommand).de(de_RotateKeyOnDemandCommand).build() {
|
|
4067
|
+
};
|
|
4068
|
+
__name(_RotateKeyOnDemandCommand, "RotateKeyOnDemandCommand");
|
|
4069
|
+
var RotateKeyOnDemandCommand = _RotateKeyOnDemandCommand;
|
|
4070
|
+
|
|
3932
4071
|
// src/commands/ScheduleKeyDeletionCommand.ts
|
|
3933
4072
|
|
|
3934
4073
|
|
|
@@ -4133,6 +4272,7 @@ var commands = {
|
|
|
4133
4272
|
ListAliasesCommand,
|
|
4134
4273
|
ListGrantsCommand,
|
|
4135
4274
|
ListKeyPoliciesCommand,
|
|
4275
|
+
ListKeyRotationsCommand,
|
|
4136
4276
|
ListKeysCommand,
|
|
4137
4277
|
ListResourceTagsCommand,
|
|
4138
4278
|
ListRetirableGrantsCommand,
|
|
@@ -4141,6 +4281,7 @@ var commands = {
|
|
|
4141
4281
|
ReplicateKeyCommand,
|
|
4142
4282
|
RetireGrantCommand,
|
|
4143
4283
|
RevokeGrantCommand,
|
|
4284
|
+
RotateKeyOnDemandCommand,
|
|
4144
4285
|
ScheduleKeyDeletionCommand,
|
|
4145
4286
|
SignCommand,
|
|
4146
4287
|
TagResourceCommand,
|
|
@@ -4174,6 +4315,10 @@ var paginateListGrants = (0, import_core.createPaginator)(KMSClient, ListGrantsC
|
|
|
4174
4315
|
|
|
4175
4316
|
var paginateListKeyPolicies = (0, import_core.createPaginator)(KMSClient, ListKeyPoliciesCommand, "Marker", "NextMarker", "Limit");
|
|
4176
4317
|
|
|
4318
|
+
// src/pagination/ListKeyRotationsPaginator.ts
|
|
4319
|
+
|
|
4320
|
+
var paginateListKeyRotations = (0, import_core.createPaginator)(KMSClient, ListKeyRotationsCommand, "Marker", "NextMarker", "Limit");
|
|
4321
|
+
|
|
4177
4322
|
// src/pagination/ListKeysPaginator.ts
|
|
4178
4323
|
|
|
4179
4324
|
var paginateListKeys = (0, import_core.createPaginator)(KMSClient, ListKeysCommand, "Marker", "NextMarker", "Limit");
|
|
@@ -4225,6 +4370,7 @@ var paginateListRetirableGrants = (0, import_core.createPaginator)(KMSClient, Li
|
|
|
4225
4370
|
ListAliasesCommand,
|
|
4226
4371
|
ListGrantsCommand,
|
|
4227
4372
|
ListKeyPoliciesCommand,
|
|
4373
|
+
ListKeyRotationsCommand,
|
|
4228
4374
|
ListKeysCommand,
|
|
4229
4375
|
ListResourceTagsCommand,
|
|
4230
4376
|
ListRetirableGrantsCommand,
|
|
@@ -4233,6 +4379,7 @@ var paginateListRetirableGrants = (0, import_core.createPaginator)(KMSClient, Li
|
|
|
4233
4379
|
ReplicateKeyCommand,
|
|
4234
4380
|
RetireGrantCommand,
|
|
4235
4381
|
RevokeGrantCommand,
|
|
4382
|
+
RotateKeyOnDemandCommand,
|
|
4236
4383
|
ScheduleKeyDeletionCommand,
|
|
4237
4384
|
SignCommand,
|
|
4238
4385
|
TagResourceCommand,
|
|
@@ -4247,6 +4394,7 @@ var paginateListRetirableGrants = (0, import_core.createPaginator)(KMSClient, Li
|
|
|
4247
4394
|
paginateListAliases,
|
|
4248
4395
|
paginateListGrants,
|
|
4249
4396
|
paginateListKeyPolicies,
|
|
4397
|
+
paginateListKeyRotations,
|
|
4250
4398
|
paginateListKeys,
|
|
4251
4399
|
paginateListResourceTags,
|
|
4252
4400
|
paginateListRetirableGrants,
|
|
@@ -4262,6 +4410,7 @@ var paginateListRetirableGrants = (0, import_core.createPaginator)(KMSClient, Li
|
|
|
4262
4410
|
CloudHsmClusterNotActiveException,
|
|
4263
4411
|
CloudHsmClusterNotFoundException,
|
|
4264
4412
|
CloudHsmClusterNotRelatedException,
|
|
4413
|
+
ConflictException,
|
|
4265
4414
|
CustomKeyStoreInvalidStateException,
|
|
4266
4415
|
CustomKeyStoreNotFoundException,
|
|
4267
4416
|
ConnectionErrorCodeType,
|
|
@@ -4318,6 +4467,7 @@ var paginateListRetirableGrants = (0, import_core.createPaginator)(KMSClient, Li
|
|
|
4318
4467
|
InvalidGrantIdException,
|
|
4319
4468
|
KMSInvalidMacException,
|
|
4320
4469
|
KMSInvalidSignatureException,
|
|
4470
|
+
RotationType,
|
|
4321
4471
|
MessageType,
|
|
4322
4472
|
XksProxyAuthenticationCredentialTypeFilterSensitiveLog,
|
|
4323
4473
|
CreateCustomKeyStoreRequestFilterSensitiveLog,
|
package/dist-es/KMS.js
CHANGED
|
@@ -31,6 +31,7 @@ import { ImportKeyMaterialCommand, } from "./commands/ImportKeyMaterialCommand";
|
|
|
31
31
|
import { ListAliasesCommand } from "./commands/ListAliasesCommand";
|
|
32
32
|
import { ListGrantsCommand } from "./commands/ListGrantsCommand";
|
|
33
33
|
import { ListKeyPoliciesCommand, } from "./commands/ListKeyPoliciesCommand";
|
|
34
|
+
import { ListKeyRotationsCommand, } from "./commands/ListKeyRotationsCommand";
|
|
34
35
|
import { ListKeysCommand } from "./commands/ListKeysCommand";
|
|
35
36
|
import { ListResourceTagsCommand, } from "./commands/ListResourceTagsCommand";
|
|
36
37
|
import { ListRetirableGrantsCommand, } from "./commands/ListRetirableGrantsCommand";
|
|
@@ -39,6 +40,7 @@ import { ReEncryptCommand } from "./commands/ReEncryptCommand";
|
|
|
39
40
|
import { ReplicateKeyCommand, } from "./commands/ReplicateKeyCommand";
|
|
40
41
|
import { RetireGrantCommand } from "./commands/RetireGrantCommand";
|
|
41
42
|
import { RevokeGrantCommand } from "./commands/RevokeGrantCommand";
|
|
43
|
+
import { RotateKeyOnDemandCommand, } from "./commands/RotateKeyOnDemandCommand";
|
|
42
44
|
import { ScheduleKeyDeletionCommand, } from "./commands/ScheduleKeyDeletionCommand";
|
|
43
45
|
import { SignCommand } from "./commands/SignCommand";
|
|
44
46
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
@@ -83,6 +85,7 @@ const commands = {
|
|
|
83
85
|
ListAliasesCommand,
|
|
84
86
|
ListGrantsCommand,
|
|
85
87
|
ListKeyPoliciesCommand,
|
|
88
|
+
ListKeyRotationsCommand,
|
|
86
89
|
ListKeysCommand,
|
|
87
90
|
ListResourceTagsCommand,
|
|
88
91
|
ListRetirableGrantsCommand,
|
|
@@ -91,6 +94,7 @@ const commands = {
|
|
|
91
94
|
ReplicateKeyCommand,
|
|
92
95
|
RetireGrantCommand,
|
|
93
96
|
RevokeGrantCommand,
|
|
97
|
+
RotateKeyOnDemandCommand,
|
|
94
98
|
ScheduleKeyDeletionCommand,
|
|
95
99
|
SignCommand,
|
|
96
100
|
TagResourceCommand,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_ListKeyRotationsCommand, se_ListKeyRotationsCommand } from "../protocols/Aws_json1_1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListKeyRotationsCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("TrentService", "ListKeyRotations", {})
|
|
19
|
+
.n("KMSClient", "ListKeyRotationsCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_ListKeyRotationsCommand)
|
|
22
|
+
.de(de_ListKeyRotationsCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_RotateKeyOnDemandCommand, se_RotateKeyOnDemandCommand } from "../protocols/Aws_json1_1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class RotateKeyOnDemandCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("TrentService", "RotateKeyOnDemand", {})
|
|
19
|
+
.n("KMSClient", "RotateKeyOnDemandCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_RotateKeyOnDemandCommand)
|
|
22
|
+
.de(de_RotateKeyOnDemandCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -30,6 +30,7 @@ export * from "./ImportKeyMaterialCommand";
|
|
|
30
30
|
export * from "./ListAliasesCommand";
|
|
31
31
|
export * from "./ListGrantsCommand";
|
|
32
32
|
export * from "./ListKeyPoliciesCommand";
|
|
33
|
+
export * from "./ListKeyRotationsCommand";
|
|
33
34
|
export * from "./ListKeysCommand";
|
|
34
35
|
export * from "./ListResourceTagsCommand";
|
|
35
36
|
export * from "./ListRetirableGrantsCommand";
|
|
@@ -38,6 +39,7 @@ export * from "./ReEncryptCommand";
|
|
|
38
39
|
export * from "./ReplicateKeyCommand";
|
|
39
40
|
export * from "./RetireGrantCommand";
|
|
40
41
|
export * from "./RevokeGrantCommand";
|
|
42
|
+
export * from "./RotateKeyOnDemandCommand";
|
|
41
43
|
export * from "./ScheduleKeyDeletionCommand";
|
|
42
44
|
export * from "./SignCommand";
|
|
43
45
|
export * from "./TagResourceCommand";
|
|
@@ -139,6 +139,18 @@ export class CloudHsmClusterNotRelatedException extends __BaseException {
|
|
|
139
139
|
Object.setPrototypeOf(this, CloudHsmClusterNotRelatedException.prototype);
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
+
export class ConflictException extends __BaseException {
|
|
143
|
+
constructor(opts) {
|
|
144
|
+
super({
|
|
145
|
+
name: "ConflictException",
|
|
146
|
+
$fault: "client",
|
|
147
|
+
...opts,
|
|
148
|
+
});
|
|
149
|
+
this.name = "ConflictException";
|
|
150
|
+
this.$fault = "client";
|
|
151
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
142
154
|
export class CustomKeyStoreInvalidStateException extends __BaseException {
|
|
143
155
|
constructor(opts) {
|
|
144
156
|
super({
|
|
@@ -733,6 +745,10 @@ export class KMSInvalidSignatureException extends __BaseException {
|
|
|
733
745
|
Object.setPrototypeOf(this, KMSInvalidSignatureException.prototype);
|
|
734
746
|
}
|
|
735
747
|
}
|
|
748
|
+
export const RotationType = {
|
|
749
|
+
AUTOMATIC: "AUTOMATIC",
|
|
750
|
+
ON_DEMAND: "ON_DEMAND",
|
|
751
|
+
};
|
|
736
752
|
export const MessageType = {
|
|
737
753
|
DIGEST: "DIGEST",
|
|
738
754
|
RAW: "RAW",
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListKeyRotationsCommand, } from "../commands/ListKeyRotationsCommand";
|
|
3
|
+
import { KMSClient } from "../KMSClient";
|
|
4
|
+
export const paginateListKeyRotations = createPaginator(KMSClient, ListKeyRotationsCommand, "Marker", "NextMarker", "Limit");
|
|
@@ -3,6 +3,7 @@ export * from "./Interfaces";
|
|
|
3
3
|
export * from "./ListAliasesPaginator";
|
|
4
4
|
export * from "./ListGrantsPaginator";
|
|
5
5
|
export * from "./ListKeyPoliciesPaginator";
|
|
6
|
+
export * from "./ListKeyRotationsPaginator";
|
|
6
7
|
export * from "./ListKeysPaginator";
|
|
7
8
|
export * from "./ListResourceTagsPaginator";
|
|
8
9
|
export * from "./ListRetirableGrantsPaginator";
|
|
@@ -2,7 +2,7 @@ import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody a
|
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { KMSServiceException as __BaseException } from "../models/KMSServiceException";
|
|
5
|
-
import { AlreadyExistsException, CloudHsmClusterInUseException, CloudHsmClusterInvalidConfigurationException, CloudHsmClusterNotActiveException, CloudHsmClusterNotFoundException, CloudHsmClusterNotRelatedException, CustomKeyStoreHasCMKsException, CustomKeyStoreInvalidStateException, CustomKeyStoreNameInUseException, CustomKeyStoreNotFoundException, DependencyTimeoutException, DisabledException, DryRunOperationException, ExpiredImportTokenException, IncorrectKeyException, IncorrectKeyMaterialException, IncorrectTrustAnchorException, InvalidAliasNameException, InvalidArnException, InvalidCiphertextException, InvalidGrantIdException, InvalidGrantTokenException, InvalidImportTokenException, InvalidKeyUsageException, InvalidMarkerException, KeyUnavailableException, KMSInternalException, KMSInvalidMacException, KMSInvalidSignatureException, KMSInvalidStateException, LimitExceededException, MalformedPolicyDocumentException, NotFoundException, TagException, UnsupportedOperationException, XksKeyAlreadyInUseException, XksKeyInvalidConfigurationException, XksKeyNotFoundException, XksProxyIncorrectAuthenticationCredentialException, XksProxyInvalidConfigurationException, XksProxyInvalidResponseException, XksProxyUriEndpointInUseException, XksProxyUriInUseException, XksProxyUriUnreachableException, XksProxyVpcEndpointServiceInUseException, XksProxyVpcEndpointServiceInvalidConfigurationException, XksProxyVpcEndpointServiceNotFoundException, } from "../models/models_0";
|
|
5
|
+
import { AlreadyExistsException, CloudHsmClusterInUseException, CloudHsmClusterInvalidConfigurationException, CloudHsmClusterNotActiveException, CloudHsmClusterNotFoundException, CloudHsmClusterNotRelatedException, ConflictException, CustomKeyStoreHasCMKsException, CustomKeyStoreInvalidStateException, CustomKeyStoreNameInUseException, CustomKeyStoreNotFoundException, DependencyTimeoutException, DisabledException, DryRunOperationException, ExpiredImportTokenException, IncorrectKeyException, IncorrectKeyMaterialException, IncorrectTrustAnchorException, InvalidAliasNameException, InvalidArnException, InvalidCiphertextException, InvalidGrantIdException, InvalidGrantTokenException, InvalidImportTokenException, InvalidKeyUsageException, InvalidMarkerException, KeyUnavailableException, KMSInternalException, KMSInvalidMacException, KMSInvalidSignatureException, KMSInvalidStateException, LimitExceededException, MalformedPolicyDocumentException, NotFoundException, TagException, UnsupportedOperationException, XksKeyAlreadyInUseException, XksKeyInvalidConfigurationException, XksKeyNotFoundException, XksProxyIncorrectAuthenticationCredentialException, XksProxyInvalidConfigurationException, XksProxyInvalidResponseException, XksProxyUriEndpointInUseException, XksProxyUriInUseException, XksProxyUriUnreachableException, XksProxyVpcEndpointServiceInUseException, XksProxyVpcEndpointServiceInvalidConfigurationException, XksProxyVpcEndpointServiceNotFoundException, } from "../models/models_0";
|
|
6
6
|
export const se_CancelKeyDeletionCommand = async (input, context) => {
|
|
7
7
|
const headers = sharedHeaders("CancelKeyDeletion");
|
|
8
8
|
let body;
|
|
@@ -195,6 +195,12 @@ export const se_ListKeyPoliciesCommand = async (input, context) => {
|
|
|
195
195
|
body = JSON.stringify(_json(input));
|
|
196
196
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
197
|
};
|
|
198
|
+
export const se_ListKeyRotationsCommand = async (input, context) => {
|
|
199
|
+
const headers = sharedHeaders("ListKeyRotations");
|
|
200
|
+
let body;
|
|
201
|
+
body = JSON.stringify(_json(input));
|
|
202
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
|
+
};
|
|
198
204
|
export const se_ListKeysCommand = async (input, context) => {
|
|
199
205
|
const headers = sharedHeaders("ListKeys");
|
|
200
206
|
let body;
|
|
@@ -243,6 +249,12 @@ export const se_RevokeGrantCommand = async (input, context) => {
|
|
|
243
249
|
body = JSON.stringify(_json(input));
|
|
244
250
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
245
251
|
};
|
|
252
|
+
export const se_RotateKeyOnDemandCommand = async (input, context) => {
|
|
253
|
+
const headers = sharedHeaders("RotateKeyOnDemand");
|
|
254
|
+
let body;
|
|
255
|
+
body = JSON.stringify(_json(input));
|
|
256
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
|
+
};
|
|
246
258
|
export const se_ScheduleKeyDeletionCommand = async (input, context) => {
|
|
247
259
|
const headers = sharedHeaders("ScheduleKeyDeletion");
|
|
248
260
|
let body;
|
|
@@ -613,7 +625,7 @@ export const de_GetKeyRotationStatusCommand = async (output, context) => {
|
|
|
613
625
|
}
|
|
614
626
|
const data = await parseBody(output.body, context);
|
|
615
627
|
let contents = {};
|
|
616
|
-
contents =
|
|
628
|
+
contents = de_GetKeyRotationStatusResponse(data, context);
|
|
617
629
|
const response = {
|
|
618
630
|
$metadata: deserializeMetadata(output),
|
|
619
631
|
...contents,
|
|
@@ -698,6 +710,19 @@ export const de_ListKeyPoliciesCommand = async (output, context) => {
|
|
|
698
710
|
};
|
|
699
711
|
return response;
|
|
700
712
|
};
|
|
713
|
+
export const de_ListKeyRotationsCommand = async (output, context) => {
|
|
714
|
+
if (output.statusCode >= 300) {
|
|
715
|
+
return de_CommandError(output, context);
|
|
716
|
+
}
|
|
717
|
+
const data = await parseBody(output.body, context);
|
|
718
|
+
let contents = {};
|
|
719
|
+
contents = de_ListKeyRotationsResponse(data, context);
|
|
720
|
+
const response = {
|
|
721
|
+
$metadata: deserializeMetadata(output),
|
|
722
|
+
...contents,
|
|
723
|
+
};
|
|
724
|
+
return response;
|
|
725
|
+
};
|
|
701
726
|
export const de_ListKeysCommand = async (output, context) => {
|
|
702
727
|
if (output.statusCode >= 300) {
|
|
703
728
|
return de_CommandError(output, context);
|
|
@@ -793,6 +818,19 @@ export const de_RevokeGrantCommand = async (output, context) => {
|
|
|
793
818
|
};
|
|
794
819
|
return response;
|
|
795
820
|
};
|
|
821
|
+
export const de_RotateKeyOnDemandCommand = async (output, context) => {
|
|
822
|
+
if (output.statusCode >= 300) {
|
|
823
|
+
return de_CommandError(output, context);
|
|
824
|
+
}
|
|
825
|
+
const data = await parseBody(output.body, context);
|
|
826
|
+
let contents = {};
|
|
827
|
+
contents = _json(data);
|
|
828
|
+
const response = {
|
|
829
|
+
$metadata: deserializeMetadata(output),
|
|
830
|
+
...contents,
|
|
831
|
+
};
|
|
832
|
+
return response;
|
|
833
|
+
};
|
|
796
834
|
export const de_ScheduleKeyDeletionCommand = async (output, context) => {
|
|
797
835
|
if (output.statusCode >= 300) {
|
|
798
836
|
return de_CommandError(output, context);
|
|
@@ -1047,6 +1085,9 @@ const de_CommandError = async (output, context) => {
|
|
|
1047
1085
|
case "InvalidGrantIdException":
|
|
1048
1086
|
case "com.amazonaws.kms#InvalidGrantIdException":
|
|
1049
1087
|
throw await de_InvalidGrantIdExceptionRes(parsedOutput, context);
|
|
1088
|
+
case "ConflictException":
|
|
1089
|
+
case "com.amazonaws.kms#ConflictException":
|
|
1090
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1050
1091
|
case "CloudHsmClusterNotRelatedException":
|
|
1051
1092
|
case "com.amazonaws.kms#CloudHsmClusterNotRelatedException":
|
|
1052
1093
|
throw await de_CloudHsmClusterNotRelatedExceptionRes(parsedOutput, context);
|
|
@@ -1119,6 +1160,15 @@ const de_CloudHsmClusterNotRelatedExceptionRes = async (parsedOutput, context) =
|
|
|
1119
1160
|
});
|
|
1120
1161
|
return __decorateServiceException(exception, body);
|
|
1121
1162
|
};
|
|
1163
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1164
|
+
const body = parsedOutput.body;
|
|
1165
|
+
const deserialized = _json(body);
|
|
1166
|
+
const exception = new ConflictException({
|
|
1167
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1168
|
+
...deserialized,
|
|
1169
|
+
});
|
|
1170
|
+
return __decorateServiceException(exception, body);
|
|
1171
|
+
};
|
|
1122
1172
|
const de_CustomKeyStoreHasCMKsExceptionRes = async (parsedOutput, context) => {
|
|
1123
1173
|
const body = parsedOutput.body;
|
|
1124
1174
|
const deserialized = _json(body);
|
|
@@ -1720,6 +1770,15 @@ const de_GenerateRandomResponse = (output, context) => {
|
|
|
1720
1770
|
Plaintext: context.base64Decoder,
|
|
1721
1771
|
});
|
|
1722
1772
|
};
|
|
1773
|
+
const de_GetKeyRotationStatusResponse = (output, context) => {
|
|
1774
|
+
return take(output, {
|
|
1775
|
+
KeyId: __expectString,
|
|
1776
|
+
KeyRotationEnabled: __expectBoolean,
|
|
1777
|
+
NextRotationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1778
|
+
OnDemandRotationStartDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1779
|
+
RotationPeriodInDays: __expectInt32,
|
|
1780
|
+
});
|
|
1781
|
+
};
|
|
1723
1782
|
const de_GetParametersForImportResponse = (output, context) => {
|
|
1724
1783
|
return take(output, {
|
|
1725
1784
|
ImportToken: context.base64Decoder,
|
|
@@ -1802,6 +1861,13 @@ const de_ListGrantsResponse = (output, context) => {
|
|
|
1802
1861
|
Truncated: __expectBoolean,
|
|
1803
1862
|
});
|
|
1804
1863
|
};
|
|
1864
|
+
const de_ListKeyRotationsResponse = (output, context) => {
|
|
1865
|
+
return take(output, {
|
|
1866
|
+
NextMarker: __expectString,
|
|
1867
|
+
Rotations: (_) => de_RotationsList(_, context),
|
|
1868
|
+
Truncated: __expectBoolean,
|
|
1869
|
+
});
|
|
1870
|
+
};
|
|
1805
1871
|
const de_ReEncryptResponse = (output, context) => {
|
|
1806
1872
|
return take(output, {
|
|
1807
1873
|
CiphertextBlob: context.base64Decoder,
|
|
@@ -1818,6 +1884,21 @@ const de_ReplicateKeyResponse = (output, context) => {
|
|
|
1818
1884
|
ReplicaTags: _json,
|
|
1819
1885
|
});
|
|
1820
1886
|
};
|
|
1887
|
+
const de_RotationsList = (output, context) => {
|
|
1888
|
+
const retVal = (output || [])
|
|
1889
|
+
.filter((e) => e != null)
|
|
1890
|
+
.map((entry) => {
|
|
1891
|
+
return de_RotationsListEntry(entry, context);
|
|
1892
|
+
});
|
|
1893
|
+
return retVal;
|
|
1894
|
+
};
|
|
1895
|
+
const de_RotationsListEntry = (output, context) => {
|
|
1896
|
+
return take(output, {
|
|
1897
|
+
KeyId: __expectString,
|
|
1898
|
+
RotationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1899
|
+
RotationType: __expectString,
|
|
1900
|
+
});
|
|
1901
|
+
};
|
|
1821
1902
|
const de_ScheduleKeyDeletionResponse = (output, context) => {
|
|
1822
1903
|
return take(output, {
|
|
1823
1904
|
DeletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|