@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,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var AmplifyClient = (function (_super) {
13
- __extends(AmplifyClient, _super);
14
- function AmplifyClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- return _this;
11
+ export class AmplifyClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- AmplifyClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return AmplifyClient;
38
- }(__Client));
39
- export { AmplifyClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
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 { CreateAppRequestFilterSensitiveLog, CreateAppResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateAppCommand, serializeAws_restJson1CreateAppCommand, } from "../protocols/Aws_restJson1";
6
- var CreateAppCommand = (function (_super) {
7
- __extends(CreateAppCommand, _super);
8
- function CreateAppCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateAppCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateAppCommand.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 = "CreateAppCommand";
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 = "CreateAppCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateAppRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateAppResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateAppCommand.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_restJson1CreateAppCommand(input, context);
33
- };
34
- CreateAppCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateAppCommand(output, context);
36
- };
37
- return CreateAppCommand;
38
- }($Command));
39
- export { CreateAppCommand };
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 { CreateBackendEnvironmentRequestFilterSensitiveLog, CreateBackendEnvironmentResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateBackendEnvironmentCommand, serializeAws_restJson1CreateBackendEnvironmentCommand, } from "../protocols/Aws_restJson1";
6
- var CreateBackendEnvironmentCommand = (function (_super) {
7
- __extends(CreateBackendEnvironmentCommand, _super);
8
- function CreateBackendEnvironmentCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateBackendEnvironmentCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateBackendEnvironmentCommand.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 = "CreateBackendEnvironmentCommand";
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 = "CreateBackendEnvironmentCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateBackendEnvironmentRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateBackendEnvironmentResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateBackendEnvironmentCommand.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_restJson1CreateBackendEnvironmentCommand(input, context);
33
- };
34
- CreateBackendEnvironmentCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateBackendEnvironmentCommand(output, context);
36
- };
37
- return CreateBackendEnvironmentCommand;
38
- }($Command));
39
- export { CreateBackendEnvironmentCommand };
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 { CreateBranchRequestFilterSensitiveLog, CreateBranchResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateBranchCommand, serializeAws_restJson1CreateBranchCommand, } from "../protocols/Aws_restJson1";
6
- var CreateBranchCommand = (function (_super) {
7
- __extends(CreateBranchCommand, _super);
8
- function CreateBranchCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateBranchCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateBranchCommand.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 = "CreateBranchCommand";
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 = "CreateBranchCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateBranchRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateBranchResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateBranchCommand.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_restJson1CreateBranchCommand(input, context);
33
- };
34
- CreateBranchCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateBranchCommand(output, context);
36
- };
37
- return CreateBranchCommand;
38
- }($Command));
39
- export { CreateBranchCommand };
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 { CreateDeploymentRequestFilterSensitiveLog, CreateDeploymentResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateDeploymentCommand, serializeAws_restJson1CreateDeploymentCommand, } from "../protocols/Aws_restJson1";
6
- var CreateDeploymentCommand = (function (_super) {
7
- __extends(CreateDeploymentCommand, _super);
8
- function CreateDeploymentCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateDeploymentCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateDeploymentCommand.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 = "CreateDeploymentCommand";
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 = "CreateDeploymentCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateDeploymentRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateDeploymentResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateDeploymentCommand.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_restJson1CreateDeploymentCommand(input, context);
33
- };
34
- CreateDeploymentCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateDeploymentCommand(output, context);
36
- };
37
- return CreateDeploymentCommand;
38
- }($Command));
39
- export { CreateDeploymentCommand };
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 { CreateDomainAssociationRequestFilterSensitiveLog, CreateDomainAssociationResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateDomainAssociationCommand, serializeAws_restJson1CreateDomainAssociationCommand, } from "../protocols/Aws_restJson1";
6
- var CreateDomainAssociationCommand = (function (_super) {
7
- __extends(CreateDomainAssociationCommand, _super);
8
- function CreateDomainAssociationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateDomainAssociationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateDomainAssociationCommand.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 = "CreateDomainAssociationCommand";
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 = "CreateDomainAssociationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateDomainAssociationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateDomainAssociationResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateDomainAssociationCommand.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_restJson1CreateDomainAssociationCommand(input, context);
33
- };
34
- CreateDomainAssociationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateDomainAssociationCommand(output, context);
36
- };
37
- return CreateDomainAssociationCommand;
38
- }($Command));
39
- export { CreateDomainAssociationCommand };
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 { CreateWebhookRequestFilterSensitiveLog, CreateWebhookResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateWebhookCommand, serializeAws_restJson1CreateWebhookCommand, } from "../protocols/Aws_restJson1";
6
- var CreateWebhookCommand = (function (_super) {
7
- __extends(CreateWebhookCommand, _super);
8
- function CreateWebhookCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateWebhookCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateWebhookCommand.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 = "CreateWebhookCommand";
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 = "CreateWebhookCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateWebhookRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateWebhookResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateWebhookCommand.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_restJson1CreateWebhookCommand(input, context);
33
- };
34
- CreateWebhookCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateWebhookCommand(output, context);
36
- };
37
- return CreateWebhookCommand;
38
- }($Command));
39
- export { CreateWebhookCommand };
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 { DeleteAppRequestFilterSensitiveLog, DeleteAppResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteAppCommand, serializeAws_restJson1DeleteAppCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteAppCommand = (function (_super) {
7
- __extends(DeleteAppCommand, _super);
8
- function DeleteAppCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteAppCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteAppCommand.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 = "DeleteAppCommand";
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 = "DeleteAppCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteAppRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteAppResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteAppCommand.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_restJson1DeleteAppCommand(input, context);
33
- };
34
- DeleteAppCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteAppCommand(output, context);
36
- };
37
- return DeleteAppCommand;
38
- }($Command));
39
- export { DeleteAppCommand };
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 { DeleteBackendEnvironmentRequestFilterSensitiveLog, DeleteBackendEnvironmentResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteBackendEnvironmentCommand, serializeAws_restJson1DeleteBackendEnvironmentCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteBackendEnvironmentCommand = (function (_super) {
7
- __extends(DeleteBackendEnvironmentCommand, _super);
8
- function DeleteBackendEnvironmentCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteBackendEnvironmentCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteBackendEnvironmentCommand.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 = "DeleteBackendEnvironmentCommand";
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 = "DeleteBackendEnvironmentCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteBackendEnvironmentRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteBackendEnvironmentResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteBackendEnvironmentCommand.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_restJson1DeleteBackendEnvironmentCommand(input, context);
33
- };
34
- DeleteBackendEnvironmentCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteBackendEnvironmentCommand(output, context);
36
- };
37
- return DeleteBackendEnvironmentCommand;
38
- }($Command));
39
- export { DeleteBackendEnvironmentCommand };
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 { DeleteBranchRequestFilterSensitiveLog, DeleteBranchResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteBranchCommand, serializeAws_restJson1DeleteBranchCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteBranchCommand = (function (_super) {
7
- __extends(DeleteBranchCommand, _super);
8
- function DeleteBranchCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteBranchCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteBranchCommand.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 = "DeleteBranchCommand";
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 = "DeleteBranchCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteBranchRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteBranchResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteBranchCommand.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_restJson1DeleteBranchCommand(input, context);
33
- };
34
- DeleteBranchCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteBranchCommand(output, context);
36
- };
37
- return DeleteBranchCommand;
38
- }($Command));
39
- export { DeleteBranchCommand };
31
+ }
32
+ }