@aws-sdk/client-appsync 3.987.0 → 3.988.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/dist-cjs/index.js +93 -2451
- package/dist-cjs/models/AppSyncServiceException.js +12 -0
- package/dist-cjs/models/errors.js +177 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +1927 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +97 -91
- package/dist-types/schemas/schemas_0.d.ts +20 -13
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +15 -13
- package/package.json +14 -14
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AppSyncServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class AppSyncServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, AppSyncServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.AppSyncServiceException = AppSyncServiceException;
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GraphQLSchemaException = exports.ConflictException = exports.ServiceQuotaExceededException = exports.UnauthorizedException = exports.LimitExceededException = exports.ConcurrentModificationException = exports.NotFoundException = exports.InternalFailureException = exports.BadRequestException = exports.ApiLimitExceededException = exports.ApiKeyValidityOutOfBoundsException = exports.ApiKeyLimitExceededException = exports.AccessDeniedException = void 0;
|
|
4
|
+
const AppSyncServiceException_1 = require("./AppSyncServiceException");
|
|
5
|
+
class AccessDeniedException extends AppSyncServiceException_1.AppSyncServiceException {
|
|
6
|
+
name = "AccessDeniedException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
constructor(opts) {
|
|
9
|
+
super({
|
|
10
|
+
name: "AccessDeniedException",
|
|
11
|
+
$fault: "client",
|
|
12
|
+
...opts,
|
|
13
|
+
});
|
|
14
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
18
|
+
class ApiKeyLimitExceededException extends AppSyncServiceException_1.AppSyncServiceException {
|
|
19
|
+
name = "ApiKeyLimitExceededException";
|
|
20
|
+
$fault = "client";
|
|
21
|
+
constructor(opts) {
|
|
22
|
+
super({
|
|
23
|
+
name: "ApiKeyLimitExceededException",
|
|
24
|
+
$fault: "client",
|
|
25
|
+
...opts,
|
|
26
|
+
});
|
|
27
|
+
Object.setPrototypeOf(this, ApiKeyLimitExceededException.prototype);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.ApiKeyLimitExceededException = ApiKeyLimitExceededException;
|
|
31
|
+
class ApiKeyValidityOutOfBoundsException extends AppSyncServiceException_1.AppSyncServiceException {
|
|
32
|
+
name = "ApiKeyValidityOutOfBoundsException";
|
|
33
|
+
$fault = "client";
|
|
34
|
+
constructor(opts) {
|
|
35
|
+
super({
|
|
36
|
+
name: "ApiKeyValidityOutOfBoundsException",
|
|
37
|
+
$fault: "client",
|
|
38
|
+
...opts,
|
|
39
|
+
});
|
|
40
|
+
Object.setPrototypeOf(this, ApiKeyValidityOutOfBoundsException.prototype);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.ApiKeyValidityOutOfBoundsException = ApiKeyValidityOutOfBoundsException;
|
|
44
|
+
class ApiLimitExceededException extends AppSyncServiceException_1.AppSyncServiceException {
|
|
45
|
+
name = "ApiLimitExceededException";
|
|
46
|
+
$fault = "client";
|
|
47
|
+
constructor(opts) {
|
|
48
|
+
super({
|
|
49
|
+
name: "ApiLimitExceededException",
|
|
50
|
+
$fault: "client",
|
|
51
|
+
...opts,
|
|
52
|
+
});
|
|
53
|
+
Object.setPrototypeOf(this, ApiLimitExceededException.prototype);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.ApiLimitExceededException = ApiLimitExceededException;
|
|
57
|
+
class BadRequestException extends AppSyncServiceException_1.AppSyncServiceException {
|
|
58
|
+
name = "BadRequestException";
|
|
59
|
+
$fault = "client";
|
|
60
|
+
reason;
|
|
61
|
+
detail;
|
|
62
|
+
constructor(opts) {
|
|
63
|
+
super({
|
|
64
|
+
name: "BadRequestException",
|
|
65
|
+
$fault: "client",
|
|
66
|
+
...opts,
|
|
67
|
+
});
|
|
68
|
+
Object.setPrototypeOf(this, BadRequestException.prototype);
|
|
69
|
+
this.reason = opts.reason;
|
|
70
|
+
this.detail = opts.detail;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
exports.BadRequestException = BadRequestException;
|
|
74
|
+
class InternalFailureException extends AppSyncServiceException_1.AppSyncServiceException {
|
|
75
|
+
name = "InternalFailureException";
|
|
76
|
+
$fault = "server";
|
|
77
|
+
constructor(opts) {
|
|
78
|
+
super({
|
|
79
|
+
name: "InternalFailureException",
|
|
80
|
+
$fault: "server",
|
|
81
|
+
...opts,
|
|
82
|
+
});
|
|
83
|
+
Object.setPrototypeOf(this, InternalFailureException.prototype);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
exports.InternalFailureException = InternalFailureException;
|
|
87
|
+
class NotFoundException extends AppSyncServiceException_1.AppSyncServiceException {
|
|
88
|
+
name = "NotFoundException";
|
|
89
|
+
$fault = "client";
|
|
90
|
+
constructor(opts) {
|
|
91
|
+
super({
|
|
92
|
+
name: "NotFoundException",
|
|
93
|
+
$fault: "client",
|
|
94
|
+
...opts,
|
|
95
|
+
});
|
|
96
|
+
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
exports.NotFoundException = NotFoundException;
|
|
100
|
+
class ConcurrentModificationException extends AppSyncServiceException_1.AppSyncServiceException {
|
|
101
|
+
name = "ConcurrentModificationException";
|
|
102
|
+
$fault = "client";
|
|
103
|
+
constructor(opts) {
|
|
104
|
+
super({
|
|
105
|
+
name: "ConcurrentModificationException",
|
|
106
|
+
$fault: "client",
|
|
107
|
+
...opts,
|
|
108
|
+
});
|
|
109
|
+
Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
exports.ConcurrentModificationException = ConcurrentModificationException;
|
|
113
|
+
class LimitExceededException extends AppSyncServiceException_1.AppSyncServiceException {
|
|
114
|
+
name = "LimitExceededException";
|
|
115
|
+
$fault = "client";
|
|
116
|
+
constructor(opts) {
|
|
117
|
+
super({
|
|
118
|
+
name: "LimitExceededException",
|
|
119
|
+
$fault: "client",
|
|
120
|
+
...opts,
|
|
121
|
+
});
|
|
122
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
exports.LimitExceededException = LimitExceededException;
|
|
126
|
+
class UnauthorizedException extends AppSyncServiceException_1.AppSyncServiceException {
|
|
127
|
+
name = "UnauthorizedException";
|
|
128
|
+
$fault = "client";
|
|
129
|
+
constructor(opts) {
|
|
130
|
+
super({
|
|
131
|
+
name: "UnauthorizedException",
|
|
132
|
+
$fault: "client",
|
|
133
|
+
...opts,
|
|
134
|
+
});
|
|
135
|
+
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
exports.UnauthorizedException = UnauthorizedException;
|
|
139
|
+
class ServiceQuotaExceededException extends AppSyncServiceException_1.AppSyncServiceException {
|
|
140
|
+
name = "ServiceQuotaExceededException";
|
|
141
|
+
$fault = "client";
|
|
142
|
+
constructor(opts) {
|
|
143
|
+
super({
|
|
144
|
+
name: "ServiceQuotaExceededException",
|
|
145
|
+
$fault: "client",
|
|
146
|
+
...opts,
|
|
147
|
+
});
|
|
148
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
152
|
+
class ConflictException extends AppSyncServiceException_1.AppSyncServiceException {
|
|
153
|
+
name = "ConflictException";
|
|
154
|
+
$fault = "client";
|
|
155
|
+
constructor(opts) {
|
|
156
|
+
super({
|
|
157
|
+
name: "ConflictException",
|
|
158
|
+
$fault: "client",
|
|
159
|
+
...opts,
|
|
160
|
+
});
|
|
161
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
exports.ConflictException = ConflictException;
|
|
165
|
+
class GraphQLSchemaException extends AppSyncServiceException_1.AppSyncServiceException {
|
|
166
|
+
name = "GraphQLSchemaException";
|
|
167
|
+
$fault = "client";
|
|
168
|
+
constructor(opts) {
|
|
169
|
+
super({
|
|
170
|
+
name: "GraphQLSchemaException",
|
|
171
|
+
$fault: "client",
|
|
172
|
+
...opts,
|
|
173
|
+
});
|
|
174
|
+
Object.setPrototypeOf(this, GraphQLSchemaException.prototype);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
exports.GraphQLSchemaException = GraphQLSchemaException;
|
|
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
|
|
|
9
9
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
10
10
|
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
11
11
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
12
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
12
13
|
const getRuntimeConfig = (config) => {
|
|
13
14
|
return {
|
|
14
15
|
apiVersion: "2017-07-25",
|
|
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
|
|
|
29
30
|
protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
|
|
30
31
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
32
|
defaultNamespace: "com.amazonaws.appsync",
|
|
33
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
32
34
|
xmlNamespace: "http://appsync.amazonaws.com",
|
|
33
35
|
version: "2017-07-25",
|
|
34
36
|
serviceTarget: "AWSDeepdishControlPlaneService",
|