@aws-sdk/client-keyspaces 3.927.0 → 3.928.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist-cjs/index.js +663 -835
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/KeyspacesClient.js +2 -0
  4. package/dist-es/commands/CreateKeyspaceCommand.js +3 -9
  5. package/dist-es/commands/CreateTableCommand.js +3 -9
  6. package/dist-es/commands/CreateTypeCommand.js +3 -9
  7. package/dist-es/commands/DeleteKeyspaceCommand.js +3 -9
  8. package/dist-es/commands/DeleteTableCommand.js +3 -9
  9. package/dist-es/commands/DeleteTypeCommand.js +3 -9
  10. package/dist-es/commands/GetKeyspaceCommand.js +3 -9
  11. package/dist-es/commands/GetTableAutoScalingSettingsCommand.js +3 -9
  12. package/dist-es/commands/GetTableCommand.js +3 -9
  13. package/dist-es/commands/GetTypeCommand.js +3 -9
  14. package/dist-es/commands/ListKeyspacesCommand.js +3 -9
  15. package/dist-es/commands/ListTablesCommand.js +3 -9
  16. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  17. package/dist-es/commands/ListTypesCommand.js +3 -9
  18. package/dist-es/commands/RestoreTableCommand.js +3 -9
  19. package/dist-es/commands/TagResourceCommand.js +3 -9
  20. package/dist-es/commands/UntagResourceCommand.js +3 -9
  21. package/dist-es/commands/UpdateKeyspaceCommand.js +3 -9
  22. package/dist-es/commands/UpdateTableCommand.js +3 -9
  23. package/dist-es/runtimeConfig.shared.js +7 -0
  24. package/dist-es/schemas/schemas_0.js +608 -0
  25. package/dist-types/KeyspacesClient.d.ts +10 -1
  26. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  27. package/dist-types/runtimeConfig.d.ts +1 -0
  28. package/dist-types/runtimeConfig.native.d.ts +1 -0
  29. package/dist-types/runtimeConfig.shared.d.ts +2 -5
  30. package/dist-types/schemas/schemas_0.d.ts +108 -0
  31. package/dist-types/ts3.4/KeyspacesClient.d.ts +4 -0
  32. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  33. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  34. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  35. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  36. package/dist-types/ts3.4/schemas/schemas_0.d.ts +113 -0
  37. package/package.json +5 -5
  38. package/dist-es/protocols/Aws_json1_0.js +0 -688
  39. package/dist-types/protocols/Aws_json1_0.d.ts +0 -173
  40. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +0 -233
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const core_1 = require("@aws-sdk/core");
5
+ const protocols_1 = require("@aws-sdk/core/protocols");
5
6
  const smithy_client_1 = require("@smithy/smithy-client");
6
7
  const url_parser_1 = require("@smithy/url-parser");
7
8
  const util_base64_1 = require("@smithy/util-base64");
@@ -25,6 +26,12 @@ const getRuntimeConfig = (config) => {
25
26
  },
26
27
  ],
27
28
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
29
+ protocol: config?.protocol ??
30
+ new protocols_1.AwsJson1_0Protocol({
31
+ defaultNamespace: "com.amazonaws.keyspaces",
32
+ serviceTarget: "KeyspacesService",
33
+ awsQueryCompatible: false,
34
+ }),
28
35
  serviceId: config?.serviceId ?? "Keyspaces",
29
36
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
30
37
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
4
4
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
5
5
  import { resolveRegionConfig } from "@smithy/config-resolver";
6
6
  import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
7
+ import { getSchemaSerdePlugin } from "@smithy/core/schema";
7
8
  import { getContentLengthPlugin } from "@smithy/middleware-content-length";
8
9
  import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
9
10
  import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
@@ -28,6 +29,7 @@ export class KeyspacesClient extends __Client {
28
29
  const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
29
30
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
30
31
  this.config = _config_8;
32
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
31
33
  this.middlewareStack.use(getUserAgentPlugin(this.config));
32
34
  this.middlewareStack.use(getRetryPlugin(this.config));
33
35
  this.middlewareStack.use(getContentLengthPlugin(this.config));
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_CreateKeyspaceCommand, se_CreateKeyspaceCommand } from "../protocols/Aws_json1_0";
4
+ import { CreateKeyspace } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class CreateKeyspaceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("KeyspacesService", "CreateKeyspace", {})
17
13
  .n("KeyspacesClient", "CreateKeyspaceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_CreateKeyspaceCommand)
20
- .de(de_CreateKeyspaceCommand)
14
+ .sc(CreateKeyspace)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_CreateTableCommand, se_CreateTableCommand } from "../protocols/Aws_json1_0";
4
+ import { CreateTable } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class CreateTableCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("KeyspacesService", "CreateTable", {})
17
13
  .n("KeyspacesClient", "CreateTableCommand")
18
- .f(void 0, void 0)
19
- .ser(se_CreateTableCommand)
20
- .de(de_CreateTableCommand)
14
+ .sc(CreateTable)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_CreateTypeCommand, se_CreateTypeCommand } from "../protocols/Aws_json1_0";
4
+ import { CreateType } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class CreateTypeCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("KeyspacesService", "CreateType", {})
17
13
  .n("KeyspacesClient", "CreateTypeCommand")
18
- .f(void 0, void 0)
19
- .ser(se_CreateTypeCommand)
20
- .de(de_CreateTypeCommand)
14
+ .sc(CreateType)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_DeleteKeyspaceCommand, se_DeleteKeyspaceCommand } from "../protocols/Aws_json1_0";
4
+ import { DeleteKeyspace } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DeleteKeyspaceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("KeyspacesService", "DeleteKeyspace", {})
17
13
  .n("KeyspacesClient", "DeleteKeyspaceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DeleteKeyspaceCommand)
20
- .de(de_DeleteKeyspaceCommand)
14
+ .sc(DeleteKeyspace)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_DeleteTableCommand, se_DeleteTableCommand } from "../protocols/Aws_json1_0";
4
+ import { DeleteTable } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DeleteTableCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("KeyspacesService", "DeleteTable", {})
17
13
  .n("KeyspacesClient", "DeleteTableCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DeleteTableCommand)
20
- .de(de_DeleteTableCommand)
14
+ .sc(DeleteTable)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_DeleteTypeCommand, se_DeleteTypeCommand } from "../protocols/Aws_json1_0";
4
+ import { DeleteType } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DeleteTypeCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("KeyspacesService", "DeleteType", {})
17
13
  .n("KeyspacesClient", "DeleteTypeCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DeleteTypeCommand)
20
- .de(de_DeleteTypeCommand)
14
+ .sc(DeleteType)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_GetKeyspaceCommand, se_GetKeyspaceCommand } from "../protocols/Aws_json1_0";
4
+ import { GetKeyspace } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetKeyspaceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("KeyspacesService", "GetKeyspace", {})
17
13
  .n("KeyspacesClient", "GetKeyspaceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetKeyspaceCommand)
20
- .de(de_GetKeyspaceCommand)
14
+ .sc(GetKeyspace)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_GetTableAutoScalingSettingsCommand, se_GetTableAutoScalingSettingsCommand } from "../protocols/Aws_json1_0";
4
+ import { GetTableAutoScalingSettings } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetTableAutoScalingSettingsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("KeyspacesService", "GetTableAutoScalingSettings", {})
17
13
  .n("KeyspacesClient", "GetTableAutoScalingSettingsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetTableAutoScalingSettingsCommand)
20
- .de(de_GetTableAutoScalingSettingsCommand)
14
+ .sc(GetTableAutoScalingSettings)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_GetTableCommand, se_GetTableCommand } from "../protocols/Aws_json1_0";
4
+ import { GetTable } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetTableCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("KeyspacesService", "GetTable", {})
17
13
  .n("KeyspacesClient", "GetTableCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetTableCommand)
20
- .de(de_GetTableCommand)
14
+ .sc(GetTable)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_GetTypeCommand, se_GetTypeCommand } from "../protocols/Aws_json1_0";
4
+ import { GetType } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetTypeCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("KeyspacesService", "GetType", {})
17
13
  .n("KeyspacesClient", "GetTypeCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetTypeCommand)
20
- .de(de_GetTypeCommand)
14
+ .sc(GetType)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListKeyspacesCommand, se_ListKeyspacesCommand } from "../protocols/Aws_json1_0";
4
+ import { ListKeyspaces } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListKeyspacesCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("KeyspacesService", "ListKeyspaces", {})
17
13
  .n("KeyspacesClient", "ListKeyspacesCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListKeyspacesCommand)
20
- .de(de_ListKeyspacesCommand)
14
+ .sc(ListKeyspaces)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListTablesCommand, se_ListTablesCommand } from "../protocols/Aws_json1_0";
4
+ import { ListTables } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListTablesCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("KeyspacesService", "ListTables", {})
17
13
  .n("KeyspacesClient", "ListTablesCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListTablesCommand)
20
- .de(de_ListTablesCommand)
14
+ .sc(ListTables)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_json1_0";
4
+ import { ListTagsForResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListTagsForResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("KeyspacesService", "ListTagsForResource", {})
17
13
  .n("KeyspacesClient", "ListTagsForResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListTagsForResourceCommand)
20
- .de(de_ListTagsForResourceCommand)
14
+ .sc(ListTagsForResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_ListTypesCommand, se_ListTypesCommand } from "../protocols/Aws_json1_0";
4
+ import { ListTypes } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class ListTypesCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("KeyspacesService", "ListTypes", {})
17
13
  .n("KeyspacesClient", "ListTypesCommand")
18
- .f(void 0, void 0)
19
- .ser(se_ListTypesCommand)
20
- .de(de_ListTypesCommand)
14
+ .sc(ListTypes)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_RestoreTableCommand, se_RestoreTableCommand } from "../protocols/Aws_json1_0";
4
+ import { RestoreTable } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class RestoreTableCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("KeyspacesService", "RestoreTable", {})
17
13
  .n("KeyspacesClient", "RestoreTableCommand")
18
- .f(void 0, void 0)
19
- .ser(se_RestoreTableCommand)
20
- .de(de_RestoreTableCommand)
14
+ .sc(RestoreTable)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_json1_0";
4
+ import { TagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class TagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("KeyspacesService", "TagResource", {})
17
13
  .n("KeyspacesClient", "TagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_TagResourceCommand)
20
- .de(de_TagResourceCommand)
14
+ .sc(TagResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_json1_0";
4
+ import { UntagResource } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UntagResourceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("KeyspacesService", "UntagResource", {})
17
13
  .n("KeyspacesClient", "UntagResourceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UntagResourceCommand)
20
- .de(de_UntagResourceCommand)
14
+ .sc(UntagResource)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateKeyspaceCommand, se_UpdateKeyspaceCommand } from "../protocols/Aws_json1_0";
4
+ import { UpdateKeyspace } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateKeyspaceCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("KeyspacesService", "UpdateKeyspace", {})
17
13
  .n("KeyspacesClient", "UpdateKeyspaceCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateKeyspaceCommand)
20
- .de(de_UpdateKeyspaceCommand)
14
+ .sc(UpdateKeyspace)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateTableCommand, se_UpdateTableCommand } from "../protocols/Aws_json1_0";
4
+ import { UpdateTable } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateTableCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("KeyspacesService", "UpdateTable", {})
17
13
  .n("KeyspacesClient", "UpdateTableCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateTableCommand)
20
- .de(de_UpdateTableCommand)
14
+ .sc(UpdateTable)
21
15
  .build() {
22
16
  }
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsJson1_0Protocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,12 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ??
27
+ new AwsJson1_0Protocol({
28
+ defaultNamespace: "com.amazonaws.keyspaces",
29
+ serviceTarget: "KeyspacesService",
30
+ awsQueryCompatible: false,
31
+ }),
25
32
  serviceId: config?.serviceId ?? "Keyspaces",
26
33
  urlParser: config?.urlParser ?? parseUrl,
27
34
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,