@aws-sdk/client-cognito-identity 3.490.0 → 3.496.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/CognitoIdentity.js +1 -57
- package/dist-cjs/CognitoIdentityClient.js +1 -42
- package/dist-cjs/commands/CreateIdentityPoolCommand.js +1 -30
- package/dist-cjs/commands/DeleteIdentitiesCommand.js +1 -30
- package/dist-cjs/commands/DeleteIdentityPoolCommand.js +1 -30
- package/dist-cjs/commands/DescribeIdentityCommand.js +1 -30
- package/dist-cjs/commands/DescribeIdentityPoolCommand.js +1 -30
- package/dist-cjs/commands/GetCredentialsForIdentityCommand.js +1 -28
- package/dist-cjs/commands/GetIdCommand.js +1 -28
- package/dist-cjs/commands/GetIdentityPoolRolesCommand.js +1 -30
- package/dist-cjs/commands/GetOpenIdTokenCommand.js +1 -28
- package/dist-cjs/commands/GetOpenIdTokenForDeveloperIdentityCommand.js +1 -30
- package/dist-cjs/commands/GetPrincipalTagAttributeMapCommand.js +1 -30
- package/dist-cjs/commands/ListIdentitiesCommand.js +1 -30
- package/dist-cjs/commands/ListIdentityPoolsCommand.js +1 -30
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -30
- package/dist-cjs/commands/LookupDeveloperIdentityCommand.js +1 -30
- package/dist-cjs/commands/MergeDeveloperIdentitiesCommand.js +1 -30
- package/dist-cjs/commands/SetIdentityPoolRolesCommand.js +1 -30
- package/dist-cjs/commands/SetPrincipalTagAttributeMapCommand.js +1 -30
- package/dist-cjs/commands/TagResourceCommand.js +1 -30
- package/dist-cjs/commands/UnlinkDeveloperIdentityCommand.js +1 -30
- package/dist-cjs/commands/UnlinkIdentityCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -30
- package/dist-cjs/commands/UpdateIdentityPoolCommand.js +1 -30
- package/dist-cjs/commands/index.js +1 -26
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +2304 -11
- package/dist-cjs/models/CognitoIdentityServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -165
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListIdentityPoolsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -5
- package/dist-cjs/protocols/Aws_json1_1.js +1 -1459
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +41 -41
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,2305 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
AmbiguousRoleResolutionType: () => AmbiguousRoleResolutionType,
|
|
25
|
+
CognitoIdentity: () => CognitoIdentity,
|
|
26
|
+
CognitoIdentityClient: () => CognitoIdentityClient,
|
|
27
|
+
CognitoIdentityServiceException: () => CognitoIdentityServiceException,
|
|
28
|
+
ConcurrentModificationException: () => ConcurrentModificationException,
|
|
29
|
+
CreateIdentityPoolCommand: () => CreateIdentityPoolCommand,
|
|
30
|
+
DeleteIdentitiesCommand: () => DeleteIdentitiesCommand,
|
|
31
|
+
DeleteIdentityPoolCommand: () => DeleteIdentityPoolCommand,
|
|
32
|
+
DescribeIdentityCommand: () => DescribeIdentityCommand,
|
|
33
|
+
DescribeIdentityPoolCommand: () => DescribeIdentityPoolCommand,
|
|
34
|
+
DeveloperUserAlreadyRegisteredException: () => DeveloperUserAlreadyRegisteredException,
|
|
35
|
+
ErrorCode: () => ErrorCode,
|
|
36
|
+
ExternalServiceException: () => ExternalServiceException,
|
|
37
|
+
GetCredentialsForIdentityCommand: () => GetCredentialsForIdentityCommand,
|
|
38
|
+
GetIdCommand: () => GetIdCommand,
|
|
39
|
+
GetIdentityPoolRolesCommand: () => GetIdentityPoolRolesCommand,
|
|
40
|
+
GetOpenIdTokenCommand: () => GetOpenIdTokenCommand,
|
|
41
|
+
GetOpenIdTokenForDeveloperIdentityCommand: () => GetOpenIdTokenForDeveloperIdentityCommand,
|
|
42
|
+
GetPrincipalTagAttributeMapCommand: () => GetPrincipalTagAttributeMapCommand,
|
|
43
|
+
InternalErrorException: () => InternalErrorException,
|
|
44
|
+
InvalidIdentityPoolConfigurationException: () => InvalidIdentityPoolConfigurationException,
|
|
45
|
+
InvalidParameterException: () => InvalidParameterException,
|
|
46
|
+
LimitExceededException: () => LimitExceededException,
|
|
47
|
+
ListIdentitiesCommand: () => ListIdentitiesCommand,
|
|
48
|
+
ListIdentityPoolsCommand: () => ListIdentityPoolsCommand,
|
|
49
|
+
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
50
|
+
LookupDeveloperIdentityCommand: () => LookupDeveloperIdentityCommand,
|
|
51
|
+
MappingRuleMatchType: () => MappingRuleMatchType,
|
|
52
|
+
MergeDeveloperIdentitiesCommand: () => MergeDeveloperIdentitiesCommand,
|
|
53
|
+
NotAuthorizedException: () => NotAuthorizedException,
|
|
54
|
+
ResourceConflictException: () => ResourceConflictException,
|
|
55
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
56
|
+
RoleMappingType: () => RoleMappingType,
|
|
57
|
+
SetIdentityPoolRolesCommand: () => SetIdentityPoolRolesCommand,
|
|
58
|
+
SetPrincipalTagAttributeMapCommand: () => SetPrincipalTagAttributeMapCommand,
|
|
59
|
+
TagResourceCommand: () => TagResourceCommand,
|
|
60
|
+
TooManyRequestsException: () => TooManyRequestsException,
|
|
61
|
+
UnlinkDeveloperIdentityCommand: () => UnlinkDeveloperIdentityCommand,
|
|
62
|
+
UnlinkIdentityCommand: () => UnlinkIdentityCommand,
|
|
63
|
+
UntagResourceCommand: () => UntagResourceCommand,
|
|
64
|
+
UpdateIdentityPoolCommand: () => UpdateIdentityPoolCommand,
|
|
65
|
+
__Client: () => import_smithy_client.Client,
|
|
66
|
+
paginateListIdentityPools: () => paginateListIdentityPools
|
|
67
|
+
});
|
|
68
|
+
module.exports = __toCommonJS(src_exports);
|
|
69
|
+
|
|
70
|
+
// src/CognitoIdentityClient.ts
|
|
71
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
72
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
73
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
74
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
75
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
76
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
77
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
78
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
79
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
// src/endpoint/EndpointParameters.ts
|
|
83
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
84
|
+
return {
|
|
85
|
+
...options,
|
|
86
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
87
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
88
|
+
defaultSigningName: "cognito-identity"
|
|
89
|
+
};
|
|
90
|
+
}, "resolveClientEndpointParameters");
|
|
91
|
+
var commonParams = {
|
|
92
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
93
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
94
|
+
Region: { type: "builtInParams", name: "region" },
|
|
95
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
// src/CognitoIdentityClient.ts
|
|
99
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
100
|
+
|
|
101
|
+
// src/runtimeExtensions.ts
|
|
102
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
103
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
104
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
105
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
106
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
107
|
+
const extensionConfiguration = {
|
|
108
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
109
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
110
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
111
|
+
};
|
|
112
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
113
|
+
return {
|
|
114
|
+
...runtimeConfig,
|
|
115
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
116
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
117
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
118
|
+
};
|
|
119
|
+
}, "resolveRuntimeExtensions");
|
|
120
|
+
|
|
121
|
+
// src/CognitoIdentityClient.ts
|
|
122
|
+
var _CognitoIdentityClient = class _CognitoIdentityClient extends import_smithy_client.Client {
|
|
123
|
+
constructor(...[configuration]) {
|
|
124
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
125
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
126
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
127
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
128
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
129
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
130
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
131
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
132
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
133
|
+
super(_config_8);
|
|
134
|
+
this.config = _config_8;
|
|
135
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
136
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
137
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
138
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
139
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
140
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
144
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
145
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
146
|
+
*/
|
|
147
|
+
destroy() {
|
|
148
|
+
super.destroy();
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
__name(_CognitoIdentityClient, "CognitoIdentityClient");
|
|
152
|
+
var CognitoIdentityClient = _CognitoIdentityClient;
|
|
153
|
+
|
|
154
|
+
// src/CognitoIdentity.ts
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
// src/commands/CreateIdentityPoolCommand.ts
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
161
|
+
|
|
162
|
+
var import_types = require("@smithy/types");
|
|
163
|
+
|
|
164
|
+
// src/protocols/Aws_json1_1.ts
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
// src/models/CognitoIdentityServiceException.ts
|
|
169
|
+
|
|
170
|
+
var _CognitoIdentityServiceException = class _CognitoIdentityServiceException extends import_smithy_client.ServiceException {
|
|
171
|
+
/**
|
|
172
|
+
* @internal
|
|
173
|
+
*/
|
|
174
|
+
constructor(options) {
|
|
175
|
+
super(options);
|
|
176
|
+
Object.setPrototypeOf(this, _CognitoIdentityServiceException.prototype);
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
__name(_CognitoIdentityServiceException, "CognitoIdentityServiceException");
|
|
180
|
+
var CognitoIdentityServiceException = _CognitoIdentityServiceException;
|
|
181
|
+
|
|
182
|
+
// src/models/models_0.ts
|
|
183
|
+
var AmbiguousRoleResolutionType = {
|
|
184
|
+
AUTHENTICATED_ROLE: "AuthenticatedRole",
|
|
185
|
+
DENY: "Deny"
|
|
186
|
+
};
|
|
187
|
+
var _InternalErrorException = class _InternalErrorException extends CognitoIdentityServiceException {
|
|
188
|
+
/**
|
|
189
|
+
* @internal
|
|
190
|
+
*/
|
|
191
|
+
constructor(opts) {
|
|
192
|
+
super({
|
|
193
|
+
name: "InternalErrorException",
|
|
194
|
+
$fault: "server",
|
|
195
|
+
...opts
|
|
196
|
+
});
|
|
197
|
+
this.name = "InternalErrorException";
|
|
198
|
+
this.$fault = "server";
|
|
199
|
+
Object.setPrototypeOf(this, _InternalErrorException.prototype);
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
__name(_InternalErrorException, "InternalErrorException");
|
|
203
|
+
var InternalErrorException = _InternalErrorException;
|
|
204
|
+
var _InvalidParameterException = class _InvalidParameterException extends CognitoIdentityServiceException {
|
|
205
|
+
/**
|
|
206
|
+
* @internal
|
|
207
|
+
*/
|
|
208
|
+
constructor(opts) {
|
|
209
|
+
super({
|
|
210
|
+
name: "InvalidParameterException",
|
|
211
|
+
$fault: "client",
|
|
212
|
+
...opts
|
|
213
|
+
});
|
|
214
|
+
this.name = "InvalidParameterException";
|
|
215
|
+
this.$fault = "client";
|
|
216
|
+
Object.setPrototypeOf(this, _InvalidParameterException.prototype);
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
__name(_InvalidParameterException, "InvalidParameterException");
|
|
220
|
+
var InvalidParameterException = _InvalidParameterException;
|
|
221
|
+
var _LimitExceededException = class _LimitExceededException extends CognitoIdentityServiceException {
|
|
222
|
+
/**
|
|
223
|
+
* @internal
|
|
224
|
+
*/
|
|
225
|
+
constructor(opts) {
|
|
226
|
+
super({
|
|
227
|
+
name: "LimitExceededException",
|
|
228
|
+
$fault: "client",
|
|
229
|
+
...opts
|
|
230
|
+
});
|
|
231
|
+
this.name = "LimitExceededException";
|
|
232
|
+
this.$fault = "client";
|
|
233
|
+
Object.setPrototypeOf(this, _LimitExceededException.prototype);
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
__name(_LimitExceededException, "LimitExceededException");
|
|
237
|
+
var LimitExceededException = _LimitExceededException;
|
|
238
|
+
var _NotAuthorizedException = class _NotAuthorizedException extends CognitoIdentityServiceException {
|
|
239
|
+
/**
|
|
240
|
+
* @internal
|
|
241
|
+
*/
|
|
242
|
+
constructor(opts) {
|
|
243
|
+
super({
|
|
244
|
+
name: "NotAuthorizedException",
|
|
245
|
+
$fault: "client",
|
|
246
|
+
...opts
|
|
247
|
+
});
|
|
248
|
+
this.name = "NotAuthorizedException";
|
|
249
|
+
this.$fault = "client";
|
|
250
|
+
Object.setPrototypeOf(this, _NotAuthorizedException.prototype);
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
__name(_NotAuthorizedException, "NotAuthorizedException");
|
|
254
|
+
var NotAuthorizedException = _NotAuthorizedException;
|
|
255
|
+
var _ResourceConflictException = class _ResourceConflictException extends CognitoIdentityServiceException {
|
|
256
|
+
/**
|
|
257
|
+
* @internal
|
|
258
|
+
*/
|
|
259
|
+
constructor(opts) {
|
|
260
|
+
super({
|
|
261
|
+
name: "ResourceConflictException",
|
|
262
|
+
$fault: "client",
|
|
263
|
+
...opts
|
|
264
|
+
});
|
|
265
|
+
this.name = "ResourceConflictException";
|
|
266
|
+
this.$fault = "client";
|
|
267
|
+
Object.setPrototypeOf(this, _ResourceConflictException.prototype);
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
__name(_ResourceConflictException, "ResourceConflictException");
|
|
271
|
+
var ResourceConflictException = _ResourceConflictException;
|
|
272
|
+
var _TooManyRequestsException = class _TooManyRequestsException extends CognitoIdentityServiceException {
|
|
273
|
+
/**
|
|
274
|
+
* @internal
|
|
275
|
+
*/
|
|
276
|
+
constructor(opts) {
|
|
277
|
+
super({
|
|
278
|
+
name: "TooManyRequestsException",
|
|
279
|
+
$fault: "client",
|
|
280
|
+
...opts
|
|
281
|
+
});
|
|
282
|
+
this.name = "TooManyRequestsException";
|
|
283
|
+
this.$fault = "client";
|
|
284
|
+
Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
__name(_TooManyRequestsException, "TooManyRequestsException");
|
|
288
|
+
var TooManyRequestsException = _TooManyRequestsException;
|
|
289
|
+
var ErrorCode = {
|
|
290
|
+
ACCESS_DENIED: "AccessDenied",
|
|
291
|
+
INTERNAL_SERVER_ERROR: "InternalServerError"
|
|
292
|
+
};
|
|
293
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends CognitoIdentityServiceException {
|
|
294
|
+
/**
|
|
295
|
+
* @internal
|
|
296
|
+
*/
|
|
297
|
+
constructor(opts) {
|
|
298
|
+
super({
|
|
299
|
+
name: "ResourceNotFoundException",
|
|
300
|
+
$fault: "client",
|
|
301
|
+
...opts
|
|
302
|
+
});
|
|
303
|
+
this.name = "ResourceNotFoundException";
|
|
304
|
+
this.$fault = "client";
|
|
305
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
306
|
+
}
|
|
307
|
+
};
|
|
308
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
309
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
310
|
+
var _ExternalServiceException = class _ExternalServiceException extends CognitoIdentityServiceException {
|
|
311
|
+
/**
|
|
312
|
+
* @internal
|
|
313
|
+
*/
|
|
314
|
+
constructor(opts) {
|
|
315
|
+
super({
|
|
316
|
+
name: "ExternalServiceException",
|
|
317
|
+
$fault: "client",
|
|
318
|
+
...opts
|
|
319
|
+
});
|
|
320
|
+
this.name = "ExternalServiceException";
|
|
321
|
+
this.$fault = "client";
|
|
322
|
+
Object.setPrototypeOf(this, _ExternalServiceException.prototype);
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
__name(_ExternalServiceException, "ExternalServiceException");
|
|
326
|
+
var ExternalServiceException = _ExternalServiceException;
|
|
327
|
+
var _InvalidIdentityPoolConfigurationException = class _InvalidIdentityPoolConfigurationException extends CognitoIdentityServiceException {
|
|
328
|
+
/**
|
|
329
|
+
* @internal
|
|
330
|
+
*/
|
|
331
|
+
constructor(opts) {
|
|
332
|
+
super({
|
|
333
|
+
name: "InvalidIdentityPoolConfigurationException",
|
|
334
|
+
$fault: "client",
|
|
335
|
+
...opts
|
|
336
|
+
});
|
|
337
|
+
this.name = "InvalidIdentityPoolConfigurationException";
|
|
338
|
+
this.$fault = "client";
|
|
339
|
+
Object.setPrototypeOf(this, _InvalidIdentityPoolConfigurationException.prototype);
|
|
340
|
+
}
|
|
341
|
+
};
|
|
342
|
+
__name(_InvalidIdentityPoolConfigurationException, "InvalidIdentityPoolConfigurationException");
|
|
343
|
+
var InvalidIdentityPoolConfigurationException = _InvalidIdentityPoolConfigurationException;
|
|
344
|
+
var MappingRuleMatchType = {
|
|
345
|
+
CONTAINS: "Contains",
|
|
346
|
+
EQUALS: "Equals",
|
|
347
|
+
NOT_EQUAL: "NotEqual",
|
|
348
|
+
STARTS_WITH: "StartsWith"
|
|
349
|
+
};
|
|
350
|
+
var RoleMappingType = {
|
|
351
|
+
RULES: "Rules",
|
|
352
|
+
TOKEN: "Token"
|
|
353
|
+
};
|
|
354
|
+
var _DeveloperUserAlreadyRegisteredException = class _DeveloperUserAlreadyRegisteredException extends CognitoIdentityServiceException {
|
|
355
|
+
/**
|
|
356
|
+
* @internal
|
|
357
|
+
*/
|
|
358
|
+
constructor(opts) {
|
|
359
|
+
super({
|
|
360
|
+
name: "DeveloperUserAlreadyRegisteredException",
|
|
361
|
+
$fault: "client",
|
|
362
|
+
...opts
|
|
363
|
+
});
|
|
364
|
+
this.name = "DeveloperUserAlreadyRegisteredException";
|
|
365
|
+
this.$fault = "client";
|
|
366
|
+
Object.setPrototypeOf(this, _DeveloperUserAlreadyRegisteredException.prototype);
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
__name(_DeveloperUserAlreadyRegisteredException, "DeveloperUserAlreadyRegisteredException");
|
|
370
|
+
var DeveloperUserAlreadyRegisteredException = _DeveloperUserAlreadyRegisteredException;
|
|
371
|
+
var _ConcurrentModificationException = class _ConcurrentModificationException extends CognitoIdentityServiceException {
|
|
372
|
+
/**
|
|
373
|
+
* @internal
|
|
374
|
+
*/
|
|
375
|
+
constructor(opts) {
|
|
376
|
+
super({
|
|
377
|
+
name: "ConcurrentModificationException",
|
|
378
|
+
$fault: "client",
|
|
379
|
+
...opts
|
|
380
|
+
});
|
|
381
|
+
this.name = "ConcurrentModificationException";
|
|
382
|
+
this.$fault = "client";
|
|
383
|
+
Object.setPrototypeOf(this, _ConcurrentModificationException.prototype);
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
__name(_ConcurrentModificationException, "ConcurrentModificationException");
|
|
387
|
+
var ConcurrentModificationException = _ConcurrentModificationException;
|
|
388
|
+
|
|
389
|
+
// src/protocols/Aws_json1_1.ts
|
|
390
|
+
var se_CreateIdentityPoolCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
391
|
+
const headers = sharedHeaders("CreateIdentityPool");
|
|
392
|
+
let body;
|
|
393
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
394
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
395
|
+
}, "se_CreateIdentityPoolCommand");
|
|
396
|
+
var se_DeleteIdentitiesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
397
|
+
const headers = sharedHeaders("DeleteIdentities");
|
|
398
|
+
let body;
|
|
399
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
400
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
401
|
+
}, "se_DeleteIdentitiesCommand");
|
|
402
|
+
var se_DeleteIdentityPoolCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
403
|
+
const headers = sharedHeaders("DeleteIdentityPool");
|
|
404
|
+
let body;
|
|
405
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
406
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
407
|
+
}, "se_DeleteIdentityPoolCommand");
|
|
408
|
+
var se_DescribeIdentityCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
409
|
+
const headers = sharedHeaders("DescribeIdentity");
|
|
410
|
+
let body;
|
|
411
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
412
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
413
|
+
}, "se_DescribeIdentityCommand");
|
|
414
|
+
var se_DescribeIdentityPoolCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
415
|
+
const headers = sharedHeaders("DescribeIdentityPool");
|
|
416
|
+
let body;
|
|
417
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
418
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
419
|
+
}, "se_DescribeIdentityPoolCommand");
|
|
420
|
+
var se_GetCredentialsForIdentityCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
421
|
+
const headers = sharedHeaders("GetCredentialsForIdentity");
|
|
422
|
+
let body;
|
|
423
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
424
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
425
|
+
}, "se_GetCredentialsForIdentityCommand");
|
|
426
|
+
var se_GetIdCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
427
|
+
const headers = sharedHeaders("GetId");
|
|
428
|
+
let body;
|
|
429
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
430
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
431
|
+
}, "se_GetIdCommand");
|
|
432
|
+
var se_GetIdentityPoolRolesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
433
|
+
const headers = sharedHeaders("GetIdentityPoolRoles");
|
|
434
|
+
let body;
|
|
435
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
436
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
437
|
+
}, "se_GetIdentityPoolRolesCommand");
|
|
438
|
+
var se_GetOpenIdTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
439
|
+
const headers = sharedHeaders("GetOpenIdToken");
|
|
440
|
+
let body;
|
|
441
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
442
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
443
|
+
}, "se_GetOpenIdTokenCommand");
|
|
444
|
+
var se_GetOpenIdTokenForDeveloperIdentityCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
445
|
+
const headers = sharedHeaders("GetOpenIdTokenForDeveloperIdentity");
|
|
446
|
+
let body;
|
|
447
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
448
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
449
|
+
}, "se_GetOpenIdTokenForDeveloperIdentityCommand");
|
|
450
|
+
var se_GetPrincipalTagAttributeMapCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
451
|
+
const headers = sharedHeaders("GetPrincipalTagAttributeMap");
|
|
452
|
+
let body;
|
|
453
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
454
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
455
|
+
}, "se_GetPrincipalTagAttributeMapCommand");
|
|
456
|
+
var se_ListIdentitiesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
457
|
+
const headers = sharedHeaders("ListIdentities");
|
|
458
|
+
let body;
|
|
459
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
460
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
461
|
+
}, "se_ListIdentitiesCommand");
|
|
462
|
+
var se_ListIdentityPoolsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
463
|
+
const headers = sharedHeaders("ListIdentityPools");
|
|
464
|
+
let body;
|
|
465
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
466
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
467
|
+
}, "se_ListIdentityPoolsCommand");
|
|
468
|
+
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
469
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
470
|
+
let body;
|
|
471
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
472
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
473
|
+
}, "se_ListTagsForResourceCommand");
|
|
474
|
+
var se_LookupDeveloperIdentityCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
475
|
+
const headers = sharedHeaders("LookupDeveloperIdentity");
|
|
476
|
+
let body;
|
|
477
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
478
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
479
|
+
}, "se_LookupDeveloperIdentityCommand");
|
|
480
|
+
var se_MergeDeveloperIdentitiesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
481
|
+
const headers = sharedHeaders("MergeDeveloperIdentities");
|
|
482
|
+
let body;
|
|
483
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
484
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
485
|
+
}, "se_MergeDeveloperIdentitiesCommand");
|
|
486
|
+
var se_SetIdentityPoolRolesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
487
|
+
const headers = sharedHeaders("SetIdentityPoolRoles");
|
|
488
|
+
let body;
|
|
489
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
490
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
491
|
+
}, "se_SetIdentityPoolRolesCommand");
|
|
492
|
+
var se_SetPrincipalTagAttributeMapCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
493
|
+
const headers = sharedHeaders("SetPrincipalTagAttributeMap");
|
|
494
|
+
let body;
|
|
495
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
496
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
497
|
+
}, "se_SetPrincipalTagAttributeMapCommand");
|
|
498
|
+
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
499
|
+
const headers = sharedHeaders("TagResource");
|
|
500
|
+
let body;
|
|
501
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
502
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
503
|
+
}, "se_TagResourceCommand");
|
|
504
|
+
var se_UnlinkDeveloperIdentityCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
505
|
+
const headers = sharedHeaders("UnlinkDeveloperIdentity");
|
|
506
|
+
let body;
|
|
507
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
508
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
509
|
+
}, "se_UnlinkDeveloperIdentityCommand");
|
|
510
|
+
var se_UnlinkIdentityCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
511
|
+
const headers = sharedHeaders("UnlinkIdentity");
|
|
512
|
+
let body;
|
|
513
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
514
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
515
|
+
}, "se_UnlinkIdentityCommand");
|
|
516
|
+
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
517
|
+
const headers = sharedHeaders("UntagResource");
|
|
518
|
+
let body;
|
|
519
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
520
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
521
|
+
}, "se_UntagResourceCommand");
|
|
522
|
+
var se_UpdateIdentityPoolCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
523
|
+
const headers = sharedHeaders("UpdateIdentityPool");
|
|
524
|
+
let body;
|
|
525
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
526
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
527
|
+
}, "se_UpdateIdentityPoolCommand");
|
|
528
|
+
var de_CreateIdentityPoolCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
529
|
+
if (output.statusCode >= 300) {
|
|
530
|
+
return de_CreateIdentityPoolCommandError(output, context);
|
|
531
|
+
}
|
|
532
|
+
const data = await parseBody(output.body, context);
|
|
533
|
+
let contents = {};
|
|
534
|
+
contents = (0, import_smithy_client._json)(data);
|
|
535
|
+
const response = {
|
|
536
|
+
$metadata: deserializeMetadata(output),
|
|
537
|
+
...contents
|
|
538
|
+
};
|
|
539
|
+
return response;
|
|
540
|
+
}, "de_CreateIdentityPoolCommand");
|
|
541
|
+
var de_CreateIdentityPoolCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
542
|
+
const parsedOutput = {
|
|
543
|
+
...output,
|
|
544
|
+
body: await parseErrorBody(output.body, context)
|
|
545
|
+
};
|
|
546
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
547
|
+
switch (errorCode) {
|
|
548
|
+
case "InternalErrorException":
|
|
549
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
550
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
551
|
+
case "InvalidParameterException":
|
|
552
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
553
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
554
|
+
case "LimitExceededException":
|
|
555
|
+
case "com.amazonaws.cognitoidentity#LimitExceededException":
|
|
556
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
557
|
+
case "NotAuthorizedException":
|
|
558
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
559
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
560
|
+
case "ResourceConflictException":
|
|
561
|
+
case "com.amazonaws.cognitoidentity#ResourceConflictException":
|
|
562
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
563
|
+
case "TooManyRequestsException":
|
|
564
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
565
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
566
|
+
default:
|
|
567
|
+
const parsedBody = parsedOutput.body;
|
|
568
|
+
return throwDefaultError({
|
|
569
|
+
output,
|
|
570
|
+
parsedBody,
|
|
571
|
+
errorCode
|
|
572
|
+
});
|
|
573
|
+
}
|
|
574
|
+
}, "de_CreateIdentityPoolCommandError");
|
|
575
|
+
var de_DeleteIdentitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
576
|
+
if (output.statusCode >= 300) {
|
|
577
|
+
return de_DeleteIdentitiesCommandError(output, context);
|
|
578
|
+
}
|
|
579
|
+
const data = await parseBody(output.body, context);
|
|
580
|
+
let contents = {};
|
|
581
|
+
contents = (0, import_smithy_client._json)(data);
|
|
582
|
+
const response = {
|
|
583
|
+
$metadata: deserializeMetadata(output),
|
|
584
|
+
...contents
|
|
585
|
+
};
|
|
586
|
+
return response;
|
|
587
|
+
}, "de_DeleteIdentitiesCommand");
|
|
588
|
+
var de_DeleteIdentitiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
589
|
+
const parsedOutput = {
|
|
590
|
+
...output,
|
|
591
|
+
body: await parseErrorBody(output.body, context)
|
|
592
|
+
};
|
|
593
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
594
|
+
switch (errorCode) {
|
|
595
|
+
case "InternalErrorException":
|
|
596
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
597
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
598
|
+
case "InvalidParameterException":
|
|
599
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
600
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
601
|
+
case "TooManyRequestsException":
|
|
602
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
603
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
604
|
+
default:
|
|
605
|
+
const parsedBody = parsedOutput.body;
|
|
606
|
+
return throwDefaultError({
|
|
607
|
+
output,
|
|
608
|
+
parsedBody,
|
|
609
|
+
errorCode
|
|
610
|
+
});
|
|
611
|
+
}
|
|
612
|
+
}, "de_DeleteIdentitiesCommandError");
|
|
613
|
+
var de_DeleteIdentityPoolCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
614
|
+
if (output.statusCode >= 300) {
|
|
615
|
+
return de_DeleteIdentityPoolCommandError(output, context);
|
|
616
|
+
}
|
|
617
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
618
|
+
const response = {
|
|
619
|
+
$metadata: deserializeMetadata(output)
|
|
620
|
+
};
|
|
621
|
+
return response;
|
|
622
|
+
}, "de_DeleteIdentityPoolCommand");
|
|
623
|
+
var de_DeleteIdentityPoolCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
624
|
+
const parsedOutput = {
|
|
625
|
+
...output,
|
|
626
|
+
body: await parseErrorBody(output.body, context)
|
|
627
|
+
};
|
|
628
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
629
|
+
switch (errorCode) {
|
|
630
|
+
case "InternalErrorException":
|
|
631
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
632
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
633
|
+
case "InvalidParameterException":
|
|
634
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
635
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
636
|
+
case "NotAuthorizedException":
|
|
637
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
638
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
639
|
+
case "ResourceNotFoundException":
|
|
640
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
641
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
642
|
+
case "TooManyRequestsException":
|
|
643
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
644
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
645
|
+
default:
|
|
646
|
+
const parsedBody = parsedOutput.body;
|
|
647
|
+
return throwDefaultError({
|
|
648
|
+
output,
|
|
649
|
+
parsedBody,
|
|
650
|
+
errorCode
|
|
651
|
+
});
|
|
652
|
+
}
|
|
653
|
+
}, "de_DeleteIdentityPoolCommandError");
|
|
654
|
+
var de_DescribeIdentityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
655
|
+
if (output.statusCode >= 300) {
|
|
656
|
+
return de_DescribeIdentityCommandError(output, context);
|
|
657
|
+
}
|
|
658
|
+
const data = await parseBody(output.body, context);
|
|
659
|
+
let contents = {};
|
|
660
|
+
contents = de_IdentityDescription(data, context);
|
|
661
|
+
const response = {
|
|
662
|
+
$metadata: deserializeMetadata(output),
|
|
663
|
+
...contents
|
|
664
|
+
};
|
|
665
|
+
return response;
|
|
666
|
+
}, "de_DescribeIdentityCommand");
|
|
667
|
+
var de_DescribeIdentityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
668
|
+
const parsedOutput = {
|
|
669
|
+
...output,
|
|
670
|
+
body: await parseErrorBody(output.body, context)
|
|
671
|
+
};
|
|
672
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
673
|
+
switch (errorCode) {
|
|
674
|
+
case "InternalErrorException":
|
|
675
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
676
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
677
|
+
case "InvalidParameterException":
|
|
678
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
679
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
680
|
+
case "NotAuthorizedException":
|
|
681
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
682
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
683
|
+
case "ResourceNotFoundException":
|
|
684
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
685
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
686
|
+
case "TooManyRequestsException":
|
|
687
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
688
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
689
|
+
default:
|
|
690
|
+
const parsedBody = parsedOutput.body;
|
|
691
|
+
return throwDefaultError({
|
|
692
|
+
output,
|
|
693
|
+
parsedBody,
|
|
694
|
+
errorCode
|
|
695
|
+
});
|
|
696
|
+
}
|
|
697
|
+
}, "de_DescribeIdentityCommandError");
|
|
698
|
+
var de_DescribeIdentityPoolCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
699
|
+
if (output.statusCode >= 300) {
|
|
700
|
+
return de_DescribeIdentityPoolCommandError(output, context);
|
|
701
|
+
}
|
|
702
|
+
const data = await parseBody(output.body, context);
|
|
703
|
+
let contents = {};
|
|
704
|
+
contents = (0, import_smithy_client._json)(data);
|
|
705
|
+
const response = {
|
|
706
|
+
$metadata: deserializeMetadata(output),
|
|
707
|
+
...contents
|
|
708
|
+
};
|
|
709
|
+
return response;
|
|
710
|
+
}, "de_DescribeIdentityPoolCommand");
|
|
711
|
+
var de_DescribeIdentityPoolCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
712
|
+
const parsedOutput = {
|
|
713
|
+
...output,
|
|
714
|
+
body: await parseErrorBody(output.body, context)
|
|
715
|
+
};
|
|
716
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
717
|
+
switch (errorCode) {
|
|
718
|
+
case "InternalErrorException":
|
|
719
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
720
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
721
|
+
case "InvalidParameterException":
|
|
722
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
723
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
724
|
+
case "NotAuthorizedException":
|
|
725
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
726
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
727
|
+
case "ResourceNotFoundException":
|
|
728
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
729
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
730
|
+
case "TooManyRequestsException":
|
|
731
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
732
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
733
|
+
default:
|
|
734
|
+
const parsedBody = parsedOutput.body;
|
|
735
|
+
return throwDefaultError({
|
|
736
|
+
output,
|
|
737
|
+
parsedBody,
|
|
738
|
+
errorCode
|
|
739
|
+
});
|
|
740
|
+
}
|
|
741
|
+
}, "de_DescribeIdentityPoolCommandError");
|
|
742
|
+
var de_GetCredentialsForIdentityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
743
|
+
if (output.statusCode >= 300) {
|
|
744
|
+
return de_GetCredentialsForIdentityCommandError(output, context);
|
|
745
|
+
}
|
|
746
|
+
const data = await parseBody(output.body, context);
|
|
747
|
+
let contents = {};
|
|
748
|
+
contents = de_GetCredentialsForIdentityResponse(data, context);
|
|
749
|
+
const response = {
|
|
750
|
+
$metadata: deserializeMetadata(output),
|
|
751
|
+
...contents
|
|
752
|
+
};
|
|
753
|
+
return response;
|
|
754
|
+
}, "de_GetCredentialsForIdentityCommand");
|
|
755
|
+
var de_GetCredentialsForIdentityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
756
|
+
const parsedOutput = {
|
|
757
|
+
...output,
|
|
758
|
+
body: await parseErrorBody(output.body, context)
|
|
759
|
+
};
|
|
760
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
761
|
+
switch (errorCode) {
|
|
762
|
+
case "ExternalServiceException":
|
|
763
|
+
case "com.amazonaws.cognitoidentity#ExternalServiceException":
|
|
764
|
+
throw await de_ExternalServiceExceptionRes(parsedOutput, context);
|
|
765
|
+
case "InternalErrorException":
|
|
766
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
767
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
768
|
+
case "InvalidIdentityPoolConfigurationException":
|
|
769
|
+
case "com.amazonaws.cognitoidentity#InvalidIdentityPoolConfigurationException":
|
|
770
|
+
throw await de_InvalidIdentityPoolConfigurationExceptionRes(parsedOutput, context);
|
|
771
|
+
case "InvalidParameterException":
|
|
772
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
773
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
774
|
+
case "NotAuthorizedException":
|
|
775
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
776
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
777
|
+
case "ResourceConflictException":
|
|
778
|
+
case "com.amazonaws.cognitoidentity#ResourceConflictException":
|
|
779
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
780
|
+
case "ResourceNotFoundException":
|
|
781
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
782
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
783
|
+
case "TooManyRequestsException":
|
|
784
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
785
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
786
|
+
default:
|
|
787
|
+
const parsedBody = parsedOutput.body;
|
|
788
|
+
return throwDefaultError({
|
|
789
|
+
output,
|
|
790
|
+
parsedBody,
|
|
791
|
+
errorCode
|
|
792
|
+
});
|
|
793
|
+
}
|
|
794
|
+
}, "de_GetCredentialsForIdentityCommandError");
|
|
795
|
+
var de_GetIdCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
796
|
+
if (output.statusCode >= 300) {
|
|
797
|
+
return de_GetIdCommandError(output, context);
|
|
798
|
+
}
|
|
799
|
+
const data = await parseBody(output.body, context);
|
|
800
|
+
let contents = {};
|
|
801
|
+
contents = (0, import_smithy_client._json)(data);
|
|
802
|
+
const response = {
|
|
803
|
+
$metadata: deserializeMetadata(output),
|
|
804
|
+
...contents
|
|
805
|
+
};
|
|
806
|
+
return response;
|
|
807
|
+
}, "de_GetIdCommand");
|
|
808
|
+
var de_GetIdCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
809
|
+
const parsedOutput = {
|
|
810
|
+
...output,
|
|
811
|
+
body: await parseErrorBody(output.body, context)
|
|
812
|
+
};
|
|
813
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
814
|
+
switch (errorCode) {
|
|
815
|
+
case "ExternalServiceException":
|
|
816
|
+
case "com.amazonaws.cognitoidentity#ExternalServiceException":
|
|
817
|
+
throw await de_ExternalServiceExceptionRes(parsedOutput, context);
|
|
818
|
+
case "InternalErrorException":
|
|
819
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
820
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
821
|
+
case "InvalidParameterException":
|
|
822
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
823
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
824
|
+
case "LimitExceededException":
|
|
825
|
+
case "com.amazonaws.cognitoidentity#LimitExceededException":
|
|
826
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
827
|
+
case "NotAuthorizedException":
|
|
828
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
829
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
830
|
+
case "ResourceConflictException":
|
|
831
|
+
case "com.amazonaws.cognitoidentity#ResourceConflictException":
|
|
832
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
833
|
+
case "ResourceNotFoundException":
|
|
834
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
835
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
836
|
+
case "TooManyRequestsException":
|
|
837
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
838
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
839
|
+
default:
|
|
840
|
+
const parsedBody = parsedOutput.body;
|
|
841
|
+
return throwDefaultError({
|
|
842
|
+
output,
|
|
843
|
+
parsedBody,
|
|
844
|
+
errorCode
|
|
845
|
+
});
|
|
846
|
+
}
|
|
847
|
+
}, "de_GetIdCommandError");
|
|
848
|
+
var de_GetIdentityPoolRolesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
849
|
+
if (output.statusCode >= 300) {
|
|
850
|
+
return de_GetIdentityPoolRolesCommandError(output, context);
|
|
851
|
+
}
|
|
852
|
+
const data = await parseBody(output.body, context);
|
|
853
|
+
let contents = {};
|
|
854
|
+
contents = (0, import_smithy_client._json)(data);
|
|
855
|
+
const response = {
|
|
856
|
+
$metadata: deserializeMetadata(output),
|
|
857
|
+
...contents
|
|
858
|
+
};
|
|
859
|
+
return response;
|
|
860
|
+
}, "de_GetIdentityPoolRolesCommand");
|
|
861
|
+
var de_GetIdentityPoolRolesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
862
|
+
const parsedOutput = {
|
|
863
|
+
...output,
|
|
864
|
+
body: await parseErrorBody(output.body, context)
|
|
865
|
+
};
|
|
866
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
867
|
+
switch (errorCode) {
|
|
868
|
+
case "InternalErrorException":
|
|
869
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
870
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
871
|
+
case "InvalidParameterException":
|
|
872
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
873
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
874
|
+
case "NotAuthorizedException":
|
|
875
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
876
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
877
|
+
case "ResourceConflictException":
|
|
878
|
+
case "com.amazonaws.cognitoidentity#ResourceConflictException":
|
|
879
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
880
|
+
case "ResourceNotFoundException":
|
|
881
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
882
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
883
|
+
case "TooManyRequestsException":
|
|
884
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
885
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
886
|
+
default:
|
|
887
|
+
const parsedBody = parsedOutput.body;
|
|
888
|
+
return throwDefaultError({
|
|
889
|
+
output,
|
|
890
|
+
parsedBody,
|
|
891
|
+
errorCode
|
|
892
|
+
});
|
|
893
|
+
}
|
|
894
|
+
}, "de_GetIdentityPoolRolesCommandError");
|
|
895
|
+
var de_GetOpenIdTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
896
|
+
if (output.statusCode >= 300) {
|
|
897
|
+
return de_GetOpenIdTokenCommandError(output, context);
|
|
898
|
+
}
|
|
899
|
+
const data = await parseBody(output.body, context);
|
|
900
|
+
let contents = {};
|
|
901
|
+
contents = (0, import_smithy_client._json)(data);
|
|
902
|
+
const response = {
|
|
903
|
+
$metadata: deserializeMetadata(output),
|
|
904
|
+
...contents
|
|
905
|
+
};
|
|
906
|
+
return response;
|
|
907
|
+
}, "de_GetOpenIdTokenCommand");
|
|
908
|
+
var de_GetOpenIdTokenCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
909
|
+
const parsedOutput = {
|
|
910
|
+
...output,
|
|
911
|
+
body: await parseErrorBody(output.body, context)
|
|
912
|
+
};
|
|
913
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
914
|
+
switch (errorCode) {
|
|
915
|
+
case "ExternalServiceException":
|
|
916
|
+
case "com.amazonaws.cognitoidentity#ExternalServiceException":
|
|
917
|
+
throw await de_ExternalServiceExceptionRes(parsedOutput, context);
|
|
918
|
+
case "InternalErrorException":
|
|
919
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
920
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
921
|
+
case "InvalidParameterException":
|
|
922
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
923
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
924
|
+
case "NotAuthorizedException":
|
|
925
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
926
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
927
|
+
case "ResourceConflictException":
|
|
928
|
+
case "com.amazonaws.cognitoidentity#ResourceConflictException":
|
|
929
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
930
|
+
case "ResourceNotFoundException":
|
|
931
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
932
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
933
|
+
case "TooManyRequestsException":
|
|
934
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
935
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
936
|
+
default:
|
|
937
|
+
const parsedBody = parsedOutput.body;
|
|
938
|
+
return throwDefaultError({
|
|
939
|
+
output,
|
|
940
|
+
parsedBody,
|
|
941
|
+
errorCode
|
|
942
|
+
});
|
|
943
|
+
}
|
|
944
|
+
}, "de_GetOpenIdTokenCommandError");
|
|
945
|
+
var de_GetOpenIdTokenForDeveloperIdentityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
946
|
+
if (output.statusCode >= 300) {
|
|
947
|
+
return de_GetOpenIdTokenForDeveloperIdentityCommandError(output, context);
|
|
948
|
+
}
|
|
949
|
+
const data = await parseBody(output.body, context);
|
|
950
|
+
let contents = {};
|
|
951
|
+
contents = (0, import_smithy_client._json)(data);
|
|
952
|
+
const response = {
|
|
953
|
+
$metadata: deserializeMetadata(output),
|
|
954
|
+
...contents
|
|
955
|
+
};
|
|
956
|
+
return response;
|
|
957
|
+
}, "de_GetOpenIdTokenForDeveloperIdentityCommand");
|
|
958
|
+
var de_GetOpenIdTokenForDeveloperIdentityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
959
|
+
const parsedOutput = {
|
|
960
|
+
...output,
|
|
961
|
+
body: await parseErrorBody(output.body, context)
|
|
962
|
+
};
|
|
963
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
964
|
+
switch (errorCode) {
|
|
965
|
+
case "DeveloperUserAlreadyRegisteredException":
|
|
966
|
+
case "com.amazonaws.cognitoidentity#DeveloperUserAlreadyRegisteredException":
|
|
967
|
+
throw await de_DeveloperUserAlreadyRegisteredExceptionRes(parsedOutput, context);
|
|
968
|
+
case "InternalErrorException":
|
|
969
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
970
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
971
|
+
case "InvalidParameterException":
|
|
972
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
973
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
974
|
+
case "NotAuthorizedException":
|
|
975
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
976
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
977
|
+
case "ResourceConflictException":
|
|
978
|
+
case "com.amazonaws.cognitoidentity#ResourceConflictException":
|
|
979
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
980
|
+
case "ResourceNotFoundException":
|
|
981
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
982
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
983
|
+
case "TooManyRequestsException":
|
|
984
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
985
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
986
|
+
default:
|
|
987
|
+
const parsedBody = parsedOutput.body;
|
|
988
|
+
return throwDefaultError({
|
|
989
|
+
output,
|
|
990
|
+
parsedBody,
|
|
991
|
+
errorCode
|
|
992
|
+
});
|
|
993
|
+
}
|
|
994
|
+
}, "de_GetOpenIdTokenForDeveloperIdentityCommandError");
|
|
995
|
+
var de_GetPrincipalTagAttributeMapCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
996
|
+
if (output.statusCode >= 300) {
|
|
997
|
+
return de_GetPrincipalTagAttributeMapCommandError(output, context);
|
|
998
|
+
}
|
|
999
|
+
const data = await parseBody(output.body, context);
|
|
1000
|
+
let contents = {};
|
|
1001
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1002
|
+
const response = {
|
|
1003
|
+
$metadata: deserializeMetadata(output),
|
|
1004
|
+
...contents
|
|
1005
|
+
};
|
|
1006
|
+
return response;
|
|
1007
|
+
}, "de_GetPrincipalTagAttributeMapCommand");
|
|
1008
|
+
var de_GetPrincipalTagAttributeMapCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1009
|
+
const parsedOutput = {
|
|
1010
|
+
...output,
|
|
1011
|
+
body: await parseErrorBody(output.body, context)
|
|
1012
|
+
};
|
|
1013
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1014
|
+
switch (errorCode) {
|
|
1015
|
+
case "InternalErrorException":
|
|
1016
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
1017
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1018
|
+
case "InvalidParameterException":
|
|
1019
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
1020
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1021
|
+
case "NotAuthorizedException":
|
|
1022
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
1023
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1024
|
+
case "ResourceNotFoundException":
|
|
1025
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
1026
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1027
|
+
case "TooManyRequestsException":
|
|
1028
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
1029
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1030
|
+
default:
|
|
1031
|
+
const parsedBody = parsedOutput.body;
|
|
1032
|
+
return throwDefaultError({
|
|
1033
|
+
output,
|
|
1034
|
+
parsedBody,
|
|
1035
|
+
errorCode
|
|
1036
|
+
});
|
|
1037
|
+
}
|
|
1038
|
+
}, "de_GetPrincipalTagAttributeMapCommandError");
|
|
1039
|
+
var de_ListIdentitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1040
|
+
if (output.statusCode >= 300) {
|
|
1041
|
+
return de_ListIdentitiesCommandError(output, context);
|
|
1042
|
+
}
|
|
1043
|
+
const data = await parseBody(output.body, context);
|
|
1044
|
+
let contents = {};
|
|
1045
|
+
contents = de_ListIdentitiesResponse(data, context);
|
|
1046
|
+
const response = {
|
|
1047
|
+
$metadata: deserializeMetadata(output),
|
|
1048
|
+
...contents
|
|
1049
|
+
};
|
|
1050
|
+
return response;
|
|
1051
|
+
}, "de_ListIdentitiesCommand");
|
|
1052
|
+
var de_ListIdentitiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1053
|
+
const parsedOutput = {
|
|
1054
|
+
...output,
|
|
1055
|
+
body: await parseErrorBody(output.body, context)
|
|
1056
|
+
};
|
|
1057
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1058
|
+
switch (errorCode) {
|
|
1059
|
+
case "InternalErrorException":
|
|
1060
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
1061
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1062
|
+
case "InvalidParameterException":
|
|
1063
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
1064
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1065
|
+
case "NotAuthorizedException":
|
|
1066
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
1067
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1068
|
+
case "ResourceNotFoundException":
|
|
1069
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
1070
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1071
|
+
case "TooManyRequestsException":
|
|
1072
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
1073
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1074
|
+
default:
|
|
1075
|
+
const parsedBody = parsedOutput.body;
|
|
1076
|
+
return throwDefaultError({
|
|
1077
|
+
output,
|
|
1078
|
+
parsedBody,
|
|
1079
|
+
errorCode
|
|
1080
|
+
});
|
|
1081
|
+
}
|
|
1082
|
+
}, "de_ListIdentitiesCommandError");
|
|
1083
|
+
var de_ListIdentityPoolsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1084
|
+
if (output.statusCode >= 300) {
|
|
1085
|
+
return de_ListIdentityPoolsCommandError(output, context);
|
|
1086
|
+
}
|
|
1087
|
+
const data = await parseBody(output.body, context);
|
|
1088
|
+
let contents = {};
|
|
1089
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1090
|
+
const response = {
|
|
1091
|
+
$metadata: deserializeMetadata(output),
|
|
1092
|
+
...contents
|
|
1093
|
+
};
|
|
1094
|
+
return response;
|
|
1095
|
+
}, "de_ListIdentityPoolsCommand");
|
|
1096
|
+
var de_ListIdentityPoolsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1097
|
+
const parsedOutput = {
|
|
1098
|
+
...output,
|
|
1099
|
+
body: await parseErrorBody(output.body, context)
|
|
1100
|
+
};
|
|
1101
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1102
|
+
switch (errorCode) {
|
|
1103
|
+
case "InternalErrorException":
|
|
1104
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
1105
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1106
|
+
case "InvalidParameterException":
|
|
1107
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
1108
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1109
|
+
case "NotAuthorizedException":
|
|
1110
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
1111
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1112
|
+
case "ResourceNotFoundException":
|
|
1113
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
1114
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1115
|
+
case "TooManyRequestsException":
|
|
1116
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
1117
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1118
|
+
default:
|
|
1119
|
+
const parsedBody = parsedOutput.body;
|
|
1120
|
+
return throwDefaultError({
|
|
1121
|
+
output,
|
|
1122
|
+
parsedBody,
|
|
1123
|
+
errorCode
|
|
1124
|
+
});
|
|
1125
|
+
}
|
|
1126
|
+
}, "de_ListIdentityPoolsCommandError");
|
|
1127
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1128
|
+
if (output.statusCode >= 300) {
|
|
1129
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1130
|
+
}
|
|
1131
|
+
const data = await parseBody(output.body, context);
|
|
1132
|
+
let contents = {};
|
|
1133
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1134
|
+
const response = {
|
|
1135
|
+
$metadata: deserializeMetadata(output),
|
|
1136
|
+
...contents
|
|
1137
|
+
};
|
|
1138
|
+
return response;
|
|
1139
|
+
}, "de_ListTagsForResourceCommand");
|
|
1140
|
+
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1141
|
+
const parsedOutput = {
|
|
1142
|
+
...output,
|
|
1143
|
+
body: await parseErrorBody(output.body, context)
|
|
1144
|
+
};
|
|
1145
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1146
|
+
switch (errorCode) {
|
|
1147
|
+
case "InternalErrorException":
|
|
1148
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
1149
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1150
|
+
case "InvalidParameterException":
|
|
1151
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
1152
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1153
|
+
case "NotAuthorizedException":
|
|
1154
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
1155
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1156
|
+
case "ResourceNotFoundException":
|
|
1157
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
1158
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1159
|
+
case "TooManyRequestsException":
|
|
1160
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
1161
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1162
|
+
default:
|
|
1163
|
+
const parsedBody = parsedOutput.body;
|
|
1164
|
+
return throwDefaultError({
|
|
1165
|
+
output,
|
|
1166
|
+
parsedBody,
|
|
1167
|
+
errorCode
|
|
1168
|
+
});
|
|
1169
|
+
}
|
|
1170
|
+
}, "de_ListTagsForResourceCommandError");
|
|
1171
|
+
var de_LookupDeveloperIdentityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1172
|
+
if (output.statusCode >= 300) {
|
|
1173
|
+
return de_LookupDeveloperIdentityCommandError(output, context);
|
|
1174
|
+
}
|
|
1175
|
+
const data = await parseBody(output.body, context);
|
|
1176
|
+
let contents = {};
|
|
1177
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1178
|
+
const response = {
|
|
1179
|
+
$metadata: deserializeMetadata(output),
|
|
1180
|
+
...contents
|
|
1181
|
+
};
|
|
1182
|
+
return response;
|
|
1183
|
+
}, "de_LookupDeveloperIdentityCommand");
|
|
1184
|
+
var de_LookupDeveloperIdentityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1185
|
+
const parsedOutput = {
|
|
1186
|
+
...output,
|
|
1187
|
+
body: await parseErrorBody(output.body, context)
|
|
1188
|
+
};
|
|
1189
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1190
|
+
switch (errorCode) {
|
|
1191
|
+
case "InternalErrorException":
|
|
1192
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
1193
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1194
|
+
case "InvalidParameterException":
|
|
1195
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
1196
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1197
|
+
case "NotAuthorizedException":
|
|
1198
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
1199
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1200
|
+
case "ResourceConflictException":
|
|
1201
|
+
case "com.amazonaws.cognitoidentity#ResourceConflictException":
|
|
1202
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1203
|
+
case "ResourceNotFoundException":
|
|
1204
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
1205
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1206
|
+
case "TooManyRequestsException":
|
|
1207
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
1208
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1209
|
+
default:
|
|
1210
|
+
const parsedBody = parsedOutput.body;
|
|
1211
|
+
return throwDefaultError({
|
|
1212
|
+
output,
|
|
1213
|
+
parsedBody,
|
|
1214
|
+
errorCode
|
|
1215
|
+
});
|
|
1216
|
+
}
|
|
1217
|
+
}, "de_LookupDeveloperIdentityCommandError");
|
|
1218
|
+
var de_MergeDeveloperIdentitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1219
|
+
if (output.statusCode >= 300) {
|
|
1220
|
+
return de_MergeDeveloperIdentitiesCommandError(output, context);
|
|
1221
|
+
}
|
|
1222
|
+
const data = await parseBody(output.body, context);
|
|
1223
|
+
let contents = {};
|
|
1224
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1225
|
+
const response = {
|
|
1226
|
+
$metadata: deserializeMetadata(output),
|
|
1227
|
+
...contents
|
|
1228
|
+
};
|
|
1229
|
+
return response;
|
|
1230
|
+
}, "de_MergeDeveloperIdentitiesCommand");
|
|
1231
|
+
var de_MergeDeveloperIdentitiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1232
|
+
const parsedOutput = {
|
|
1233
|
+
...output,
|
|
1234
|
+
body: await parseErrorBody(output.body, context)
|
|
1235
|
+
};
|
|
1236
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1237
|
+
switch (errorCode) {
|
|
1238
|
+
case "InternalErrorException":
|
|
1239
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
1240
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1241
|
+
case "InvalidParameterException":
|
|
1242
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
1243
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1244
|
+
case "NotAuthorizedException":
|
|
1245
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
1246
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1247
|
+
case "ResourceConflictException":
|
|
1248
|
+
case "com.amazonaws.cognitoidentity#ResourceConflictException":
|
|
1249
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1250
|
+
case "ResourceNotFoundException":
|
|
1251
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
1252
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1253
|
+
case "TooManyRequestsException":
|
|
1254
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
1255
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1256
|
+
default:
|
|
1257
|
+
const parsedBody = parsedOutput.body;
|
|
1258
|
+
return throwDefaultError({
|
|
1259
|
+
output,
|
|
1260
|
+
parsedBody,
|
|
1261
|
+
errorCode
|
|
1262
|
+
});
|
|
1263
|
+
}
|
|
1264
|
+
}, "de_MergeDeveloperIdentitiesCommandError");
|
|
1265
|
+
var de_SetIdentityPoolRolesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1266
|
+
if (output.statusCode >= 300) {
|
|
1267
|
+
return de_SetIdentityPoolRolesCommandError(output, context);
|
|
1268
|
+
}
|
|
1269
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1270
|
+
const response = {
|
|
1271
|
+
$metadata: deserializeMetadata(output)
|
|
1272
|
+
};
|
|
1273
|
+
return response;
|
|
1274
|
+
}, "de_SetIdentityPoolRolesCommand");
|
|
1275
|
+
var de_SetIdentityPoolRolesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1276
|
+
const parsedOutput = {
|
|
1277
|
+
...output,
|
|
1278
|
+
body: await parseErrorBody(output.body, context)
|
|
1279
|
+
};
|
|
1280
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1281
|
+
switch (errorCode) {
|
|
1282
|
+
case "ConcurrentModificationException":
|
|
1283
|
+
case "com.amazonaws.cognitoidentity#ConcurrentModificationException":
|
|
1284
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1285
|
+
case "InternalErrorException":
|
|
1286
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
1287
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1288
|
+
case "InvalidParameterException":
|
|
1289
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
1290
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1291
|
+
case "NotAuthorizedException":
|
|
1292
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
1293
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1294
|
+
case "ResourceConflictException":
|
|
1295
|
+
case "com.amazonaws.cognitoidentity#ResourceConflictException":
|
|
1296
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1297
|
+
case "ResourceNotFoundException":
|
|
1298
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
1299
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1300
|
+
case "TooManyRequestsException":
|
|
1301
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
1302
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1303
|
+
default:
|
|
1304
|
+
const parsedBody = parsedOutput.body;
|
|
1305
|
+
return throwDefaultError({
|
|
1306
|
+
output,
|
|
1307
|
+
parsedBody,
|
|
1308
|
+
errorCode
|
|
1309
|
+
});
|
|
1310
|
+
}
|
|
1311
|
+
}, "de_SetIdentityPoolRolesCommandError");
|
|
1312
|
+
var de_SetPrincipalTagAttributeMapCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1313
|
+
if (output.statusCode >= 300) {
|
|
1314
|
+
return de_SetPrincipalTagAttributeMapCommandError(output, context);
|
|
1315
|
+
}
|
|
1316
|
+
const data = await parseBody(output.body, context);
|
|
1317
|
+
let contents = {};
|
|
1318
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1319
|
+
const response = {
|
|
1320
|
+
$metadata: deserializeMetadata(output),
|
|
1321
|
+
...contents
|
|
1322
|
+
};
|
|
1323
|
+
return response;
|
|
1324
|
+
}, "de_SetPrincipalTagAttributeMapCommand");
|
|
1325
|
+
var de_SetPrincipalTagAttributeMapCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1326
|
+
const parsedOutput = {
|
|
1327
|
+
...output,
|
|
1328
|
+
body: await parseErrorBody(output.body, context)
|
|
1329
|
+
};
|
|
1330
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1331
|
+
switch (errorCode) {
|
|
1332
|
+
case "InternalErrorException":
|
|
1333
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
1334
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1335
|
+
case "InvalidParameterException":
|
|
1336
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
1337
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1338
|
+
case "NotAuthorizedException":
|
|
1339
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
1340
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1341
|
+
case "ResourceNotFoundException":
|
|
1342
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
1343
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1344
|
+
case "TooManyRequestsException":
|
|
1345
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
1346
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1347
|
+
default:
|
|
1348
|
+
const parsedBody = parsedOutput.body;
|
|
1349
|
+
return throwDefaultError({
|
|
1350
|
+
output,
|
|
1351
|
+
parsedBody,
|
|
1352
|
+
errorCode
|
|
1353
|
+
});
|
|
1354
|
+
}
|
|
1355
|
+
}, "de_SetPrincipalTagAttributeMapCommandError");
|
|
1356
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1357
|
+
if (output.statusCode >= 300) {
|
|
1358
|
+
return de_TagResourceCommandError(output, context);
|
|
1359
|
+
}
|
|
1360
|
+
const data = await parseBody(output.body, context);
|
|
1361
|
+
let contents = {};
|
|
1362
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1363
|
+
const response = {
|
|
1364
|
+
$metadata: deserializeMetadata(output),
|
|
1365
|
+
...contents
|
|
1366
|
+
};
|
|
1367
|
+
return response;
|
|
1368
|
+
}, "de_TagResourceCommand");
|
|
1369
|
+
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1370
|
+
const parsedOutput = {
|
|
1371
|
+
...output,
|
|
1372
|
+
body: await parseErrorBody(output.body, context)
|
|
1373
|
+
};
|
|
1374
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1375
|
+
switch (errorCode) {
|
|
1376
|
+
case "InternalErrorException":
|
|
1377
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
1378
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1379
|
+
case "InvalidParameterException":
|
|
1380
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
1381
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1382
|
+
case "NotAuthorizedException":
|
|
1383
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
1384
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1385
|
+
case "ResourceNotFoundException":
|
|
1386
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
1387
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1388
|
+
case "TooManyRequestsException":
|
|
1389
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
1390
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1391
|
+
default:
|
|
1392
|
+
const parsedBody = parsedOutput.body;
|
|
1393
|
+
return throwDefaultError({
|
|
1394
|
+
output,
|
|
1395
|
+
parsedBody,
|
|
1396
|
+
errorCode
|
|
1397
|
+
});
|
|
1398
|
+
}
|
|
1399
|
+
}, "de_TagResourceCommandError");
|
|
1400
|
+
var de_UnlinkDeveloperIdentityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1401
|
+
if (output.statusCode >= 300) {
|
|
1402
|
+
return de_UnlinkDeveloperIdentityCommandError(output, context);
|
|
1403
|
+
}
|
|
1404
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1405
|
+
const response = {
|
|
1406
|
+
$metadata: deserializeMetadata(output)
|
|
1407
|
+
};
|
|
1408
|
+
return response;
|
|
1409
|
+
}, "de_UnlinkDeveloperIdentityCommand");
|
|
1410
|
+
var de_UnlinkDeveloperIdentityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1411
|
+
const parsedOutput = {
|
|
1412
|
+
...output,
|
|
1413
|
+
body: await parseErrorBody(output.body, context)
|
|
1414
|
+
};
|
|
1415
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1416
|
+
switch (errorCode) {
|
|
1417
|
+
case "InternalErrorException":
|
|
1418
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
1419
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1420
|
+
case "InvalidParameterException":
|
|
1421
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
1422
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1423
|
+
case "NotAuthorizedException":
|
|
1424
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
1425
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1426
|
+
case "ResourceConflictException":
|
|
1427
|
+
case "com.amazonaws.cognitoidentity#ResourceConflictException":
|
|
1428
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1429
|
+
case "ResourceNotFoundException":
|
|
1430
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
1431
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1432
|
+
case "TooManyRequestsException":
|
|
1433
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
1434
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1435
|
+
default:
|
|
1436
|
+
const parsedBody = parsedOutput.body;
|
|
1437
|
+
return throwDefaultError({
|
|
1438
|
+
output,
|
|
1439
|
+
parsedBody,
|
|
1440
|
+
errorCode
|
|
1441
|
+
});
|
|
1442
|
+
}
|
|
1443
|
+
}, "de_UnlinkDeveloperIdentityCommandError");
|
|
1444
|
+
var de_UnlinkIdentityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1445
|
+
if (output.statusCode >= 300) {
|
|
1446
|
+
return de_UnlinkIdentityCommandError(output, context);
|
|
1447
|
+
}
|
|
1448
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1449
|
+
const response = {
|
|
1450
|
+
$metadata: deserializeMetadata(output)
|
|
1451
|
+
};
|
|
1452
|
+
return response;
|
|
1453
|
+
}, "de_UnlinkIdentityCommand");
|
|
1454
|
+
var de_UnlinkIdentityCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1455
|
+
const parsedOutput = {
|
|
1456
|
+
...output,
|
|
1457
|
+
body: await parseErrorBody(output.body, context)
|
|
1458
|
+
};
|
|
1459
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1460
|
+
switch (errorCode) {
|
|
1461
|
+
case "ExternalServiceException":
|
|
1462
|
+
case "com.amazonaws.cognitoidentity#ExternalServiceException":
|
|
1463
|
+
throw await de_ExternalServiceExceptionRes(parsedOutput, context);
|
|
1464
|
+
case "InternalErrorException":
|
|
1465
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
1466
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1467
|
+
case "InvalidParameterException":
|
|
1468
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
1469
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1470
|
+
case "NotAuthorizedException":
|
|
1471
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
1472
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1473
|
+
case "ResourceConflictException":
|
|
1474
|
+
case "com.amazonaws.cognitoidentity#ResourceConflictException":
|
|
1475
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1476
|
+
case "ResourceNotFoundException":
|
|
1477
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
1478
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1479
|
+
case "TooManyRequestsException":
|
|
1480
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
1481
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1482
|
+
default:
|
|
1483
|
+
const parsedBody = parsedOutput.body;
|
|
1484
|
+
return throwDefaultError({
|
|
1485
|
+
output,
|
|
1486
|
+
parsedBody,
|
|
1487
|
+
errorCode
|
|
1488
|
+
});
|
|
1489
|
+
}
|
|
1490
|
+
}, "de_UnlinkIdentityCommandError");
|
|
1491
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1492
|
+
if (output.statusCode >= 300) {
|
|
1493
|
+
return de_UntagResourceCommandError(output, context);
|
|
1494
|
+
}
|
|
1495
|
+
const data = await parseBody(output.body, context);
|
|
1496
|
+
let contents = {};
|
|
1497
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1498
|
+
const response = {
|
|
1499
|
+
$metadata: deserializeMetadata(output),
|
|
1500
|
+
...contents
|
|
1501
|
+
};
|
|
1502
|
+
return response;
|
|
1503
|
+
}, "de_UntagResourceCommand");
|
|
1504
|
+
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1505
|
+
const parsedOutput = {
|
|
1506
|
+
...output,
|
|
1507
|
+
body: await parseErrorBody(output.body, context)
|
|
1508
|
+
};
|
|
1509
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1510
|
+
switch (errorCode) {
|
|
1511
|
+
case "InternalErrorException":
|
|
1512
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
1513
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1514
|
+
case "InvalidParameterException":
|
|
1515
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
1516
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1517
|
+
case "NotAuthorizedException":
|
|
1518
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
1519
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1520
|
+
case "ResourceNotFoundException":
|
|
1521
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
1522
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1523
|
+
case "TooManyRequestsException":
|
|
1524
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
1525
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1526
|
+
default:
|
|
1527
|
+
const parsedBody = parsedOutput.body;
|
|
1528
|
+
return throwDefaultError({
|
|
1529
|
+
output,
|
|
1530
|
+
parsedBody,
|
|
1531
|
+
errorCode
|
|
1532
|
+
});
|
|
1533
|
+
}
|
|
1534
|
+
}, "de_UntagResourceCommandError");
|
|
1535
|
+
var de_UpdateIdentityPoolCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1536
|
+
if (output.statusCode >= 300) {
|
|
1537
|
+
return de_UpdateIdentityPoolCommandError(output, context);
|
|
1538
|
+
}
|
|
1539
|
+
const data = await parseBody(output.body, context);
|
|
1540
|
+
let contents = {};
|
|
1541
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1542
|
+
const response = {
|
|
1543
|
+
$metadata: deserializeMetadata(output),
|
|
1544
|
+
...contents
|
|
1545
|
+
};
|
|
1546
|
+
return response;
|
|
1547
|
+
}, "de_UpdateIdentityPoolCommand");
|
|
1548
|
+
var de_UpdateIdentityPoolCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1549
|
+
const parsedOutput = {
|
|
1550
|
+
...output,
|
|
1551
|
+
body: await parseErrorBody(output.body, context)
|
|
1552
|
+
};
|
|
1553
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1554
|
+
switch (errorCode) {
|
|
1555
|
+
case "ConcurrentModificationException":
|
|
1556
|
+
case "com.amazonaws.cognitoidentity#ConcurrentModificationException":
|
|
1557
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1558
|
+
case "InternalErrorException":
|
|
1559
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
1560
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1561
|
+
case "InvalidParameterException":
|
|
1562
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
1563
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1564
|
+
case "LimitExceededException":
|
|
1565
|
+
case "com.amazonaws.cognitoidentity#LimitExceededException":
|
|
1566
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1567
|
+
case "NotAuthorizedException":
|
|
1568
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
1569
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
1570
|
+
case "ResourceConflictException":
|
|
1571
|
+
case "com.amazonaws.cognitoidentity#ResourceConflictException":
|
|
1572
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1573
|
+
case "ResourceNotFoundException":
|
|
1574
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
1575
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1576
|
+
case "TooManyRequestsException":
|
|
1577
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
1578
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1579
|
+
default:
|
|
1580
|
+
const parsedBody = parsedOutput.body;
|
|
1581
|
+
return throwDefaultError({
|
|
1582
|
+
output,
|
|
1583
|
+
parsedBody,
|
|
1584
|
+
errorCode
|
|
1585
|
+
});
|
|
1586
|
+
}
|
|
1587
|
+
}, "de_UpdateIdentityPoolCommandError");
|
|
1588
|
+
var de_ConcurrentModificationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1589
|
+
const body = parsedOutput.body;
|
|
1590
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1591
|
+
const exception = new ConcurrentModificationException({
|
|
1592
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1593
|
+
...deserialized
|
|
1594
|
+
});
|
|
1595
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1596
|
+
}, "de_ConcurrentModificationExceptionRes");
|
|
1597
|
+
var de_DeveloperUserAlreadyRegisteredExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1598
|
+
const body = parsedOutput.body;
|
|
1599
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1600
|
+
const exception = new DeveloperUserAlreadyRegisteredException({
|
|
1601
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1602
|
+
...deserialized
|
|
1603
|
+
});
|
|
1604
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1605
|
+
}, "de_DeveloperUserAlreadyRegisteredExceptionRes");
|
|
1606
|
+
var de_ExternalServiceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1607
|
+
const body = parsedOutput.body;
|
|
1608
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1609
|
+
const exception = new ExternalServiceException({
|
|
1610
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1611
|
+
...deserialized
|
|
1612
|
+
});
|
|
1613
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1614
|
+
}, "de_ExternalServiceExceptionRes");
|
|
1615
|
+
var de_InternalErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1616
|
+
const body = parsedOutput.body;
|
|
1617
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1618
|
+
const exception = new InternalErrorException({
|
|
1619
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1620
|
+
...deserialized
|
|
1621
|
+
});
|
|
1622
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1623
|
+
}, "de_InternalErrorExceptionRes");
|
|
1624
|
+
var de_InvalidIdentityPoolConfigurationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1625
|
+
const body = parsedOutput.body;
|
|
1626
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1627
|
+
const exception = new InvalidIdentityPoolConfigurationException({
|
|
1628
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1629
|
+
...deserialized
|
|
1630
|
+
});
|
|
1631
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1632
|
+
}, "de_InvalidIdentityPoolConfigurationExceptionRes");
|
|
1633
|
+
var de_InvalidParameterExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1634
|
+
const body = parsedOutput.body;
|
|
1635
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1636
|
+
const exception = new InvalidParameterException({
|
|
1637
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1638
|
+
...deserialized
|
|
1639
|
+
});
|
|
1640
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1641
|
+
}, "de_InvalidParameterExceptionRes");
|
|
1642
|
+
var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1643
|
+
const body = parsedOutput.body;
|
|
1644
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1645
|
+
const exception = new LimitExceededException({
|
|
1646
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1647
|
+
...deserialized
|
|
1648
|
+
});
|
|
1649
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1650
|
+
}, "de_LimitExceededExceptionRes");
|
|
1651
|
+
var de_NotAuthorizedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1652
|
+
const body = parsedOutput.body;
|
|
1653
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1654
|
+
const exception = new NotAuthorizedException({
|
|
1655
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1656
|
+
...deserialized
|
|
1657
|
+
});
|
|
1658
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1659
|
+
}, "de_NotAuthorizedExceptionRes");
|
|
1660
|
+
var de_ResourceConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1661
|
+
const body = parsedOutput.body;
|
|
1662
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1663
|
+
const exception = new ResourceConflictException({
|
|
1664
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1665
|
+
...deserialized
|
|
1666
|
+
});
|
|
1667
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1668
|
+
}, "de_ResourceConflictExceptionRes");
|
|
1669
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1670
|
+
const body = parsedOutput.body;
|
|
1671
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1672
|
+
const exception = new ResourceNotFoundException({
|
|
1673
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1674
|
+
...deserialized
|
|
1675
|
+
});
|
|
1676
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1677
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
1678
|
+
var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1679
|
+
const body = parsedOutput.body;
|
|
1680
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
1681
|
+
const exception = new TooManyRequestsException({
|
|
1682
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1683
|
+
...deserialized
|
|
1684
|
+
});
|
|
1685
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1686
|
+
}, "de_TooManyRequestsExceptionRes");
|
|
1687
|
+
var de_Credentials = /* @__PURE__ */ __name((output, context) => {
|
|
1688
|
+
return (0, import_smithy_client.take)(output, {
|
|
1689
|
+
AccessKeyId: import_smithy_client.expectString,
|
|
1690
|
+
Expiration: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1691
|
+
SecretKey: import_smithy_client.expectString,
|
|
1692
|
+
SessionToken: import_smithy_client.expectString
|
|
1693
|
+
});
|
|
1694
|
+
}, "de_Credentials");
|
|
1695
|
+
var de_GetCredentialsForIdentityResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1696
|
+
return (0, import_smithy_client.take)(output, {
|
|
1697
|
+
Credentials: (_) => de_Credentials(_, context),
|
|
1698
|
+
IdentityId: import_smithy_client.expectString
|
|
1699
|
+
});
|
|
1700
|
+
}, "de_GetCredentialsForIdentityResponse");
|
|
1701
|
+
var de_IdentitiesList = /* @__PURE__ */ __name((output, context) => {
|
|
1702
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1703
|
+
return de_IdentityDescription(entry, context);
|
|
1704
|
+
});
|
|
1705
|
+
return retVal;
|
|
1706
|
+
}, "de_IdentitiesList");
|
|
1707
|
+
var de_IdentityDescription = /* @__PURE__ */ __name((output, context) => {
|
|
1708
|
+
return (0, import_smithy_client.take)(output, {
|
|
1709
|
+
CreationDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1710
|
+
IdentityId: import_smithy_client.expectString,
|
|
1711
|
+
LastModifiedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1712
|
+
Logins: import_smithy_client._json
|
|
1713
|
+
});
|
|
1714
|
+
}, "de_IdentityDescription");
|
|
1715
|
+
var de_ListIdentitiesResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1716
|
+
return (0, import_smithy_client.take)(output, {
|
|
1717
|
+
Identities: (_) => de_IdentitiesList(_, context),
|
|
1718
|
+
IdentityPoolId: import_smithy_client.expectString,
|
|
1719
|
+
NextToken: import_smithy_client.expectString
|
|
1720
|
+
});
|
|
1721
|
+
}, "de_ListIdentitiesResponse");
|
|
1722
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1723
|
+
httpStatusCode: output.statusCode,
|
|
1724
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1725
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1726
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
1727
|
+
}), "deserializeMetadata");
|
|
1728
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1729
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(CognitoIdentityServiceException);
|
|
1730
|
+
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
1731
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1732
|
+
const contents = {
|
|
1733
|
+
protocol,
|
|
1734
|
+
hostname,
|
|
1735
|
+
port,
|
|
1736
|
+
method: "POST",
|
|
1737
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1738
|
+
headers
|
|
1739
|
+
};
|
|
1740
|
+
if (resolvedHostname !== void 0) {
|
|
1741
|
+
contents.hostname = resolvedHostname;
|
|
1742
|
+
}
|
|
1743
|
+
if (body !== void 0) {
|
|
1744
|
+
contents.body = body;
|
|
1745
|
+
}
|
|
1746
|
+
return new import_protocol_http.HttpRequest(contents);
|
|
1747
|
+
}, "buildHttpRpcRequest");
|
|
1748
|
+
function sharedHeaders(operation) {
|
|
1749
|
+
return {
|
|
1750
|
+
"content-type": "application/x-amz-json-1.1",
|
|
1751
|
+
"x-amz-target": `AWSCognitoIdentityService.${operation}`
|
|
1752
|
+
};
|
|
1753
|
+
}
|
|
1754
|
+
__name(sharedHeaders, "sharedHeaders");
|
|
1755
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1756
|
+
if (encoded.length) {
|
|
1757
|
+
return JSON.parse(encoded);
|
|
1758
|
+
}
|
|
1759
|
+
return {};
|
|
1760
|
+
}), "parseBody");
|
|
1761
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1762
|
+
const value = await parseBody(errorBody, context);
|
|
1763
|
+
value.message = value.message ?? value.Message;
|
|
1764
|
+
return value;
|
|
1765
|
+
}, "parseErrorBody");
|
|
1766
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1767
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1768
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1769
|
+
let cleanValue = rawValue;
|
|
1770
|
+
if (typeof cleanValue === "number") {
|
|
1771
|
+
cleanValue = cleanValue.toString();
|
|
1772
|
+
}
|
|
1773
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
1774
|
+
cleanValue = cleanValue.split(",")[0];
|
|
1775
|
+
}
|
|
1776
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
1777
|
+
cleanValue = cleanValue.split(":")[0];
|
|
1778
|
+
}
|
|
1779
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
1780
|
+
cleanValue = cleanValue.split("#")[1];
|
|
1781
|
+
}
|
|
1782
|
+
return cleanValue;
|
|
1783
|
+
}, "sanitizeErrorCode");
|
|
1784
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1785
|
+
if (headerKey !== void 0) {
|
|
1786
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1787
|
+
}
|
|
1788
|
+
if (data.code !== void 0) {
|
|
1789
|
+
return sanitizeErrorCode(data.code);
|
|
1790
|
+
}
|
|
1791
|
+
if (data["__type"] !== void 0) {
|
|
1792
|
+
return sanitizeErrorCode(data["__type"]);
|
|
1793
|
+
}
|
|
1794
|
+
}, "loadRestJsonErrorCode");
|
|
1795
|
+
|
|
1796
|
+
// src/commands/CreateIdentityPoolCommand.ts
|
|
1797
|
+
var _CreateIdentityPoolCommand = class _CreateIdentityPoolCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1798
|
+
...commonParams
|
|
1799
|
+
}).m(function(Command, cs, config, o) {
|
|
1800
|
+
return [
|
|
1801
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1802
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
1803
|
+
(0, import_middleware_signing.getAwsAuthPlugin)(config)
|
|
1804
|
+
];
|
|
1805
|
+
}).s("AWSCognitoIdentityService", "CreateIdentityPool", {}).n("CognitoIdentityClient", "CreateIdentityPoolCommand").f(void 0, void 0).ser(se_CreateIdentityPoolCommand).de(de_CreateIdentityPoolCommand).build() {
|
|
1806
|
+
};
|
|
1807
|
+
__name(_CreateIdentityPoolCommand, "CreateIdentityPoolCommand");
|
|
1808
|
+
var CreateIdentityPoolCommand = _CreateIdentityPoolCommand;
|
|
1809
|
+
|
|
1810
|
+
// src/commands/DeleteIdentitiesCommand.ts
|
|
1811
|
+
|
|
1812
|
+
|
|
1813
|
+
|
|
1814
|
+
|
|
1815
|
+
|
|
1816
|
+
var _DeleteIdentitiesCommand = class _DeleteIdentitiesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1817
|
+
...commonParams
|
|
1818
|
+
}).m(function(Command, cs, config, o) {
|
|
1819
|
+
return [
|
|
1820
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1821
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
1822
|
+
(0, import_middleware_signing.getAwsAuthPlugin)(config)
|
|
1823
|
+
];
|
|
1824
|
+
}).s("AWSCognitoIdentityService", "DeleteIdentities", {}).n("CognitoIdentityClient", "DeleteIdentitiesCommand").f(void 0, void 0).ser(se_DeleteIdentitiesCommand).de(de_DeleteIdentitiesCommand).build() {
|
|
1825
|
+
};
|
|
1826
|
+
__name(_DeleteIdentitiesCommand, "DeleteIdentitiesCommand");
|
|
1827
|
+
var DeleteIdentitiesCommand = _DeleteIdentitiesCommand;
|
|
1828
|
+
|
|
1829
|
+
// src/commands/DeleteIdentityPoolCommand.ts
|
|
1830
|
+
|
|
1831
|
+
|
|
1832
|
+
|
|
1833
|
+
|
|
1834
|
+
|
|
1835
|
+
var _DeleteIdentityPoolCommand = class _DeleteIdentityPoolCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1836
|
+
...commonParams
|
|
1837
|
+
}).m(function(Command, cs, config, o) {
|
|
1838
|
+
return [
|
|
1839
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1840
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
1841
|
+
(0, import_middleware_signing.getAwsAuthPlugin)(config)
|
|
1842
|
+
];
|
|
1843
|
+
}).s("AWSCognitoIdentityService", "DeleteIdentityPool", {}).n("CognitoIdentityClient", "DeleteIdentityPoolCommand").f(void 0, void 0).ser(se_DeleteIdentityPoolCommand).de(de_DeleteIdentityPoolCommand).build() {
|
|
1844
|
+
};
|
|
1845
|
+
__name(_DeleteIdentityPoolCommand, "DeleteIdentityPoolCommand");
|
|
1846
|
+
var DeleteIdentityPoolCommand = _DeleteIdentityPoolCommand;
|
|
1847
|
+
|
|
1848
|
+
// src/commands/DescribeIdentityCommand.ts
|
|
1849
|
+
|
|
1850
|
+
|
|
1851
|
+
|
|
1852
|
+
|
|
1853
|
+
|
|
1854
|
+
var _DescribeIdentityCommand = class _DescribeIdentityCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1855
|
+
...commonParams
|
|
1856
|
+
}).m(function(Command, cs, config, o) {
|
|
1857
|
+
return [
|
|
1858
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1859
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
1860
|
+
(0, import_middleware_signing.getAwsAuthPlugin)(config)
|
|
1861
|
+
];
|
|
1862
|
+
}).s("AWSCognitoIdentityService", "DescribeIdentity", {}).n("CognitoIdentityClient", "DescribeIdentityCommand").f(void 0, void 0).ser(se_DescribeIdentityCommand).de(de_DescribeIdentityCommand).build() {
|
|
1863
|
+
};
|
|
1864
|
+
__name(_DescribeIdentityCommand, "DescribeIdentityCommand");
|
|
1865
|
+
var DescribeIdentityCommand = _DescribeIdentityCommand;
|
|
1866
|
+
|
|
1867
|
+
// src/commands/DescribeIdentityPoolCommand.ts
|
|
1868
|
+
|
|
1869
|
+
|
|
1870
|
+
|
|
1871
|
+
|
|
1872
|
+
|
|
1873
|
+
var _DescribeIdentityPoolCommand = class _DescribeIdentityPoolCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1874
|
+
...commonParams
|
|
1875
|
+
}).m(function(Command, cs, config, o) {
|
|
1876
|
+
return [
|
|
1877
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1878
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
1879
|
+
(0, import_middleware_signing.getAwsAuthPlugin)(config)
|
|
1880
|
+
];
|
|
1881
|
+
}).s("AWSCognitoIdentityService", "DescribeIdentityPool", {}).n("CognitoIdentityClient", "DescribeIdentityPoolCommand").f(void 0, void 0).ser(se_DescribeIdentityPoolCommand).de(de_DescribeIdentityPoolCommand).build() {
|
|
1882
|
+
};
|
|
1883
|
+
__name(_DescribeIdentityPoolCommand, "DescribeIdentityPoolCommand");
|
|
1884
|
+
var DescribeIdentityPoolCommand = _DescribeIdentityPoolCommand;
|
|
1885
|
+
|
|
1886
|
+
// src/commands/GetCredentialsForIdentityCommand.ts
|
|
1887
|
+
|
|
1888
|
+
|
|
1889
|
+
|
|
1890
|
+
|
|
1891
|
+
var _GetCredentialsForIdentityCommand = class _GetCredentialsForIdentityCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1892
|
+
...commonParams
|
|
1893
|
+
}).m(function(Command, cs, config, o) {
|
|
1894
|
+
return [
|
|
1895
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1896
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1897
|
+
];
|
|
1898
|
+
}).s("AWSCognitoIdentityService", "GetCredentialsForIdentity", {}).n("CognitoIdentityClient", "GetCredentialsForIdentityCommand").f(void 0, void 0).ser(se_GetCredentialsForIdentityCommand).de(de_GetCredentialsForIdentityCommand).build() {
|
|
1899
|
+
};
|
|
1900
|
+
__name(_GetCredentialsForIdentityCommand, "GetCredentialsForIdentityCommand");
|
|
1901
|
+
var GetCredentialsForIdentityCommand = _GetCredentialsForIdentityCommand;
|
|
1902
|
+
|
|
1903
|
+
// src/commands/GetIdCommand.ts
|
|
1904
|
+
|
|
1905
|
+
|
|
1906
|
+
|
|
1907
|
+
|
|
1908
|
+
var _GetIdCommand = class _GetIdCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1909
|
+
...commonParams
|
|
1910
|
+
}).m(function(Command, cs, config, o) {
|
|
1911
|
+
return [
|
|
1912
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1913
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1914
|
+
];
|
|
1915
|
+
}).s("AWSCognitoIdentityService", "GetId", {}).n("CognitoIdentityClient", "GetIdCommand").f(void 0, void 0).ser(se_GetIdCommand).de(de_GetIdCommand).build() {
|
|
1916
|
+
};
|
|
1917
|
+
__name(_GetIdCommand, "GetIdCommand");
|
|
1918
|
+
var GetIdCommand = _GetIdCommand;
|
|
1919
|
+
|
|
1920
|
+
// src/commands/GetIdentityPoolRolesCommand.ts
|
|
1921
|
+
|
|
1922
|
+
|
|
1923
|
+
|
|
1924
|
+
|
|
1925
|
+
|
|
1926
|
+
var _GetIdentityPoolRolesCommand = class _GetIdentityPoolRolesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1927
|
+
...commonParams
|
|
1928
|
+
}).m(function(Command, cs, config, o) {
|
|
1929
|
+
return [
|
|
1930
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1931
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
1932
|
+
(0, import_middleware_signing.getAwsAuthPlugin)(config)
|
|
1933
|
+
];
|
|
1934
|
+
}).s("AWSCognitoIdentityService", "GetIdentityPoolRoles", {}).n("CognitoIdentityClient", "GetIdentityPoolRolesCommand").f(void 0, void 0).ser(se_GetIdentityPoolRolesCommand).de(de_GetIdentityPoolRolesCommand).build() {
|
|
1935
|
+
};
|
|
1936
|
+
__name(_GetIdentityPoolRolesCommand, "GetIdentityPoolRolesCommand");
|
|
1937
|
+
var GetIdentityPoolRolesCommand = _GetIdentityPoolRolesCommand;
|
|
1938
|
+
|
|
1939
|
+
// src/commands/GetOpenIdTokenCommand.ts
|
|
1940
|
+
|
|
1941
|
+
|
|
1942
|
+
|
|
1943
|
+
|
|
1944
|
+
var _GetOpenIdTokenCommand = class _GetOpenIdTokenCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1945
|
+
...commonParams
|
|
1946
|
+
}).m(function(Command, cs, config, o) {
|
|
1947
|
+
return [
|
|
1948
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1949
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1950
|
+
];
|
|
1951
|
+
}).s("AWSCognitoIdentityService", "GetOpenIdToken", {}).n("CognitoIdentityClient", "GetOpenIdTokenCommand").f(void 0, void 0).ser(se_GetOpenIdTokenCommand).de(de_GetOpenIdTokenCommand).build() {
|
|
1952
|
+
};
|
|
1953
|
+
__name(_GetOpenIdTokenCommand, "GetOpenIdTokenCommand");
|
|
1954
|
+
var GetOpenIdTokenCommand = _GetOpenIdTokenCommand;
|
|
1955
|
+
|
|
1956
|
+
// src/commands/GetOpenIdTokenForDeveloperIdentityCommand.ts
|
|
1957
|
+
|
|
1958
|
+
|
|
1959
|
+
|
|
1960
|
+
|
|
1961
|
+
|
|
1962
|
+
var _GetOpenIdTokenForDeveloperIdentityCommand = class _GetOpenIdTokenForDeveloperIdentityCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1963
|
+
...commonParams
|
|
1964
|
+
}).m(function(Command, cs, config, o) {
|
|
1965
|
+
return [
|
|
1966
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1967
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
1968
|
+
(0, import_middleware_signing.getAwsAuthPlugin)(config)
|
|
1969
|
+
];
|
|
1970
|
+
}).s("AWSCognitoIdentityService", "GetOpenIdTokenForDeveloperIdentity", {}).n("CognitoIdentityClient", "GetOpenIdTokenForDeveloperIdentityCommand").f(void 0, void 0).ser(se_GetOpenIdTokenForDeveloperIdentityCommand).de(de_GetOpenIdTokenForDeveloperIdentityCommand).build() {
|
|
1971
|
+
};
|
|
1972
|
+
__name(_GetOpenIdTokenForDeveloperIdentityCommand, "GetOpenIdTokenForDeveloperIdentityCommand");
|
|
1973
|
+
var GetOpenIdTokenForDeveloperIdentityCommand = _GetOpenIdTokenForDeveloperIdentityCommand;
|
|
1974
|
+
|
|
1975
|
+
// src/commands/GetPrincipalTagAttributeMapCommand.ts
|
|
1976
|
+
|
|
1977
|
+
|
|
1978
|
+
|
|
1979
|
+
|
|
1980
|
+
|
|
1981
|
+
var _GetPrincipalTagAttributeMapCommand = class _GetPrincipalTagAttributeMapCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1982
|
+
...commonParams
|
|
1983
|
+
}).m(function(Command, cs, config, o) {
|
|
1984
|
+
return [
|
|
1985
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1986
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
1987
|
+
(0, import_middleware_signing.getAwsAuthPlugin)(config)
|
|
1988
|
+
];
|
|
1989
|
+
}).s("AWSCognitoIdentityService", "GetPrincipalTagAttributeMap", {}).n("CognitoIdentityClient", "GetPrincipalTagAttributeMapCommand").f(void 0, void 0).ser(se_GetPrincipalTagAttributeMapCommand).de(de_GetPrincipalTagAttributeMapCommand).build() {
|
|
1990
|
+
};
|
|
1991
|
+
__name(_GetPrincipalTagAttributeMapCommand, "GetPrincipalTagAttributeMapCommand");
|
|
1992
|
+
var GetPrincipalTagAttributeMapCommand = _GetPrincipalTagAttributeMapCommand;
|
|
1993
|
+
|
|
1994
|
+
// src/commands/ListIdentitiesCommand.ts
|
|
1995
|
+
|
|
1996
|
+
|
|
1997
|
+
|
|
1998
|
+
|
|
1999
|
+
|
|
2000
|
+
var _ListIdentitiesCommand = class _ListIdentitiesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2001
|
+
...commonParams
|
|
2002
|
+
}).m(function(Command, cs, config, o) {
|
|
2003
|
+
return [
|
|
2004
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2005
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
2006
|
+
(0, import_middleware_signing.getAwsAuthPlugin)(config)
|
|
2007
|
+
];
|
|
2008
|
+
}).s("AWSCognitoIdentityService", "ListIdentities", {}).n("CognitoIdentityClient", "ListIdentitiesCommand").f(void 0, void 0).ser(se_ListIdentitiesCommand).de(de_ListIdentitiesCommand).build() {
|
|
2009
|
+
};
|
|
2010
|
+
__name(_ListIdentitiesCommand, "ListIdentitiesCommand");
|
|
2011
|
+
var ListIdentitiesCommand = _ListIdentitiesCommand;
|
|
2012
|
+
|
|
2013
|
+
// src/commands/ListIdentityPoolsCommand.ts
|
|
2014
|
+
|
|
2015
|
+
|
|
2016
|
+
|
|
2017
|
+
|
|
2018
|
+
|
|
2019
|
+
var _ListIdentityPoolsCommand = class _ListIdentityPoolsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2020
|
+
...commonParams
|
|
2021
|
+
}).m(function(Command, cs, config, o) {
|
|
2022
|
+
return [
|
|
2023
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2024
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
2025
|
+
(0, import_middleware_signing.getAwsAuthPlugin)(config)
|
|
2026
|
+
];
|
|
2027
|
+
}).s("AWSCognitoIdentityService", "ListIdentityPools", {}).n("CognitoIdentityClient", "ListIdentityPoolsCommand").f(void 0, void 0).ser(se_ListIdentityPoolsCommand).de(de_ListIdentityPoolsCommand).build() {
|
|
2028
|
+
};
|
|
2029
|
+
__name(_ListIdentityPoolsCommand, "ListIdentityPoolsCommand");
|
|
2030
|
+
var ListIdentityPoolsCommand = _ListIdentityPoolsCommand;
|
|
2031
|
+
|
|
2032
|
+
// src/commands/ListTagsForResourceCommand.ts
|
|
2033
|
+
|
|
2034
|
+
|
|
2035
|
+
|
|
2036
|
+
|
|
2037
|
+
|
|
2038
|
+
var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2039
|
+
...commonParams
|
|
2040
|
+
}).m(function(Command, cs, config, o) {
|
|
2041
|
+
return [
|
|
2042
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2043
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
2044
|
+
(0, import_middleware_signing.getAwsAuthPlugin)(config)
|
|
2045
|
+
];
|
|
2046
|
+
}).s("AWSCognitoIdentityService", "ListTagsForResource", {}).n("CognitoIdentityClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
2047
|
+
};
|
|
2048
|
+
__name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
|
|
2049
|
+
var ListTagsForResourceCommand = _ListTagsForResourceCommand;
|
|
2050
|
+
|
|
2051
|
+
// src/commands/LookupDeveloperIdentityCommand.ts
|
|
2052
|
+
|
|
2053
|
+
|
|
2054
|
+
|
|
2055
|
+
|
|
2056
|
+
|
|
2057
|
+
var _LookupDeveloperIdentityCommand = class _LookupDeveloperIdentityCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2058
|
+
...commonParams
|
|
2059
|
+
}).m(function(Command, cs, config, o) {
|
|
2060
|
+
return [
|
|
2061
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2062
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
2063
|
+
(0, import_middleware_signing.getAwsAuthPlugin)(config)
|
|
2064
|
+
];
|
|
2065
|
+
}).s("AWSCognitoIdentityService", "LookupDeveloperIdentity", {}).n("CognitoIdentityClient", "LookupDeveloperIdentityCommand").f(void 0, void 0).ser(se_LookupDeveloperIdentityCommand).de(de_LookupDeveloperIdentityCommand).build() {
|
|
2066
|
+
};
|
|
2067
|
+
__name(_LookupDeveloperIdentityCommand, "LookupDeveloperIdentityCommand");
|
|
2068
|
+
var LookupDeveloperIdentityCommand = _LookupDeveloperIdentityCommand;
|
|
2069
|
+
|
|
2070
|
+
// src/commands/MergeDeveloperIdentitiesCommand.ts
|
|
2071
|
+
|
|
2072
|
+
|
|
2073
|
+
|
|
2074
|
+
|
|
2075
|
+
|
|
2076
|
+
var _MergeDeveloperIdentitiesCommand = class _MergeDeveloperIdentitiesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2077
|
+
...commonParams
|
|
2078
|
+
}).m(function(Command, cs, config, o) {
|
|
2079
|
+
return [
|
|
2080
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2081
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
2082
|
+
(0, import_middleware_signing.getAwsAuthPlugin)(config)
|
|
2083
|
+
];
|
|
2084
|
+
}).s("AWSCognitoIdentityService", "MergeDeveloperIdentities", {}).n("CognitoIdentityClient", "MergeDeveloperIdentitiesCommand").f(void 0, void 0).ser(se_MergeDeveloperIdentitiesCommand).de(de_MergeDeveloperIdentitiesCommand).build() {
|
|
2085
|
+
};
|
|
2086
|
+
__name(_MergeDeveloperIdentitiesCommand, "MergeDeveloperIdentitiesCommand");
|
|
2087
|
+
var MergeDeveloperIdentitiesCommand = _MergeDeveloperIdentitiesCommand;
|
|
2088
|
+
|
|
2089
|
+
// src/commands/SetIdentityPoolRolesCommand.ts
|
|
2090
|
+
|
|
2091
|
+
|
|
2092
|
+
|
|
2093
|
+
|
|
2094
|
+
|
|
2095
|
+
var _SetIdentityPoolRolesCommand = class _SetIdentityPoolRolesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2096
|
+
...commonParams
|
|
2097
|
+
}).m(function(Command, cs, config, o) {
|
|
2098
|
+
return [
|
|
2099
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2100
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
2101
|
+
(0, import_middleware_signing.getAwsAuthPlugin)(config)
|
|
2102
|
+
];
|
|
2103
|
+
}).s("AWSCognitoIdentityService", "SetIdentityPoolRoles", {}).n("CognitoIdentityClient", "SetIdentityPoolRolesCommand").f(void 0, void 0).ser(se_SetIdentityPoolRolesCommand).de(de_SetIdentityPoolRolesCommand).build() {
|
|
2104
|
+
};
|
|
2105
|
+
__name(_SetIdentityPoolRolesCommand, "SetIdentityPoolRolesCommand");
|
|
2106
|
+
var SetIdentityPoolRolesCommand = _SetIdentityPoolRolesCommand;
|
|
2107
|
+
|
|
2108
|
+
// src/commands/SetPrincipalTagAttributeMapCommand.ts
|
|
2109
|
+
|
|
2110
|
+
|
|
2111
|
+
|
|
2112
|
+
|
|
2113
|
+
|
|
2114
|
+
var _SetPrincipalTagAttributeMapCommand = class _SetPrincipalTagAttributeMapCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2115
|
+
...commonParams
|
|
2116
|
+
}).m(function(Command, cs, config, o) {
|
|
2117
|
+
return [
|
|
2118
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2119
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
2120
|
+
(0, import_middleware_signing.getAwsAuthPlugin)(config)
|
|
2121
|
+
];
|
|
2122
|
+
}).s("AWSCognitoIdentityService", "SetPrincipalTagAttributeMap", {}).n("CognitoIdentityClient", "SetPrincipalTagAttributeMapCommand").f(void 0, void 0).ser(se_SetPrincipalTagAttributeMapCommand).de(de_SetPrincipalTagAttributeMapCommand).build() {
|
|
2123
|
+
};
|
|
2124
|
+
__name(_SetPrincipalTagAttributeMapCommand, "SetPrincipalTagAttributeMapCommand");
|
|
2125
|
+
var SetPrincipalTagAttributeMapCommand = _SetPrincipalTagAttributeMapCommand;
|
|
2126
|
+
|
|
2127
|
+
// src/commands/TagResourceCommand.ts
|
|
2128
|
+
|
|
2129
|
+
|
|
2130
|
+
|
|
2131
|
+
|
|
2132
|
+
|
|
2133
|
+
var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2134
|
+
...commonParams
|
|
2135
|
+
}).m(function(Command, cs, config, o) {
|
|
2136
|
+
return [
|
|
2137
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2138
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
2139
|
+
(0, import_middleware_signing.getAwsAuthPlugin)(config)
|
|
2140
|
+
];
|
|
2141
|
+
}).s("AWSCognitoIdentityService", "TagResource", {}).n("CognitoIdentityClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
2142
|
+
};
|
|
2143
|
+
__name(_TagResourceCommand, "TagResourceCommand");
|
|
2144
|
+
var TagResourceCommand = _TagResourceCommand;
|
|
2145
|
+
|
|
2146
|
+
// src/commands/UnlinkDeveloperIdentityCommand.ts
|
|
2147
|
+
|
|
2148
|
+
|
|
2149
|
+
|
|
2150
|
+
|
|
2151
|
+
|
|
2152
|
+
var _UnlinkDeveloperIdentityCommand = class _UnlinkDeveloperIdentityCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2153
|
+
...commonParams
|
|
2154
|
+
}).m(function(Command, cs, config, o) {
|
|
2155
|
+
return [
|
|
2156
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2157
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
2158
|
+
(0, import_middleware_signing.getAwsAuthPlugin)(config)
|
|
2159
|
+
];
|
|
2160
|
+
}).s("AWSCognitoIdentityService", "UnlinkDeveloperIdentity", {}).n("CognitoIdentityClient", "UnlinkDeveloperIdentityCommand").f(void 0, void 0).ser(se_UnlinkDeveloperIdentityCommand).de(de_UnlinkDeveloperIdentityCommand).build() {
|
|
2161
|
+
};
|
|
2162
|
+
__name(_UnlinkDeveloperIdentityCommand, "UnlinkDeveloperIdentityCommand");
|
|
2163
|
+
var UnlinkDeveloperIdentityCommand = _UnlinkDeveloperIdentityCommand;
|
|
2164
|
+
|
|
2165
|
+
// src/commands/UnlinkIdentityCommand.ts
|
|
2166
|
+
|
|
2167
|
+
|
|
2168
|
+
|
|
2169
|
+
|
|
2170
|
+
var _UnlinkIdentityCommand = class _UnlinkIdentityCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2171
|
+
...commonParams
|
|
2172
|
+
}).m(function(Command, cs, config, o) {
|
|
2173
|
+
return [
|
|
2174
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2175
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2176
|
+
];
|
|
2177
|
+
}).s("AWSCognitoIdentityService", "UnlinkIdentity", {}).n("CognitoIdentityClient", "UnlinkIdentityCommand").f(void 0, void 0).ser(se_UnlinkIdentityCommand).de(de_UnlinkIdentityCommand).build() {
|
|
2178
|
+
};
|
|
2179
|
+
__name(_UnlinkIdentityCommand, "UnlinkIdentityCommand");
|
|
2180
|
+
var UnlinkIdentityCommand = _UnlinkIdentityCommand;
|
|
2181
|
+
|
|
2182
|
+
// src/commands/UntagResourceCommand.ts
|
|
2183
|
+
|
|
2184
|
+
|
|
2185
|
+
|
|
2186
|
+
|
|
2187
|
+
|
|
2188
|
+
var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2189
|
+
...commonParams
|
|
2190
|
+
}).m(function(Command, cs, config, o) {
|
|
2191
|
+
return [
|
|
2192
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2193
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
2194
|
+
(0, import_middleware_signing.getAwsAuthPlugin)(config)
|
|
2195
|
+
];
|
|
2196
|
+
}).s("AWSCognitoIdentityService", "UntagResource", {}).n("CognitoIdentityClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
2197
|
+
};
|
|
2198
|
+
__name(_UntagResourceCommand, "UntagResourceCommand");
|
|
2199
|
+
var UntagResourceCommand = _UntagResourceCommand;
|
|
2200
|
+
|
|
2201
|
+
// src/commands/UpdateIdentityPoolCommand.ts
|
|
2202
|
+
|
|
2203
|
+
|
|
2204
|
+
|
|
2205
|
+
|
|
2206
|
+
|
|
2207
|
+
var _UpdateIdentityPoolCommand = class _UpdateIdentityPoolCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2208
|
+
...commonParams
|
|
2209
|
+
}).m(function(Command, cs, config, o) {
|
|
2210
|
+
return [
|
|
2211
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2212
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
2213
|
+
(0, import_middleware_signing.getAwsAuthPlugin)(config)
|
|
2214
|
+
];
|
|
2215
|
+
}).s("AWSCognitoIdentityService", "UpdateIdentityPool", {}).n("CognitoIdentityClient", "UpdateIdentityPoolCommand").f(void 0, void 0).ser(se_UpdateIdentityPoolCommand).de(de_UpdateIdentityPoolCommand).build() {
|
|
2216
|
+
};
|
|
2217
|
+
__name(_UpdateIdentityPoolCommand, "UpdateIdentityPoolCommand");
|
|
2218
|
+
var UpdateIdentityPoolCommand = _UpdateIdentityPoolCommand;
|
|
2219
|
+
|
|
2220
|
+
// src/CognitoIdentity.ts
|
|
2221
|
+
var commands = {
|
|
2222
|
+
CreateIdentityPoolCommand,
|
|
2223
|
+
DeleteIdentitiesCommand,
|
|
2224
|
+
DeleteIdentityPoolCommand,
|
|
2225
|
+
DescribeIdentityCommand,
|
|
2226
|
+
DescribeIdentityPoolCommand,
|
|
2227
|
+
GetCredentialsForIdentityCommand,
|
|
2228
|
+
GetIdCommand,
|
|
2229
|
+
GetIdentityPoolRolesCommand,
|
|
2230
|
+
GetOpenIdTokenCommand,
|
|
2231
|
+
GetOpenIdTokenForDeveloperIdentityCommand,
|
|
2232
|
+
GetPrincipalTagAttributeMapCommand,
|
|
2233
|
+
ListIdentitiesCommand,
|
|
2234
|
+
ListIdentityPoolsCommand,
|
|
2235
|
+
ListTagsForResourceCommand,
|
|
2236
|
+
LookupDeveloperIdentityCommand,
|
|
2237
|
+
MergeDeveloperIdentitiesCommand,
|
|
2238
|
+
SetIdentityPoolRolesCommand,
|
|
2239
|
+
SetPrincipalTagAttributeMapCommand,
|
|
2240
|
+
TagResourceCommand,
|
|
2241
|
+
UnlinkDeveloperIdentityCommand,
|
|
2242
|
+
UnlinkIdentityCommand,
|
|
2243
|
+
UntagResourceCommand,
|
|
2244
|
+
UpdateIdentityPoolCommand
|
|
2245
|
+
};
|
|
2246
|
+
var _CognitoIdentity = class _CognitoIdentity extends CognitoIdentityClient {
|
|
2247
|
+
};
|
|
2248
|
+
__name(_CognitoIdentity, "CognitoIdentity");
|
|
2249
|
+
var CognitoIdentity = _CognitoIdentity;
|
|
2250
|
+
(0, import_smithy_client.createAggregatedClient)(commands, CognitoIdentity);
|
|
2251
|
+
|
|
2252
|
+
// src/pagination/ListIdentityPoolsPaginator.ts
|
|
2253
|
+
var import_core = require("@smithy/core");
|
|
2254
|
+
var paginateListIdentityPools = (0, import_core.createPaginator)(CognitoIdentityClient, ListIdentityPoolsCommand, "NextToken", "NextToken", "MaxResults");
|
|
2255
|
+
|
|
2256
|
+
// src/index.ts
|
|
2257
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
2258
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
2259
|
+
|
|
2260
|
+
0 && (module.exports = {
|
|
2261
|
+
AmbiguousRoleResolutionType,
|
|
2262
|
+
CognitoIdentity,
|
|
2263
|
+
CognitoIdentityClient,
|
|
2264
|
+
CognitoIdentityServiceException,
|
|
2265
|
+
ConcurrentModificationException,
|
|
2266
|
+
CreateIdentityPoolCommand,
|
|
2267
|
+
DeleteIdentitiesCommand,
|
|
2268
|
+
DeleteIdentityPoolCommand,
|
|
2269
|
+
DescribeIdentityCommand,
|
|
2270
|
+
DescribeIdentityPoolCommand,
|
|
2271
|
+
DeveloperUserAlreadyRegisteredException,
|
|
2272
|
+
ErrorCode,
|
|
2273
|
+
ExternalServiceException,
|
|
2274
|
+
GetCredentialsForIdentityCommand,
|
|
2275
|
+
GetIdCommand,
|
|
2276
|
+
GetIdentityPoolRolesCommand,
|
|
2277
|
+
GetOpenIdTokenCommand,
|
|
2278
|
+
GetOpenIdTokenForDeveloperIdentityCommand,
|
|
2279
|
+
GetPrincipalTagAttributeMapCommand,
|
|
2280
|
+
InternalErrorException,
|
|
2281
|
+
InvalidIdentityPoolConfigurationException,
|
|
2282
|
+
InvalidParameterException,
|
|
2283
|
+
LimitExceededException,
|
|
2284
|
+
ListIdentitiesCommand,
|
|
2285
|
+
ListIdentityPoolsCommand,
|
|
2286
|
+
ListTagsForResourceCommand,
|
|
2287
|
+
LookupDeveloperIdentityCommand,
|
|
2288
|
+
MappingRuleMatchType,
|
|
2289
|
+
MergeDeveloperIdentitiesCommand,
|
|
2290
|
+
NotAuthorizedException,
|
|
2291
|
+
ResourceConflictException,
|
|
2292
|
+
ResourceNotFoundException,
|
|
2293
|
+
RoleMappingType,
|
|
2294
|
+
SetIdentityPoolRolesCommand,
|
|
2295
|
+
SetPrincipalTagAttributeMapCommand,
|
|
2296
|
+
TagResourceCommand,
|
|
2297
|
+
TooManyRequestsException,
|
|
2298
|
+
UnlinkDeveloperIdentityCommand,
|
|
2299
|
+
UnlinkIdentityCommand,
|
|
2300
|
+
UntagResourceCommand,
|
|
2301
|
+
UpdateIdentityPoolCommand,
|
|
2302
|
+
__Client,
|
|
2303
|
+
paginateListIdentityPools
|
|
2304
|
+
});
|
|
2305
|
+
|