@aws-sdk/client-amplify 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 (49) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/Amplify.js +150 -157
  3. package/dist-es/AmplifyClient.js +22 -28
  4. package/dist-es/commands/CreateAppCommand.js +21 -28
  5. package/dist-es/commands/CreateBackendEnvironmentCommand.js +21 -28
  6. package/dist-es/commands/CreateBranchCommand.js +21 -28
  7. package/dist-es/commands/CreateDeploymentCommand.js +21 -28
  8. package/dist-es/commands/CreateDomainAssociationCommand.js +21 -28
  9. package/dist-es/commands/CreateWebhookCommand.js +21 -28
  10. package/dist-es/commands/DeleteAppCommand.js +21 -28
  11. package/dist-es/commands/DeleteBackendEnvironmentCommand.js +21 -28
  12. package/dist-es/commands/DeleteBranchCommand.js +21 -28
  13. package/dist-es/commands/DeleteDomainAssociationCommand.js +21 -28
  14. package/dist-es/commands/DeleteJobCommand.js +21 -28
  15. package/dist-es/commands/DeleteWebhookCommand.js +21 -28
  16. package/dist-es/commands/GenerateAccessLogsCommand.js +21 -28
  17. package/dist-es/commands/GetAppCommand.js +21 -28
  18. package/dist-es/commands/GetArtifactUrlCommand.js +21 -28
  19. package/dist-es/commands/GetBackendEnvironmentCommand.js +21 -28
  20. package/dist-es/commands/GetBranchCommand.js +21 -28
  21. package/dist-es/commands/GetDomainAssociationCommand.js +21 -28
  22. package/dist-es/commands/GetJobCommand.js +21 -28
  23. package/dist-es/commands/GetWebhookCommand.js +21 -28
  24. package/dist-es/commands/ListAppsCommand.js +21 -28
  25. package/dist-es/commands/ListArtifactsCommand.js +21 -28
  26. package/dist-es/commands/ListBackendEnvironmentsCommand.js +21 -28
  27. package/dist-es/commands/ListBranchesCommand.js +21 -28
  28. package/dist-es/commands/ListDomainAssociationsCommand.js +21 -28
  29. package/dist-es/commands/ListJobsCommand.js +21 -28
  30. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  31. package/dist-es/commands/ListWebhooksCommand.js +21 -28
  32. package/dist-es/commands/StartDeploymentCommand.js +21 -28
  33. package/dist-es/commands/StartJobCommand.js +21 -28
  34. package/dist-es/commands/StopJobCommand.js +21 -28
  35. package/dist-es/commands/TagResourceCommand.js +21 -28
  36. package/dist-es/commands/UntagResourceCommand.js +21 -28
  37. package/dist-es/commands/UpdateAppCommand.js +21 -28
  38. package/dist-es/commands/UpdateBranchCommand.js +21 -28
  39. package/dist-es/commands/UpdateDomainAssociationCommand.js +21 -28
  40. package/dist-es/commands/UpdateWebhookCommand.js +21 -28
  41. package/dist-es/endpoints.js +8 -8
  42. package/dist-es/models/AmplifyServiceException.js +5 -10
  43. package/dist-es/models/models_0.js +379 -173
  44. package/dist-es/protocols/Aws_restJson1.js +2648 -3725
  45. package/dist-es/runtimeConfig.browser.js +26 -12
  46. package/dist-es/runtimeConfig.js +30 -12
  47. package/dist-es/runtimeConfig.native.js +8 -5
  48. package/dist-es/runtimeConfig.shared.js +8 -11
  49. 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 { DeleteDomainAssociationRequestFilterSensitiveLog, DeleteDomainAssociationResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteDomainAssociationCommand, serializeAws_restJson1DeleteDomainAssociationCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteDomainAssociationCommand = (function (_super) {
7
- __extends(DeleteDomainAssociationCommand, _super);
8
- function DeleteDomainAssociationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteDomainAssociationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteDomainAssociationCommand.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 = "AmplifyClient";
18
- var commandName = "DeleteDomainAssociationCommand";
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 = "AmplifyClient";
15
+ const commandName = "DeleteDomainAssociationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteDomainAssociationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteDomainAssociationResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteDomainAssociationCommand.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_restJson1DeleteDomainAssociationCommand(input, context);
33
- };
34
- DeleteDomainAssociationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteDomainAssociationCommand(output, context);
36
- };
37
- return DeleteDomainAssociationCommand;
38
- }($Command));
39
- export { DeleteDomainAssociationCommand };
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 { DeleteJobRequestFilterSensitiveLog, DeleteJobResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteJobCommand, serializeAws_restJson1DeleteJobCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteJobCommand = (function (_super) {
7
- __extends(DeleteJobCommand, _super);
8
- function DeleteJobCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteJobCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteJobCommand.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 = "AmplifyClient";
18
- var commandName = "DeleteJobCommand";
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 = "AmplifyClient";
15
+ const commandName = "DeleteJobCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteJobRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteJobResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteJobCommand.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_restJson1DeleteJobCommand(input, context);
33
- };
34
- DeleteJobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteJobCommand(output, context);
36
- };
37
- return DeleteJobCommand;
38
- }($Command));
39
- export { DeleteJobCommand };
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 { DeleteWebhookRequestFilterSensitiveLog, DeleteWebhookResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteWebhookCommand, serializeAws_restJson1DeleteWebhookCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteWebhookCommand = (function (_super) {
7
- __extends(DeleteWebhookCommand, _super);
8
- function DeleteWebhookCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteWebhookCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteWebhookCommand.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 = "AmplifyClient";
18
- var commandName = "DeleteWebhookCommand";
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 = "AmplifyClient";
15
+ const commandName = "DeleteWebhookCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteWebhookRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteWebhookResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteWebhookCommand.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_restJson1DeleteWebhookCommand(input, context);
33
- };
34
- DeleteWebhookCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteWebhookCommand(output, context);
36
- };
37
- return DeleteWebhookCommand;
38
- }($Command));
39
- export { DeleteWebhookCommand };
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 { GenerateAccessLogsRequestFilterSensitiveLog, GenerateAccessLogsResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GenerateAccessLogsCommand, serializeAws_restJson1GenerateAccessLogsCommand, } from "../protocols/Aws_restJson1";
6
- var GenerateAccessLogsCommand = (function (_super) {
7
- __extends(GenerateAccessLogsCommand, _super);
8
- function GenerateAccessLogsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GenerateAccessLogsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GenerateAccessLogsCommand.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 = "AmplifyClient";
18
- var commandName = "GenerateAccessLogsCommand";
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 = "AmplifyClient";
15
+ const commandName = "GenerateAccessLogsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GenerateAccessLogsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GenerateAccessLogsResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GenerateAccessLogsCommand.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_restJson1GenerateAccessLogsCommand(input, context);
33
- };
34
- GenerateAccessLogsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GenerateAccessLogsCommand(output, context);
36
- };
37
- return GenerateAccessLogsCommand;
38
- }($Command));
39
- export { GenerateAccessLogsCommand };
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 { GetAppRequestFilterSensitiveLog, GetAppResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetAppCommand, serializeAws_restJson1GetAppCommand } from "../protocols/Aws_restJson1";
6
- var GetAppCommand = (function (_super) {
7
- __extends(GetAppCommand, _super);
8
- function GetAppCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetAppCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetAppCommand.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 = "AmplifyClient";
18
- var commandName = "GetAppCommand";
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 = "AmplifyClient";
15
+ const commandName = "GetAppCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetAppRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetAppResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetAppCommand.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_restJson1GetAppCommand(input, context);
33
- };
34
- GetAppCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetAppCommand(output, context);
36
- };
37
- return GetAppCommand;
38
- }($Command));
39
- export { GetAppCommand };
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 { GetArtifactUrlRequestFilterSensitiveLog, GetArtifactUrlResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetArtifactUrlCommand, serializeAws_restJson1GetArtifactUrlCommand, } from "../protocols/Aws_restJson1";
6
- var GetArtifactUrlCommand = (function (_super) {
7
- __extends(GetArtifactUrlCommand, _super);
8
- function GetArtifactUrlCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetArtifactUrlCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetArtifactUrlCommand.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 = "AmplifyClient";
18
- var commandName = "GetArtifactUrlCommand";
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 = "AmplifyClient";
15
+ const commandName = "GetArtifactUrlCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetArtifactUrlRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetArtifactUrlResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetArtifactUrlCommand.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_restJson1GetArtifactUrlCommand(input, context);
33
- };
34
- GetArtifactUrlCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetArtifactUrlCommand(output, context);
36
- };
37
- return GetArtifactUrlCommand;
38
- }($Command));
39
- export { GetArtifactUrlCommand };
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 { GetBackendEnvironmentRequestFilterSensitiveLog, GetBackendEnvironmentResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetBackendEnvironmentCommand, serializeAws_restJson1GetBackendEnvironmentCommand, } from "../protocols/Aws_restJson1";
6
- var GetBackendEnvironmentCommand = (function (_super) {
7
- __extends(GetBackendEnvironmentCommand, _super);
8
- function GetBackendEnvironmentCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetBackendEnvironmentCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetBackendEnvironmentCommand.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 = "AmplifyClient";
18
- var commandName = "GetBackendEnvironmentCommand";
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 = "AmplifyClient";
15
+ const commandName = "GetBackendEnvironmentCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetBackendEnvironmentRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetBackendEnvironmentResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetBackendEnvironmentCommand.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_restJson1GetBackendEnvironmentCommand(input, context);
33
- };
34
- GetBackendEnvironmentCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetBackendEnvironmentCommand(output, context);
36
- };
37
- return GetBackendEnvironmentCommand;
38
- }($Command));
39
- export { GetBackendEnvironmentCommand };
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 { GetBranchRequestFilterSensitiveLog, GetBranchResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetBranchCommand, serializeAws_restJson1GetBranchCommand, } from "../protocols/Aws_restJson1";
6
- var GetBranchCommand = (function (_super) {
7
- __extends(GetBranchCommand, _super);
8
- function GetBranchCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetBranchCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetBranchCommand.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 = "AmplifyClient";
18
- var commandName = "GetBranchCommand";
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 = "AmplifyClient";
15
+ const commandName = "GetBranchCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetBranchRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetBranchResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetBranchCommand.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_restJson1GetBranchCommand(input, context);
33
- };
34
- GetBranchCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetBranchCommand(output, context);
36
- };
37
- return GetBranchCommand;
38
- }($Command));
39
- export { GetBranchCommand };
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 { GetDomainAssociationRequestFilterSensitiveLog, GetDomainAssociationResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetDomainAssociationCommand, serializeAws_restJson1GetDomainAssociationCommand, } from "../protocols/Aws_restJson1";
6
- var GetDomainAssociationCommand = (function (_super) {
7
- __extends(GetDomainAssociationCommand, _super);
8
- function GetDomainAssociationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetDomainAssociationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetDomainAssociationCommand.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 = "AmplifyClient";
18
- var commandName = "GetDomainAssociationCommand";
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 = "AmplifyClient";
15
+ const commandName = "GetDomainAssociationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetDomainAssociationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetDomainAssociationResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetDomainAssociationCommand.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_restJson1GetDomainAssociationCommand(input, context);
33
- };
34
- GetDomainAssociationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetDomainAssociationCommand(output, context);
36
- };
37
- return GetDomainAssociationCommand;
38
- }($Command));
39
- export { GetDomainAssociationCommand };
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 { GetJobRequestFilterSensitiveLog, GetJobResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1GetJobCommand, serializeAws_restJson1GetJobCommand } from "../protocols/Aws_restJson1";
6
- var GetJobCommand = (function (_super) {
7
- __extends(GetJobCommand, _super);
8
- function GetJobCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetJobCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetJobCommand.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 = "AmplifyClient";
18
- var commandName = "GetJobCommand";
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 = "AmplifyClient";
15
+ const commandName = "GetJobCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetJobRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetJobResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetJobCommand.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_restJson1GetJobCommand(input, context);
33
- };
34
- GetJobCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1GetJobCommand(output, context);
36
- };
37
- return GetJobCommand;
38
- }($Command));
39
- export { GetJobCommand };
31
+ }
32
+ }