@aws-sdk/client-docdb-elastic 3.478.0 → 3.481.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist-cjs/commands/CreateClusterCommand.js +18 -41
  2. package/dist-cjs/commands/CreateClusterSnapshotCommand.js +18 -41
  3. package/dist-cjs/commands/DeleteClusterCommand.js +18 -41
  4. package/dist-cjs/commands/DeleteClusterSnapshotCommand.js +18 -41
  5. package/dist-cjs/commands/GetClusterCommand.js +18 -41
  6. package/dist-cjs/commands/GetClusterSnapshotCommand.js +18 -41
  7. package/dist-cjs/commands/ListClusterSnapshotsCommand.js +18 -41
  8. package/dist-cjs/commands/ListClustersCommand.js +18 -41
  9. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  10. package/dist-cjs/commands/RestoreClusterFromSnapshotCommand.js +18 -41
  11. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  12. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  13. package/dist-cjs/commands/UpdateClusterCommand.js +18 -41
  14. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  15. package/dist-es/commands/CreateClusterCommand.js +18 -41
  16. package/dist-es/commands/CreateClusterSnapshotCommand.js +18 -41
  17. package/dist-es/commands/DeleteClusterCommand.js +18 -41
  18. package/dist-es/commands/DeleteClusterSnapshotCommand.js +18 -41
  19. package/dist-es/commands/GetClusterCommand.js +18 -41
  20. package/dist-es/commands/GetClusterSnapshotCommand.js +18 -41
  21. package/dist-es/commands/ListClusterSnapshotsCommand.js +18 -41
  22. package/dist-es/commands/ListClustersCommand.js +18 -41
  23. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  24. package/dist-es/commands/RestoreClusterFromSnapshotCommand.js +18 -41
  25. package/dist-es/commands/TagResourceCommand.js +18 -41
  26. package/dist-es/commands/UntagResourceCommand.js +18 -41
  27. package/dist-es/commands/UpdateClusterCommand.js +18 -41
  28. package/dist-es/endpoint/EndpointParameters.js +6 -0
  29. package/dist-types/commands/CreateClusterCommand.d.ts +6 -21
  30. package/dist-types/commands/CreateClusterSnapshotCommand.d.ts +6 -21
  31. package/dist-types/commands/DeleteClusterCommand.d.ts +6 -21
  32. package/dist-types/commands/DeleteClusterSnapshotCommand.d.ts +6 -21
  33. package/dist-types/commands/GetClusterCommand.d.ts +6 -21
  34. package/dist-types/commands/GetClusterSnapshotCommand.d.ts +6 -21
  35. package/dist-types/commands/ListClusterSnapshotsCommand.d.ts +6 -21
  36. package/dist-types/commands/ListClustersCommand.d.ts +6 -21
  37. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  38. package/dist-types/commands/RestoreClusterFromSnapshotCommand.d.ts +6 -21
  39. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  40. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  41. package/dist-types/commands/UpdateClusterCommand.d.ts +6 -21
  42. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  43. package/dist-types/ts3.4/commands/CreateClusterCommand.d.ts +14 -23
  44. package/dist-types/ts3.4/commands/CreateClusterSnapshotCommand.d.ts +12 -24
  45. package/dist-types/ts3.4/commands/DeleteClusterCommand.d.ts +14 -23
  46. package/dist-types/ts3.4/commands/DeleteClusterSnapshotCommand.d.ts +12 -24
  47. package/dist-types/ts3.4/commands/GetClusterCommand.d.ts +14 -23
  48. package/dist-types/ts3.4/commands/GetClusterSnapshotCommand.d.ts +14 -23
  49. package/dist-types/ts3.4/commands/ListClusterSnapshotsCommand.d.ts +12 -24
  50. package/dist-types/ts3.4/commands/ListClustersCommand.d.ts +14 -23
  51. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  52. package/dist-types/ts3.4/commands/RestoreClusterFromSnapshotCommand.d.ts +12 -24
  53. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  54. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  55. package/dist-types/ts3.4/commands/UpdateClusterCommand.d.ts +14 -23
  56. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  57. package/package.json +9 -9
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_GetClusterSnapshotCommand, se_GetClusterSnapshotCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class GetClusterSnapshotCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, GetClusterSnapshotCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "DocDBElasticClient";
26
- const commandName = "GetClusterSnapshotCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "ChimeraDbLionfishServiceLambda",
35
- operation: "GetClusterSnapshot",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_GetClusterSnapshotCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetClusterSnapshotCommand(output, context);
46
- }
7
+ export class GetClusterSnapshotCommand 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("ChimeraDbLionfishServiceLambda", "GetClusterSnapshot", {})
19
+ .n("DocDBElasticClient", "GetClusterSnapshotCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetClusterSnapshotCommand)
22
+ .de(de_GetClusterSnapshotCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListClusterSnapshotsCommand, se_ListClusterSnapshotsCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListClusterSnapshotsCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListClusterSnapshotsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "DocDBElasticClient";
26
- const commandName = "ListClusterSnapshotsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "ChimeraDbLionfishServiceLambda",
35
- operation: "ListClusterSnapshots",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListClusterSnapshotsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListClusterSnapshotsCommand(output, context);
46
- }
7
+ export class ListClusterSnapshotsCommand 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("ChimeraDbLionfishServiceLambda", "ListClusterSnapshots", {})
19
+ .n("DocDBElasticClient", "ListClusterSnapshotsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListClusterSnapshotsCommand)
22
+ .de(de_ListClusterSnapshotsCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListClustersCommand, se_ListClustersCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListClustersCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListClustersCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "DocDBElasticClient";
26
- const commandName = "ListClustersCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "ChimeraDbLionfishServiceLambda",
35
- operation: "ListClusters",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListClustersCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListClustersCommand(output, context);
46
- }
7
+ export class ListClustersCommand 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("ChimeraDbLionfishServiceLambda", "ListClusters", {})
19
+ .n("DocDBElasticClient", "ListClustersCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListClustersCommand)
22
+ .de(de_ListClustersCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class ListTagsForResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, ListTagsForResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "DocDBElasticClient";
26
- const commandName = "ListTagsForResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "ChimeraDbLionfishServiceLambda",
35
- operation: "ListTagsForResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_ListTagsForResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_ListTagsForResourceCommand(output, context);
46
- }
7
+ export class ListTagsForResourceCommand 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("ChimeraDbLionfishServiceLambda", "ListTagsForResource", {})
19
+ .n("DocDBElasticClient", "ListTagsForResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListTagsForResourceCommand)
22
+ .de(de_ListTagsForResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_RestoreClusterFromSnapshotCommand, se_RestoreClusterFromSnapshotCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class RestoreClusterFromSnapshotCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, RestoreClusterFromSnapshotCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "DocDBElasticClient";
26
- const commandName = "RestoreClusterFromSnapshotCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "ChimeraDbLionfishServiceLambda",
35
- operation: "RestoreClusterFromSnapshot",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_RestoreClusterFromSnapshotCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_RestoreClusterFromSnapshotCommand(output, context);
46
- }
7
+ export class RestoreClusterFromSnapshotCommand 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("ChimeraDbLionfishServiceLambda", "RestoreClusterFromSnapshot", {})
19
+ .n("DocDBElasticClient", "RestoreClusterFromSnapshotCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_RestoreClusterFromSnapshotCommand)
22
+ .de(de_RestoreClusterFromSnapshotCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class TagResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, TagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "DocDBElasticClient";
26
- const commandName = "TagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "ChimeraDbLionfishServiceLambda",
35
- operation: "TagResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_TagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_TagResourceCommand(output, context);
46
- }
7
+ export class TagResourceCommand 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("ChimeraDbLionfishServiceLambda", "TagResource", {})
19
+ .n("DocDBElasticClient", "TagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_TagResourceCommand)
22
+ .de(de_TagResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class UntagResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "DocDBElasticClient";
26
- const commandName = "UntagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "ChimeraDbLionfishServiceLambda",
35
- operation: "UntagResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UntagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UntagResourceCommand(output, context);
46
- }
7
+ export class UntagResourceCommand 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("ChimeraDbLionfishServiceLambda", "UntagResource", {})
19
+ .n("DocDBElasticClient", "UntagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UntagResourceCommand)
22
+ .de(de_UntagResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,48 +1,25 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { UpdateClusterInputFilterSensitiveLog } from "../models/models_0";
6
6
  import { de_UpdateClusterCommand, se_UpdateClusterCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class UpdateClusterCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
14
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
15
- };
16
- }
17
- constructor(input) {
18
- super();
19
- this.input = input;
20
- }
21
- resolveMiddleware(clientStack, configuration, options) {
22
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
23
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateClusterCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "DocDBElasticClient";
27
- const commandName = "UpdateClusterCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: UpdateClusterInputFilterSensitiveLog,
33
- outputFilterSensitiveLog: (_) => _,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "ChimeraDbLionfishServiceLambda",
36
- operation: "UpdateCluster",
37
- },
38
- };
39
- const { requestHandler } = configuration;
40
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
41
- }
42
- serialize(input, context) {
43
- return se_UpdateClusterCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_UpdateClusterCommand(output, context);
47
- }
8
+ export class UpdateClusterCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ })
13
+ .m(function (Command, cs, config, o) {
14
+ return [
15
+ getSerdePlugin(config, this.serialize, this.deserialize),
16
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
17
+ ];
18
+ })
19
+ .s("ChimeraDbLionfishServiceLambda", "UpdateCluster", {})
20
+ .n("DocDBElasticClient", "UpdateClusterCommand")
21
+ .f(UpdateClusterInputFilterSensitiveLog, void 0)
22
+ .ser(se_UpdateClusterCommand)
23
+ .de(de_UpdateClusterCommand)
24
+ .build() {
48
25
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "docdb-elastic",
7
7
  };
8
8
  };
9
+ export const commonParams = {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { DocDBElasticClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DocDBElasticClient";
5
4
  import { CreateClusterInput, CreateClusterOutput } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateClusterCommandInput extends CreateClusterInput {
21
20
  */
22
21
  export interface CreateClusterCommandOutput extends CreateClusterOutput, __MetadataBearer {
23
22
  }
23
+ declare const CreateClusterCommand_base: {
24
+ new (input: CreateClusterCommandInput): import("@smithy/smithy-client").CommandImpl<CreateClusterCommandInput, CreateClusterCommandOutput, DocDBElasticClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates a new Elastic DocumentDB cluster and returns its Cluster structure.</p>
@@ -104,23 +107,5 @@ export interface CreateClusterCommandOutput extends CreateClusterOutput, __Metad
104
107
  * <p>Base exception class for all service exceptions from DocDBElastic service.</p>
105
108
  *
106
109
  */
107
- export declare class CreateClusterCommand extends $Command<CreateClusterCommandInput, CreateClusterCommandOutput, DocDBElasticClientResolvedConfig> {
108
- readonly input: CreateClusterCommandInput;
109
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
110
- /**
111
- * @public
112
- */
113
- constructor(input: CreateClusterCommandInput);
114
- /**
115
- * @internal
116
- */
117
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DocDBElasticClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateClusterCommandInput, CreateClusterCommandOutput>;
118
- /**
119
- * @internal
120
- */
121
- private serialize;
122
- /**
123
- * @internal
124
- */
125
- private deserialize;
110
+ export declare class CreateClusterCommand extends CreateClusterCommand_base {
126
111
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { DocDBElasticClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DocDBElasticClient";
5
4
  import { CreateClusterSnapshotInput, CreateClusterSnapshotOutput } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateClusterSnapshotCommandInput extends CreateClusterSnapshot
21
20
  */
22
21
  export interface CreateClusterSnapshotCommandOutput extends CreateClusterSnapshotOutput, __MetadataBearer {
23
22
  }
23
+ declare const CreateClusterSnapshotCommand_base: {
24
+ new (input: CreateClusterSnapshotCommandInput): import("@smithy/smithy-client").CommandImpl<CreateClusterSnapshotCommandInput, CreateClusterSnapshotCommandOutput, DocDBElasticClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates a snapshot of a cluster.</p>
@@ -91,23 +94,5 @@ export interface CreateClusterSnapshotCommandOutput extends CreateClusterSnapsho
91
94
  * <p>Base exception class for all service exceptions from DocDBElastic service.</p>
92
95
  *
93
96
  */
94
- export declare class CreateClusterSnapshotCommand extends $Command<CreateClusterSnapshotCommandInput, CreateClusterSnapshotCommandOutput, DocDBElasticClientResolvedConfig> {
95
- readonly input: CreateClusterSnapshotCommandInput;
96
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
97
- /**
98
- * @public
99
- */
100
- constructor(input: CreateClusterSnapshotCommandInput);
101
- /**
102
- * @internal
103
- */
104
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DocDBElasticClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateClusterSnapshotCommandInput, CreateClusterSnapshotCommandOutput>;
105
- /**
106
- * @internal
107
- */
108
- private serialize;
109
- /**
110
- * @internal
111
- */
112
- private deserialize;
97
+ export declare class CreateClusterSnapshotCommand extends CreateClusterSnapshotCommand_base {
113
98
  }