@aws-sdk/client-keyspaces 3.490.0 → 3.494.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 +8 -0
- package/dist-cjs/Keyspaces.js +2 -0
- package/dist-cjs/commands/GetTableAutoScalingSettingsCommand.js +28 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_0.js +196 -3
- package/dist-es/Keyspaces.js +2 -0
- package/dist-es/commands/GetTableAutoScalingSettingsCommand.js +24 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/protocols/Aws_json1_0.js +194 -3
- package/dist-types/Keyspaces.d.ts +7 -0
- package/dist-types/KeyspacesClient.d.ts +3 -2
- package/dist-types/commands/CreateKeyspaceCommand.d.ts +2 -2
- package/dist-types/commands/CreateTableCommand.d.ts +49 -2
- package/dist-types/commands/DeleteKeyspaceCommand.d.ts +2 -2
- package/dist-types/commands/DeleteTableCommand.d.ts +2 -2
- package/dist-types/commands/GetKeyspaceCommand.d.ts +1 -1
- package/dist-types/commands/GetTableAutoScalingSettingsCommand.d.ts +142 -0
- package/dist-types/commands/GetTableCommand.d.ts +13 -1
- package/dist-types/commands/ListKeyspacesCommand.d.ts +1 -1
- package/dist-types/commands/ListTablesCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/RestoreTableCommand.d.ts +55 -9
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
- package/dist-types/commands/UpdateTableCommand.d.ts +50 -3
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +362 -2
- package/dist-types/protocols/Aws_json1_0.d.ts +9 -0
- package/dist-types/ts3.4/Keyspaces.d.ts +17 -0
- package/dist-types/ts3.4/KeyspacesClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/GetTableAutoScalingSettingsCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +51 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +12 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -263,6 +263,14 @@ GetTable
|
|
|
263
263
|
|
|
264
264
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/keyspaces/command/GetTableCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-keyspaces/Interface/GetTableCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-keyspaces/Interface/GetTableCommandOutput/)
|
|
265
265
|
|
|
266
|
+
</details>
|
|
267
|
+
<details>
|
|
268
|
+
<summary>
|
|
269
|
+
GetTableAutoScalingSettings
|
|
270
|
+
</summary>
|
|
271
|
+
|
|
272
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/keyspaces/command/GetTableAutoScalingSettingsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-keyspaces/Interface/GetTableAutoScalingSettingsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-keyspaces/Interface/GetTableAutoScalingSettingsCommandOutput/)
|
|
273
|
+
|
|
266
274
|
</details>
|
|
267
275
|
<details>
|
|
268
276
|
<summary>
|
package/dist-cjs/Keyspaces.js
CHANGED
|
@@ -7,6 +7,7 @@ const CreateTableCommand_1 = require("./commands/CreateTableCommand");
|
|
|
7
7
|
const DeleteKeyspaceCommand_1 = require("./commands/DeleteKeyspaceCommand");
|
|
8
8
|
const DeleteTableCommand_1 = require("./commands/DeleteTableCommand");
|
|
9
9
|
const GetKeyspaceCommand_1 = require("./commands/GetKeyspaceCommand");
|
|
10
|
+
const GetTableAutoScalingSettingsCommand_1 = require("./commands/GetTableAutoScalingSettingsCommand");
|
|
10
11
|
const GetTableCommand_1 = require("./commands/GetTableCommand");
|
|
11
12
|
const ListKeyspacesCommand_1 = require("./commands/ListKeyspacesCommand");
|
|
12
13
|
const ListTablesCommand_1 = require("./commands/ListTablesCommand");
|
|
@@ -23,6 +24,7 @@ const commands = {
|
|
|
23
24
|
DeleteTableCommand: DeleteTableCommand_1.DeleteTableCommand,
|
|
24
25
|
GetKeyspaceCommand: GetKeyspaceCommand_1.GetKeyspaceCommand,
|
|
25
26
|
GetTableCommand: GetTableCommand_1.GetTableCommand,
|
|
27
|
+
GetTableAutoScalingSettingsCommand: GetTableAutoScalingSettingsCommand_1.GetTableAutoScalingSettingsCommand,
|
|
26
28
|
ListKeyspacesCommand: ListKeyspacesCommand_1.ListKeyspacesCommand,
|
|
27
29
|
ListTablesCommand: ListTablesCommand_1.ListTablesCommand,
|
|
28
30
|
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetTableAutoScalingSettingsCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
+
const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
|
|
10
|
+
class GetTableAutoScalingSettingsCommand 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("KeyspacesService", "GetTableAutoScalingSettings", {})
|
|
22
|
+
.n("KeyspacesClient", "GetTableAutoScalingSettingsCommand")
|
|
23
|
+
.f(void 0, void 0)
|
|
24
|
+
.ser(Aws_json1_0_1.se_GetTableAutoScalingSettingsCommand)
|
|
25
|
+
.de(Aws_json1_0_1.de_GetTableAutoScalingSettingsCommand)
|
|
26
|
+
.build() {
|
|
27
|
+
}
|
|
28
|
+
exports.GetTableAutoScalingSettingsCommand = GetTableAutoScalingSettingsCommand;
|
|
@@ -6,6 +6,7 @@ tslib_1.__exportStar(require("./CreateTableCommand"), exports);
|
|
|
6
6
|
tslib_1.__exportStar(require("./DeleteKeyspaceCommand"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./DeleteTableCommand"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./GetKeyspaceCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./GetTableAutoScalingSettingsCommand"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./GetTableCommand"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./ListKeyspacesCommand"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./ListTablesCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateTableCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RestoreTableCommand = exports.de_ListTagsForResourceCommand = exports.de_ListTablesCommand = exports.de_ListKeyspacesCommand = exports.de_GetTableCommand = exports.de_GetKeyspaceCommand = exports.de_DeleteTableCommand = exports.de_DeleteKeyspaceCommand = exports.de_CreateTableCommand = exports.de_CreateKeyspaceCommand = exports.se_UpdateTableCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RestoreTableCommand = exports.se_ListTagsForResourceCommand = exports.se_ListTablesCommand = exports.se_ListKeyspacesCommand = exports.se_GetTableCommand = exports.se_GetKeyspaceCommand = exports.se_DeleteTableCommand = exports.se_DeleteKeyspaceCommand = exports.se_CreateTableCommand = exports.se_CreateKeyspaceCommand = void 0;
|
|
3
|
+
exports.de_UpdateTableCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RestoreTableCommand = exports.de_ListTagsForResourceCommand = exports.de_ListTablesCommand = exports.de_ListKeyspacesCommand = exports.de_GetTableAutoScalingSettingsCommand = exports.de_GetTableCommand = exports.de_GetKeyspaceCommand = exports.de_DeleteTableCommand = exports.de_DeleteKeyspaceCommand = exports.de_CreateTableCommand = exports.de_CreateKeyspaceCommand = exports.se_UpdateTableCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RestoreTableCommand = exports.se_ListTagsForResourceCommand = exports.se_ListTablesCommand = exports.se_ListKeyspacesCommand = exports.se_GetTableAutoScalingSettingsCommand = exports.se_GetTableCommand = exports.se_GetKeyspaceCommand = exports.se_DeleteTableCommand = exports.se_DeleteKeyspaceCommand = exports.se_CreateTableCommand = exports.se_CreateKeyspaceCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const KeyspacesServiceException_1 = require("../models/KeyspacesServiceException");
|
|
@@ -15,7 +15,7 @@ exports.se_CreateKeyspaceCommand = se_CreateKeyspaceCommand;
|
|
|
15
15
|
const se_CreateTableCommand = async (input, context) => {
|
|
16
16
|
const headers = sharedHeaders("CreateTable");
|
|
17
17
|
let body;
|
|
18
|
-
body = JSON.stringify((
|
|
18
|
+
body = JSON.stringify(se_CreateTableRequest(input, context));
|
|
19
19
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
20
20
|
};
|
|
21
21
|
exports.se_CreateTableCommand = se_CreateTableCommand;
|
|
@@ -47,6 +47,13 @@ const se_GetTableCommand = async (input, context) => {
|
|
|
47
47
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
48
|
};
|
|
49
49
|
exports.se_GetTableCommand = se_GetTableCommand;
|
|
50
|
+
const se_GetTableAutoScalingSettingsCommand = async (input, context) => {
|
|
51
|
+
const headers = sharedHeaders("GetTableAutoScalingSettings");
|
|
52
|
+
let body;
|
|
53
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
54
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
55
|
+
};
|
|
56
|
+
exports.se_GetTableAutoScalingSettingsCommand = se_GetTableAutoScalingSettingsCommand;
|
|
50
57
|
const se_ListKeyspacesCommand = async (input, context) => {
|
|
51
58
|
const headers = sharedHeaders("ListKeyspaces");
|
|
52
59
|
let body;
|
|
@@ -92,7 +99,7 @@ exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
|
92
99
|
const se_UpdateTableCommand = async (input, context) => {
|
|
93
100
|
const headers = sharedHeaders("UpdateTable");
|
|
94
101
|
let body;
|
|
95
|
-
body = JSON.stringify((
|
|
102
|
+
body = JSON.stringify(se_UpdateTableRequest(input, context));
|
|
96
103
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
104
|
};
|
|
98
105
|
exports.se_UpdateTableCommand = se_UpdateTableCommand;
|
|
@@ -375,6 +382,51 @@ const de_GetTableCommandError = async (output, context) => {
|
|
|
375
382
|
});
|
|
376
383
|
}
|
|
377
384
|
};
|
|
385
|
+
const de_GetTableAutoScalingSettingsCommand = async (output, context) => {
|
|
386
|
+
if (output.statusCode >= 300) {
|
|
387
|
+
return de_GetTableAutoScalingSettingsCommandError(output, context);
|
|
388
|
+
}
|
|
389
|
+
const data = await parseBody(output.body, context);
|
|
390
|
+
let contents = {};
|
|
391
|
+
contents = de_GetTableAutoScalingSettingsResponse(data, context);
|
|
392
|
+
const response = {
|
|
393
|
+
$metadata: deserializeMetadata(output),
|
|
394
|
+
...contents,
|
|
395
|
+
};
|
|
396
|
+
return response;
|
|
397
|
+
};
|
|
398
|
+
exports.de_GetTableAutoScalingSettingsCommand = de_GetTableAutoScalingSettingsCommand;
|
|
399
|
+
const de_GetTableAutoScalingSettingsCommandError = async (output, context) => {
|
|
400
|
+
const parsedOutput = {
|
|
401
|
+
...output,
|
|
402
|
+
body: await parseErrorBody(output.body, context),
|
|
403
|
+
};
|
|
404
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
405
|
+
switch (errorCode) {
|
|
406
|
+
case "AccessDeniedException":
|
|
407
|
+
case "com.amazonaws.keyspaces#AccessDeniedException":
|
|
408
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
409
|
+
case "InternalServerException":
|
|
410
|
+
case "com.amazonaws.keyspaces#InternalServerException":
|
|
411
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
412
|
+
case "ResourceNotFoundException":
|
|
413
|
+
case "com.amazonaws.keyspaces#ResourceNotFoundException":
|
|
414
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
415
|
+
case "ServiceQuotaExceededException":
|
|
416
|
+
case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
|
|
417
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
418
|
+
case "ValidationException":
|
|
419
|
+
case "com.amazonaws.keyspaces#ValidationException":
|
|
420
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
421
|
+
default:
|
|
422
|
+
const parsedBody = parsedOutput.body;
|
|
423
|
+
return throwDefaultError({
|
|
424
|
+
output,
|
|
425
|
+
parsedBody,
|
|
426
|
+
errorCode,
|
|
427
|
+
});
|
|
428
|
+
}
|
|
429
|
+
};
|
|
378
430
|
const de_ListKeyspacesCommand = async (output, context) => {
|
|
379
431
|
if (output.statusCode >= 300) {
|
|
380
432
|
return de_ListKeyspacesCommandError(output, context);
|
|
@@ -753,11 +805,63 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
753
805
|
});
|
|
754
806
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
755
807
|
};
|
|
808
|
+
const se_AutoScalingPolicy = (input, context) => {
|
|
809
|
+
return (0, smithy_client_1.take)(input, {
|
|
810
|
+
targetTrackingScalingPolicyConfiguration: (_) => se_TargetTrackingScalingPolicyConfiguration(_, context),
|
|
811
|
+
});
|
|
812
|
+
};
|
|
813
|
+
const se_AutoScalingSettings = (input, context) => {
|
|
814
|
+
return (0, smithy_client_1.take)(input, {
|
|
815
|
+
autoScalingDisabled: [],
|
|
816
|
+
maximumUnits: [],
|
|
817
|
+
minimumUnits: [],
|
|
818
|
+
scalingPolicy: (_) => se_AutoScalingPolicy(_, context),
|
|
819
|
+
});
|
|
820
|
+
};
|
|
821
|
+
const se_AutoScalingSpecification = (input, context) => {
|
|
822
|
+
return (0, smithy_client_1.take)(input, {
|
|
823
|
+
readCapacityAutoScaling: (_) => se_AutoScalingSettings(_, context),
|
|
824
|
+
writeCapacityAutoScaling: (_) => se_AutoScalingSettings(_, context),
|
|
825
|
+
});
|
|
826
|
+
};
|
|
827
|
+
const se_CreateTableRequest = (input, context) => {
|
|
828
|
+
return (0, smithy_client_1.take)(input, {
|
|
829
|
+
autoScalingSpecification: (_) => se_AutoScalingSpecification(_, context),
|
|
830
|
+
capacitySpecification: smithy_client_1._json,
|
|
831
|
+
clientSideTimestamps: smithy_client_1._json,
|
|
832
|
+
comment: smithy_client_1._json,
|
|
833
|
+
defaultTimeToLive: [],
|
|
834
|
+
encryptionSpecification: smithy_client_1._json,
|
|
835
|
+
keyspaceName: [],
|
|
836
|
+
pointInTimeRecovery: smithy_client_1._json,
|
|
837
|
+
replicaSpecifications: (_) => se_ReplicaSpecificationList(_, context),
|
|
838
|
+
schemaDefinition: smithy_client_1._json,
|
|
839
|
+
tableName: [],
|
|
840
|
+
tags: smithy_client_1._json,
|
|
841
|
+
ttl: smithy_client_1._json,
|
|
842
|
+
});
|
|
843
|
+
};
|
|
844
|
+
const se_ReplicaSpecification = (input, context) => {
|
|
845
|
+
return (0, smithy_client_1.take)(input, {
|
|
846
|
+
readCapacityAutoScaling: (_) => se_AutoScalingSettings(_, context),
|
|
847
|
+
readCapacityUnits: [],
|
|
848
|
+
region: [],
|
|
849
|
+
});
|
|
850
|
+
};
|
|
851
|
+
const se_ReplicaSpecificationList = (input, context) => {
|
|
852
|
+
return input
|
|
853
|
+
.filter((e) => e != null)
|
|
854
|
+
.map((entry) => {
|
|
855
|
+
return se_ReplicaSpecification(entry, context);
|
|
856
|
+
});
|
|
857
|
+
};
|
|
756
858
|
const se_RestoreTableRequest = (input, context) => {
|
|
757
859
|
return (0, smithy_client_1.take)(input, {
|
|
860
|
+
autoScalingSpecification: (_) => se_AutoScalingSpecification(_, context),
|
|
758
861
|
capacitySpecificationOverride: smithy_client_1._json,
|
|
759
862
|
encryptionSpecificationOverride: smithy_client_1._json,
|
|
760
863
|
pointInTimeRecoveryOverride: smithy_client_1._json,
|
|
864
|
+
replicaSpecifications: (_) => se_ReplicaSpecificationList(_, context),
|
|
761
865
|
restoreTimestamp: (_) => Math.round(_.getTime() / 1000),
|
|
762
866
|
sourceKeyspaceName: [],
|
|
763
867
|
sourceTableName: [],
|
|
@@ -766,6 +870,48 @@ const se_RestoreTableRequest = (input, context) => {
|
|
|
766
870
|
targetTableName: [],
|
|
767
871
|
});
|
|
768
872
|
};
|
|
873
|
+
const se_TargetTrackingScalingPolicyConfiguration = (input, context) => {
|
|
874
|
+
return (0, smithy_client_1.take)(input, {
|
|
875
|
+
disableScaleIn: [],
|
|
876
|
+
scaleInCooldown: [],
|
|
877
|
+
scaleOutCooldown: [],
|
|
878
|
+
targetValue: smithy_client_1.serializeFloat,
|
|
879
|
+
});
|
|
880
|
+
};
|
|
881
|
+
const se_UpdateTableRequest = (input, context) => {
|
|
882
|
+
return (0, smithy_client_1.take)(input, {
|
|
883
|
+
addColumns: smithy_client_1._json,
|
|
884
|
+
autoScalingSpecification: (_) => se_AutoScalingSpecification(_, context),
|
|
885
|
+
capacitySpecification: smithy_client_1._json,
|
|
886
|
+
clientSideTimestamps: smithy_client_1._json,
|
|
887
|
+
defaultTimeToLive: [],
|
|
888
|
+
encryptionSpecification: smithy_client_1._json,
|
|
889
|
+
keyspaceName: [],
|
|
890
|
+
pointInTimeRecovery: smithy_client_1._json,
|
|
891
|
+
replicaSpecifications: (_) => se_ReplicaSpecificationList(_, context),
|
|
892
|
+
tableName: [],
|
|
893
|
+
ttl: smithy_client_1._json,
|
|
894
|
+
});
|
|
895
|
+
};
|
|
896
|
+
const de_AutoScalingPolicy = (output, context) => {
|
|
897
|
+
return (0, smithy_client_1.take)(output, {
|
|
898
|
+
targetTrackingScalingPolicyConfiguration: (_) => de_TargetTrackingScalingPolicyConfiguration(_, context),
|
|
899
|
+
});
|
|
900
|
+
};
|
|
901
|
+
const de_AutoScalingSettings = (output, context) => {
|
|
902
|
+
return (0, smithy_client_1.take)(output, {
|
|
903
|
+
autoScalingDisabled: smithy_client_1.expectBoolean,
|
|
904
|
+
maximumUnits: smithy_client_1.expectLong,
|
|
905
|
+
minimumUnits: smithy_client_1.expectLong,
|
|
906
|
+
scalingPolicy: (_) => de_AutoScalingPolicy(_, context),
|
|
907
|
+
});
|
|
908
|
+
};
|
|
909
|
+
const de_AutoScalingSpecification = (output, context) => {
|
|
910
|
+
return (0, smithy_client_1.take)(output, {
|
|
911
|
+
readCapacityAutoScaling: (_) => de_AutoScalingSettings(_, context),
|
|
912
|
+
writeCapacityAutoScaling: (_) => de_AutoScalingSettings(_, context),
|
|
913
|
+
});
|
|
914
|
+
};
|
|
769
915
|
const de_CapacitySpecificationSummary = (output, context) => {
|
|
770
916
|
return (0, smithy_client_1.take)(output, {
|
|
771
917
|
lastUpdateToPayPerRequestTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
@@ -774,6 +920,15 @@ const de_CapacitySpecificationSummary = (output, context) => {
|
|
|
774
920
|
writeCapacityUnits: smithy_client_1.expectLong,
|
|
775
921
|
});
|
|
776
922
|
};
|
|
923
|
+
const de_GetTableAutoScalingSettingsResponse = (output, context) => {
|
|
924
|
+
return (0, smithy_client_1.take)(output, {
|
|
925
|
+
autoScalingSpecification: (_) => de_AutoScalingSpecification(_, context),
|
|
926
|
+
keyspaceName: smithy_client_1.expectString,
|
|
927
|
+
replicaSpecifications: (_) => de_ReplicaAutoScalingSpecificationList(_, context),
|
|
928
|
+
resourceArn: smithy_client_1.expectString,
|
|
929
|
+
tableName: smithy_client_1.expectString,
|
|
930
|
+
});
|
|
931
|
+
};
|
|
777
932
|
const de_GetTableResponse = (output, context) => {
|
|
778
933
|
return (0, smithy_client_1.take)(output, {
|
|
779
934
|
capacitySpecification: (_) => de_CapacitySpecificationSummary(_, context),
|
|
@@ -784,6 +939,7 @@ const de_GetTableResponse = (output, context) => {
|
|
|
784
939
|
encryptionSpecification: smithy_client_1._json,
|
|
785
940
|
keyspaceName: smithy_client_1.expectString,
|
|
786
941
|
pointInTimeRecovery: (_) => de_PointInTimeRecoverySummary(_, context),
|
|
942
|
+
replicaSpecifications: (_) => de_ReplicaSpecificationSummaryList(_, context),
|
|
787
943
|
resourceArn: smithy_client_1.expectString,
|
|
788
944
|
schemaDefinition: smithy_client_1._json,
|
|
789
945
|
status: smithy_client_1.expectString,
|
|
@@ -797,6 +953,43 @@ const de_PointInTimeRecoverySummary = (output, context) => {
|
|
|
797
953
|
status: smithy_client_1.expectString,
|
|
798
954
|
});
|
|
799
955
|
};
|
|
956
|
+
const de_ReplicaAutoScalingSpecification = (output, context) => {
|
|
957
|
+
return (0, smithy_client_1.take)(output, {
|
|
958
|
+
autoScalingSpecification: (_) => de_AutoScalingSpecification(_, context),
|
|
959
|
+
region: smithy_client_1.expectString,
|
|
960
|
+
});
|
|
961
|
+
};
|
|
962
|
+
const de_ReplicaAutoScalingSpecificationList = (output, context) => {
|
|
963
|
+
const retVal = (output || [])
|
|
964
|
+
.filter((e) => e != null)
|
|
965
|
+
.map((entry) => {
|
|
966
|
+
return de_ReplicaAutoScalingSpecification(entry, context);
|
|
967
|
+
});
|
|
968
|
+
return retVal;
|
|
969
|
+
};
|
|
970
|
+
const de_ReplicaSpecificationSummary = (output, context) => {
|
|
971
|
+
return (0, smithy_client_1.take)(output, {
|
|
972
|
+
capacitySpecification: (_) => de_CapacitySpecificationSummary(_, context),
|
|
973
|
+
region: smithy_client_1.expectString,
|
|
974
|
+
status: smithy_client_1.expectString,
|
|
975
|
+
});
|
|
976
|
+
};
|
|
977
|
+
const de_ReplicaSpecificationSummaryList = (output, context) => {
|
|
978
|
+
const retVal = (output || [])
|
|
979
|
+
.filter((e) => e != null)
|
|
980
|
+
.map((entry) => {
|
|
981
|
+
return de_ReplicaSpecificationSummary(entry, context);
|
|
982
|
+
});
|
|
983
|
+
return retVal;
|
|
984
|
+
};
|
|
985
|
+
const de_TargetTrackingScalingPolicyConfiguration = (output, context) => {
|
|
986
|
+
return (0, smithy_client_1.take)(output, {
|
|
987
|
+
disableScaleIn: smithy_client_1.expectBoolean,
|
|
988
|
+
scaleInCooldown: smithy_client_1.expectInt32,
|
|
989
|
+
scaleOutCooldown: smithy_client_1.expectInt32,
|
|
990
|
+
targetValue: smithy_client_1.limitedParseDouble,
|
|
991
|
+
});
|
|
992
|
+
};
|
|
800
993
|
const deserializeMetadata = (output) => ({
|
|
801
994
|
httpStatusCode: output.statusCode,
|
|
802
995
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
package/dist-es/Keyspaces.js
CHANGED
|
@@ -4,6 +4,7 @@ import { CreateTableCommand } from "./commands/CreateTableCommand";
|
|
|
4
4
|
import { DeleteKeyspaceCommand, } from "./commands/DeleteKeyspaceCommand";
|
|
5
5
|
import { DeleteTableCommand } from "./commands/DeleteTableCommand";
|
|
6
6
|
import { GetKeyspaceCommand } from "./commands/GetKeyspaceCommand";
|
|
7
|
+
import { GetTableAutoScalingSettingsCommand, } from "./commands/GetTableAutoScalingSettingsCommand";
|
|
7
8
|
import { GetTableCommand } from "./commands/GetTableCommand";
|
|
8
9
|
import { ListKeyspacesCommand, } from "./commands/ListKeyspacesCommand";
|
|
9
10
|
import { ListTablesCommand } from "./commands/ListTablesCommand";
|
|
@@ -20,6 +21,7 @@ const commands = {
|
|
|
20
21
|
DeleteTableCommand,
|
|
21
22
|
GetKeyspaceCommand,
|
|
22
23
|
GetTableCommand,
|
|
24
|
+
GetTableAutoScalingSettingsCommand,
|
|
23
25
|
ListKeyspacesCommand,
|
|
24
26
|
ListTablesCommand,
|
|
25
27
|
ListTagsForResourceCommand,
|
|
@@ -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_GetTableAutoScalingSettingsCommand, se_GetTableAutoScalingSettingsCommand } from "../protocols/Aws_json1_0";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GetTableAutoScalingSettingsCommand 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("KeyspacesService", "GetTableAutoScalingSettings", {})
|
|
19
|
+
.n("KeyspacesClient", "GetTableAutoScalingSettingsCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_GetTableAutoScalingSettingsCommand)
|
|
22
|
+
.de(de_GetTableAutoScalingSettingsCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -3,6 +3,7 @@ export * from "./CreateTableCommand";
|
|
|
3
3
|
export * from "./DeleteKeyspaceCommand";
|
|
4
4
|
export * from "./DeleteTableCommand";
|
|
5
5
|
export * from "./GetKeyspaceCommand";
|
|
6
|
+
export * from "./GetTableAutoScalingSettingsCommand";
|
|
6
7
|
export * from "./GetTableCommand";
|
|
7
8
|
export * from "./ListKeyspacesCommand";
|
|
8
9
|
export * from "./ListTablesCommand";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
2
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { KeyspacesServiceException as __BaseException } from "../models/KeyspacesServiceException";
|
|
4
4
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
|
|
5
5
|
export const se_CreateKeyspaceCommand = async (input, context) => {
|
|
@@ -11,7 +11,7 @@ export const se_CreateKeyspaceCommand = async (input, context) => {
|
|
|
11
11
|
export const se_CreateTableCommand = async (input, context) => {
|
|
12
12
|
const headers = sharedHeaders("CreateTable");
|
|
13
13
|
let body;
|
|
14
|
-
body = JSON.stringify(
|
|
14
|
+
body = JSON.stringify(se_CreateTableRequest(input, context));
|
|
15
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
16
|
};
|
|
17
17
|
export const se_DeleteKeyspaceCommand = async (input, context) => {
|
|
@@ -38,6 +38,12 @@ export const se_GetTableCommand = async (input, context) => {
|
|
|
38
38
|
body = JSON.stringify(_json(input));
|
|
39
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
40
|
};
|
|
41
|
+
export const se_GetTableAutoScalingSettingsCommand = async (input, context) => {
|
|
42
|
+
const headers = sharedHeaders("GetTableAutoScalingSettings");
|
|
43
|
+
let body;
|
|
44
|
+
body = JSON.stringify(_json(input));
|
|
45
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
|
+
};
|
|
41
47
|
export const se_ListKeyspacesCommand = async (input, context) => {
|
|
42
48
|
const headers = sharedHeaders("ListKeyspaces");
|
|
43
49
|
let body;
|
|
@@ -77,7 +83,7 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
77
83
|
export const se_UpdateTableCommand = async (input, context) => {
|
|
78
84
|
const headers = sharedHeaders("UpdateTable");
|
|
79
85
|
let body;
|
|
80
|
-
body = JSON.stringify(
|
|
86
|
+
body = JSON.stringify(se_UpdateTableRequest(input, context));
|
|
81
87
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
82
88
|
};
|
|
83
89
|
export const de_CreateKeyspaceCommand = async (output, context) => {
|
|
@@ -353,6 +359,50 @@ const de_GetTableCommandError = async (output, context) => {
|
|
|
353
359
|
});
|
|
354
360
|
}
|
|
355
361
|
};
|
|
362
|
+
export const de_GetTableAutoScalingSettingsCommand = async (output, context) => {
|
|
363
|
+
if (output.statusCode >= 300) {
|
|
364
|
+
return de_GetTableAutoScalingSettingsCommandError(output, context);
|
|
365
|
+
}
|
|
366
|
+
const data = await parseBody(output.body, context);
|
|
367
|
+
let contents = {};
|
|
368
|
+
contents = de_GetTableAutoScalingSettingsResponse(data, context);
|
|
369
|
+
const response = {
|
|
370
|
+
$metadata: deserializeMetadata(output),
|
|
371
|
+
...contents,
|
|
372
|
+
};
|
|
373
|
+
return response;
|
|
374
|
+
};
|
|
375
|
+
const de_GetTableAutoScalingSettingsCommandError = async (output, context) => {
|
|
376
|
+
const parsedOutput = {
|
|
377
|
+
...output,
|
|
378
|
+
body: await parseErrorBody(output.body, context),
|
|
379
|
+
};
|
|
380
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
381
|
+
switch (errorCode) {
|
|
382
|
+
case "AccessDeniedException":
|
|
383
|
+
case "com.amazonaws.keyspaces#AccessDeniedException":
|
|
384
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
385
|
+
case "InternalServerException":
|
|
386
|
+
case "com.amazonaws.keyspaces#InternalServerException":
|
|
387
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
388
|
+
case "ResourceNotFoundException":
|
|
389
|
+
case "com.amazonaws.keyspaces#ResourceNotFoundException":
|
|
390
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
391
|
+
case "ServiceQuotaExceededException":
|
|
392
|
+
case "com.amazonaws.keyspaces#ServiceQuotaExceededException":
|
|
393
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
394
|
+
case "ValidationException":
|
|
395
|
+
case "com.amazonaws.keyspaces#ValidationException":
|
|
396
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
397
|
+
default:
|
|
398
|
+
const parsedBody = parsedOutput.body;
|
|
399
|
+
return throwDefaultError({
|
|
400
|
+
output,
|
|
401
|
+
parsedBody,
|
|
402
|
+
errorCode,
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
};
|
|
356
406
|
export const de_ListKeyspacesCommand = async (output, context) => {
|
|
357
407
|
if (output.statusCode >= 300) {
|
|
358
408
|
return de_ListKeyspacesCommandError(output, context);
|
|
@@ -724,11 +774,63 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
724
774
|
});
|
|
725
775
|
return __decorateServiceException(exception, body);
|
|
726
776
|
};
|
|
777
|
+
const se_AutoScalingPolicy = (input, context) => {
|
|
778
|
+
return take(input, {
|
|
779
|
+
targetTrackingScalingPolicyConfiguration: (_) => se_TargetTrackingScalingPolicyConfiguration(_, context),
|
|
780
|
+
});
|
|
781
|
+
};
|
|
782
|
+
const se_AutoScalingSettings = (input, context) => {
|
|
783
|
+
return take(input, {
|
|
784
|
+
autoScalingDisabled: [],
|
|
785
|
+
maximumUnits: [],
|
|
786
|
+
minimumUnits: [],
|
|
787
|
+
scalingPolicy: (_) => se_AutoScalingPolicy(_, context),
|
|
788
|
+
});
|
|
789
|
+
};
|
|
790
|
+
const se_AutoScalingSpecification = (input, context) => {
|
|
791
|
+
return take(input, {
|
|
792
|
+
readCapacityAutoScaling: (_) => se_AutoScalingSettings(_, context),
|
|
793
|
+
writeCapacityAutoScaling: (_) => se_AutoScalingSettings(_, context),
|
|
794
|
+
});
|
|
795
|
+
};
|
|
796
|
+
const se_CreateTableRequest = (input, context) => {
|
|
797
|
+
return take(input, {
|
|
798
|
+
autoScalingSpecification: (_) => se_AutoScalingSpecification(_, context),
|
|
799
|
+
capacitySpecification: _json,
|
|
800
|
+
clientSideTimestamps: _json,
|
|
801
|
+
comment: _json,
|
|
802
|
+
defaultTimeToLive: [],
|
|
803
|
+
encryptionSpecification: _json,
|
|
804
|
+
keyspaceName: [],
|
|
805
|
+
pointInTimeRecovery: _json,
|
|
806
|
+
replicaSpecifications: (_) => se_ReplicaSpecificationList(_, context),
|
|
807
|
+
schemaDefinition: _json,
|
|
808
|
+
tableName: [],
|
|
809
|
+
tags: _json,
|
|
810
|
+
ttl: _json,
|
|
811
|
+
});
|
|
812
|
+
};
|
|
813
|
+
const se_ReplicaSpecification = (input, context) => {
|
|
814
|
+
return take(input, {
|
|
815
|
+
readCapacityAutoScaling: (_) => se_AutoScalingSettings(_, context),
|
|
816
|
+
readCapacityUnits: [],
|
|
817
|
+
region: [],
|
|
818
|
+
});
|
|
819
|
+
};
|
|
820
|
+
const se_ReplicaSpecificationList = (input, context) => {
|
|
821
|
+
return input
|
|
822
|
+
.filter((e) => e != null)
|
|
823
|
+
.map((entry) => {
|
|
824
|
+
return se_ReplicaSpecification(entry, context);
|
|
825
|
+
});
|
|
826
|
+
};
|
|
727
827
|
const se_RestoreTableRequest = (input, context) => {
|
|
728
828
|
return take(input, {
|
|
829
|
+
autoScalingSpecification: (_) => se_AutoScalingSpecification(_, context),
|
|
729
830
|
capacitySpecificationOverride: _json,
|
|
730
831
|
encryptionSpecificationOverride: _json,
|
|
731
832
|
pointInTimeRecoveryOverride: _json,
|
|
833
|
+
replicaSpecifications: (_) => se_ReplicaSpecificationList(_, context),
|
|
732
834
|
restoreTimestamp: (_) => Math.round(_.getTime() / 1000),
|
|
733
835
|
sourceKeyspaceName: [],
|
|
734
836
|
sourceTableName: [],
|
|
@@ -737,6 +839,48 @@ const se_RestoreTableRequest = (input, context) => {
|
|
|
737
839
|
targetTableName: [],
|
|
738
840
|
});
|
|
739
841
|
};
|
|
842
|
+
const se_TargetTrackingScalingPolicyConfiguration = (input, context) => {
|
|
843
|
+
return take(input, {
|
|
844
|
+
disableScaleIn: [],
|
|
845
|
+
scaleInCooldown: [],
|
|
846
|
+
scaleOutCooldown: [],
|
|
847
|
+
targetValue: __serializeFloat,
|
|
848
|
+
});
|
|
849
|
+
};
|
|
850
|
+
const se_UpdateTableRequest = (input, context) => {
|
|
851
|
+
return take(input, {
|
|
852
|
+
addColumns: _json,
|
|
853
|
+
autoScalingSpecification: (_) => se_AutoScalingSpecification(_, context),
|
|
854
|
+
capacitySpecification: _json,
|
|
855
|
+
clientSideTimestamps: _json,
|
|
856
|
+
defaultTimeToLive: [],
|
|
857
|
+
encryptionSpecification: _json,
|
|
858
|
+
keyspaceName: [],
|
|
859
|
+
pointInTimeRecovery: _json,
|
|
860
|
+
replicaSpecifications: (_) => se_ReplicaSpecificationList(_, context),
|
|
861
|
+
tableName: [],
|
|
862
|
+
ttl: _json,
|
|
863
|
+
});
|
|
864
|
+
};
|
|
865
|
+
const de_AutoScalingPolicy = (output, context) => {
|
|
866
|
+
return take(output, {
|
|
867
|
+
targetTrackingScalingPolicyConfiguration: (_) => de_TargetTrackingScalingPolicyConfiguration(_, context),
|
|
868
|
+
});
|
|
869
|
+
};
|
|
870
|
+
const de_AutoScalingSettings = (output, context) => {
|
|
871
|
+
return take(output, {
|
|
872
|
+
autoScalingDisabled: __expectBoolean,
|
|
873
|
+
maximumUnits: __expectLong,
|
|
874
|
+
minimumUnits: __expectLong,
|
|
875
|
+
scalingPolicy: (_) => de_AutoScalingPolicy(_, context),
|
|
876
|
+
});
|
|
877
|
+
};
|
|
878
|
+
const de_AutoScalingSpecification = (output, context) => {
|
|
879
|
+
return take(output, {
|
|
880
|
+
readCapacityAutoScaling: (_) => de_AutoScalingSettings(_, context),
|
|
881
|
+
writeCapacityAutoScaling: (_) => de_AutoScalingSettings(_, context),
|
|
882
|
+
});
|
|
883
|
+
};
|
|
740
884
|
const de_CapacitySpecificationSummary = (output, context) => {
|
|
741
885
|
return take(output, {
|
|
742
886
|
lastUpdateToPayPerRequestTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
@@ -745,6 +889,15 @@ const de_CapacitySpecificationSummary = (output, context) => {
|
|
|
745
889
|
writeCapacityUnits: __expectLong,
|
|
746
890
|
});
|
|
747
891
|
};
|
|
892
|
+
const de_GetTableAutoScalingSettingsResponse = (output, context) => {
|
|
893
|
+
return take(output, {
|
|
894
|
+
autoScalingSpecification: (_) => de_AutoScalingSpecification(_, context),
|
|
895
|
+
keyspaceName: __expectString,
|
|
896
|
+
replicaSpecifications: (_) => de_ReplicaAutoScalingSpecificationList(_, context),
|
|
897
|
+
resourceArn: __expectString,
|
|
898
|
+
tableName: __expectString,
|
|
899
|
+
});
|
|
900
|
+
};
|
|
748
901
|
const de_GetTableResponse = (output, context) => {
|
|
749
902
|
return take(output, {
|
|
750
903
|
capacitySpecification: (_) => de_CapacitySpecificationSummary(_, context),
|
|
@@ -755,6 +908,7 @@ const de_GetTableResponse = (output, context) => {
|
|
|
755
908
|
encryptionSpecification: _json,
|
|
756
909
|
keyspaceName: __expectString,
|
|
757
910
|
pointInTimeRecovery: (_) => de_PointInTimeRecoverySummary(_, context),
|
|
911
|
+
replicaSpecifications: (_) => de_ReplicaSpecificationSummaryList(_, context),
|
|
758
912
|
resourceArn: __expectString,
|
|
759
913
|
schemaDefinition: _json,
|
|
760
914
|
status: __expectString,
|
|
@@ -768,6 +922,43 @@ const de_PointInTimeRecoverySummary = (output, context) => {
|
|
|
768
922
|
status: __expectString,
|
|
769
923
|
});
|
|
770
924
|
};
|
|
925
|
+
const de_ReplicaAutoScalingSpecification = (output, context) => {
|
|
926
|
+
return take(output, {
|
|
927
|
+
autoScalingSpecification: (_) => de_AutoScalingSpecification(_, context),
|
|
928
|
+
region: __expectString,
|
|
929
|
+
});
|
|
930
|
+
};
|
|
931
|
+
const de_ReplicaAutoScalingSpecificationList = (output, context) => {
|
|
932
|
+
const retVal = (output || [])
|
|
933
|
+
.filter((e) => e != null)
|
|
934
|
+
.map((entry) => {
|
|
935
|
+
return de_ReplicaAutoScalingSpecification(entry, context);
|
|
936
|
+
});
|
|
937
|
+
return retVal;
|
|
938
|
+
};
|
|
939
|
+
const de_ReplicaSpecificationSummary = (output, context) => {
|
|
940
|
+
return take(output, {
|
|
941
|
+
capacitySpecification: (_) => de_CapacitySpecificationSummary(_, context),
|
|
942
|
+
region: __expectString,
|
|
943
|
+
status: __expectString,
|
|
944
|
+
});
|
|
945
|
+
};
|
|
946
|
+
const de_ReplicaSpecificationSummaryList = (output, context) => {
|
|
947
|
+
const retVal = (output || [])
|
|
948
|
+
.filter((e) => e != null)
|
|
949
|
+
.map((entry) => {
|
|
950
|
+
return de_ReplicaSpecificationSummary(entry, context);
|
|
951
|
+
});
|
|
952
|
+
return retVal;
|
|
953
|
+
};
|
|
954
|
+
const de_TargetTrackingScalingPolicyConfiguration = (output, context) => {
|
|
955
|
+
return take(output, {
|
|
956
|
+
disableScaleIn: __expectBoolean,
|
|
957
|
+
scaleInCooldown: __expectInt32,
|
|
958
|
+
scaleOutCooldown: __expectInt32,
|
|
959
|
+
targetValue: __limitedParseDouble,
|
|
960
|
+
});
|
|
961
|
+
};
|
|
771
962
|
const deserializeMetadata = (output) => ({
|
|
772
963
|
httpStatusCode: output.statusCode,
|
|
773
964
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|