@aws-sdk/client-cloudfront-keyvaluestore 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 (29) hide show
  1. package/dist-cjs/commands/DeleteKeyCommand.js +19 -41
  2. package/dist-cjs/commands/DescribeKeyValueStoreCommand.js +19 -41
  3. package/dist-cjs/commands/GetKeyCommand.js +19 -41
  4. package/dist-cjs/commands/ListKeysCommand.js +19 -41
  5. package/dist-cjs/commands/PutKeyCommand.js +19 -41
  6. package/dist-cjs/commands/UpdateKeysCommand.js +19 -41
  7. package/dist-cjs/endpoint/EndpointParameters.js +6 -1
  8. package/dist-es/commands/DeleteKeyCommand.js +19 -41
  9. package/dist-es/commands/DescribeKeyValueStoreCommand.js +19 -41
  10. package/dist-es/commands/GetKeyCommand.js +19 -41
  11. package/dist-es/commands/ListKeysCommand.js +19 -41
  12. package/dist-es/commands/PutKeyCommand.js +19 -41
  13. package/dist-es/commands/UpdateKeysCommand.js +19 -41
  14. package/dist-es/endpoint/EndpointParameters.js +5 -0
  15. package/dist-types/commands/DeleteKeyCommand.d.ts +6 -21
  16. package/dist-types/commands/DescribeKeyValueStoreCommand.d.ts +6 -21
  17. package/dist-types/commands/GetKeyCommand.d.ts +6 -21
  18. package/dist-types/commands/ListKeysCommand.d.ts +6 -21
  19. package/dist-types/commands/PutKeyCommand.d.ts +6 -21
  20. package/dist-types/commands/UpdateKeysCommand.d.ts +6 -21
  21. package/dist-types/endpoint/EndpointParameters.d.ts +14 -0
  22. package/dist-types/ts3.4/commands/DeleteKeyCommand.d.ts +14 -23
  23. package/dist-types/ts3.4/commands/DescribeKeyValueStoreCommand.d.ts +12 -24
  24. package/dist-types/ts3.4/commands/GetKeyCommand.d.ts +12 -23
  25. package/dist-types/ts3.4/commands/ListKeysCommand.d.ts +14 -23
  26. package/dist-types/ts3.4/commands/PutKeyCommand.d.ts +12 -23
  27. package/dist-types/ts3.4/commands/UpdateKeysCommand.d.ts +14 -23
  28. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +14 -0
  29. package/package.json +9 -9
@@ -5,47 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class DeleteKeyCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- KvsARN: { type: "contextParams", name: "KvsARN" },
14
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
- Endpoint: { type: "builtInParams", name: "endpoint" },
16
- Region: { type: "builtInParams", name: "region" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteKeyCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "CloudFrontKeyValueStoreClient";
29
- const commandName = "DeleteKeyCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "CloudFrontKeyValueStore",
38
- operation: "DeleteKey",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_DeleteKeyCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_DeleteKeyCommand)(output, context);
49
- }
10
+ class DeleteKeyCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ KvsARN: { type: "contextParams", name: "KvsARN" },
15
+ })
16
+ .m(function (Command, cs, config, o) {
17
+ return [
18
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
19
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
20
+ ];
21
+ })
22
+ .s("CloudFrontKeyValueStore", "DeleteKey", {})
23
+ .n("CloudFrontKeyValueStoreClient", "DeleteKeyCommand")
24
+ .f(void 0, void 0)
25
+ .ser(Aws_restJson1_1.se_DeleteKeyCommand)
26
+ .de(Aws_restJson1_1.de_DeleteKeyCommand)
27
+ .build() {
50
28
  }
51
29
  exports.DeleteKeyCommand = DeleteKeyCommand;
@@ -5,47 +5,25 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class DescribeKeyValueStoreCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- KvsARN: { type: "contextParams", name: "KvsARN" },
14
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
- Endpoint: { type: "builtInParams", name: "endpoint" },
16
- Region: { type: "builtInParams", name: "region" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeKeyValueStoreCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "CloudFrontKeyValueStoreClient";
29
- const commandName = "DescribeKeyValueStoreCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "CloudFrontKeyValueStore",
38
- operation: "DescribeKeyValueStore",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_DescribeKeyValueStoreCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_DescribeKeyValueStoreCommand)(output, context);
49
- }
10
+ class DescribeKeyValueStoreCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ KvsARN: { type: "contextParams", name: "KvsARN" },
15
+ })
16
+ .m(function (Command, cs, config, o) {
17
+ return [
18
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
19
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
20
+ ];
21
+ })
22
+ .s("CloudFrontKeyValueStore", "DescribeKeyValueStore", {})
23
+ .n("CloudFrontKeyValueStoreClient", "DescribeKeyValueStoreCommand")
24
+ .f(void 0, void 0)
25
+ .ser(Aws_restJson1_1.se_DescribeKeyValueStoreCommand)
26
+ .de(Aws_restJson1_1.de_DescribeKeyValueStoreCommand)
27
+ .build() {
50
28
  }
51
29
  exports.DescribeKeyValueStoreCommand = DescribeKeyValueStoreCommand;
@@ -5,48 +5,26 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
- class GetKeyCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
14
- KvsARN: { type: "contextParams", name: "KvsARN" },
15
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
16
- Endpoint: { type: "builtInParams", name: "endpoint" },
17
- Region: { type: "builtInParams", name: "region" },
18
- };
19
- }
20
- constructor(input) {
21
- super();
22
- this.input = input;
23
- }
24
- resolveMiddleware(clientStack, configuration, options) {
25
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetKeyCommand.getEndpointParameterInstructions()));
27
- const stack = clientStack.concat(this.middlewareStack);
28
- const { logger } = configuration;
29
- const clientName = "CloudFrontKeyValueStoreClient";
30
- const commandName = "GetKeyCommand";
31
- const handlerExecutionContext = {
32
- logger,
33
- clientName,
34
- commandName,
35
- inputFilterSensitiveLog: (_) => _,
36
- outputFilterSensitiveLog: models_0_1.GetKeyResponseFilterSensitiveLog,
37
- [types_1.SMITHY_CONTEXT_KEY]: {
38
- service: "CloudFrontKeyValueStore",
39
- operation: "GetKey",
40
- },
41
- };
42
- const { requestHandler } = configuration;
43
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
44
- }
45
- serialize(input, context) {
46
- return (0, Aws_restJson1_1.se_GetKeyCommand)(input, context);
47
- }
48
- deserialize(output, context) {
49
- return (0, Aws_restJson1_1.de_GetKeyCommand)(output, context);
50
- }
11
+ class GetKeyCommand extends smithy_client_1.Command
12
+ .classBuilder()
13
+ .ep({
14
+ ...EndpointParameters_1.commonParams,
15
+ KvsARN: { type: "contextParams", name: "KvsARN" },
16
+ })
17
+ .m(function (Command, cs, config, o) {
18
+ return [
19
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
20
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
21
+ ];
22
+ })
23
+ .s("CloudFrontKeyValueStore", "GetKey", {})
24
+ .n("CloudFrontKeyValueStoreClient", "GetKeyCommand")
25
+ .f(void 0, models_0_1.GetKeyResponseFilterSensitiveLog)
26
+ .ser(Aws_restJson1_1.se_GetKeyCommand)
27
+ .de(Aws_restJson1_1.de_GetKeyCommand)
28
+ .build() {
51
29
  }
52
30
  exports.GetKeyCommand = GetKeyCommand;
@@ -5,48 +5,26 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
- class ListKeysCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
14
- KvsARN: { type: "contextParams", name: "KvsARN" },
15
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
16
- Endpoint: { type: "builtInParams", name: "endpoint" },
17
- Region: { type: "builtInParams", name: "region" },
18
- };
19
- }
20
- constructor(input) {
21
- super();
22
- this.input = input;
23
- }
24
- resolveMiddleware(clientStack, configuration, options) {
25
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListKeysCommand.getEndpointParameterInstructions()));
27
- const stack = clientStack.concat(this.middlewareStack);
28
- const { logger } = configuration;
29
- const clientName = "CloudFrontKeyValueStoreClient";
30
- const commandName = "ListKeysCommand";
31
- const handlerExecutionContext = {
32
- logger,
33
- clientName,
34
- commandName,
35
- inputFilterSensitiveLog: (_) => _,
36
- outputFilterSensitiveLog: models_0_1.ListKeysResponseFilterSensitiveLog,
37
- [types_1.SMITHY_CONTEXT_KEY]: {
38
- service: "CloudFrontKeyValueStore",
39
- operation: "ListKeys",
40
- },
41
- };
42
- const { requestHandler } = configuration;
43
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
44
- }
45
- serialize(input, context) {
46
- return (0, Aws_restJson1_1.se_ListKeysCommand)(input, context);
47
- }
48
- deserialize(output, context) {
49
- return (0, Aws_restJson1_1.de_ListKeysCommand)(output, context);
50
- }
11
+ class ListKeysCommand extends smithy_client_1.Command
12
+ .classBuilder()
13
+ .ep({
14
+ ...EndpointParameters_1.commonParams,
15
+ KvsARN: { type: "contextParams", name: "KvsARN" },
16
+ })
17
+ .m(function (Command, cs, config, o) {
18
+ return [
19
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
20
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
21
+ ];
22
+ })
23
+ .s("CloudFrontKeyValueStore", "ListKeys", {})
24
+ .n("CloudFrontKeyValueStoreClient", "ListKeysCommand")
25
+ .f(void 0, models_0_1.ListKeysResponseFilterSensitiveLog)
26
+ .ser(Aws_restJson1_1.se_ListKeysCommand)
27
+ .de(Aws_restJson1_1.de_ListKeysCommand)
28
+ .build() {
51
29
  }
52
30
  exports.ListKeysCommand = ListKeysCommand;
@@ -5,48 +5,26 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
- class PutKeyCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
14
- KvsARN: { type: "contextParams", name: "KvsARN" },
15
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
16
- Endpoint: { type: "builtInParams", name: "endpoint" },
17
- Region: { type: "builtInParams", name: "region" },
18
- };
19
- }
20
- constructor(input) {
21
- super();
22
- this.input = input;
23
- }
24
- resolveMiddleware(clientStack, configuration, options) {
25
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PutKeyCommand.getEndpointParameterInstructions()));
27
- const stack = clientStack.concat(this.middlewareStack);
28
- const { logger } = configuration;
29
- const clientName = "CloudFrontKeyValueStoreClient";
30
- const commandName = "PutKeyCommand";
31
- const handlerExecutionContext = {
32
- logger,
33
- clientName,
34
- commandName,
35
- inputFilterSensitiveLog: models_0_1.PutKeyRequestFilterSensitiveLog,
36
- outputFilterSensitiveLog: (_) => _,
37
- [types_1.SMITHY_CONTEXT_KEY]: {
38
- service: "CloudFrontKeyValueStore",
39
- operation: "PutKey",
40
- },
41
- };
42
- const { requestHandler } = configuration;
43
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
44
- }
45
- serialize(input, context) {
46
- return (0, Aws_restJson1_1.se_PutKeyCommand)(input, context);
47
- }
48
- deserialize(output, context) {
49
- return (0, Aws_restJson1_1.de_PutKeyCommand)(output, context);
50
- }
11
+ class PutKeyCommand extends smithy_client_1.Command
12
+ .classBuilder()
13
+ .ep({
14
+ ...EndpointParameters_1.commonParams,
15
+ KvsARN: { type: "contextParams", name: "KvsARN" },
16
+ })
17
+ .m(function (Command, cs, config, o) {
18
+ return [
19
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
20
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
21
+ ];
22
+ })
23
+ .s("CloudFrontKeyValueStore", "PutKey", {})
24
+ .n("CloudFrontKeyValueStoreClient", "PutKeyCommand")
25
+ .f(models_0_1.PutKeyRequestFilterSensitiveLog, void 0)
26
+ .ser(Aws_restJson1_1.se_PutKeyCommand)
27
+ .de(Aws_restJson1_1.de_PutKeyCommand)
28
+ .build() {
51
29
  }
52
30
  exports.PutKeyCommand = PutKeyCommand;
@@ -5,48 +5,26 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const models_0_1 = require("../models/models_0");
10
10
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
11
- class UpdateKeysCommand extends smithy_client_1.Command {
12
- static getEndpointParameterInstructions() {
13
- return {
14
- KvsARN: { type: "contextParams", name: "KvsARN" },
15
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
16
- Endpoint: { type: "builtInParams", name: "endpoint" },
17
- Region: { type: "builtInParams", name: "region" },
18
- };
19
- }
20
- constructor(input) {
21
- super();
22
- this.input = input;
23
- }
24
- resolveMiddleware(clientStack, configuration, options) {
25
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
26
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateKeysCommand.getEndpointParameterInstructions()));
27
- const stack = clientStack.concat(this.middlewareStack);
28
- const { logger } = configuration;
29
- const clientName = "CloudFrontKeyValueStoreClient";
30
- const commandName = "UpdateKeysCommand";
31
- const handlerExecutionContext = {
32
- logger,
33
- clientName,
34
- commandName,
35
- inputFilterSensitiveLog: models_0_1.UpdateKeysRequestFilterSensitiveLog,
36
- outputFilterSensitiveLog: (_) => _,
37
- [types_1.SMITHY_CONTEXT_KEY]: {
38
- service: "CloudFrontKeyValueStore",
39
- operation: "UpdateKeys",
40
- },
41
- };
42
- const { requestHandler } = configuration;
43
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
44
- }
45
- serialize(input, context) {
46
- return (0, Aws_restJson1_1.se_UpdateKeysCommand)(input, context);
47
- }
48
- deserialize(output, context) {
49
- return (0, Aws_restJson1_1.de_UpdateKeysCommand)(output, context);
50
- }
11
+ class UpdateKeysCommand extends smithy_client_1.Command
12
+ .classBuilder()
13
+ .ep({
14
+ ...EndpointParameters_1.commonParams,
15
+ KvsARN: { type: "contextParams", name: "KvsARN" },
16
+ })
17
+ .m(function (Command, cs, config, o) {
18
+ return [
19
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
20
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
21
+ ];
22
+ })
23
+ .s("CloudFrontKeyValueStore", "UpdateKeys", {})
24
+ .n("CloudFrontKeyValueStoreClient", "UpdateKeysCommand")
25
+ .f(models_0_1.UpdateKeysRequestFilterSensitiveLog, void 0)
26
+ .ser(Aws_restJson1_1.se_UpdateKeysCommand)
27
+ .de(Aws_restJson1_1.de_UpdateKeysCommand)
28
+ .build() {
51
29
  }
52
30
  exports.UpdateKeysCommand = UpdateKeysCommand;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveClientEndpointParameters = void 0;
3
+ exports.commonParams = exports.resolveClientEndpointParameters = void 0;
4
4
  const resolveClientEndpointParameters = (options) => {
5
5
  return {
6
6
  ...options,
@@ -9,3 +9,8 @@ const resolveClientEndpointParameters = (options) => {
9
9
  };
10
10
  };
11
11
  exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
12
+ exports.commonParams = {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ };
@@ -1,47 +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 { de_DeleteKeyCommand, se_DeleteKeyCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class DeleteKeyCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- KvsARN: { type: "contextParams", name: "KvsARN" },
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
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, DeleteKeyCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CloudFrontKeyValueStoreClient";
26
- const commandName = "DeleteKeyCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "CloudFrontKeyValueStore",
35
- operation: "DeleteKey",
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_DeleteKeyCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DeleteKeyCommand(output, context);
46
- }
7
+ export class DeleteKeyCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ KvsARN: { type: "contextParams", name: "KvsARN" },
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("CloudFrontKeyValueStore", "DeleteKey", {})
20
+ .n("CloudFrontKeyValueStoreClient", "DeleteKeyCommand")
21
+ .f(void 0, void 0)
22
+ .ser(se_DeleteKeyCommand)
23
+ .de(de_DeleteKeyCommand)
24
+ .build() {
47
25
  }
@@ -1,47 +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 { de_DescribeKeyValueStoreCommand, se_DescribeKeyValueStoreCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class DescribeKeyValueStoreCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- KvsARN: { type: "contextParams", name: "KvsARN" },
11
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
12
- Endpoint: { type: "builtInParams", name: "endpoint" },
13
- Region: { type: "builtInParams", name: "region" },
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, DescribeKeyValueStoreCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CloudFrontKeyValueStoreClient";
26
- const commandName = "DescribeKeyValueStoreCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "CloudFrontKeyValueStore",
35
- operation: "DescribeKeyValueStore",
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_DescribeKeyValueStoreCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DescribeKeyValueStoreCommand(output, context);
46
- }
7
+ export class DescribeKeyValueStoreCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ KvsARN: { type: "contextParams", name: "KvsARN" },
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("CloudFrontKeyValueStore", "DescribeKeyValueStore", {})
20
+ .n("CloudFrontKeyValueStoreClient", "DescribeKeyValueStoreCommand")
21
+ .f(void 0, void 0)
22
+ .ser(se_DescribeKeyValueStoreCommand)
23
+ .de(de_DescribeKeyValueStoreCommand)
24
+ .build() {
47
25
  }
@@ -1,48 +1,26 @@
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 { GetKeyResponseFilterSensitiveLog } from "../models/models_0";
6
6
  import { de_GetKeyCommand, se_GetKeyCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
- export class GetKeyCommand extends $Command {
9
- static getEndpointParameterInstructions() {
10
- return {
11
- KvsARN: { type: "contextParams", name: "KvsARN" },
12
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
- Endpoint: { type: "builtInParams", name: "endpoint" },
14
- Region: { type: "builtInParams", name: "region" },
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, GetKeyCommand.getEndpointParameterInstructions()));
24
- const stack = clientStack.concat(this.middlewareStack);
25
- const { logger } = configuration;
26
- const clientName = "CloudFrontKeyValueStoreClient";
27
- const commandName = "GetKeyCommand";
28
- const handlerExecutionContext = {
29
- logger,
30
- clientName,
31
- commandName,
32
- inputFilterSensitiveLog: (_) => _,
33
- outputFilterSensitiveLog: GetKeyResponseFilterSensitiveLog,
34
- [SMITHY_CONTEXT_KEY]: {
35
- service: "CloudFrontKeyValueStore",
36
- operation: "GetKey",
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_GetKeyCommand(input, context);
44
- }
45
- deserialize(output, context) {
46
- return de_GetKeyCommand(output, context);
47
- }
8
+ export class GetKeyCommand extends $Command
9
+ .classBuilder()
10
+ .ep({
11
+ ...commonParams,
12
+ KvsARN: { type: "contextParams", name: "KvsARN" },
13
+ })
14
+ .m(function (Command, cs, config, o) {
15
+ return [
16
+ getSerdePlugin(config, this.serialize, this.deserialize),
17
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
18
+ ];
19
+ })
20
+ .s("CloudFrontKeyValueStore", "GetKey", {})
21
+ .n("CloudFrontKeyValueStoreClient", "GetKeyCommand")
22
+ .f(void 0, GetKeyResponseFilterSensitiveLog)
23
+ .ser(se_GetKeyCommand)
24
+ .de(de_GetKeyCommand)
25
+ .build() {
48
26
  }