@aws-sdk/client-amplify 3.52.0 → 3.53.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-amplify
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AmplifyServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./Amplify"), exports);
5
6
  tslib_1.__exportStar(require("./AmplifyClient"), exports);
6
7
  tslib_1.__exportStar(require("./commands"), exports);
7
8
  tslib_1.__exportStar(require("./models"), exports);
9
+ var AmplifyServiceException_1 = require("./models/AmplifyServiceException");
10
+ Object.defineProperty(exports, "AmplifyServiceException", { enumerable: true, get: function () { return AmplifyServiceException_1.AmplifyServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AmplifyServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class AmplifyServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, AmplifyServiceException.prototype);
9
+ }
10
+ }
11
+ exports.AmplifyServiceException = AmplifyServiceException;
@@ -1,8 +1,22 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetBranchResult = exports.GetBranchRequest = exports.GetBackendEnvironmentResult = exports.GetBackendEnvironmentRequest = exports.GetArtifactUrlResult = exports.GetArtifactUrlRequest = exports.GetAppResult = exports.GetAppRequest = exports.GenerateAccessLogsResult = exports.GenerateAccessLogsRequest = exports.DeleteWebhookResult = exports.DeleteWebhookRequest = exports.DeleteJobResult = exports.JobSummary = exports.JobStatus = exports.JobType = exports.DeleteJobRequest = exports.DeleteDomainAssociationResult = exports.DeleteDomainAssociationRequest = exports.DeleteBranchResult = exports.DeleteBranchRequest = exports.DeleteBackendEnvironmentResult = exports.DeleteBackendEnvironmentRequest = exports.DeleteAppResult = exports.DeleteAppRequest = exports.CreateWebhookResult = exports.Webhook = exports.CreateWebhookRequest = exports.CreateDomainAssociationResult = exports.DomainAssociation = exports.SubDomain = exports.DomainStatus = exports.CreateDomainAssociationRequest = exports.SubDomainSetting = exports.CreateDeploymentResult = exports.CreateDeploymentRequest = exports.CreateBranchResult = exports.Branch = exports.CreateBranchRequest = exports.CreateBackendEnvironmentResult = exports.BackendEnvironment = exports.CreateBackendEnvironmentRequest = exports.CreateAppResult = exports.App = exports.ProductionBranch = exports.CreateAppRequest = exports.Platform = exports.CustomRule = exports.AutoBranchCreationConfig = exports.Stage = void 0;
4
- exports.UpdateWebhookResult = exports.UpdateWebhookRequest = exports.UpdateDomainAssociationResult = exports.UpdateDomainAssociationRequest = exports.UpdateBranchResult = exports.UpdateBranchRequest = exports.UpdateAppResult = exports.UpdateAppRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StopJobResult = exports.StopJobRequest = exports.StartJobResult = exports.StartJobRequest = exports.StartDeploymentResult = exports.StartDeploymentRequest = exports.ListWebhooksResult = exports.ListWebhooksRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListJobsResult = exports.ListJobsRequest = exports.ListDomainAssociationsResult = exports.ListDomainAssociationsRequest = exports.ListBranchesResult = exports.ListBranchesRequest = exports.ListBackendEnvironmentsResult = exports.ListBackendEnvironmentsRequest = exports.ListArtifactsResult = exports.Artifact = exports.ListArtifactsRequest = exports.ListAppsResult = exports.ListAppsRequest = exports.GetWebhookResult = exports.GetWebhookRequest = exports.GetJobResult = exports.Job = exports.Step = exports.GetJobRequest = exports.GetDomainAssociationResult = exports.GetDomainAssociationRequest = void 0;
3
+ exports.GetAppResult = exports.GetAppRequest = exports.GenerateAccessLogsResult = exports.GenerateAccessLogsRequest = exports.DeleteWebhookResult = exports.DeleteWebhookRequest = exports.DeleteJobResult = exports.JobSummary = exports.JobStatus = exports.JobType = exports.DeleteJobRequest = exports.DeleteDomainAssociationResult = exports.DeleteDomainAssociationRequest = exports.DeleteBranchResult = exports.DeleteBranchRequest = exports.DeleteBackendEnvironmentResult = exports.DeleteBackendEnvironmentRequest = exports.DeleteAppResult = exports.DeleteAppRequest = exports.CreateWebhookResult = exports.Webhook = exports.CreateWebhookRequest = exports.CreateDomainAssociationResult = exports.DomainAssociation = exports.SubDomain = exports.DomainStatus = exports.CreateDomainAssociationRequest = exports.SubDomainSetting = exports.CreateDeploymentResult = exports.CreateDeploymentRequest = exports.CreateBranchResult = exports.Branch = exports.CreateBranchRequest = exports.NotFoundException = exports.CreateBackendEnvironmentResult = exports.BackendEnvironment = exports.CreateBackendEnvironmentRequest = exports.UnauthorizedException = exports.LimitExceededException = exports.InternalFailureException = exports.DependentServiceFailureException = exports.CreateAppResult = exports.App = exports.ProductionBranch = exports.CreateAppRequest = exports.Platform = exports.CustomRule = exports.AutoBranchCreationConfig = exports.Stage = exports.BadRequestException = void 0;
4
+ exports.UpdateWebhookResult = exports.UpdateWebhookRequest = exports.UpdateDomainAssociationResult = exports.UpdateDomainAssociationRequest = exports.UpdateBranchResult = exports.UpdateBranchRequest = exports.UpdateAppResult = exports.UpdateAppRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StopJobResult = exports.StopJobRequest = exports.StartJobResult = exports.StartJobRequest = exports.StartDeploymentResult = exports.StartDeploymentRequest = exports.ListWebhooksResult = exports.ListWebhooksRequest = exports.ResourceNotFoundException = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListJobsResult = exports.ListJobsRequest = exports.ListDomainAssociationsResult = exports.ListDomainAssociationsRequest = exports.ListBranchesResult = exports.ListBranchesRequest = exports.ListBackendEnvironmentsResult = exports.ListBackendEnvironmentsRequest = exports.ListArtifactsResult = exports.Artifact = exports.ListArtifactsRequest = exports.ListAppsResult = exports.ListAppsRequest = exports.GetWebhookResult = exports.GetWebhookRequest = exports.GetJobResult = exports.Job = exports.Step = exports.GetJobRequest = exports.GetDomainAssociationResult = exports.GetDomainAssociationRequest = exports.GetBranchResult = exports.GetBranchRequest = exports.GetBackendEnvironmentResult = exports.GetBackendEnvironmentRequest = exports.GetArtifactUrlResult = exports.GetArtifactUrlRequest = void 0;
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const AmplifyServiceException_1 = require("./AmplifyServiceException");
7
+ class BadRequestException extends AmplifyServiceException_1.AmplifyServiceException {
8
+ constructor(opts) {
9
+ super({
10
+ name: "BadRequestException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ this.name = "BadRequestException";
15
+ this.$fault = "client";
16
+ Object.setPrototypeOf(this, BadRequestException.prototype);
17
+ }
18
+ }
19
+ exports.BadRequestException = BadRequestException;
6
20
  var Stage;
7
21
  (function (Stage) {
8
22
  Stage["BETA"] = "BETA";
@@ -63,6 +77,58 @@ var CreateAppResult;
63
77
  ...(obj.app && { app: App.filterSensitiveLog(obj.app) }),
64
78
  });
65
79
  })(CreateAppResult = exports.CreateAppResult || (exports.CreateAppResult = {}));
80
+ class DependentServiceFailureException extends AmplifyServiceException_1.AmplifyServiceException {
81
+ constructor(opts) {
82
+ super({
83
+ name: "DependentServiceFailureException",
84
+ $fault: "server",
85
+ ...opts,
86
+ });
87
+ this.name = "DependentServiceFailureException";
88
+ this.$fault = "server";
89
+ Object.setPrototypeOf(this, DependentServiceFailureException.prototype);
90
+ }
91
+ }
92
+ exports.DependentServiceFailureException = DependentServiceFailureException;
93
+ class InternalFailureException extends AmplifyServiceException_1.AmplifyServiceException {
94
+ constructor(opts) {
95
+ super({
96
+ name: "InternalFailureException",
97
+ $fault: "server",
98
+ ...opts,
99
+ });
100
+ this.name = "InternalFailureException";
101
+ this.$fault = "server";
102
+ Object.setPrototypeOf(this, InternalFailureException.prototype);
103
+ }
104
+ }
105
+ exports.InternalFailureException = InternalFailureException;
106
+ class LimitExceededException extends AmplifyServiceException_1.AmplifyServiceException {
107
+ constructor(opts) {
108
+ super({
109
+ name: "LimitExceededException",
110
+ $fault: "client",
111
+ ...opts,
112
+ });
113
+ this.name = "LimitExceededException";
114
+ this.$fault = "client";
115
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
116
+ }
117
+ }
118
+ exports.LimitExceededException = LimitExceededException;
119
+ class UnauthorizedException extends AmplifyServiceException_1.AmplifyServiceException {
120
+ constructor(opts) {
121
+ super({
122
+ name: "UnauthorizedException",
123
+ $fault: "client",
124
+ ...opts,
125
+ });
126
+ this.name = "UnauthorizedException";
127
+ this.$fault = "client";
128
+ Object.setPrototypeOf(this, UnauthorizedException.prototype);
129
+ }
130
+ }
131
+ exports.UnauthorizedException = UnauthorizedException;
66
132
  var CreateBackendEnvironmentRequest;
67
133
  (function (CreateBackendEnvironmentRequest) {
68
134
  CreateBackendEnvironmentRequest.filterSensitiveLog = (obj) => ({
@@ -81,6 +147,19 @@ var CreateBackendEnvironmentResult;
81
147
  ...obj,
82
148
  });
83
149
  })(CreateBackendEnvironmentResult = exports.CreateBackendEnvironmentResult || (exports.CreateBackendEnvironmentResult = {}));
150
+ class NotFoundException extends AmplifyServiceException_1.AmplifyServiceException {
151
+ constructor(opts) {
152
+ super({
153
+ name: "NotFoundException",
154
+ $fault: "client",
155
+ ...opts,
156
+ });
157
+ this.name = "NotFoundException";
158
+ this.$fault = "client";
159
+ Object.setPrototypeOf(this, NotFoundException.prototype);
160
+ }
161
+ }
162
+ exports.NotFoundException = NotFoundException;
84
163
  var CreateBranchRequest;
85
164
  (function (CreateBranchRequest) {
86
165
  CreateBranchRequest.filterSensitiveLog = (obj) => ({
@@ -472,6 +551,20 @@ var ListTagsForResourceResponse;
472
551
  ...obj,
473
552
  });
474
553
  })(ListTagsForResourceResponse = exports.ListTagsForResourceResponse || (exports.ListTagsForResourceResponse = {}));
554
+ class ResourceNotFoundException extends AmplifyServiceException_1.AmplifyServiceException {
555
+ constructor(opts) {
556
+ super({
557
+ name: "ResourceNotFoundException",
558
+ $fault: "client",
559
+ ...opts,
560
+ });
561
+ this.name = "ResourceNotFoundException";
562
+ this.$fault = "client";
563
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
564
+ this.code = opts.code;
565
+ }
566
+ }
567
+ exports.ResourceNotFoundException = ResourceNotFoundException;
475
568
  var ListWebhooksRequest;
476
569
  (function (ListWebhooksRequest) {
477
570
  ListWebhooksRequest.filterSensitiveLog = (obj) => ({