@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/CHANGELOG.md +30 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/AmplifyServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +110 -2
- package/dist-cjs/protocols/Aws_restJson1.js +385 -1418
- package/dist-es/index.js +1 -0
- package/dist-es/models/AmplifyServiceException.js +12 -0
- package/dist-es/models/models_0.js +101 -8
- package/dist-es/protocols/Aws_restJson1.js +832 -1574
- package/dist-types/AmplifyClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/AmplifyServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +102 -44
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/AmplifyClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/AmplifyServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +47 -31
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +27 -27
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,36 @@
|
|
|
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.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-amplify
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **clients:** update clients as of 2022/03/10 ([#3411](https://github.com/aws/aws-sdk-js-v3/issues/3411)) ([8fa517a](https://github.com/aws/aws-sdk-js-v3/commit/8fa517a2c56d2f98a2e4a9c4ea6fd99b6ce61a71))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* **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))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
6
36
|
# [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
|
|
7
37
|
|
|
8
38
|
**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,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
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.RepositoryCloneMethod = exports.ProductionBranch = exports.CreateAppRequest = exports.Platform = exports.CustomRule = exports.AutoBranchCreationConfig = exports.Stage = exports.BadRequestException = void 0;
|
|
4
|
+
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 = exports.GetAppResult = void 0;
|
|
5
|
+
exports.UpdateWebhookResult = void 0;
|
|
5
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const AmplifyServiceException_1 = require("./AmplifyServiceException");
|
|
8
|
+
class BadRequestException extends AmplifyServiceException_1.AmplifyServiceException {
|
|
9
|
+
constructor(opts) {
|
|
10
|
+
super({
|
|
11
|
+
name: "BadRequestException",
|
|
12
|
+
$fault: "client",
|
|
13
|
+
...opts,
|
|
14
|
+
});
|
|
15
|
+
this.name = "BadRequestException";
|
|
16
|
+
this.$fault = "client";
|
|
17
|
+
Object.setPrototypeOf(this, BadRequestException.prototype);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.BadRequestException = BadRequestException;
|
|
6
21
|
var Stage;
|
|
7
22
|
(function (Stage) {
|
|
8
23
|
Stage["BETA"] = "BETA";
|
|
@@ -16,6 +31,7 @@ var AutoBranchCreationConfig;
|
|
|
16
31
|
AutoBranchCreationConfig.filterSensitiveLog = (obj) => ({
|
|
17
32
|
...obj,
|
|
18
33
|
...(obj.basicAuthCredentials && { basicAuthCredentials: smithy_client_1.SENSITIVE_STRING }),
|
|
34
|
+
...(obj.buildSpec && { buildSpec: smithy_client_1.SENSITIVE_STRING }),
|
|
19
35
|
});
|
|
20
36
|
})(AutoBranchCreationConfig = exports.AutoBranchCreationConfig || (exports.AutoBranchCreationConfig = {}));
|
|
21
37
|
var CustomRule;
|
|
@@ -27,6 +43,7 @@ var CustomRule;
|
|
|
27
43
|
var Platform;
|
|
28
44
|
(function (Platform) {
|
|
29
45
|
Platform["WEB"] = "WEB";
|
|
46
|
+
Platform["WEB_DYNAMIC"] = "WEB_DYNAMIC";
|
|
30
47
|
})(Platform = exports.Platform || (exports.Platform = {}));
|
|
31
48
|
var CreateAppRequest;
|
|
32
49
|
(function (CreateAppRequest) {
|
|
@@ -35,6 +52,7 @@ var CreateAppRequest;
|
|
|
35
52
|
...(obj.oauthToken && { oauthToken: smithy_client_1.SENSITIVE_STRING }),
|
|
36
53
|
...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }),
|
|
37
54
|
...(obj.basicAuthCredentials && { basicAuthCredentials: smithy_client_1.SENSITIVE_STRING }),
|
|
55
|
+
...(obj.buildSpec && { buildSpec: smithy_client_1.SENSITIVE_STRING }),
|
|
38
56
|
...(obj.autoBranchCreationConfig && {
|
|
39
57
|
autoBranchCreationConfig: AutoBranchCreationConfig.filterSensitiveLog(obj.autoBranchCreationConfig),
|
|
40
58
|
}),
|
|
@@ -46,11 +64,18 @@ var ProductionBranch;
|
|
|
46
64
|
...obj,
|
|
47
65
|
});
|
|
48
66
|
})(ProductionBranch = exports.ProductionBranch || (exports.ProductionBranch = {}));
|
|
67
|
+
var RepositoryCloneMethod;
|
|
68
|
+
(function (RepositoryCloneMethod) {
|
|
69
|
+
RepositoryCloneMethod["SIGV4"] = "SIGV4";
|
|
70
|
+
RepositoryCloneMethod["SSH"] = "SSH";
|
|
71
|
+
RepositoryCloneMethod["TOKEN"] = "TOKEN";
|
|
72
|
+
})(RepositoryCloneMethod = exports.RepositoryCloneMethod || (exports.RepositoryCloneMethod = {}));
|
|
49
73
|
var App;
|
|
50
74
|
(function (App) {
|
|
51
75
|
App.filterSensitiveLog = (obj) => ({
|
|
52
76
|
...obj,
|
|
53
77
|
...(obj.basicAuthCredentials && { basicAuthCredentials: smithy_client_1.SENSITIVE_STRING }),
|
|
78
|
+
...(obj.buildSpec && { buildSpec: smithy_client_1.SENSITIVE_STRING }),
|
|
54
79
|
...(obj.autoBranchCreationConfig && {
|
|
55
80
|
autoBranchCreationConfig: AutoBranchCreationConfig.filterSensitiveLog(obj.autoBranchCreationConfig),
|
|
56
81
|
}),
|
|
@@ -63,6 +88,58 @@ var CreateAppResult;
|
|
|
63
88
|
...(obj.app && { app: App.filterSensitiveLog(obj.app) }),
|
|
64
89
|
});
|
|
65
90
|
})(CreateAppResult = exports.CreateAppResult || (exports.CreateAppResult = {}));
|
|
91
|
+
class DependentServiceFailureException extends AmplifyServiceException_1.AmplifyServiceException {
|
|
92
|
+
constructor(opts) {
|
|
93
|
+
super({
|
|
94
|
+
name: "DependentServiceFailureException",
|
|
95
|
+
$fault: "server",
|
|
96
|
+
...opts,
|
|
97
|
+
});
|
|
98
|
+
this.name = "DependentServiceFailureException";
|
|
99
|
+
this.$fault = "server";
|
|
100
|
+
Object.setPrototypeOf(this, DependentServiceFailureException.prototype);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
exports.DependentServiceFailureException = DependentServiceFailureException;
|
|
104
|
+
class InternalFailureException extends AmplifyServiceException_1.AmplifyServiceException {
|
|
105
|
+
constructor(opts) {
|
|
106
|
+
super({
|
|
107
|
+
name: "InternalFailureException",
|
|
108
|
+
$fault: "server",
|
|
109
|
+
...opts,
|
|
110
|
+
});
|
|
111
|
+
this.name = "InternalFailureException";
|
|
112
|
+
this.$fault = "server";
|
|
113
|
+
Object.setPrototypeOf(this, InternalFailureException.prototype);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
exports.InternalFailureException = InternalFailureException;
|
|
117
|
+
class LimitExceededException extends AmplifyServiceException_1.AmplifyServiceException {
|
|
118
|
+
constructor(opts) {
|
|
119
|
+
super({
|
|
120
|
+
name: "LimitExceededException",
|
|
121
|
+
$fault: "client",
|
|
122
|
+
...opts,
|
|
123
|
+
});
|
|
124
|
+
this.name = "LimitExceededException";
|
|
125
|
+
this.$fault = "client";
|
|
126
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
exports.LimitExceededException = LimitExceededException;
|
|
130
|
+
class UnauthorizedException extends AmplifyServiceException_1.AmplifyServiceException {
|
|
131
|
+
constructor(opts) {
|
|
132
|
+
super({
|
|
133
|
+
name: "UnauthorizedException",
|
|
134
|
+
$fault: "client",
|
|
135
|
+
...opts,
|
|
136
|
+
});
|
|
137
|
+
this.name = "UnauthorizedException";
|
|
138
|
+
this.$fault = "client";
|
|
139
|
+
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
exports.UnauthorizedException = UnauthorizedException;
|
|
66
143
|
var CreateBackendEnvironmentRequest;
|
|
67
144
|
(function (CreateBackendEnvironmentRequest) {
|
|
68
145
|
CreateBackendEnvironmentRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -81,11 +158,25 @@ var CreateBackendEnvironmentResult;
|
|
|
81
158
|
...obj,
|
|
82
159
|
});
|
|
83
160
|
})(CreateBackendEnvironmentResult = exports.CreateBackendEnvironmentResult || (exports.CreateBackendEnvironmentResult = {}));
|
|
161
|
+
class NotFoundException extends AmplifyServiceException_1.AmplifyServiceException {
|
|
162
|
+
constructor(opts) {
|
|
163
|
+
super({
|
|
164
|
+
name: "NotFoundException",
|
|
165
|
+
$fault: "client",
|
|
166
|
+
...opts,
|
|
167
|
+
});
|
|
168
|
+
this.name = "NotFoundException";
|
|
169
|
+
this.$fault = "client";
|
|
170
|
+
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
exports.NotFoundException = NotFoundException;
|
|
84
174
|
var CreateBranchRequest;
|
|
85
175
|
(function (CreateBranchRequest) {
|
|
86
176
|
CreateBranchRequest.filterSensitiveLog = (obj) => ({
|
|
87
177
|
...obj,
|
|
88
178
|
...(obj.basicAuthCredentials && { basicAuthCredentials: smithy_client_1.SENSITIVE_STRING }),
|
|
179
|
+
...(obj.buildSpec && { buildSpec: smithy_client_1.SENSITIVE_STRING }),
|
|
89
180
|
});
|
|
90
181
|
})(CreateBranchRequest = exports.CreateBranchRequest || (exports.CreateBranchRequest = {}));
|
|
91
182
|
var Branch;
|
|
@@ -93,6 +184,7 @@ var Branch;
|
|
|
93
184
|
Branch.filterSensitiveLog = (obj) => ({
|
|
94
185
|
...obj,
|
|
95
186
|
...(obj.basicAuthCredentials && { basicAuthCredentials: smithy_client_1.SENSITIVE_STRING }),
|
|
187
|
+
...(obj.buildSpec && { buildSpec: smithy_client_1.SENSITIVE_STRING }),
|
|
96
188
|
});
|
|
97
189
|
})(Branch = exports.Branch || (exports.Branch = {}));
|
|
98
190
|
var CreateBranchResult;
|
|
@@ -472,6 +564,20 @@ var ListTagsForResourceResponse;
|
|
|
472
564
|
...obj,
|
|
473
565
|
});
|
|
474
566
|
})(ListTagsForResourceResponse = exports.ListTagsForResourceResponse || (exports.ListTagsForResourceResponse = {}));
|
|
567
|
+
class ResourceNotFoundException extends AmplifyServiceException_1.AmplifyServiceException {
|
|
568
|
+
constructor(opts) {
|
|
569
|
+
super({
|
|
570
|
+
name: "ResourceNotFoundException",
|
|
571
|
+
$fault: "client",
|
|
572
|
+
...opts,
|
|
573
|
+
});
|
|
574
|
+
this.name = "ResourceNotFoundException";
|
|
575
|
+
this.$fault = "client";
|
|
576
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
577
|
+
this.code = opts.code;
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
475
581
|
var ListWebhooksRequest;
|
|
476
582
|
(function (ListWebhooksRequest) {
|
|
477
583
|
ListWebhooksRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -549,6 +655,7 @@ var UpdateAppRequest;
|
|
|
549
655
|
UpdateAppRequest.filterSensitiveLog = (obj) => ({
|
|
550
656
|
...obj,
|
|
551
657
|
...(obj.basicAuthCredentials && { basicAuthCredentials: smithy_client_1.SENSITIVE_STRING }),
|
|
658
|
+
...(obj.buildSpec && { buildSpec: smithy_client_1.SENSITIVE_STRING }),
|
|
552
659
|
...(obj.autoBranchCreationConfig && {
|
|
553
660
|
autoBranchCreationConfig: AutoBranchCreationConfig.filterSensitiveLog(obj.autoBranchCreationConfig),
|
|
554
661
|
}),
|
|
@@ -568,6 +675,7 @@ var UpdateBranchRequest;
|
|
|
568
675
|
UpdateBranchRequest.filterSensitiveLog = (obj) => ({
|
|
569
676
|
...obj,
|
|
570
677
|
...(obj.basicAuthCredentials && { basicAuthCredentials: smithy_client_1.SENSITIVE_STRING }),
|
|
678
|
+
...(obj.buildSpec && { buildSpec: smithy_client_1.SENSITIVE_STRING }),
|
|
571
679
|
});
|
|
572
680
|
})(UpdateBranchRequest = exports.UpdateBranchRequest || (exports.UpdateBranchRequest = {}));
|
|
573
681
|
var UpdateBranchResult;
|