@aws-sdk/client-amplifybackend 3.477.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 (129) hide show
  1. package/dist-cjs/commands/CloneBackendCommand.js +18 -41
  2. package/dist-cjs/commands/CreateBackendAPICommand.js +18 -41
  3. package/dist-cjs/commands/CreateBackendAuthCommand.js +18 -41
  4. package/dist-cjs/commands/CreateBackendCommand.js +18 -41
  5. package/dist-cjs/commands/CreateBackendConfigCommand.js +18 -41
  6. package/dist-cjs/commands/CreateBackendStorageCommand.js +18 -41
  7. package/dist-cjs/commands/CreateTokenCommand.js +18 -41
  8. package/dist-cjs/commands/DeleteBackendAPICommand.js +18 -41
  9. package/dist-cjs/commands/DeleteBackendAuthCommand.js +18 -41
  10. package/dist-cjs/commands/DeleteBackendCommand.js +18 -41
  11. package/dist-cjs/commands/DeleteBackendStorageCommand.js +18 -41
  12. package/dist-cjs/commands/DeleteTokenCommand.js +18 -41
  13. package/dist-cjs/commands/GenerateBackendAPIModelsCommand.js +18 -41
  14. package/dist-cjs/commands/GetBackendAPICommand.js +18 -41
  15. package/dist-cjs/commands/GetBackendAPIModelsCommand.js +18 -41
  16. package/dist-cjs/commands/GetBackendAuthCommand.js +18 -41
  17. package/dist-cjs/commands/GetBackendCommand.js +18 -41
  18. package/dist-cjs/commands/GetBackendJobCommand.js +18 -41
  19. package/dist-cjs/commands/GetBackendStorageCommand.js +18 -41
  20. package/dist-cjs/commands/GetTokenCommand.js +18 -41
  21. package/dist-cjs/commands/ImportBackendAuthCommand.js +18 -41
  22. package/dist-cjs/commands/ImportBackendStorageCommand.js +18 -41
  23. package/dist-cjs/commands/ListBackendJobsCommand.js +18 -41
  24. package/dist-cjs/commands/ListS3BucketsCommand.js +18 -41
  25. package/dist-cjs/commands/RemoveAllBackendsCommand.js +18 -41
  26. package/dist-cjs/commands/RemoveBackendConfigCommand.js +18 -41
  27. package/dist-cjs/commands/UpdateBackendAPICommand.js +18 -41
  28. package/dist-cjs/commands/UpdateBackendAuthCommand.js +18 -41
  29. package/dist-cjs/commands/UpdateBackendConfigCommand.js +18 -41
  30. package/dist-cjs/commands/UpdateBackendJobCommand.js +18 -41
  31. package/dist-cjs/commands/UpdateBackendStorageCommand.js +18 -41
  32. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  33. package/dist-es/commands/CloneBackendCommand.js +18 -41
  34. package/dist-es/commands/CreateBackendAPICommand.js +18 -41
  35. package/dist-es/commands/CreateBackendAuthCommand.js +18 -41
  36. package/dist-es/commands/CreateBackendCommand.js +18 -41
  37. package/dist-es/commands/CreateBackendConfigCommand.js +18 -41
  38. package/dist-es/commands/CreateBackendStorageCommand.js +18 -41
  39. package/dist-es/commands/CreateTokenCommand.js +18 -41
  40. package/dist-es/commands/DeleteBackendAPICommand.js +18 -41
  41. package/dist-es/commands/DeleteBackendAuthCommand.js +18 -41
  42. package/dist-es/commands/DeleteBackendCommand.js +18 -41
  43. package/dist-es/commands/DeleteBackendStorageCommand.js +18 -41
  44. package/dist-es/commands/DeleteTokenCommand.js +18 -41
  45. package/dist-es/commands/GenerateBackendAPIModelsCommand.js +18 -41
  46. package/dist-es/commands/GetBackendAPICommand.js +18 -41
  47. package/dist-es/commands/GetBackendAPIModelsCommand.js +18 -41
  48. package/dist-es/commands/GetBackendAuthCommand.js +18 -41
  49. package/dist-es/commands/GetBackendCommand.js +18 -41
  50. package/dist-es/commands/GetBackendJobCommand.js +18 -41
  51. package/dist-es/commands/GetBackendStorageCommand.js +18 -41
  52. package/dist-es/commands/GetTokenCommand.js +18 -41
  53. package/dist-es/commands/ImportBackendAuthCommand.js +18 -41
  54. package/dist-es/commands/ImportBackendStorageCommand.js +18 -41
  55. package/dist-es/commands/ListBackendJobsCommand.js +18 -41
  56. package/dist-es/commands/ListS3BucketsCommand.js +18 -41
  57. package/dist-es/commands/RemoveAllBackendsCommand.js +18 -41
  58. package/dist-es/commands/RemoveBackendConfigCommand.js +18 -41
  59. package/dist-es/commands/UpdateBackendAPICommand.js +18 -41
  60. package/dist-es/commands/UpdateBackendAuthCommand.js +18 -41
  61. package/dist-es/commands/UpdateBackendConfigCommand.js +18 -41
  62. package/dist-es/commands/UpdateBackendJobCommand.js +18 -41
  63. package/dist-es/commands/UpdateBackendStorageCommand.js +18 -41
  64. package/dist-es/endpoint/EndpointParameters.js +6 -0
  65. package/dist-types/commands/CloneBackendCommand.d.ts +6 -21
  66. package/dist-types/commands/CreateBackendAPICommand.d.ts +6 -21
  67. package/dist-types/commands/CreateBackendAuthCommand.d.ts +6 -21
  68. package/dist-types/commands/CreateBackendCommand.d.ts +6 -21
  69. package/dist-types/commands/CreateBackendConfigCommand.d.ts +6 -21
  70. package/dist-types/commands/CreateBackendStorageCommand.d.ts +6 -21
  71. package/dist-types/commands/CreateTokenCommand.d.ts +6 -21
  72. package/dist-types/commands/DeleteBackendAPICommand.d.ts +6 -21
  73. package/dist-types/commands/DeleteBackendAuthCommand.d.ts +6 -21
  74. package/dist-types/commands/DeleteBackendCommand.d.ts +6 -21
  75. package/dist-types/commands/DeleteBackendStorageCommand.d.ts +6 -21
  76. package/dist-types/commands/DeleteTokenCommand.d.ts +6 -21
  77. package/dist-types/commands/GenerateBackendAPIModelsCommand.d.ts +6 -21
  78. package/dist-types/commands/GetBackendAPICommand.d.ts +6 -21
  79. package/dist-types/commands/GetBackendAPIModelsCommand.d.ts +6 -21
  80. package/dist-types/commands/GetBackendAuthCommand.d.ts +6 -21
  81. package/dist-types/commands/GetBackendCommand.d.ts +6 -21
  82. package/dist-types/commands/GetBackendJobCommand.d.ts +6 -21
  83. package/dist-types/commands/GetBackendStorageCommand.d.ts +6 -21
  84. package/dist-types/commands/GetTokenCommand.d.ts +6 -21
  85. package/dist-types/commands/ImportBackendAuthCommand.d.ts +6 -21
  86. package/dist-types/commands/ImportBackendStorageCommand.d.ts +6 -21
  87. package/dist-types/commands/ListBackendJobsCommand.d.ts +6 -21
  88. package/dist-types/commands/ListS3BucketsCommand.d.ts +6 -21
  89. package/dist-types/commands/RemoveAllBackendsCommand.d.ts +6 -21
  90. package/dist-types/commands/RemoveBackendConfigCommand.d.ts +6 -21
  91. package/dist-types/commands/UpdateBackendAPICommand.d.ts +6 -21
  92. package/dist-types/commands/UpdateBackendAuthCommand.d.ts +6 -21
  93. package/dist-types/commands/UpdateBackendConfigCommand.d.ts +6 -21
  94. package/dist-types/commands/UpdateBackendJobCommand.d.ts +6 -21
  95. package/dist-types/commands/UpdateBackendStorageCommand.d.ts +6 -21
  96. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  97. package/dist-types/ts3.4/commands/CloneBackendCommand.d.ts +14 -23
  98. package/dist-types/ts3.4/commands/CreateBackendAPICommand.d.ts +14 -23
  99. package/dist-types/ts3.4/commands/CreateBackendAuthCommand.d.ts +14 -23
  100. package/dist-types/ts3.4/commands/CreateBackendCommand.d.ts +14 -23
  101. package/dist-types/ts3.4/commands/CreateBackendConfigCommand.d.ts +14 -23
  102. package/dist-types/ts3.4/commands/CreateBackendStorageCommand.d.ts +12 -24
  103. package/dist-types/ts3.4/commands/CreateTokenCommand.d.ts +14 -23
  104. package/dist-types/ts3.4/commands/DeleteBackendAPICommand.d.ts +14 -23
  105. package/dist-types/ts3.4/commands/DeleteBackendAuthCommand.d.ts +14 -23
  106. package/dist-types/ts3.4/commands/DeleteBackendCommand.d.ts +14 -23
  107. package/dist-types/ts3.4/commands/DeleteBackendStorageCommand.d.ts +12 -24
  108. package/dist-types/ts3.4/commands/DeleteTokenCommand.d.ts +14 -23
  109. package/dist-types/ts3.4/commands/GenerateBackendAPIModelsCommand.d.ts +12 -24
  110. package/dist-types/ts3.4/commands/GetBackendAPICommand.d.ts +14 -23
  111. package/dist-types/ts3.4/commands/GetBackendAPIModelsCommand.d.ts +14 -23
  112. package/dist-types/ts3.4/commands/GetBackendAuthCommand.d.ts +14 -23
  113. package/dist-types/ts3.4/commands/GetBackendCommand.d.ts +14 -23
  114. package/dist-types/ts3.4/commands/GetBackendJobCommand.d.ts +14 -23
  115. package/dist-types/ts3.4/commands/GetBackendStorageCommand.d.ts +14 -23
  116. package/dist-types/ts3.4/commands/GetTokenCommand.d.ts +14 -23
  117. package/dist-types/ts3.4/commands/ImportBackendAuthCommand.d.ts +14 -23
  118. package/dist-types/ts3.4/commands/ImportBackendStorageCommand.d.ts +12 -24
  119. package/dist-types/ts3.4/commands/ListBackendJobsCommand.d.ts +14 -23
  120. package/dist-types/ts3.4/commands/ListS3BucketsCommand.d.ts +14 -23
  121. package/dist-types/ts3.4/commands/RemoveAllBackendsCommand.d.ts +14 -23
  122. package/dist-types/ts3.4/commands/RemoveBackendConfigCommand.d.ts +14 -23
  123. package/dist-types/ts3.4/commands/UpdateBackendAPICommand.d.ts +14 -23
  124. package/dist-types/ts3.4/commands/UpdateBackendAuthCommand.d.ts +14 -23
  125. package/dist-types/ts3.4/commands/UpdateBackendConfigCommand.d.ts +14 -23
  126. package/dist-types/ts3.4/commands/UpdateBackendJobCommand.d.ts +14 -23
  127. package/dist-types/ts3.4/commands/UpdateBackendStorageCommand.d.ts +12 -24
  128. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  129. package/package.json +11 -11
@@ -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_CreateBackendStorageCommand, se_CreateBackendStorageCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class CreateBackendStorageCommand 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, CreateBackendStorageCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "AmplifyBackendClient";
26
- const commandName = "CreateBackendStorageCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmplifyBackend",
35
- operation: "CreateBackendStorage",
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_CreateBackendStorageCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateBackendStorageCommand(output, context);
46
- }
7
+ export class CreateBackendStorageCommand 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("AmplifyBackend", "CreateBackendStorage", {})
19
+ .n("AmplifyBackendClient", "CreateBackendStorageCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateBackendStorageCommand)
22
+ .de(de_CreateBackendStorageCommand)
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_CreateTokenCommand, se_CreateTokenCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class CreateTokenCommand 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, CreateTokenCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "AmplifyBackendClient";
26
- const commandName = "CreateTokenCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmplifyBackend",
35
- operation: "CreateToken",
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_CreateTokenCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateTokenCommand(output, context);
46
- }
7
+ export class CreateTokenCommand 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("AmplifyBackend", "CreateToken", {})
19
+ .n("AmplifyBackendClient", "CreateTokenCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateTokenCommand)
22
+ .de(de_CreateTokenCommand)
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_DeleteBackendAPICommand, se_DeleteBackendAPICommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class DeleteBackendAPICommand 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, DeleteBackendAPICommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "AmplifyBackendClient";
26
- const commandName = "DeleteBackendAPICommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmplifyBackend",
35
- operation: "DeleteBackendAPI",
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_DeleteBackendAPICommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DeleteBackendAPICommand(output, context);
46
- }
7
+ export class DeleteBackendAPICommand 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("AmplifyBackend", "DeleteBackendAPI", {})
19
+ .n("AmplifyBackendClient", "DeleteBackendAPICommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteBackendAPICommand)
22
+ .de(de_DeleteBackendAPICommand)
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_DeleteBackendAuthCommand, se_DeleteBackendAuthCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class DeleteBackendAuthCommand 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, DeleteBackendAuthCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "AmplifyBackendClient";
26
- const commandName = "DeleteBackendAuthCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmplifyBackend",
35
- operation: "DeleteBackendAuth",
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_DeleteBackendAuthCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DeleteBackendAuthCommand(output, context);
46
- }
7
+ export class DeleteBackendAuthCommand 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("AmplifyBackend", "DeleteBackendAuth", {})
19
+ .n("AmplifyBackendClient", "DeleteBackendAuthCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteBackendAuthCommand)
22
+ .de(de_DeleteBackendAuthCommand)
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_DeleteBackendCommand, se_DeleteBackendCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class DeleteBackendCommand 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, DeleteBackendCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "AmplifyBackendClient";
26
- const commandName = "DeleteBackendCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmplifyBackend",
35
- operation: "DeleteBackend",
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_DeleteBackendCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DeleteBackendCommand(output, context);
46
- }
7
+ export class DeleteBackendCommand 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("AmplifyBackend", "DeleteBackend", {})
19
+ .n("AmplifyBackendClient", "DeleteBackendCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteBackendCommand)
22
+ .de(de_DeleteBackendCommand)
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_DeleteBackendStorageCommand, se_DeleteBackendStorageCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class DeleteBackendStorageCommand 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, DeleteBackendStorageCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "AmplifyBackendClient";
26
- const commandName = "DeleteBackendStorageCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmplifyBackend",
35
- operation: "DeleteBackendStorage",
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_DeleteBackendStorageCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DeleteBackendStorageCommand(output, context);
46
- }
7
+ export class DeleteBackendStorageCommand 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("AmplifyBackend", "DeleteBackendStorage", {})
19
+ .n("AmplifyBackendClient", "DeleteBackendStorageCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteBackendStorageCommand)
22
+ .de(de_DeleteBackendStorageCommand)
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_DeleteTokenCommand, se_DeleteTokenCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class DeleteTokenCommand 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, DeleteTokenCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "AmplifyBackendClient";
26
- const commandName = "DeleteTokenCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmplifyBackend",
35
- operation: "DeleteToken",
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_DeleteTokenCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_DeleteTokenCommand(output, context);
46
- }
7
+ export class DeleteTokenCommand 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("AmplifyBackend", "DeleteToken", {})
19
+ .n("AmplifyBackendClient", "DeleteTokenCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteTokenCommand)
22
+ .de(de_DeleteTokenCommand)
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_GenerateBackendAPIModelsCommand, se_GenerateBackendAPIModelsCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class GenerateBackendAPIModelsCommand 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, GenerateBackendAPIModelsCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "AmplifyBackendClient";
26
- const commandName = "GenerateBackendAPIModelsCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmplifyBackend",
35
- operation: "GenerateBackendAPIModels",
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_GenerateBackendAPIModelsCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GenerateBackendAPIModelsCommand(output, context);
46
- }
7
+ export class GenerateBackendAPIModelsCommand 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("AmplifyBackend", "GenerateBackendAPIModels", {})
19
+ .n("AmplifyBackendClient", "GenerateBackendAPIModelsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GenerateBackendAPIModelsCommand)
22
+ .de(de_GenerateBackendAPIModelsCommand)
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_GetBackendAPICommand, se_GetBackendAPICommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class GetBackendAPICommand 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, GetBackendAPICommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "AmplifyBackendClient";
26
- const commandName = "GetBackendAPICommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AmplifyBackend",
35
- operation: "GetBackendAPI",
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_GetBackendAPICommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_GetBackendAPICommand(output, context);
46
- }
7
+ export class GetBackendAPICommand 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("AmplifyBackend", "GetBackendAPI", {})
19
+ .n("AmplifyBackendClient", "GetBackendAPICommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetBackendAPICommand)
22
+ .de(de_GetBackendAPICommand)
23
+ .build() {
47
24
  }