@aws-sdk/client-amplify 3.52.0 → 3.54.1

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/dist-es/index.js CHANGED
@@ -2,3 +2,4 @@ export * from "./Amplify";
2
2
  export * from "./AmplifyClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { AmplifyServiceException } from "./models/AmplifyServiceException";
@@ -0,0 +1,12 @@
1
+ import { __extends } from "tslib";
2
+ import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
+ var AmplifyServiceException = (function (_super) {
4
+ __extends(AmplifyServiceException, _super);
5
+ function AmplifyServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, AmplifyServiceException.prototype);
8
+ return _this;
9
+ }
10
+ return AmplifyServiceException;
11
+ }(__ServiceException));
12
+ export { AmplifyServiceException };
@@ -1,5 +1,18 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __extends } from "tslib";
2
2
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
3
+ import { AmplifyServiceException as __BaseException } from "./AmplifyServiceException";
4
+ var BadRequestException = (function (_super) {
5
+ __extends(BadRequestException, _super);
6
+ function BadRequestException(opts) {
7
+ var _this = _super.call(this, __assign({ name: "BadRequestException", $fault: "client" }, opts)) || this;
8
+ _this.name = "BadRequestException";
9
+ _this.$fault = "client";
10
+ Object.setPrototypeOf(_this, BadRequestException.prototype);
11
+ return _this;
12
+ }
13
+ return BadRequestException;
14
+ }(__BaseException));
15
+ export { BadRequestException };
3
16
  export var Stage;
4
17
  (function (Stage) {
5
18
  Stage["BETA"] = "BETA";
@@ -10,7 +23,7 @@ export var Stage;
10
23
  })(Stage || (Stage = {}));
11
24
  export var AutoBranchCreationConfig;
12
25
  (function (AutoBranchCreationConfig) {
13
- AutoBranchCreationConfig.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.basicAuthCredentials && { basicAuthCredentials: SENSITIVE_STRING }))); };
26
+ AutoBranchCreationConfig.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.basicAuthCredentials && { basicAuthCredentials: SENSITIVE_STRING })), (obj.buildSpec && { buildSpec: SENSITIVE_STRING }))); };
14
27
  })(AutoBranchCreationConfig || (AutoBranchCreationConfig = {}));
15
28
  export var CustomRule;
16
29
  (function (CustomRule) {
@@ -19,10 +32,11 @@ export var CustomRule;
19
32
  export var Platform;
20
33
  (function (Platform) {
21
34
  Platform["WEB"] = "WEB";
35
+ Platform["WEB_DYNAMIC"] = "WEB_DYNAMIC";
22
36
  })(Platform || (Platform = {}));
23
37
  export var CreateAppRequest;
24
38
  (function (CreateAppRequest) {
25
- CreateAppRequest.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign(__assign({}, obj), (obj.oauthToken && { oauthToken: SENSITIVE_STRING })), (obj.accessToken && { accessToken: SENSITIVE_STRING })), (obj.basicAuthCredentials && { basicAuthCredentials: SENSITIVE_STRING })), (obj.autoBranchCreationConfig && {
39
+ CreateAppRequest.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign(__assign(__assign({}, obj), (obj.oauthToken && { oauthToken: SENSITIVE_STRING })), (obj.accessToken && { accessToken: SENSITIVE_STRING })), (obj.basicAuthCredentials && { basicAuthCredentials: SENSITIVE_STRING })), (obj.buildSpec && { buildSpec: SENSITIVE_STRING })), (obj.autoBranchCreationConfig && {
26
40
  autoBranchCreationConfig: AutoBranchCreationConfig.filterSensitiveLog(obj.autoBranchCreationConfig),
27
41
  }))); };
28
42
  })(CreateAppRequest || (CreateAppRequest = {}));
@@ -30,9 +44,15 @@ export var ProductionBranch;
30
44
  (function (ProductionBranch) {
31
45
  ProductionBranch.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
32
46
  })(ProductionBranch || (ProductionBranch = {}));
47
+ export var RepositoryCloneMethod;
48
+ (function (RepositoryCloneMethod) {
49
+ RepositoryCloneMethod["SIGV4"] = "SIGV4";
50
+ RepositoryCloneMethod["SSH"] = "SSH";
51
+ RepositoryCloneMethod["TOKEN"] = "TOKEN";
52
+ })(RepositoryCloneMethod || (RepositoryCloneMethod = {}));
33
53
  export var App;
34
54
  (function (App) {
35
- App.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.basicAuthCredentials && { basicAuthCredentials: SENSITIVE_STRING })), (obj.autoBranchCreationConfig && {
55
+ App.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign({}, obj), (obj.basicAuthCredentials && { basicAuthCredentials: SENSITIVE_STRING })), (obj.buildSpec && { buildSpec: SENSITIVE_STRING })), (obj.autoBranchCreationConfig && {
36
56
  autoBranchCreationConfig: AutoBranchCreationConfig.filterSensitiveLog(obj.autoBranchCreationConfig),
37
57
  }))); };
38
58
  })(App || (App = {}));
@@ -40,6 +60,54 @@ export var CreateAppResult;
40
60
  (function (CreateAppResult) {
41
61
  CreateAppResult.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.app && { app: App.filterSensitiveLog(obj.app) }))); };
42
62
  })(CreateAppResult || (CreateAppResult = {}));
63
+ var DependentServiceFailureException = (function (_super) {
64
+ __extends(DependentServiceFailureException, _super);
65
+ function DependentServiceFailureException(opts) {
66
+ var _this = _super.call(this, __assign({ name: "DependentServiceFailureException", $fault: "server" }, opts)) || this;
67
+ _this.name = "DependentServiceFailureException";
68
+ _this.$fault = "server";
69
+ Object.setPrototypeOf(_this, DependentServiceFailureException.prototype);
70
+ return _this;
71
+ }
72
+ return DependentServiceFailureException;
73
+ }(__BaseException));
74
+ export { DependentServiceFailureException };
75
+ var InternalFailureException = (function (_super) {
76
+ __extends(InternalFailureException, _super);
77
+ function InternalFailureException(opts) {
78
+ var _this = _super.call(this, __assign({ name: "InternalFailureException", $fault: "server" }, opts)) || this;
79
+ _this.name = "InternalFailureException";
80
+ _this.$fault = "server";
81
+ Object.setPrototypeOf(_this, InternalFailureException.prototype);
82
+ return _this;
83
+ }
84
+ return InternalFailureException;
85
+ }(__BaseException));
86
+ export { InternalFailureException };
87
+ var LimitExceededException = (function (_super) {
88
+ __extends(LimitExceededException, _super);
89
+ function LimitExceededException(opts) {
90
+ var _this = _super.call(this, __assign({ name: "LimitExceededException", $fault: "client" }, opts)) || this;
91
+ _this.name = "LimitExceededException";
92
+ _this.$fault = "client";
93
+ Object.setPrototypeOf(_this, LimitExceededException.prototype);
94
+ return _this;
95
+ }
96
+ return LimitExceededException;
97
+ }(__BaseException));
98
+ export { LimitExceededException };
99
+ var UnauthorizedException = (function (_super) {
100
+ __extends(UnauthorizedException, _super);
101
+ function UnauthorizedException(opts) {
102
+ var _this = _super.call(this, __assign({ name: "UnauthorizedException", $fault: "client" }, opts)) || this;
103
+ _this.name = "UnauthorizedException";
104
+ _this.$fault = "client";
105
+ Object.setPrototypeOf(_this, UnauthorizedException.prototype);
106
+ return _this;
107
+ }
108
+ return UnauthorizedException;
109
+ }(__BaseException));
110
+ export { UnauthorizedException };
43
111
  export var CreateBackendEnvironmentRequest;
44
112
  (function (CreateBackendEnvironmentRequest) {
45
113
  CreateBackendEnvironmentRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -52,13 +120,25 @@ export var CreateBackendEnvironmentResult;
52
120
  (function (CreateBackendEnvironmentResult) {
53
121
  CreateBackendEnvironmentResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
54
122
  })(CreateBackendEnvironmentResult || (CreateBackendEnvironmentResult = {}));
123
+ var NotFoundException = (function (_super) {
124
+ __extends(NotFoundException, _super);
125
+ function NotFoundException(opts) {
126
+ var _this = _super.call(this, __assign({ name: "NotFoundException", $fault: "client" }, opts)) || this;
127
+ _this.name = "NotFoundException";
128
+ _this.$fault = "client";
129
+ Object.setPrototypeOf(_this, NotFoundException.prototype);
130
+ return _this;
131
+ }
132
+ return NotFoundException;
133
+ }(__BaseException));
134
+ export { NotFoundException };
55
135
  export var CreateBranchRequest;
56
136
  (function (CreateBranchRequest) {
57
- CreateBranchRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.basicAuthCredentials && { basicAuthCredentials: SENSITIVE_STRING }))); };
137
+ CreateBranchRequest.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.basicAuthCredentials && { basicAuthCredentials: SENSITIVE_STRING })), (obj.buildSpec && { buildSpec: SENSITIVE_STRING }))); };
58
138
  })(CreateBranchRequest || (CreateBranchRequest = {}));
59
139
  export var Branch;
60
140
  (function (Branch) {
61
- Branch.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.basicAuthCredentials && { basicAuthCredentials: SENSITIVE_STRING }))); };
141
+ Branch.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.basicAuthCredentials && { basicAuthCredentials: SENSITIVE_STRING })), (obj.buildSpec && { buildSpec: SENSITIVE_STRING }))); };
62
142
  })(Branch || (Branch = {}));
63
143
  export var CreateBranchResult;
64
144
  (function (CreateBranchResult) {
@@ -316,6 +396,19 @@ export var ListTagsForResourceResponse;
316
396
  (function (ListTagsForResourceResponse) {
317
397
  ListTagsForResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
318
398
  })(ListTagsForResourceResponse || (ListTagsForResourceResponse = {}));
399
+ var ResourceNotFoundException = (function (_super) {
400
+ __extends(ResourceNotFoundException, _super);
401
+ function ResourceNotFoundException(opts) {
402
+ var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
403
+ _this.name = "ResourceNotFoundException";
404
+ _this.$fault = "client";
405
+ Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
406
+ _this.code = opts.code;
407
+ return _this;
408
+ }
409
+ return ResourceNotFoundException;
410
+ }(__BaseException));
411
+ export { ResourceNotFoundException };
319
412
  export var ListWebhooksRequest;
320
413
  (function (ListWebhooksRequest) {
321
414
  ListWebhooksRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -366,7 +459,7 @@ export var UntagResourceResponse;
366
459
  })(UntagResourceResponse || (UntagResourceResponse = {}));
367
460
  export var UpdateAppRequest;
368
461
  (function (UpdateAppRequest) {
369
- UpdateAppRequest.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign(__assign({}, obj), (obj.basicAuthCredentials && { basicAuthCredentials: SENSITIVE_STRING })), (obj.autoBranchCreationConfig && {
462
+ UpdateAppRequest.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign(__assign(__assign({}, obj), (obj.basicAuthCredentials && { basicAuthCredentials: SENSITIVE_STRING })), (obj.buildSpec && { buildSpec: SENSITIVE_STRING })), (obj.autoBranchCreationConfig && {
370
463
  autoBranchCreationConfig: AutoBranchCreationConfig.filterSensitiveLog(obj.autoBranchCreationConfig),
371
464
  })), (obj.oauthToken && { oauthToken: SENSITIVE_STRING })), (obj.accessToken && { accessToken: SENSITIVE_STRING }))); };
372
465
  })(UpdateAppRequest || (UpdateAppRequest = {}));
@@ -376,7 +469,7 @@ export var UpdateAppResult;
376
469
  })(UpdateAppResult || (UpdateAppResult = {}));
377
470
  export var UpdateBranchRequest;
378
471
  (function (UpdateBranchRequest) {
379
- UpdateBranchRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.basicAuthCredentials && { basicAuthCredentials: SENSITIVE_STRING }))); };
472
+ UpdateBranchRequest.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.basicAuthCredentials && { basicAuthCredentials: SENSITIVE_STRING })), (obj.buildSpec && { buildSpec: SENSITIVE_STRING }))); };
380
473
  })(UpdateBranchRequest || (UpdateBranchRequest = {}));
381
474
  export var UpdateBranchResult;
382
475
  (function (UpdateBranchResult) {