@aws-sdk/client-amplifyuibuilder 3.181.0 → 3.183.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/AmplifyUIBuilder.js +90 -97
  3. package/dist-es/AmplifyUIBuilderClient.js +22 -28
  4. package/dist-es/commands/CreateComponentCommand.js +21 -28
  5. package/dist-es/commands/CreateFormCommand.js +21 -28
  6. package/dist-es/commands/CreateThemeCommand.js +21 -28
  7. package/dist-es/commands/DeleteComponentCommand.js +22 -29
  8. package/dist-es/commands/DeleteFormCommand.js +22 -29
  9. package/dist-es/commands/DeleteThemeCommand.js +22 -29
  10. package/dist-es/commands/ExchangeCodeForTokenCommand.js +21 -28
  11. package/dist-es/commands/ExportComponentsCommand.js +21 -28
  12. package/dist-es/commands/ExportFormsCommand.js +21 -28
  13. package/dist-es/commands/ExportThemesCommand.js +21 -28
  14. package/dist-es/commands/GetComponentCommand.js +21 -28
  15. package/dist-es/commands/GetFormCommand.js +21 -28
  16. package/dist-es/commands/GetMetadataCommand.js +21 -28
  17. package/dist-es/commands/GetThemeCommand.js +21 -28
  18. package/dist-es/commands/ListComponentsCommand.js +21 -28
  19. package/dist-es/commands/ListFormsCommand.js +21 -28
  20. package/dist-es/commands/ListThemesCommand.js +21 -28
  21. package/dist-es/commands/PutMetadataFlagCommand.js +22 -29
  22. package/dist-es/commands/RefreshTokenCommand.js +21 -28
  23. package/dist-es/commands/UpdateComponentCommand.js +21 -28
  24. package/dist-es/commands/UpdateFormCommand.js +21 -28
  25. package/dist-es/commands/UpdateThemeCommand.js +21 -28
  26. package/dist-es/endpoints.js +8 -8
  27. package/dist-es/models/AmplifyUIBuilderServiceException.js +5 -10
  28. package/dist-es/models/models_0.js +382 -193
  29. package/dist-es/pagination/ExportComponentsPaginator.js +24 -67
  30. package/dist-es/pagination/ExportFormsPaginator.js +24 -67
  31. package/dist-es/pagination/ExportThemesPaginator.js +24 -67
  32. package/dist-es/pagination/ListComponentsPaginator.js +25 -68
  33. package/dist-es/pagination/ListFormsPaginator.js +25 -68
  34. package/dist-es/pagination/ListThemesPaginator.js +25 -68
  35. package/dist-es/protocols/Aws_restJson1.js +2045 -2489
  36. package/dist-es/runtimeConfig.browser.js +26 -12
  37. package/dist-es/runtimeConfig.js +30 -12
  38. package/dist-es/runtimeConfig.native.js +8 -5
  39. package/dist-es/runtimeConfig.shared.js +8 -11
  40. package/package.json +33 -33
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateThemeRequestFilterSensitiveLog, CreateThemeResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateThemeCommand, serializeAws_restJson1CreateThemeCommand, } from "../protocols/Aws_restJson1";
6
- var CreateThemeCommand = (function (_super) {
7
- __extends(CreateThemeCommand, _super);
8
- function CreateThemeCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateThemeCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateThemeCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "AmplifyUIBuilderClient";
18
- var commandName = "CreateThemeCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "AmplifyUIBuilderClient";
15
+ const commandName = "CreateThemeCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateThemeRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateThemeResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateThemeCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateThemeCommand(input, context);
33
- };
34
- CreateThemeCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateThemeCommand(output, context);
36
- };
37
- return CreateThemeCommand;
38
- }($Command));
39
- export { CreateThemeCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteComponentRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteComponentCommand, serializeAws_restJson1DeleteComponentCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteComponentCommand = (function (_super) {
7
- __extends(DeleteComponentCommand, _super);
8
- function DeleteComponentCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteComponentCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteComponentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "AmplifyUIBuilderClient";
18
- var commandName = "DeleteComponentCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "AmplifyUIBuilderClient";
15
+ const commandName = "DeleteComponentCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteComponentRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteComponentCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteComponentCommand(input, context);
33
- };
34
- DeleteComponentCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteComponentCommand(output, context);
36
- };
37
- return DeleteComponentCommand;
38
- }($Command));
39
- export { DeleteComponentCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteFormRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteFormCommand, serializeAws_restJson1DeleteFormCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteFormCommand = (function (_super) {
7
- __extends(DeleteFormCommand, _super);
8
- function DeleteFormCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteFormCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteFormCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "AmplifyUIBuilderClient";
18
- var commandName = "DeleteFormCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "AmplifyUIBuilderClient";
15
+ const commandName = "DeleteFormCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteFormRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteFormCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteFormCommand(input, context);
33
- };
34
- DeleteFormCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteFormCommand(output, context);
36
- };
37
- return DeleteFormCommand;
38
- }($Command));
39
- export { DeleteFormCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteThemeRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteThemeCommand, serializeAws_restJson1DeleteThemeCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteThemeCommand = (function (_super) {
7
- __extends(DeleteThemeCommand, _super);
8
- function DeleteThemeCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteThemeCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteThemeCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "AmplifyUIBuilderClient";
18
- var commandName = "DeleteThemeCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "AmplifyUIBuilderClient";
15
+ const commandName = "DeleteThemeCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteThemeRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteThemeCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteThemeCommand(input, context);
33
- };
34
- DeleteThemeCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteThemeCommand(output, context);
36
- };
37
- return DeleteThemeCommand;
38
- }($Command));
39
- export { DeleteThemeCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ExchangeCodeForTokenRequestFilterSensitiveLog, ExchangeCodeForTokenResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ExchangeCodeForTokenCommand, serializeAws_restJson1ExchangeCodeForTokenCommand, } from "../protocols/Aws_restJson1";
6
- var ExchangeCodeForTokenCommand = (function (_super) {
7
- __extends(ExchangeCodeForTokenCommand, _super);
8
- function ExchangeCodeForTokenCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ExchangeCodeForTokenCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ExchangeCodeForTokenCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "AmplifyUIBuilderClient";
18
- var commandName = "ExchangeCodeForTokenCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "AmplifyUIBuilderClient";
15
+ const commandName = "ExchangeCodeForTokenCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ExchangeCodeForTokenRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ExchangeCodeForTokenResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ExchangeCodeForTokenCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ExchangeCodeForTokenCommand(input, context);
33
- };
34
- ExchangeCodeForTokenCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ExchangeCodeForTokenCommand(output, context);
36
- };
37
- return ExchangeCodeForTokenCommand;
38
- }($Command));
39
- export { ExchangeCodeForTokenCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ExportComponentsRequestFilterSensitiveLog, ExportComponentsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ExportComponentsCommand, serializeAws_restJson1ExportComponentsCommand, } from "../protocols/Aws_restJson1";
6
- var ExportComponentsCommand = (function (_super) {
7
- __extends(ExportComponentsCommand, _super);
8
- function ExportComponentsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ExportComponentsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ExportComponentsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "AmplifyUIBuilderClient";
18
- var commandName = "ExportComponentsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "AmplifyUIBuilderClient";
15
+ const commandName = "ExportComponentsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ExportComponentsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ExportComponentsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ExportComponentsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ExportComponentsCommand(input, context);
33
- };
34
- ExportComponentsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ExportComponentsCommand(output, context);
36
- };
37
- return ExportComponentsCommand;
38
- }($Command));
39
- export { ExportComponentsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ExportFormsRequestFilterSensitiveLog, ExportFormsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ExportFormsCommand, serializeAws_restJson1ExportFormsCommand, } from "../protocols/Aws_restJson1";
6
- var ExportFormsCommand = (function (_super) {
7
- __extends(ExportFormsCommand, _super);
8
- function ExportFormsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ExportFormsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ExportFormsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "AmplifyUIBuilderClient";
18
- var commandName = "ExportFormsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "AmplifyUIBuilderClient";
15
+ const commandName = "ExportFormsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ExportFormsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ExportFormsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ExportFormsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ExportFormsCommand(input, context);
33
- };
34
- ExportFormsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ExportFormsCommand(output, context);
36
- };
37
- return ExportFormsCommand;
38
- }($Command));
39
- export { ExportFormsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ExportThemesRequestFilterSensitiveLog, ExportThemesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ExportThemesCommand, serializeAws_restJson1ExportThemesCommand, } from "../protocols/Aws_restJson1";
6
- var ExportThemesCommand = (function (_super) {
7
- __extends(ExportThemesCommand, _super);
8
- function ExportThemesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ExportThemesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ExportThemesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "AmplifyUIBuilderClient";
18
- var commandName = "ExportThemesCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "AmplifyUIBuilderClient";
15
+ const commandName = "ExportThemesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ExportThemesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ExportThemesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ExportThemesCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1ExportThemesCommand(input, context);
33
- };
34
- ExportThemesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ExportThemesCommand(output, context);
36
- };
37
- return ExportThemesCommand;
38
- }($Command));
39
- export { ExportThemesCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetComponentRequestFilterSensitiveLog, GetComponentResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetComponentCommand, serializeAws_restJson1GetComponentCommand, } from "../protocols/Aws_restJson1";
6
- var GetComponentCommand = (function (_super) {
7
- __extends(GetComponentCommand, _super);
8
- function GetComponentCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetComponentCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetComponentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "AmplifyUIBuilderClient";
18
- var commandName = "GetComponentCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "AmplifyUIBuilderClient";
15
+ const commandName = "GetComponentCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetComponentRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetComponentResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetComponentCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1GetComponentCommand(input, context);
33
- };
34
- GetComponentCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetComponentCommand(output, context);
36
- };
37
- return GetComponentCommand;
38
- }($Command));
39
- export { GetComponentCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { GetFormRequestFilterSensitiveLog, GetFormResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetFormCommand, serializeAws_restJson1GetFormCommand, } from "../protocols/Aws_restJson1";
6
- var GetFormCommand = (function (_super) {
7
- __extends(GetFormCommand, _super);
8
- function GetFormCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetFormCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetFormCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "AmplifyUIBuilderClient";
18
- var commandName = "GetFormCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "AmplifyUIBuilderClient";
15
+ const commandName = "GetFormCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetFormRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetFormResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetFormCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1GetFormCommand(input, context);
33
- };
34
- GetFormCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetFormCommand(output, context);
36
- };
37
- return GetFormCommand;
38
- }($Command));
39
- export { GetFormCommand };
31
+ }
32
+ }