@aws-sdk/client-cognito-identity 3.899.0 → 3.906.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +1370 -1527
- package/package.json +38 -38
package/dist-cjs/index.js
CHANGED
|
@@ -1,1583 +1,1426 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
DeleteIdentityPoolCommand: () => DeleteIdentityPoolCommand,
|
|
33
|
-
DescribeIdentityCommand: () => DescribeIdentityCommand,
|
|
34
|
-
DescribeIdentityPoolCommand: () => DescribeIdentityPoolCommand,
|
|
35
|
-
DeveloperUserAlreadyRegisteredException: () => DeveloperUserAlreadyRegisteredException,
|
|
36
|
-
ErrorCode: () => ErrorCode,
|
|
37
|
-
ExternalServiceException: () => ExternalServiceException,
|
|
38
|
-
GetCredentialsForIdentityCommand: () => GetCredentialsForIdentityCommand,
|
|
39
|
-
GetCredentialsForIdentityInputFilterSensitiveLog: () => GetCredentialsForIdentityInputFilterSensitiveLog,
|
|
40
|
-
GetCredentialsForIdentityResponseFilterSensitiveLog: () => GetCredentialsForIdentityResponseFilterSensitiveLog,
|
|
41
|
-
GetIdCommand: () => GetIdCommand,
|
|
42
|
-
GetIdInputFilterSensitiveLog: () => GetIdInputFilterSensitiveLog,
|
|
43
|
-
GetIdentityPoolRolesCommand: () => GetIdentityPoolRolesCommand,
|
|
44
|
-
GetOpenIdTokenCommand: () => GetOpenIdTokenCommand,
|
|
45
|
-
GetOpenIdTokenForDeveloperIdentityCommand: () => GetOpenIdTokenForDeveloperIdentityCommand,
|
|
46
|
-
GetOpenIdTokenForDeveloperIdentityInputFilterSensitiveLog: () => GetOpenIdTokenForDeveloperIdentityInputFilterSensitiveLog,
|
|
47
|
-
GetOpenIdTokenForDeveloperIdentityResponseFilterSensitiveLog: () => GetOpenIdTokenForDeveloperIdentityResponseFilterSensitiveLog,
|
|
48
|
-
GetOpenIdTokenInputFilterSensitiveLog: () => GetOpenIdTokenInputFilterSensitiveLog,
|
|
49
|
-
GetOpenIdTokenResponseFilterSensitiveLog: () => GetOpenIdTokenResponseFilterSensitiveLog,
|
|
50
|
-
GetPrincipalTagAttributeMapCommand: () => GetPrincipalTagAttributeMapCommand,
|
|
51
|
-
InternalErrorException: () => InternalErrorException,
|
|
52
|
-
InvalidIdentityPoolConfigurationException: () => InvalidIdentityPoolConfigurationException,
|
|
53
|
-
InvalidParameterException: () => InvalidParameterException,
|
|
54
|
-
LimitExceededException: () => LimitExceededException,
|
|
55
|
-
ListIdentitiesCommand: () => ListIdentitiesCommand,
|
|
56
|
-
ListIdentityPoolsCommand: () => ListIdentityPoolsCommand,
|
|
57
|
-
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
58
|
-
LookupDeveloperIdentityCommand: () => LookupDeveloperIdentityCommand,
|
|
59
|
-
MappingRuleMatchType: () => MappingRuleMatchType,
|
|
60
|
-
MergeDeveloperIdentitiesCommand: () => MergeDeveloperIdentitiesCommand,
|
|
61
|
-
NotAuthorizedException: () => NotAuthorizedException,
|
|
62
|
-
ResourceConflictException: () => ResourceConflictException,
|
|
63
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
64
|
-
RoleMappingType: () => RoleMappingType,
|
|
65
|
-
SetIdentityPoolRolesCommand: () => SetIdentityPoolRolesCommand,
|
|
66
|
-
SetPrincipalTagAttributeMapCommand: () => SetPrincipalTagAttributeMapCommand,
|
|
67
|
-
TagResourceCommand: () => TagResourceCommand,
|
|
68
|
-
TooManyRequestsException: () => TooManyRequestsException,
|
|
69
|
-
UnlinkDeveloperIdentityCommand: () => UnlinkDeveloperIdentityCommand,
|
|
70
|
-
UnlinkIdentityCommand: () => UnlinkIdentityCommand,
|
|
71
|
-
UnlinkIdentityInputFilterSensitiveLog: () => UnlinkIdentityInputFilterSensitiveLog,
|
|
72
|
-
UntagResourceCommand: () => UntagResourceCommand,
|
|
73
|
-
UpdateIdentityPoolCommand: () => UpdateIdentityPoolCommand,
|
|
74
|
-
__Client: () => import_smithy_client.Client,
|
|
75
|
-
paginateListIdentityPools: () => paginateListIdentityPools
|
|
76
|
-
});
|
|
77
|
-
module.exports = __toCommonJS(index_exports);
|
|
78
|
-
|
|
79
|
-
// src/CognitoIdentityClient.ts
|
|
80
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
81
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
82
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
83
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
84
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
85
|
-
var import_core = require("@smithy/core");
|
|
86
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
87
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
88
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
89
|
-
|
|
90
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
91
|
-
|
|
92
|
-
// src/endpoint/EndpointParameters.ts
|
|
93
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
94
|
-
return Object.assign(options, {
|
|
95
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
96
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
97
|
-
defaultSigningName: "cognito-identity"
|
|
98
|
-
});
|
|
99
|
-
}, "resolveClientEndpointParameters");
|
|
100
|
-
var commonParams = {
|
|
101
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
102
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
103
|
-
Region: { type: "builtInParams", name: "region" },
|
|
104
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
|
|
20
|
+
const resolveClientEndpointParameters = (options) => {
|
|
21
|
+
return Object.assign(options, {
|
|
22
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
23
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
24
|
+
defaultSigningName: "cognito-identity",
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
const commonParams = {
|
|
28
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
29
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
30
|
+
Region: { type: "builtInParams", name: "region" },
|
|
31
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
105
32
|
};
|
|
106
33
|
|
|
107
|
-
|
|
108
|
-
|
|
34
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
37
|
+
let _credentials = runtimeConfig.credentials;
|
|
38
|
+
return {
|
|
39
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
40
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
41
|
+
if (index === -1) {
|
|
42
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
httpAuthSchemes() {
|
|
49
|
+
return _httpAuthSchemes;
|
|
50
|
+
},
|
|
51
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
52
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
53
|
+
},
|
|
54
|
+
httpAuthSchemeProvider() {
|
|
55
|
+
return _httpAuthSchemeProvider;
|
|
56
|
+
},
|
|
57
|
+
setCredentials(credentials) {
|
|
58
|
+
_credentials = credentials;
|
|
59
|
+
},
|
|
60
|
+
credentials() {
|
|
61
|
+
return _credentials;
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
66
|
+
return {
|
|
67
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
68
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
69
|
+
credentials: config.credentials(),
|
|
70
|
+
};
|
|
71
|
+
};
|
|
109
72
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
73
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
74
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
75
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
76
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
77
|
+
};
|
|
114
78
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
79
|
+
class CognitoIdentityClient extends smithyClient.Client {
|
|
80
|
+
config;
|
|
81
|
+
constructor(...[configuration]) {
|
|
82
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
83
|
+
super(_config_0);
|
|
84
|
+
this.initConfig = _config_0;
|
|
85
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
86
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
|
+
this.config = _config_8;
|
|
94
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
101
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultCognitoIdentityHttpAuthSchemeParametersProvider,
|
|
102
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
103
|
+
"aws.auth#sigv4": config.credentials,
|
|
104
|
+
}),
|
|
105
|
+
}));
|
|
106
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
107
|
+
}
|
|
108
|
+
destroy() {
|
|
109
|
+
super.destroy();
|
|
143
110
|
}
|
|
144
|
-
|
|
145
|
-
}, "getHttpAuthExtensionConfiguration");
|
|
146
|
-
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
147
|
-
return {
|
|
148
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
149
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
150
|
-
credentials: config.credentials()
|
|
151
|
-
};
|
|
152
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
111
|
+
}
|
|
153
112
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
161
|
-
);
|
|
162
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
163
|
-
return Object.assign(
|
|
164
|
-
runtimeConfig,
|
|
165
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
166
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
167
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
168
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
169
|
-
);
|
|
170
|
-
}, "resolveRuntimeExtensions");
|
|
113
|
+
class CognitoIdentityServiceException extends smithyClient.ServiceException {
|
|
114
|
+
constructor(options) {
|
|
115
|
+
super(options);
|
|
116
|
+
Object.setPrototypeOf(this, CognitoIdentityServiceException.prototype);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
171
119
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
__name(this, "CognitoIdentityClient");
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
* The resolved configuration of CognitoIdentityClient class. This is resolved and normalized from the {@link CognitoIdentityClientConfig | constructor configuration interface}.
|
|
179
|
-
*/
|
|
180
|
-
config;
|
|
181
|
-
constructor(...[configuration]) {
|
|
182
|
-
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
183
|
-
super(_config_0);
|
|
184
|
-
this.initConfig = _config_0;
|
|
185
|
-
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
186
|
-
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
187
|
-
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
188
|
-
const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
|
|
189
|
-
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
190
|
-
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
191
|
-
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
192
|
-
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
193
|
-
this.config = _config_8;
|
|
194
|
-
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
195
|
-
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
196
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
197
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
198
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
199
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
200
|
-
this.middlewareStack.use(
|
|
201
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
202
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultCognitoIdentityHttpAuthSchemeParametersProvider,
|
|
203
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
204
|
-
"aws.auth#sigv4": config.credentials
|
|
205
|
-
}), "identityProviderConfigProvider")
|
|
206
|
-
})
|
|
207
|
-
);
|
|
208
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
209
|
-
}
|
|
210
|
-
/**
|
|
211
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
212
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
213
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
214
|
-
*/
|
|
215
|
-
destroy() {
|
|
216
|
-
super.destroy();
|
|
217
|
-
}
|
|
120
|
+
const AmbiguousRoleResolutionType = {
|
|
121
|
+
AUTHENTICATED_ROLE: "AuthenticatedRole",
|
|
122
|
+
DENY: "Deny",
|
|
218
123
|
};
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
124
|
+
class InternalErrorException extends CognitoIdentityServiceException {
|
|
125
|
+
name = "InternalErrorException";
|
|
126
|
+
$fault = "server";
|
|
127
|
+
constructor(opts) {
|
|
128
|
+
super({
|
|
129
|
+
name: "InternalErrorException",
|
|
130
|
+
$fault: "server",
|
|
131
|
+
...opts,
|
|
132
|
+
});
|
|
133
|
+
Object.setPrototypeOf(this, InternalErrorException.prototype);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
class InvalidParameterException extends CognitoIdentityServiceException {
|
|
137
|
+
name = "InvalidParameterException";
|
|
138
|
+
$fault = "client";
|
|
139
|
+
constructor(opts) {
|
|
140
|
+
super({
|
|
141
|
+
name: "InvalidParameterException",
|
|
142
|
+
$fault: "client",
|
|
143
|
+
...opts,
|
|
144
|
+
});
|
|
145
|
+
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
class LimitExceededException extends CognitoIdentityServiceException {
|
|
149
|
+
name = "LimitExceededException";
|
|
150
|
+
$fault = "client";
|
|
151
|
+
constructor(opts) {
|
|
152
|
+
super({
|
|
153
|
+
name: "LimitExceededException",
|
|
154
|
+
$fault: "client",
|
|
155
|
+
...opts,
|
|
156
|
+
});
|
|
157
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
class NotAuthorizedException extends CognitoIdentityServiceException {
|
|
161
|
+
name = "NotAuthorizedException";
|
|
162
|
+
$fault = "client";
|
|
163
|
+
constructor(opts) {
|
|
164
|
+
super({
|
|
165
|
+
name: "NotAuthorizedException",
|
|
166
|
+
$fault: "client",
|
|
167
|
+
...opts,
|
|
168
|
+
});
|
|
169
|
+
Object.setPrototypeOf(this, NotAuthorizedException.prototype);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
class ResourceConflictException extends CognitoIdentityServiceException {
|
|
173
|
+
name = "ResourceConflictException";
|
|
174
|
+
$fault = "client";
|
|
175
|
+
constructor(opts) {
|
|
176
|
+
super({
|
|
177
|
+
name: "ResourceConflictException",
|
|
178
|
+
$fault: "client",
|
|
179
|
+
...opts,
|
|
180
|
+
});
|
|
181
|
+
Object.setPrototypeOf(this, ResourceConflictException.prototype);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
class TooManyRequestsException extends CognitoIdentityServiceException {
|
|
185
|
+
name = "TooManyRequestsException";
|
|
186
|
+
$fault = "client";
|
|
187
|
+
constructor(opts) {
|
|
188
|
+
super({
|
|
189
|
+
name: "TooManyRequestsException",
|
|
190
|
+
$fault: "client",
|
|
191
|
+
...opts,
|
|
192
|
+
});
|
|
193
|
+
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
const ErrorCode = {
|
|
197
|
+
ACCESS_DENIED: "AccessDenied",
|
|
198
|
+
INTERNAL_SERVER_ERROR: "InternalServerError",
|
|
246
199
|
};
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
name = "InternalErrorException";
|
|
259
|
-
$fault = "server";
|
|
260
|
-
/**
|
|
261
|
-
* @internal
|
|
262
|
-
*/
|
|
263
|
-
constructor(opts) {
|
|
264
|
-
super({
|
|
265
|
-
name: "InternalErrorException",
|
|
266
|
-
$fault: "server",
|
|
267
|
-
...opts
|
|
268
|
-
});
|
|
269
|
-
Object.setPrototypeOf(this, _InternalErrorException.prototype);
|
|
270
|
-
}
|
|
271
|
-
};
|
|
272
|
-
var InvalidParameterException = class _InvalidParameterException extends CognitoIdentityServiceException {
|
|
273
|
-
static {
|
|
274
|
-
__name(this, "InvalidParameterException");
|
|
275
|
-
}
|
|
276
|
-
name = "InvalidParameterException";
|
|
277
|
-
$fault = "client";
|
|
278
|
-
/**
|
|
279
|
-
* @internal
|
|
280
|
-
*/
|
|
281
|
-
constructor(opts) {
|
|
282
|
-
super({
|
|
283
|
-
name: "InvalidParameterException",
|
|
284
|
-
$fault: "client",
|
|
285
|
-
...opts
|
|
286
|
-
});
|
|
287
|
-
Object.setPrototypeOf(this, _InvalidParameterException.prototype);
|
|
288
|
-
}
|
|
289
|
-
};
|
|
290
|
-
var LimitExceededException = class _LimitExceededException extends CognitoIdentityServiceException {
|
|
291
|
-
static {
|
|
292
|
-
__name(this, "LimitExceededException");
|
|
293
|
-
}
|
|
294
|
-
name = "LimitExceededException";
|
|
295
|
-
$fault = "client";
|
|
296
|
-
/**
|
|
297
|
-
* @internal
|
|
298
|
-
*/
|
|
299
|
-
constructor(opts) {
|
|
300
|
-
super({
|
|
301
|
-
name: "LimitExceededException",
|
|
302
|
-
$fault: "client",
|
|
303
|
-
...opts
|
|
304
|
-
});
|
|
305
|
-
Object.setPrototypeOf(this, _LimitExceededException.prototype);
|
|
306
|
-
}
|
|
307
|
-
};
|
|
308
|
-
var NotAuthorizedException = class _NotAuthorizedException extends CognitoIdentityServiceException {
|
|
309
|
-
static {
|
|
310
|
-
__name(this, "NotAuthorizedException");
|
|
311
|
-
}
|
|
312
|
-
name = "NotAuthorizedException";
|
|
313
|
-
$fault = "client";
|
|
314
|
-
/**
|
|
315
|
-
* @internal
|
|
316
|
-
*/
|
|
317
|
-
constructor(opts) {
|
|
318
|
-
super({
|
|
319
|
-
name: "NotAuthorizedException",
|
|
320
|
-
$fault: "client",
|
|
321
|
-
...opts
|
|
322
|
-
});
|
|
323
|
-
Object.setPrototypeOf(this, _NotAuthorizedException.prototype);
|
|
324
|
-
}
|
|
325
|
-
};
|
|
326
|
-
var ResourceConflictException = class _ResourceConflictException extends CognitoIdentityServiceException {
|
|
327
|
-
static {
|
|
328
|
-
__name(this, "ResourceConflictException");
|
|
329
|
-
}
|
|
330
|
-
name = "ResourceConflictException";
|
|
331
|
-
$fault = "client";
|
|
332
|
-
/**
|
|
333
|
-
* @internal
|
|
334
|
-
*/
|
|
335
|
-
constructor(opts) {
|
|
336
|
-
super({
|
|
337
|
-
name: "ResourceConflictException",
|
|
338
|
-
$fault: "client",
|
|
339
|
-
...opts
|
|
340
|
-
});
|
|
341
|
-
Object.setPrototypeOf(this, _ResourceConflictException.prototype);
|
|
342
|
-
}
|
|
343
|
-
};
|
|
344
|
-
var TooManyRequestsException = class _TooManyRequestsException extends CognitoIdentityServiceException {
|
|
345
|
-
static {
|
|
346
|
-
__name(this, "TooManyRequestsException");
|
|
347
|
-
}
|
|
348
|
-
name = "TooManyRequestsException";
|
|
349
|
-
$fault = "client";
|
|
350
|
-
/**
|
|
351
|
-
* @internal
|
|
352
|
-
*/
|
|
353
|
-
constructor(opts) {
|
|
354
|
-
super({
|
|
355
|
-
name: "TooManyRequestsException",
|
|
356
|
-
$fault: "client",
|
|
357
|
-
...opts
|
|
358
|
-
});
|
|
359
|
-
Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
|
|
360
|
-
}
|
|
361
|
-
};
|
|
362
|
-
var ErrorCode = {
|
|
363
|
-
ACCESS_DENIED: "AccessDenied",
|
|
364
|
-
INTERNAL_SERVER_ERROR: "InternalServerError"
|
|
365
|
-
};
|
|
366
|
-
var ResourceNotFoundException = class _ResourceNotFoundException extends CognitoIdentityServiceException {
|
|
367
|
-
static {
|
|
368
|
-
__name(this, "ResourceNotFoundException");
|
|
369
|
-
}
|
|
370
|
-
name = "ResourceNotFoundException";
|
|
371
|
-
$fault = "client";
|
|
372
|
-
/**
|
|
373
|
-
* @internal
|
|
374
|
-
*/
|
|
375
|
-
constructor(opts) {
|
|
376
|
-
super({
|
|
377
|
-
name: "ResourceNotFoundException",
|
|
378
|
-
$fault: "client",
|
|
379
|
-
...opts
|
|
380
|
-
});
|
|
381
|
-
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
382
|
-
}
|
|
383
|
-
};
|
|
384
|
-
var ExternalServiceException = class _ExternalServiceException extends CognitoIdentityServiceException {
|
|
385
|
-
static {
|
|
386
|
-
__name(this, "ExternalServiceException");
|
|
387
|
-
}
|
|
388
|
-
name = "ExternalServiceException";
|
|
389
|
-
$fault = "client";
|
|
390
|
-
/**
|
|
391
|
-
* @internal
|
|
392
|
-
*/
|
|
393
|
-
constructor(opts) {
|
|
394
|
-
super({
|
|
395
|
-
name: "ExternalServiceException",
|
|
396
|
-
$fault: "client",
|
|
397
|
-
...opts
|
|
398
|
-
});
|
|
399
|
-
Object.setPrototypeOf(this, _ExternalServiceException.prototype);
|
|
400
|
-
}
|
|
401
|
-
};
|
|
402
|
-
var InvalidIdentityPoolConfigurationException = class _InvalidIdentityPoolConfigurationException extends CognitoIdentityServiceException {
|
|
403
|
-
static {
|
|
404
|
-
__name(this, "InvalidIdentityPoolConfigurationException");
|
|
405
|
-
}
|
|
406
|
-
name = "InvalidIdentityPoolConfigurationException";
|
|
407
|
-
$fault = "client";
|
|
408
|
-
/**
|
|
409
|
-
* @internal
|
|
410
|
-
*/
|
|
411
|
-
constructor(opts) {
|
|
412
|
-
super({
|
|
413
|
-
name: "InvalidIdentityPoolConfigurationException",
|
|
414
|
-
$fault: "client",
|
|
415
|
-
...opts
|
|
416
|
-
});
|
|
417
|
-
Object.setPrototypeOf(this, _InvalidIdentityPoolConfigurationException.prototype);
|
|
418
|
-
}
|
|
419
|
-
};
|
|
420
|
-
var MappingRuleMatchType = {
|
|
421
|
-
CONTAINS: "Contains",
|
|
422
|
-
EQUALS: "Equals",
|
|
423
|
-
NOT_EQUAL: "NotEqual",
|
|
424
|
-
STARTS_WITH: "StartsWith"
|
|
425
|
-
};
|
|
426
|
-
var RoleMappingType = {
|
|
427
|
-
RULES: "Rules",
|
|
428
|
-
TOKEN: "Token"
|
|
429
|
-
};
|
|
430
|
-
var DeveloperUserAlreadyRegisteredException = class _DeveloperUserAlreadyRegisteredException extends CognitoIdentityServiceException {
|
|
431
|
-
static {
|
|
432
|
-
__name(this, "DeveloperUserAlreadyRegisteredException");
|
|
433
|
-
}
|
|
434
|
-
name = "DeveloperUserAlreadyRegisteredException";
|
|
435
|
-
$fault = "client";
|
|
436
|
-
/**
|
|
437
|
-
* @internal
|
|
438
|
-
*/
|
|
439
|
-
constructor(opts) {
|
|
440
|
-
super({
|
|
441
|
-
name: "DeveloperUserAlreadyRegisteredException",
|
|
442
|
-
$fault: "client",
|
|
443
|
-
...opts
|
|
444
|
-
});
|
|
445
|
-
Object.setPrototypeOf(this, _DeveloperUserAlreadyRegisteredException.prototype);
|
|
446
|
-
}
|
|
447
|
-
};
|
|
448
|
-
var ConcurrentModificationException = class _ConcurrentModificationException extends CognitoIdentityServiceException {
|
|
449
|
-
static {
|
|
450
|
-
__name(this, "ConcurrentModificationException");
|
|
451
|
-
}
|
|
452
|
-
name = "ConcurrentModificationException";
|
|
453
|
-
$fault = "client";
|
|
454
|
-
/**
|
|
455
|
-
* @internal
|
|
456
|
-
*/
|
|
457
|
-
constructor(opts) {
|
|
458
|
-
super({
|
|
459
|
-
name: "ConcurrentModificationException",
|
|
460
|
-
$fault: "client",
|
|
461
|
-
...opts
|
|
462
|
-
});
|
|
463
|
-
Object.setPrototypeOf(this, _ConcurrentModificationException.prototype);
|
|
464
|
-
}
|
|
465
|
-
};
|
|
466
|
-
var GetCredentialsForIdentityInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
467
|
-
...obj,
|
|
468
|
-
...obj.Logins && { Logins: import_smithy_client.SENSITIVE_STRING }
|
|
469
|
-
}), "GetCredentialsForIdentityInputFilterSensitiveLog");
|
|
470
|
-
var CredentialsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
471
|
-
...obj,
|
|
472
|
-
...obj.SecretKey && { SecretKey: import_smithy_client.SENSITIVE_STRING }
|
|
473
|
-
}), "CredentialsFilterSensitiveLog");
|
|
474
|
-
var GetCredentialsForIdentityResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
475
|
-
...obj,
|
|
476
|
-
...obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }
|
|
477
|
-
}), "GetCredentialsForIdentityResponseFilterSensitiveLog");
|
|
478
|
-
var GetIdInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
479
|
-
...obj,
|
|
480
|
-
...obj.Logins && { Logins: import_smithy_client.SENSITIVE_STRING }
|
|
481
|
-
}), "GetIdInputFilterSensitiveLog");
|
|
482
|
-
var GetOpenIdTokenInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
483
|
-
...obj,
|
|
484
|
-
...obj.Logins && { Logins: import_smithy_client.SENSITIVE_STRING }
|
|
485
|
-
}), "GetOpenIdTokenInputFilterSensitiveLog");
|
|
486
|
-
var GetOpenIdTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
487
|
-
...obj,
|
|
488
|
-
...obj.Token && { Token: import_smithy_client.SENSITIVE_STRING }
|
|
489
|
-
}), "GetOpenIdTokenResponseFilterSensitiveLog");
|
|
490
|
-
var GetOpenIdTokenForDeveloperIdentityInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
491
|
-
...obj,
|
|
492
|
-
...obj.Logins && { Logins: import_smithy_client.SENSITIVE_STRING }
|
|
493
|
-
}), "GetOpenIdTokenForDeveloperIdentityInputFilterSensitiveLog");
|
|
494
|
-
var GetOpenIdTokenForDeveloperIdentityResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
495
|
-
...obj,
|
|
496
|
-
...obj.Token && { Token: import_smithy_client.SENSITIVE_STRING }
|
|
497
|
-
}), "GetOpenIdTokenForDeveloperIdentityResponseFilterSensitiveLog");
|
|
498
|
-
var UnlinkIdentityInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
499
|
-
...obj,
|
|
500
|
-
...obj.Logins && { Logins: import_smithy_client.SENSITIVE_STRING }
|
|
501
|
-
}), "UnlinkIdentityInputFilterSensitiveLog");
|
|
502
|
-
|
|
503
|
-
// src/protocols/Aws_json1_1.ts
|
|
504
|
-
var se_CreateIdentityPoolCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
505
|
-
const headers = sharedHeaders("CreateIdentityPool");
|
|
506
|
-
let body;
|
|
507
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
508
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
509
|
-
}, "se_CreateIdentityPoolCommand");
|
|
510
|
-
var se_DeleteIdentitiesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
511
|
-
const headers = sharedHeaders("DeleteIdentities");
|
|
512
|
-
let body;
|
|
513
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
514
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
515
|
-
}, "se_DeleteIdentitiesCommand");
|
|
516
|
-
var se_DeleteIdentityPoolCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
517
|
-
const headers = sharedHeaders("DeleteIdentityPool");
|
|
518
|
-
let body;
|
|
519
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
520
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
521
|
-
}, "se_DeleteIdentityPoolCommand");
|
|
522
|
-
var se_DescribeIdentityCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
523
|
-
const headers = sharedHeaders("DescribeIdentity");
|
|
524
|
-
let body;
|
|
525
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
526
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
527
|
-
}, "se_DescribeIdentityCommand");
|
|
528
|
-
var se_DescribeIdentityPoolCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
529
|
-
const headers = sharedHeaders("DescribeIdentityPool");
|
|
530
|
-
let body;
|
|
531
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
532
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
533
|
-
}, "se_DescribeIdentityPoolCommand");
|
|
534
|
-
var se_GetCredentialsForIdentityCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
535
|
-
const headers = sharedHeaders("GetCredentialsForIdentity");
|
|
536
|
-
let body;
|
|
537
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
538
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
539
|
-
}, "se_GetCredentialsForIdentityCommand");
|
|
540
|
-
var se_GetIdCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
541
|
-
const headers = sharedHeaders("GetId");
|
|
542
|
-
let body;
|
|
543
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
544
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
545
|
-
}, "se_GetIdCommand");
|
|
546
|
-
var se_GetIdentityPoolRolesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
547
|
-
const headers = sharedHeaders("GetIdentityPoolRoles");
|
|
548
|
-
let body;
|
|
549
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
550
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
551
|
-
}, "se_GetIdentityPoolRolesCommand");
|
|
552
|
-
var se_GetOpenIdTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
553
|
-
const headers = sharedHeaders("GetOpenIdToken");
|
|
554
|
-
let body;
|
|
555
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
556
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
557
|
-
}, "se_GetOpenIdTokenCommand");
|
|
558
|
-
var se_GetOpenIdTokenForDeveloperIdentityCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
559
|
-
const headers = sharedHeaders("GetOpenIdTokenForDeveloperIdentity");
|
|
560
|
-
let body;
|
|
561
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
562
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
563
|
-
}, "se_GetOpenIdTokenForDeveloperIdentityCommand");
|
|
564
|
-
var se_GetPrincipalTagAttributeMapCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
565
|
-
const headers = sharedHeaders("GetPrincipalTagAttributeMap");
|
|
566
|
-
let body;
|
|
567
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
568
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
569
|
-
}, "se_GetPrincipalTagAttributeMapCommand");
|
|
570
|
-
var se_ListIdentitiesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
571
|
-
const headers = sharedHeaders("ListIdentities");
|
|
572
|
-
let body;
|
|
573
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
574
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
575
|
-
}, "se_ListIdentitiesCommand");
|
|
576
|
-
var se_ListIdentityPoolsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
577
|
-
const headers = sharedHeaders("ListIdentityPools");
|
|
578
|
-
let body;
|
|
579
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
580
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
581
|
-
}, "se_ListIdentityPoolsCommand");
|
|
582
|
-
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
583
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
584
|
-
let body;
|
|
585
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
586
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
587
|
-
}, "se_ListTagsForResourceCommand");
|
|
588
|
-
var se_LookupDeveloperIdentityCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
589
|
-
const headers = sharedHeaders("LookupDeveloperIdentity");
|
|
590
|
-
let body;
|
|
591
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
592
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
593
|
-
}, "se_LookupDeveloperIdentityCommand");
|
|
594
|
-
var se_MergeDeveloperIdentitiesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
595
|
-
const headers = sharedHeaders("MergeDeveloperIdentities");
|
|
596
|
-
let body;
|
|
597
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
598
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
599
|
-
}, "se_MergeDeveloperIdentitiesCommand");
|
|
600
|
-
var se_SetIdentityPoolRolesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
601
|
-
const headers = sharedHeaders("SetIdentityPoolRoles");
|
|
602
|
-
let body;
|
|
603
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
604
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
605
|
-
}, "se_SetIdentityPoolRolesCommand");
|
|
606
|
-
var se_SetPrincipalTagAttributeMapCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
607
|
-
const headers = sharedHeaders("SetPrincipalTagAttributeMap");
|
|
608
|
-
let body;
|
|
609
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
610
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
611
|
-
}, "se_SetPrincipalTagAttributeMapCommand");
|
|
612
|
-
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
613
|
-
const headers = sharedHeaders("TagResource");
|
|
614
|
-
let body;
|
|
615
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
616
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
617
|
-
}, "se_TagResourceCommand");
|
|
618
|
-
var se_UnlinkDeveloperIdentityCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
619
|
-
const headers = sharedHeaders("UnlinkDeveloperIdentity");
|
|
620
|
-
let body;
|
|
621
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
622
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
623
|
-
}, "se_UnlinkDeveloperIdentityCommand");
|
|
624
|
-
var se_UnlinkIdentityCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
625
|
-
const headers = sharedHeaders("UnlinkIdentity");
|
|
626
|
-
let body;
|
|
627
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
628
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
629
|
-
}, "se_UnlinkIdentityCommand");
|
|
630
|
-
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
631
|
-
const headers = sharedHeaders("UntagResource");
|
|
632
|
-
let body;
|
|
633
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
634
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
635
|
-
}, "se_UntagResourceCommand");
|
|
636
|
-
var se_UpdateIdentityPoolCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
637
|
-
const headers = sharedHeaders("UpdateIdentityPool");
|
|
638
|
-
let body;
|
|
639
|
-
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
640
|
-
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
641
|
-
}, "se_UpdateIdentityPoolCommand");
|
|
642
|
-
var de_CreateIdentityPoolCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
643
|
-
if (output.statusCode >= 300) {
|
|
644
|
-
return de_CommandError(output, context);
|
|
645
|
-
}
|
|
646
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
647
|
-
let contents = {};
|
|
648
|
-
contents = (0, import_smithy_client._json)(data);
|
|
649
|
-
const response = {
|
|
650
|
-
$metadata: deserializeMetadata(output),
|
|
651
|
-
...contents
|
|
652
|
-
};
|
|
653
|
-
return response;
|
|
654
|
-
}, "de_CreateIdentityPoolCommand");
|
|
655
|
-
var de_DeleteIdentitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
656
|
-
if (output.statusCode >= 300) {
|
|
657
|
-
return de_CommandError(output, context);
|
|
658
|
-
}
|
|
659
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
660
|
-
let contents = {};
|
|
661
|
-
contents = (0, import_smithy_client._json)(data);
|
|
662
|
-
const response = {
|
|
663
|
-
$metadata: deserializeMetadata(output),
|
|
664
|
-
...contents
|
|
665
|
-
};
|
|
666
|
-
return response;
|
|
667
|
-
}, "de_DeleteIdentitiesCommand");
|
|
668
|
-
var de_DeleteIdentityPoolCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
669
|
-
if (output.statusCode >= 300) {
|
|
670
|
-
return de_CommandError(output, context);
|
|
671
|
-
}
|
|
672
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
673
|
-
const response = {
|
|
674
|
-
$metadata: deserializeMetadata(output)
|
|
675
|
-
};
|
|
676
|
-
return response;
|
|
677
|
-
}, "de_DeleteIdentityPoolCommand");
|
|
678
|
-
var de_DescribeIdentityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
679
|
-
if (output.statusCode >= 300) {
|
|
680
|
-
return de_CommandError(output, context);
|
|
681
|
-
}
|
|
682
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
683
|
-
let contents = {};
|
|
684
|
-
contents = de_IdentityDescription(data, context);
|
|
685
|
-
const response = {
|
|
686
|
-
$metadata: deserializeMetadata(output),
|
|
687
|
-
...contents
|
|
688
|
-
};
|
|
689
|
-
return response;
|
|
690
|
-
}, "de_DescribeIdentityCommand");
|
|
691
|
-
var de_DescribeIdentityPoolCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
692
|
-
if (output.statusCode >= 300) {
|
|
693
|
-
return de_CommandError(output, context);
|
|
694
|
-
}
|
|
695
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
696
|
-
let contents = {};
|
|
697
|
-
contents = (0, import_smithy_client._json)(data);
|
|
698
|
-
const response = {
|
|
699
|
-
$metadata: deserializeMetadata(output),
|
|
700
|
-
...contents
|
|
701
|
-
};
|
|
702
|
-
return response;
|
|
703
|
-
}, "de_DescribeIdentityPoolCommand");
|
|
704
|
-
var de_GetCredentialsForIdentityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
705
|
-
if (output.statusCode >= 300) {
|
|
706
|
-
return de_CommandError(output, context);
|
|
707
|
-
}
|
|
708
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
709
|
-
let contents = {};
|
|
710
|
-
contents = de_GetCredentialsForIdentityResponse(data, context);
|
|
711
|
-
const response = {
|
|
712
|
-
$metadata: deserializeMetadata(output),
|
|
713
|
-
...contents
|
|
714
|
-
};
|
|
715
|
-
return response;
|
|
716
|
-
}, "de_GetCredentialsForIdentityCommand");
|
|
717
|
-
var de_GetIdCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
718
|
-
if (output.statusCode >= 300) {
|
|
719
|
-
return de_CommandError(output, context);
|
|
720
|
-
}
|
|
721
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
722
|
-
let contents = {};
|
|
723
|
-
contents = (0, import_smithy_client._json)(data);
|
|
724
|
-
const response = {
|
|
725
|
-
$metadata: deserializeMetadata(output),
|
|
726
|
-
...contents
|
|
727
|
-
};
|
|
728
|
-
return response;
|
|
729
|
-
}, "de_GetIdCommand");
|
|
730
|
-
var de_GetIdentityPoolRolesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
731
|
-
if (output.statusCode >= 300) {
|
|
732
|
-
return de_CommandError(output, context);
|
|
733
|
-
}
|
|
734
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
735
|
-
let contents = {};
|
|
736
|
-
contents = (0, import_smithy_client._json)(data);
|
|
737
|
-
const response = {
|
|
738
|
-
$metadata: deserializeMetadata(output),
|
|
739
|
-
...contents
|
|
740
|
-
};
|
|
741
|
-
return response;
|
|
742
|
-
}, "de_GetIdentityPoolRolesCommand");
|
|
743
|
-
var de_GetOpenIdTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
744
|
-
if (output.statusCode >= 300) {
|
|
745
|
-
return de_CommandError(output, context);
|
|
746
|
-
}
|
|
747
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
748
|
-
let contents = {};
|
|
749
|
-
contents = (0, import_smithy_client._json)(data);
|
|
750
|
-
const response = {
|
|
751
|
-
$metadata: deserializeMetadata(output),
|
|
752
|
-
...contents
|
|
753
|
-
};
|
|
754
|
-
return response;
|
|
755
|
-
}, "de_GetOpenIdTokenCommand");
|
|
756
|
-
var de_GetOpenIdTokenForDeveloperIdentityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
757
|
-
if (output.statusCode >= 300) {
|
|
758
|
-
return de_CommandError(output, context);
|
|
759
|
-
}
|
|
760
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
761
|
-
let contents = {};
|
|
762
|
-
contents = (0, import_smithy_client._json)(data);
|
|
763
|
-
const response = {
|
|
764
|
-
$metadata: deserializeMetadata(output),
|
|
765
|
-
...contents
|
|
766
|
-
};
|
|
767
|
-
return response;
|
|
768
|
-
}, "de_GetOpenIdTokenForDeveloperIdentityCommand");
|
|
769
|
-
var de_GetPrincipalTagAttributeMapCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
770
|
-
if (output.statusCode >= 300) {
|
|
771
|
-
return de_CommandError(output, context);
|
|
772
|
-
}
|
|
773
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
774
|
-
let contents = {};
|
|
775
|
-
contents = (0, import_smithy_client._json)(data);
|
|
776
|
-
const response = {
|
|
777
|
-
$metadata: deserializeMetadata(output),
|
|
778
|
-
...contents
|
|
779
|
-
};
|
|
780
|
-
return response;
|
|
781
|
-
}, "de_GetPrincipalTagAttributeMapCommand");
|
|
782
|
-
var de_ListIdentitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
783
|
-
if (output.statusCode >= 300) {
|
|
784
|
-
return de_CommandError(output, context);
|
|
785
|
-
}
|
|
786
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
787
|
-
let contents = {};
|
|
788
|
-
contents = de_ListIdentitiesResponse(data, context);
|
|
789
|
-
const response = {
|
|
790
|
-
$metadata: deserializeMetadata(output),
|
|
791
|
-
...contents
|
|
792
|
-
};
|
|
793
|
-
return response;
|
|
794
|
-
}, "de_ListIdentitiesCommand");
|
|
795
|
-
var de_ListIdentityPoolsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
796
|
-
if (output.statusCode >= 300) {
|
|
797
|
-
return de_CommandError(output, context);
|
|
798
|
-
}
|
|
799
|
-
const data = await (0, import_core2.parseJsonBody)(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_ListIdentityPoolsCommand");
|
|
808
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
809
|
-
if (output.statusCode >= 300) {
|
|
810
|
-
return de_CommandError(output, context);
|
|
811
|
-
}
|
|
812
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
813
|
-
let contents = {};
|
|
814
|
-
contents = (0, import_smithy_client._json)(data);
|
|
815
|
-
const response = {
|
|
816
|
-
$metadata: deserializeMetadata(output),
|
|
817
|
-
...contents
|
|
818
|
-
};
|
|
819
|
-
return response;
|
|
820
|
-
}, "de_ListTagsForResourceCommand");
|
|
821
|
-
var de_LookupDeveloperIdentityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
822
|
-
if (output.statusCode >= 300) {
|
|
823
|
-
return de_CommandError(output, context);
|
|
824
|
-
}
|
|
825
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
826
|
-
let contents = {};
|
|
827
|
-
contents = (0, import_smithy_client._json)(data);
|
|
828
|
-
const response = {
|
|
829
|
-
$metadata: deserializeMetadata(output),
|
|
830
|
-
...contents
|
|
831
|
-
};
|
|
832
|
-
return response;
|
|
833
|
-
}, "de_LookupDeveloperIdentityCommand");
|
|
834
|
-
var de_MergeDeveloperIdentitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
835
|
-
if (output.statusCode >= 300) {
|
|
836
|
-
return de_CommandError(output, context);
|
|
837
|
-
}
|
|
838
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
839
|
-
let contents = {};
|
|
840
|
-
contents = (0, import_smithy_client._json)(data);
|
|
841
|
-
const response = {
|
|
842
|
-
$metadata: deserializeMetadata(output),
|
|
843
|
-
...contents
|
|
844
|
-
};
|
|
845
|
-
return response;
|
|
846
|
-
}, "de_MergeDeveloperIdentitiesCommand");
|
|
847
|
-
var de_SetIdentityPoolRolesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
848
|
-
if (output.statusCode >= 300) {
|
|
849
|
-
return de_CommandError(output, context);
|
|
850
|
-
}
|
|
851
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
852
|
-
const response = {
|
|
853
|
-
$metadata: deserializeMetadata(output)
|
|
854
|
-
};
|
|
855
|
-
return response;
|
|
856
|
-
}, "de_SetIdentityPoolRolesCommand");
|
|
857
|
-
var de_SetPrincipalTagAttributeMapCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
858
|
-
if (output.statusCode >= 300) {
|
|
859
|
-
return de_CommandError(output, context);
|
|
860
|
-
}
|
|
861
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
862
|
-
let contents = {};
|
|
863
|
-
contents = (0, import_smithy_client._json)(data);
|
|
864
|
-
const response = {
|
|
865
|
-
$metadata: deserializeMetadata(output),
|
|
866
|
-
...contents
|
|
867
|
-
};
|
|
868
|
-
return response;
|
|
869
|
-
}, "de_SetPrincipalTagAttributeMapCommand");
|
|
870
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
871
|
-
if (output.statusCode >= 300) {
|
|
872
|
-
return de_CommandError(output, context);
|
|
873
|
-
}
|
|
874
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
875
|
-
let contents = {};
|
|
876
|
-
contents = (0, import_smithy_client._json)(data);
|
|
877
|
-
const response = {
|
|
878
|
-
$metadata: deserializeMetadata(output),
|
|
879
|
-
...contents
|
|
880
|
-
};
|
|
881
|
-
return response;
|
|
882
|
-
}, "de_TagResourceCommand");
|
|
883
|
-
var de_UnlinkDeveloperIdentityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
884
|
-
if (output.statusCode >= 300) {
|
|
885
|
-
return de_CommandError(output, context);
|
|
886
|
-
}
|
|
887
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
888
|
-
const response = {
|
|
889
|
-
$metadata: deserializeMetadata(output)
|
|
890
|
-
};
|
|
891
|
-
return response;
|
|
892
|
-
}, "de_UnlinkDeveloperIdentityCommand");
|
|
893
|
-
var de_UnlinkIdentityCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
894
|
-
if (output.statusCode >= 300) {
|
|
895
|
-
return de_CommandError(output, context);
|
|
896
|
-
}
|
|
897
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
898
|
-
const response = {
|
|
899
|
-
$metadata: deserializeMetadata(output)
|
|
900
|
-
};
|
|
901
|
-
return response;
|
|
902
|
-
}, "de_UnlinkIdentityCommand");
|
|
903
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
904
|
-
if (output.statusCode >= 300) {
|
|
905
|
-
return de_CommandError(output, context);
|
|
906
|
-
}
|
|
907
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
908
|
-
let contents = {};
|
|
909
|
-
contents = (0, import_smithy_client._json)(data);
|
|
910
|
-
const response = {
|
|
911
|
-
$metadata: deserializeMetadata(output),
|
|
912
|
-
...contents
|
|
913
|
-
};
|
|
914
|
-
return response;
|
|
915
|
-
}, "de_UntagResourceCommand");
|
|
916
|
-
var de_UpdateIdentityPoolCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
917
|
-
if (output.statusCode >= 300) {
|
|
918
|
-
return de_CommandError(output, context);
|
|
919
|
-
}
|
|
920
|
-
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
921
|
-
let contents = {};
|
|
922
|
-
contents = (0, import_smithy_client._json)(data);
|
|
923
|
-
const response = {
|
|
924
|
-
$metadata: deserializeMetadata(output),
|
|
925
|
-
...contents
|
|
926
|
-
};
|
|
927
|
-
return response;
|
|
928
|
-
}, "de_UpdateIdentityPoolCommand");
|
|
929
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
930
|
-
const parsedOutput = {
|
|
931
|
-
...output,
|
|
932
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
933
|
-
};
|
|
934
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
935
|
-
switch (errorCode) {
|
|
936
|
-
case "InternalErrorException":
|
|
937
|
-
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
938
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
939
|
-
case "InvalidParameterException":
|
|
940
|
-
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
941
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
942
|
-
case "LimitExceededException":
|
|
943
|
-
case "com.amazonaws.cognitoidentity#LimitExceededException":
|
|
944
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
945
|
-
case "NotAuthorizedException":
|
|
946
|
-
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
947
|
-
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
948
|
-
case "ResourceConflictException":
|
|
949
|
-
case "com.amazonaws.cognitoidentity#ResourceConflictException":
|
|
950
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
951
|
-
case "TooManyRequestsException":
|
|
952
|
-
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
953
|
-
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
954
|
-
case "ResourceNotFoundException":
|
|
955
|
-
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
956
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
957
|
-
case "ExternalServiceException":
|
|
958
|
-
case "com.amazonaws.cognitoidentity#ExternalServiceException":
|
|
959
|
-
throw await de_ExternalServiceExceptionRes(parsedOutput, context);
|
|
960
|
-
case "InvalidIdentityPoolConfigurationException":
|
|
961
|
-
case "com.amazonaws.cognitoidentity#InvalidIdentityPoolConfigurationException":
|
|
962
|
-
throw await de_InvalidIdentityPoolConfigurationExceptionRes(parsedOutput, context);
|
|
963
|
-
case "DeveloperUserAlreadyRegisteredException":
|
|
964
|
-
case "com.amazonaws.cognitoidentity#DeveloperUserAlreadyRegisteredException":
|
|
965
|
-
throw await de_DeveloperUserAlreadyRegisteredExceptionRes(parsedOutput, context);
|
|
966
|
-
case "ConcurrentModificationException":
|
|
967
|
-
case "com.amazonaws.cognitoidentity#ConcurrentModificationException":
|
|
968
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
969
|
-
default:
|
|
970
|
-
const parsedBody = parsedOutput.body;
|
|
971
|
-
return throwDefaultError({
|
|
972
|
-
output,
|
|
973
|
-
parsedBody,
|
|
974
|
-
errorCode
|
|
975
|
-
});
|
|
976
|
-
}
|
|
977
|
-
}, "de_CommandError");
|
|
978
|
-
var de_ConcurrentModificationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
979
|
-
const body = parsedOutput.body;
|
|
980
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
981
|
-
const exception = new ConcurrentModificationException({
|
|
982
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
983
|
-
...deserialized
|
|
984
|
-
});
|
|
985
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
986
|
-
}, "de_ConcurrentModificationExceptionRes");
|
|
987
|
-
var de_DeveloperUserAlreadyRegisteredExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
988
|
-
const body = parsedOutput.body;
|
|
989
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
990
|
-
const exception = new DeveloperUserAlreadyRegisteredException({
|
|
991
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
992
|
-
...deserialized
|
|
993
|
-
});
|
|
994
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
995
|
-
}, "de_DeveloperUserAlreadyRegisteredExceptionRes");
|
|
996
|
-
var de_ExternalServiceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
997
|
-
const body = parsedOutput.body;
|
|
998
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
999
|
-
const exception = new ExternalServiceException({
|
|
1000
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1001
|
-
...deserialized
|
|
1002
|
-
});
|
|
1003
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1004
|
-
}, "de_ExternalServiceExceptionRes");
|
|
1005
|
-
var de_InternalErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1006
|
-
const body = parsedOutput.body;
|
|
1007
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1008
|
-
const exception = new InternalErrorException({
|
|
1009
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1010
|
-
...deserialized
|
|
1011
|
-
});
|
|
1012
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1013
|
-
}, "de_InternalErrorExceptionRes");
|
|
1014
|
-
var de_InvalidIdentityPoolConfigurationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1015
|
-
const body = parsedOutput.body;
|
|
1016
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1017
|
-
const exception = new InvalidIdentityPoolConfigurationException({
|
|
1018
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1019
|
-
...deserialized
|
|
1020
|
-
});
|
|
1021
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1022
|
-
}, "de_InvalidIdentityPoolConfigurationExceptionRes");
|
|
1023
|
-
var de_InvalidParameterExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1024
|
-
const body = parsedOutput.body;
|
|
1025
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1026
|
-
const exception = new InvalidParameterException({
|
|
1027
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1028
|
-
...deserialized
|
|
1029
|
-
});
|
|
1030
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1031
|
-
}, "de_InvalidParameterExceptionRes");
|
|
1032
|
-
var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1033
|
-
const body = parsedOutput.body;
|
|
1034
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1035
|
-
const exception = new LimitExceededException({
|
|
1036
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1037
|
-
...deserialized
|
|
1038
|
-
});
|
|
1039
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1040
|
-
}, "de_LimitExceededExceptionRes");
|
|
1041
|
-
var de_NotAuthorizedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1042
|
-
const body = parsedOutput.body;
|
|
1043
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1044
|
-
const exception = new NotAuthorizedException({
|
|
1045
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1046
|
-
...deserialized
|
|
1047
|
-
});
|
|
1048
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1049
|
-
}, "de_NotAuthorizedExceptionRes");
|
|
1050
|
-
var de_ResourceConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1051
|
-
const body = parsedOutput.body;
|
|
1052
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1053
|
-
const exception = new ResourceConflictException({
|
|
1054
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1055
|
-
...deserialized
|
|
1056
|
-
});
|
|
1057
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1058
|
-
}, "de_ResourceConflictExceptionRes");
|
|
1059
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1060
|
-
const body = parsedOutput.body;
|
|
1061
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1062
|
-
const exception = new ResourceNotFoundException({
|
|
1063
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1064
|
-
...deserialized
|
|
1065
|
-
});
|
|
1066
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1067
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
1068
|
-
var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1069
|
-
const body = parsedOutput.body;
|
|
1070
|
-
const deserialized = (0, import_smithy_client._json)(body);
|
|
1071
|
-
const exception = new TooManyRequestsException({
|
|
1072
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1073
|
-
...deserialized
|
|
1074
|
-
});
|
|
1075
|
-
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
1076
|
-
}, "de_TooManyRequestsExceptionRes");
|
|
1077
|
-
var de_Credentials = /* @__PURE__ */ __name((output, context) => {
|
|
1078
|
-
return (0, import_smithy_client.take)(output, {
|
|
1079
|
-
AccessKeyId: import_smithy_client.expectString,
|
|
1080
|
-
Expiration: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "Expiration"),
|
|
1081
|
-
SecretKey: import_smithy_client.expectString,
|
|
1082
|
-
SessionToken: import_smithy_client.expectString
|
|
1083
|
-
});
|
|
1084
|
-
}, "de_Credentials");
|
|
1085
|
-
var de_GetCredentialsForIdentityResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1086
|
-
return (0, import_smithy_client.take)(output, {
|
|
1087
|
-
Credentials: /* @__PURE__ */ __name((_) => de_Credentials(_, context), "Credentials"),
|
|
1088
|
-
IdentityId: import_smithy_client.expectString
|
|
1089
|
-
});
|
|
1090
|
-
}, "de_GetCredentialsForIdentityResponse");
|
|
1091
|
-
var de_IdentitiesList = /* @__PURE__ */ __name((output, context) => {
|
|
1092
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1093
|
-
return de_IdentityDescription(entry, context);
|
|
1094
|
-
});
|
|
1095
|
-
return retVal;
|
|
1096
|
-
}, "de_IdentitiesList");
|
|
1097
|
-
var de_IdentityDescription = /* @__PURE__ */ __name((output, context) => {
|
|
1098
|
-
return (0, import_smithy_client.take)(output, {
|
|
1099
|
-
CreationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationDate"),
|
|
1100
|
-
IdentityId: import_smithy_client.expectString,
|
|
1101
|
-
LastModifiedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModifiedDate"),
|
|
1102
|
-
Logins: import_smithy_client._json
|
|
1103
|
-
});
|
|
1104
|
-
}, "de_IdentityDescription");
|
|
1105
|
-
var de_ListIdentitiesResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1106
|
-
return (0, import_smithy_client.take)(output, {
|
|
1107
|
-
Identities: /* @__PURE__ */ __name((_) => de_IdentitiesList(_, context), "Identities"),
|
|
1108
|
-
IdentityPoolId: import_smithy_client.expectString,
|
|
1109
|
-
NextToken: import_smithy_client.expectString
|
|
1110
|
-
});
|
|
1111
|
-
}, "de_ListIdentitiesResponse");
|
|
1112
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1113
|
-
httpStatusCode: output.statusCode,
|
|
1114
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1115
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1116
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
1117
|
-
}), "deserializeMetadata");
|
|
1118
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(CognitoIdentityServiceException);
|
|
1119
|
-
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
1120
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1121
|
-
const contents = {
|
|
1122
|
-
protocol,
|
|
1123
|
-
hostname,
|
|
1124
|
-
port,
|
|
1125
|
-
method: "POST",
|
|
1126
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1127
|
-
headers
|
|
1128
|
-
};
|
|
1129
|
-
if (resolvedHostname !== void 0) {
|
|
1130
|
-
contents.hostname = resolvedHostname;
|
|
1131
|
-
}
|
|
1132
|
-
if (body !== void 0) {
|
|
1133
|
-
contents.body = body;
|
|
1134
|
-
}
|
|
1135
|
-
return new import_protocol_http.HttpRequest(contents);
|
|
1136
|
-
}, "buildHttpRpcRequest");
|
|
1137
|
-
function sharedHeaders(operation) {
|
|
1138
|
-
return {
|
|
1139
|
-
"content-type": "application/x-amz-json-1.1",
|
|
1140
|
-
"x-amz-target": `AWSCognitoIdentityService.${operation}`
|
|
1141
|
-
};
|
|
200
|
+
class ResourceNotFoundException extends CognitoIdentityServiceException {
|
|
201
|
+
name = "ResourceNotFoundException";
|
|
202
|
+
$fault = "client";
|
|
203
|
+
constructor(opts) {
|
|
204
|
+
super({
|
|
205
|
+
name: "ResourceNotFoundException",
|
|
206
|
+
$fault: "client",
|
|
207
|
+
...opts,
|
|
208
|
+
});
|
|
209
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
210
|
+
}
|
|
1142
211
|
}
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
})
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
212
|
+
class ExternalServiceException extends CognitoIdentityServiceException {
|
|
213
|
+
name = "ExternalServiceException";
|
|
214
|
+
$fault = "client";
|
|
215
|
+
constructor(opts) {
|
|
216
|
+
super({
|
|
217
|
+
name: "ExternalServiceException",
|
|
218
|
+
$fault: "client",
|
|
219
|
+
...opts,
|
|
220
|
+
});
|
|
221
|
+
Object.setPrototypeOf(this, ExternalServiceException.prototype);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
class InvalidIdentityPoolConfigurationException extends CognitoIdentityServiceException {
|
|
225
|
+
name = "InvalidIdentityPoolConfigurationException";
|
|
226
|
+
$fault = "client";
|
|
227
|
+
constructor(opts) {
|
|
228
|
+
super({
|
|
229
|
+
name: "InvalidIdentityPoolConfigurationException",
|
|
230
|
+
$fault: "client",
|
|
231
|
+
...opts,
|
|
232
|
+
});
|
|
233
|
+
Object.setPrototypeOf(this, InvalidIdentityPoolConfigurationException.prototype);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
const MappingRuleMatchType = {
|
|
237
|
+
CONTAINS: "Contains",
|
|
238
|
+
EQUALS: "Equals",
|
|
239
|
+
NOT_EQUAL: "NotEqual",
|
|
240
|
+
STARTS_WITH: "StartsWith",
|
|
1155
241
|
};
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
var DeleteIdentitiesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1162
|
-
return [
|
|
1163
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1164
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1165
|
-
];
|
|
1166
|
-
}).s("AWSCognitoIdentityService", "DeleteIdentities", {}).n("CognitoIdentityClient", "DeleteIdentitiesCommand").f(void 0, void 0).ser(se_DeleteIdentitiesCommand).de(de_DeleteIdentitiesCommand).build() {
|
|
1167
|
-
static {
|
|
1168
|
-
__name(this, "DeleteIdentitiesCommand");
|
|
1169
|
-
}
|
|
242
|
+
const RoleMappingType = {
|
|
243
|
+
RULES: "Rules",
|
|
244
|
+
TOKEN: "Token",
|
|
1170
245
|
};
|
|
246
|
+
class DeveloperUserAlreadyRegisteredException extends CognitoIdentityServiceException {
|
|
247
|
+
name = "DeveloperUserAlreadyRegisteredException";
|
|
248
|
+
$fault = "client";
|
|
249
|
+
constructor(opts) {
|
|
250
|
+
super({
|
|
251
|
+
name: "DeveloperUserAlreadyRegisteredException",
|
|
252
|
+
$fault: "client",
|
|
253
|
+
...opts,
|
|
254
|
+
});
|
|
255
|
+
Object.setPrototypeOf(this, DeveloperUserAlreadyRegisteredException.prototype);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
class ConcurrentModificationException extends CognitoIdentityServiceException {
|
|
259
|
+
name = "ConcurrentModificationException";
|
|
260
|
+
$fault = "client";
|
|
261
|
+
constructor(opts) {
|
|
262
|
+
super({
|
|
263
|
+
name: "ConcurrentModificationException",
|
|
264
|
+
$fault: "client",
|
|
265
|
+
...opts,
|
|
266
|
+
});
|
|
267
|
+
Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
const GetCredentialsForIdentityInputFilterSensitiveLog = (obj) => ({
|
|
271
|
+
...obj,
|
|
272
|
+
...(obj.Logins && { Logins: smithyClient.SENSITIVE_STRING }),
|
|
273
|
+
});
|
|
274
|
+
const CredentialsFilterSensitiveLog = (obj) => ({
|
|
275
|
+
...obj,
|
|
276
|
+
...(obj.SecretKey && { SecretKey: smithyClient.SENSITIVE_STRING }),
|
|
277
|
+
});
|
|
278
|
+
const GetCredentialsForIdentityResponseFilterSensitiveLog = (obj) => ({
|
|
279
|
+
...obj,
|
|
280
|
+
...(obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }),
|
|
281
|
+
});
|
|
282
|
+
const GetIdInputFilterSensitiveLog = (obj) => ({
|
|
283
|
+
...obj,
|
|
284
|
+
...(obj.Logins && { Logins: smithyClient.SENSITIVE_STRING }),
|
|
285
|
+
});
|
|
286
|
+
const GetOpenIdTokenInputFilterSensitiveLog = (obj) => ({
|
|
287
|
+
...obj,
|
|
288
|
+
...(obj.Logins && { Logins: smithyClient.SENSITIVE_STRING }),
|
|
289
|
+
});
|
|
290
|
+
const GetOpenIdTokenResponseFilterSensitiveLog = (obj) => ({
|
|
291
|
+
...obj,
|
|
292
|
+
...(obj.Token && { Token: smithyClient.SENSITIVE_STRING }),
|
|
293
|
+
});
|
|
294
|
+
const GetOpenIdTokenForDeveloperIdentityInputFilterSensitiveLog = (obj) => ({
|
|
295
|
+
...obj,
|
|
296
|
+
...(obj.Logins && { Logins: smithyClient.SENSITIVE_STRING }),
|
|
297
|
+
});
|
|
298
|
+
const GetOpenIdTokenForDeveloperIdentityResponseFilterSensitiveLog = (obj) => ({
|
|
299
|
+
...obj,
|
|
300
|
+
...(obj.Token && { Token: smithyClient.SENSITIVE_STRING }),
|
|
301
|
+
});
|
|
302
|
+
const UnlinkIdentityInputFilterSensitiveLog = (obj) => ({
|
|
303
|
+
...obj,
|
|
304
|
+
...(obj.Logins && { Logins: smithyClient.SENSITIVE_STRING }),
|
|
305
|
+
});
|
|
1171
306
|
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
return [
|
|
1178
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1179
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1180
|
-
];
|
|
1181
|
-
}).s("AWSCognitoIdentityService", "DeleteIdentityPool", {}).n("CognitoIdentityClient", "DeleteIdentityPoolCommand").f(void 0, void 0).ser(se_DeleteIdentityPoolCommand).de(de_DeleteIdentityPoolCommand).build() {
|
|
1182
|
-
static {
|
|
1183
|
-
__name(this, "DeleteIdentityPoolCommand");
|
|
1184
|
-
}
|
|
307
|
+
const se_CreateIdentityPoolCommand = async (input, context) => {
|
|
308
|
+
const headers = sharedHeaders("CreateIdentityPool");
|
|
309
|
+
let body;
|
|
310
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
311
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1185
312
|
};
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
var DescribeIdentityCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1192
|
-
return [
|
|
1193
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1194
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1195
|
-
];
|
|
1196
|
-
}).s("AWSCognitoIdentityService", "DescribeIdentity", {}).n("CognitoIdentityClient", "DescribeIdentityCommand").f(void 0, void 0).ser(se_DescribeIdentityCommand).de(de_DescribeIdentityCommand).build() {
|
|
1197
|
-
static {
|
|
1198
|
-
__name(this, "DescribeIdentityCommand");
|
|
1199
|
-
}
|
|
313
|
+
const se_DeleteIdentitiesCommand = async (input, context) => {
|
|
314
|
+
const headers = sharedHeaders("DeleteIdentities");
|
|
315
|
+
let body;
|
|
316
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
317
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1200
318
|
};
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
var DescribeIdentityPoolCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1207
|
-
return [
|
|
1208
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1209
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1210
|
-
];
|
|
1211
|
-
}).s("AWSCognitoIdentityService", "DescribeIdentityPool", {}).n("CognitoIdentityClient", "DescribeIdentityPoolCommand").f(void 0, void 0).ser(se_DescribeIdentityPoolCommand).de(de_DescribeIdentityPoolCommand).build() {
|
|
1212
|
-
static {
|
|
1213
|
-
__name(this, "DescribeIdentityPoolCommand");
|
|
1214
|
-
}
|
|
319
|
+
const se_DeleteIdentityPoolCommand = async (input, context) => {
|
|
320
|
+
const headers = sharedHeaders("DeleteIdentityPool");
|
|
321
|
+
let body;
|
|
322
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
323
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1215
324
|
};
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
var GetCredentialsForIdentityCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1222
|
-
return [
|
|
1223
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1224
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1225
|
-
];
|
|
1226
|
-
}).s("AWSCognitoIdentityService", "GetCredentialsForIdentity", {}).n("CognitoIdentityClient", "GetCredentialsForIdentityCommand").f(GetCredentialsForIdentityInputFilterSensitiveLog, GetCredentialsForIdentityResponseFilterSensitiveLog).ser(se_GetCredentialsForIdentityCommand).de(de_GetCredentialsForIdentityCommand).build() {
|
|
1227
|
-
static {
|
|
1228
|
-
__name(this, "GetCredentialsForIdentityCommand");
|
|
1229
|
-
}
|
|
325
|
+
const se_DescribeIdentityCommand = async (input, context) => {
|
|
326
|
+
const headers = sharedHeaders("DescribeIdentity");
|
|
327
|
+
let body;
|
|
328
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
329
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1230
330
|
};
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
var GetIdCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1237
|
-
return [
|
|
1238
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1239
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1240
|
-
];
|
|
1241
|
-
}).s("AWSCognitoIdentityService", "GetId", {}).n("CognitoIdentityClient", "GetIdCommand").f(GetIdInputFilterSensitiveLog, void 0).ser(se_GetIdCommand).de(de_GetIdCommand).build() {
|
|
1242
|
-
static {
|
|
1243
|
-
__name(this, "GetIdCommand");
|
|
1244
|
-
}
|
|
331
|
+
const se_DescribeIdentityPoolCommand = async (input, context) => {
|
|
332
|
+
const headers = sharedHeaders("DescribeIdentityPool");
|
|
333
|
+
let body;
|
|
334
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
335
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1245
336
|
};
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
var GetIdentityPoolRolesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1252
|
-
return [
|
|
1253
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1254
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1255
|
-
];
|
|
1256
|
-
}).s("AWSCognitoIdentityService", "GetIdentityPoolRoles", {}).n("CognitoIdentityClient", "GetIdentityPoolRolesCommand").f(void 0, void 0).ser(se_GetIdentityPoolRolesCommand).de(de_GetIdentityPoolRolesCommand).build() {
|
|
1257
|
-
static {
|
|
1258
|
-
__name(this, "GetIdentityPoolRolesCommand");
|
|
1259
|
-
}
|
|
337
|
+
const se_GetCredentialsForIdentityCommand = async (input, context) => {
|
|
338
|
+
const headers = sharedHeaders("GetCredentialsForIdentity");
|
|
339
|
+
let body;
|
|
340
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
341
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1260
342
|
};
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
var GetOpenIdTokenCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1267
|
-
return [
|
|
1268
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1269
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1270
|
-
];
|
|
1271
|
-
}).s("AWSCognitoIdentityService", "GetOpenIdToken", {}).n("CognitoIdentityClient", "GetOpenIdTokenCommand").f(GetOpenIdTokenInputFilterSensitiveLog, GetOpenIdTokenResponseFilterSensitiveLog).ser(se_GetOpenIdTokenCommand).de(de_GetOpenIdTokenCommand).build() {
|
|
1272
|
-
static {
|
|
1273
|
-
__name(this, "GetOpenIdTokenCommand");
|
|
1274
|
-
}
|
|
343
|
+
const se_GetIdCommand = async (input, context) => {
|
|
344
|
+
const headers = sharedHeaders("GetId");
|
|
345
|
+
let body;
|
|
346
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
347
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1275
348
|
};
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
var GetOpenIdTokenForDeveloperIdentityCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1282
|
-
return [
|
|
1283
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1284
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1285
|
-
];
|
|
1286
|
-
}).s("AWSCognitoIdentityService", "GetOpenIdTokenForDeveloperIdentity", {}).n("CognitoIdentityClient", "GetOpenIdTokenForDeveloperIdentityCommand").f(
|
|
1287
|
-
GetOpenIdTokenForDeveloperIdentityInputFilterSensitiveLog,
|
|
1288
|
-
GetOpenIdTokenForDeveloperIdentityResponseFilterSensitiveLog
|
|
1289
|
-
).ser(se_GetOpenIdTokenForDeveloperIdentityCommand).de(de_GetOpenIdTokenForDeveloperIdentityCommand).build() {
|
|
1290
|
-
static {
|
|
1291
|
-
__name(this, "GetOpenIdTokenForDeveloperIdentityCommand");
|
|
1292
|
-
}
|
|
349
|
+
const se_GetIdentityPoolRolesCommand = async (input, context) => {
|
|
350
|
+
const headers = sharedHeaders("GetIdentityPoolRoles");
|
|
351
|
+
let body;
|
|
352
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
353
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1293
354
|
};
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
var GetPrincipalTagAttributeMapCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1300
|
-
return [
|
|
1301
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1302
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1303
|
-
];
|
|
1304
|
-
}).s("AWSCognitoIdentityService", "GetPrincipalTagAttributeMap", {}).n("CognitoIdentityClient", "GetPrincipalTagAttributeMapCommand").f(void 0, void 0).ser(se_GetPrincipalTagAttributeMapCommand).de(de_GetPrincipalTagAttributeMapCommand).build() {
|
|
1305
|
-
static {
|
|
1306
|
-
__name(this, "GetPrincipalTagAttributeMapCommand");
|
|
1307
|
-
}
|
|
355
|
+
const se_GetOpenIdTokenCommand = async (input, context) => {
|
|
356
|
+
const headers = sharedHeaders("GetOpenIdToken");
|
|
357
|
+
let body;
|
|
358
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
359
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1308
360
|
};
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
var ListIdentitiesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1315
|
-
return [
|
|
1316
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1317
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1318
|
-
];
|
|
1319
|
-
}).s("AWSCognitoIdentityService", "ListIdentities", {}).n("CognitoIdentityClient", "ListIdentitiesCommand").f(void 0, void 0).ser(se_ListIdentitiesCommand).de(de_ListIdentitiesCommand).build() {
|
|
1320
|
-
static {
|
|
1321
|
-
__name(this, "ListIdentitiesCommand");
|
|
1322
|
-
}
|
|
361
|
+
const se_GetOpenIdTokenForDeveloperIdentityCommand = async (input, context) => {
|
|
362
|
+
const headers = sharedHeaders("GetOpenIdTokenForDeveloperIdentity");
|
|
363
|
+
let body;
|
|
364
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
365
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1323
366
|
};
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
var ListIdentityPoolsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1330
|
-
return [
|
|
1331
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1332
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1333
|
-
];
|
|
1334
|
-
}).s("AWSCognitoIdentityService", "ListIdentityPools", {}).n("CognitoIdentityClient", "ListIdentityPoolsCommand").f(void 0, void 0).ser(se_ListIdentityPoolsCommand).de(de_ListIdentityPoolsCommand).build() {
|
|
1335
|
-
static {
|
|
1336
|
-
__name(this, "ListIdentityPoolsCommand");
|
|
1337
|
-
}
|
|
367
|
+
const se_GetPrincipalTagAttributeMapCommand = async (input, context) => {
|
|
368
|
+
const headers = sharedHeaders("GetPrincipalTagAttributeMap");
|
|
369
|
+
let body;
|
|
370
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
371
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1338
372
|
};
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1345
|
-
return [
|
|
1346
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1347
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1348
|
-
];
|
|
1349
|
-
}).s("AWSCognitoIdentityService", "ListTagsForResource", {}).n("CognitoIdentityClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
1350
|
-
static {
|
|
1351
|
-
__name(this, "ListTagsForResourceCommand");
|
|
1352
|
-
}
|
|
373
|
+
const se_ListIdentitiesCommand = async (input, context) => {
|
|
374
|
+
const headers = sharedHeaders("ListIdentities");
|
|
375
|
+
let body;
|
|
376
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
377
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1353
378
|
};
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
var LookupDeveloperIdentityCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1360
|
-
return [
|
|
1361
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1362
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1363
|
-
];
|
|
1364
|
-
}).s("AWSCognitoIdentityService", "LookupDeveloperIdentity", {}).n("CognitoIdentityClient", "LookupDeveloperIdentityCommand").f(void 0, void 0).ser(se_LookupDeveloperIdentityCommand).de(de_LookupDeveloperIdentityCommand).build() {
|
|
1365
|
-
static {
|
|
1366
|
-
__name(this, "LookupDeveloperIdentityCommand");
|
|
1367
|
-
}
|
|
379
|
+
const se_ListIdentityPoolsCommand = async (input, context) => {
|
|
380
|
+
const headers = sharedHeaders("ListIdentityPools");
|
|
381
|
+
let body;
|
|
382
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
383
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1368
384
|
};
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
var MergeDeveloperIdentitiesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1375
|
-
return [
|
|
1376
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1377
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1378
|
-
];
|
|
1379
|
-
}).s("AWSCognitoIdentityService", "MergeDeveloperIdentities", {}).n("CognitoIdentityClient", "MergeDeveloperIdentitiesCommand").f(void 0, void 0).ser(se_MergeDeveloperIdentitiesCommand).de(de_MergeDeveloperIdentitiesCommand).build() {
|
|
1380
|
-
static {
|
|
1381
|
-
__name(this, "MergeDeveloperIdentitiesCommand");
|
|
1382
|
-
}
|
|
385
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
386
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
387
|
+
let body;
|
|
388
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
389
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
1383
390
|
};
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
391
|
+
const se_LookupDeveloperIdentityCommand = async (input, context) => {
|
|
392
|
+
const headers = sharedHeaders("LookupDeveloperIdentity");
|
|
393
|
+
let body;
|
|
394
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
395
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
396
|
+
};
|
|
397
|
+
const se_MergeDeveloperIdentitiesCommand = async (input, context) => {
|
|
398
|
+
const headers = sharedHeaders("MergeDeveloperIdentities");
|
|
399
|
+
let body;
|
|
400
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
401
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
402
|
+
};
|
|
403
|
+
const se_SetIdentityPoolRolesCommand = async (input, context) => {
|
|
404
|
+
const headers = sharedHeaders("SetIdentityPoolRoles");
|
|
405
|
+
let body;
|
|
406
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
407
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
408
|
+
};
|
|
409
|
+
const se_SetPrincipalTagAttributeMapCommand = async (input, context) => {
|
|
410
|
+
const headers = sharedHeaders("SetPrincipalTagAttributeMap");
|
|
411
|
+
let body;
|
|
412
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
413
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
414
|
+
};
|
|
415
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
416
|
+
const headers = sharedHeaders("TagResource");
|
|
417
|
+
let body;
|
|
418
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
419
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
420
|
+
};
|
|
421
|
+
const se_UnlinkDeveloperIdentityCommand = async (input, context) => {
|
|
422
|
+
const headers = sharedHeaders("UnlinkDeveloperIdentity");
|
|
423
|
+
let body;
|
|
424
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
425
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
426
|
+
};
|
|
427
|
+
const se_UnlinkIdentityCommand = async (input, context) => {
|
|
428
|
+
const headers = sharedHeaders("UnlinkIdentity");
|
|
429
|
+
let body;
|
|
430
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
431
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
432
|
+
};
|
|
433
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
434
|
+
const headers = sharedHeaders("UntagResource");
|
|
435
|
+
let body;
|
|
436
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
437
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
438
|
+
};
|
|
439
|
+
const se_UpdateIdentityPoolCommand = async (input, context) => {
|
|
440
|
+
const headers = sharedHeaders("UpdateIdentityPool");
|
|
441
|
+
let body;
|
|
442
|
+
body = JSON.stringify(smithyClient._json(input));
|
|
443
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
444
|
+
};
|
|
445
|
+
const de_CreateIdentityPoolCommand = async (output, context) => {
|
|
446
|
+
if (output.statusCode >= 300) {
|
|
447
|
+
return de_CommandError(output, context);
|
|
448
|
+
}
|
|
449
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
450
|
+
let contents = {};
|
|
451
|
+
contents = smithyClient._json(data);
|
|
452
|
+
const response = {
|
|
453
|
+
$metadata: deserializeMetadata(output),
|
|
454
|
+
...contents,
|
|
455
|
+
};
|
|
456
|
+
return response;
|
|
457
|
+
};
|
|
458
|
+
const de_DeleteIdentitiesCommand = async (output, context) => {
|
|
459
|
+
if (output.statusCode >= 300) {
|
|
460
|
+
return de_CommandError(output, context);
|
|
461
|
+
}
|
|
462
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
463
|
+
let contents = {};
|
|
464
|
+
contents = smithyClient._json(data);
|
|
465
|
+
const response = {
|
|
466
|
+
$metadata: deserializeMetadata(output),
|
|
467
|
+
...contents,
|
|
468
|
+
};
|
|
469
|
+
return response;
|
|
470
|
+
};
|
|
471
|
+
const de_DeleteIdentityPoolCommand = async (output, context) => {
|
|
472
|
+
if (output.statusCode >= 300) {
|
|
473
|
+
return de_CommandError(output, context);
|
|
474
|
+
}
|
|
475
|
+
await smithyClient.collectBody(output.body, context);
|
|
476
|
+
const response = {
|
|
477
|
+
$metadata: deserializeMetadata(output),
|
|
478
|
+
};
|
|
479
|
+
return response;
|
|
480
|
+
};
|
|
481
|
+
const de_DescribeIdentityCommand = async (output, context) => {
|
|
482
|
+
if (output.statusCode >= 300) {
|
|
483
|
+
return de_CommandError(output, context);
|
|
484
|
+
}
|
|
485
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
486
|
+
let contents = {};
|
|
487
|
+
contents = de_IdentityDescription(data);
|
|
488
|
+
const response = {
|
|
489
|
+
$metadata: deserializeMetadata(output),
|
|
490
|
+
...contents,
|
|
491
|
+
};
|
|
492
|
+
return response;
|
|
493
|
+
};
|
|
494
|
+
const de_DescribeIdentityPoolCommand = async (output, context) => {
|
|
495
|
+
if (output.statusCode >= 300) {
|
|
496
|
+
return de_CommandError(output, context);
|
|
497
|
+
}
|
|
498
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
499
|
+
let contents = {};
|
|
500
|
+
contents = smithyClient._json(data);
|
|
501
|
+
const response = {
|
|
502
|
+
$metadata: deserializeMetadata(output),
|
|
503
|
+
...contents,
|
|
504
|
+
};
|
|
505
|
+
return response;
|
|
506
|
+
};
|
|
507
|
+
const de_GetCredentialsForIdentityCommand = async (output, context) => {
|
|
508
|
+
if (output.statusCode >= 300) {
|
|
509
|
+
return de_CommandError(output, context);
|
|
510
|
+
}
|
|
511
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
512
|
+
let contents = {};
|
|
513
|
+
contents = de_GetCredentialsForIdentityResponse(data);
|
|
514
|
+
const response = {
|
|
515
|
+
$metadata: deserializeMetadata(output),
|
|
516
|
+
...contents,
|
|
517
|
+
};
|
|
518
|
+
return response;
|
|
519
|
+
};
|
|
520
|
+
const de_GetIdCommand = async (output, context) => {
|
|
521
|
+
if (output.statusCode >= 300) {
|
|
522
|
+
return de_CommandError(output, context);
|
|
523
|
+
}
|
|
524
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
525
|
+
let contents = {};
|
|
526
|
+
contents = smithyClient._json(data);
|
|
527
|
+
const response = {
|
|
528
|
+
$metadata: deserializeMetadata(output),
|
|
529
|
+
...contents,
|
|
530
|
+
};
|
|
531
|
+
return response;
|
|
532
|
+
};
|
|
533
|
+
const de_GetIdentityPoolRolesCommand = async (output, context) => {
|
|
534
|
+
if (output.statusCode >= 300) {
|
|
535
|
+
return de_CommandError(output, context);
|
|
536
|
+
}
|
|
537
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
538
|
+
let contents = {};
|
|
539
|
+
contents = smithyClient._json(data);
|
|
540
|
+
const response = {
|
|
541
|
+
$metadata: deserializeMetadata(output),
|
|
542
|
+
...contents,
|
|
543
|
+
};
|
|
544
|
+
return response;
|
|
545
|
+
};
|
|
546
|
+
const de_GetOpenIdTokenCommand = async (output, context) => {
|
|
547
|
+
if (output.statusCode >= 300) {
|
|
548
|
+
return de_CommandError(output, context);
|
|
549
|
+
}
|
|
550
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
551
|
+
let contents = {};
|
|
552
|
+
contents = smithyClient._json(data);
|
|
553
|
+
const response = {
|
|
554
|
+
$metadata: deserializeMetadata(output),
|
|
555
|
+
...contents,
|
|
556
|
+
};
|
|
557
|
+
return response;
|
|
558
|
+
};
|
|
559
|
+
const de_GetOpenIdTokenForDeveloperIdentityCommand = async (output, context) => {
|
|
560
|
+
if (output.statusCode >= 300) {
|
|
561
|
+
return de_CommandError(output, context);
|
|
562
|
+
}
|
|
563
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
564
|
+
let contents = {};
|
|
565
|
+
contents = smithyClient._json(data);
|
|
566
|
+
const response = {
|
|
567
|
+
$metadata: deserializeMetadata(output),
|
|
568
|
+
...contents,
|
|
569
|
+
};
|
|
570
|
+
return response;
|
|
571
|
+
};
|
|
572
|
+
const de_GetPrincipalTagAttributeMapCommand = async (output, context) => {
|
|
573
|
+
if (output.statusCode >= 300) {
|
|
574
|
+
return de_CommandError(output, context);
|
|
575
|
+
}
|
|
576
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
577
|
+
let contents = {};
|
|
578
|
+
contents = smithyClient._json(data);
|
|
579
|
+
const response = {
|
|
580
|
+
$metadata: deserializeMetadata(output),
|
|
581
|
+
...contents,
|
|
582
|
+
};
|
|
583
|
+
return response;
|
|
584
|
+
};
|
|
585
|
+
const de_ListIdentitiesCommand = async (output, context) => {
|
|
586
|
+
if (output.statusCode >= 300) {
|
|
587
|
+
return de_CommandError(output, context);
|
|
588
|
+
}
|
|
589
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
590
|
+
let contents = {};
|
|
591
|
+
contents = de_ListIdentitiesResponse(data);
|
|
592
|
+
const response = {
|
|
593
|
+
$metadata: deserializeMetadata(output),
|
|
594
|
+
...contents,
|
|
595
|
+
};
|
|
596
|
+
return response;
|
|
597
|
+
};
|
|
598
|
+
const de_ListIdentityPoolsCommand = async (output, context) => {
|
|
599
|
+
if (output.statusCode >= 300) {
|
|
600
|
+
return de_CommandError(output, context);
|
|
601
|
+
}
|
|
602
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
603
|
+
let contents = {};
|
|
604
|
+
contents = smithyClient._json(data);
|
|
605
|
+
const response = {
|
|
606
|
+
$metadata: deserializeMetadata(output),
|
|
607
|
+
...contents,
|
|
608
|
+
};
|
|
609
|
+
return response;
|
|
610
|
+
};
|
|
611
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
612
|
+
if (output.statusCode >= 300) {
|
|
613
|
+
return de_CommandError(output, context);
|
|
614
|
+
}
|
|
615
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
616
|
+
let contents = {};
|
|
617
|
+
contents = smithyClient._json(data);
|
|
618
|
+
const response = {
|
|
619
|
+
$metadata: deserializeMetadata(output),
|
|
620
|
+
...contents,
|
|
621
|
+
};
|
|
622
|
+
return response;
|
|
623
|
+
};
|
|
624
|
+
const de_LookupDeveloperIdentityCommand = async (output, context) => {
|
|
625
|
+
if (output.statusCode >= 300) {
|
|
626
|
+
return de_CommandError(output, context);
|
|
627
|
+
}
|
|
628
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
629
|
+
let contents = {};
|
|
630
|
+
contents = smithyClient._json(data);
|
|
631
|
+
const response = {
|
|
632
|
+
$metadata: deserializeMetadata(output),
|
|
633
|
+
...contents,
|
|
634
|
+
};
|
|
635
|
+
return response;
|
|
636
|
+
};
|
|
637
|
+
const de_MergeDeveloperIdentitiesCommand = async (output, context) => {
|
|
638
|
+
if (output.statusCode >= 300) {
|
|
639
|
+
return de_CommandError(output, context);
|
|
640
|
+
}
|
|
641
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
642
|
+
let contents = {};
|
|
643
|
+
contents = smithyClient._json(data);
|
|
644
|
+
const response = {
|
|
645
|
+
$metadata: deserializeMetadata(output),
|
|
646
|
+
...contents,
|
|
647
|
+
};
|
|
648
|
+
return response;
|
|
649
|
+
};
|
|
650
|
+
const de_SetIdentityPoolRolesCommand = async (output, context) => {
|
|
651
|
+
if (output.statusCode >= 300) {
|
|
652
|
+
return de_CommandError(output, context);
|
|
653
|
+
}
|
|
654
|
+
await smithyClient.collectBody(output.body, context);
|
|
655
|
+
const response = {
|
|
656
|
+
$metadata: deserializeMetadata(output),
|
|
657
|
+
};
|
|
658
|
+
return response;
|
|
659
|
+
};
|
|
660
|
+
const de_SetPrincipalTagAttributeMapCommand = async (output, context) => {
|
|
661
|
+
if (output.statusCode >= 300) {
|
|
662
|
+
return de_CommandError(output, context);
|
|
663
|
+
}
|
|
664
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
665
|
+
let contents = {};
|
|
666
|
+
contents = smithyClient._json(data);
|
|
667
|
+
const response = {
|
|
668
|
+
$metadata: deserializeMetadata(output),
|
|
669
|
+
...contents,
|
|
670
|
+
};
|
|
671
|
+
return response;
|
|
672
|
+
};
|
|
673
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
674
|
+
if (output.statusCode >= 300) {
|
|
675
|
+
return de_CommandError(output, context);
|
|
676
|
+
}
|
|
677
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
678
|
+
let contents = {};
|
|
679
|
+
contents = smithyClient._json(data);
|
|
680
|
+
const response = {
|
|
681
|
+
$metadata: deserializeMetadata(output),
|
|
682
|
+
...contents,
|
|
683
|
+
};
|
|
684
|
+
return response;
|
|
685
|
+
};
|
|
686
|
+
const de_UnlinkDeveloperIdentityCommand = async (output, context) => {
|
|
687
|
+
if (output.statusCode >= 300) {
|
|
688
|
+
return de_CommandError(output, context);
|
|
689
|
+
}
|
|
690
|
+
await smithyClient.collectBody(output.body, context);
|
|
691
|
+
const response = {
|
|
692
|
+
$metadata: deserializeMetadata(output),
|
|
693
|
+
};
|
|
694
|
+
return response;
|
|
695
|
+
};
|
|
696
|
+
const de_UnlinkIdentityCommand = async (output, context) => {
|
|
697
|
+
if (output.statusCode >= 300) {
|
|
698
|
+
return de_CommandError(output, context);
|
|
699
|
+
}
|
|
700
|
+
await smithyClient.collectBody(output.body, context);
|
|
701
|
+
const response = {
|
|
702
|
+
$metadata: deserializeMetadata(output),
|
|
703
|
+
};
|
|
704
|
+
return response;
|
|
705
|
+
};
|
|
706
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
707
|
+
if (output.statusCode >= 300) {
|
|
708
|
+
return de_CommandError(output, context);
|
|
709
|
+
}
|
|
710
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
711
|
+
let contents = {};
|
|
712
|
+
contents = smithyClient._json(data);
|
|
713
|
+
const response = {
|
|
714
|
+
$metadata: deserializeMetadata(output),
|
|
715
|
+
...contents,
|
|
716
|
+
};
|
|
717
|
+
return response;
|
|
718
|
+
};
|
|
719
|
+
const de_UpdateIdentityPoolCommand = async (output, context) => {
|
|
720
|
+
if (output.statusCode >= 300) {
|
|
721
|
+
return de_CommandError(output, context);
|
|
722
|
+
}
|
|
723
|
+
const data = await core$1.parseJsonBody(output.body, context);
|
|
724
|
+
let contents = {};
|
|
725
|
+
contents = smithyClient._json(data);
|
|
726
|
+
const response = {
|
|
727
|
+
$metadata: deserializeMetadata(output),
|
|
728
|
+
...contents,
|
|
729
|
+
};
|
|
730
|
+
return response;
|
|
731
|
+
};
|
|
732
|
+
const de_CommandError = async (output, context) => {
|
|
733
|
+
const parsedOutput = {
|
|
734
|
+
...output,
|
|
735
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
736
|
+
};
|
|
737
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
738
|
+
switch (errorCode) {
|
|
739
|
+
case "InternalErrorException":
|
|
740
|
+
case "com.amazonaws.cognitoidentity#InternalErrorException":
|
|
741
|
+
throw await de_InternalErrorExceptionRes(parsedOutput);
|
|
742
|
+
case "InvalidParameterException":
|
|
743
|
+
case "com.amazonaws.cognitoidentity#InvalidParameterException":
|
|
744
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput);
|
|
745
|
+
case "LimitExceededException":
|
|
746
|
+
case "com.amazonaws.cognitoidentity#LimitExceededException":
|
|
747
|
+
throw await de_LimitExceededExceptionRes(parsedOutput);
|
|
748
|
+
case "NotAuthorizedException":
|
|
749
|
+
case "com.amazonaws.cognitoidentity#NotAuthorizedException":
|
|
750
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput);
|
|
751
|
+
case "ResourceConflictException":
|
|
752
|
+
case "com.amazonaws.cognitoidentity#ResourceConflictException":
|
|
753
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput);
|
|
754
|
+
case "TooManyRequestsException":
|
|
755
|
+
case "com.amazonaws.cognitoidentity#TooManyRequestsException":
|
|
756
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput);
|
|
757
|
+
case "ResourceNotFoundException":
|
|
758
|
+
case "com.amazonaws.cognitoidentity#ResourceNotFoundException":
|
|
759
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
760
|
+
case "ExternalServiceException":
|
|
761
|
+
case "com.amazonaws.cognitoidentity#ExternalServiceException":
|
|
762
|
+
throw await de_ExternalServiceExceptionRes(parsedOutput);
|
|
763
|
+
case "InvalidIdentityPoolConfigurationException":
|
|
764
|
+
case "com.amazonaws.cognitoidentity#InvalidIdentityPoolConfigurationException":
|
|
765
|
+
throw await de_InvalidIdentityPoolConfigurationExceptionRes(parsedOutput);
|
|
766
|
+
case "DeveloperUserAlreadyRegisteredException":
|
|
767
|
+
case "com.amazonaws.cognitoidentity#DeveloperUserAlreadyRegisteredException":
|
|
768
|
+
throw await de_DeveloperUserAlreadyRegisteredExceptionRes(parsedOutput);
|
|
769
|
+
case "ConcurrentModificationException":
|
|
770
|
+
case "com.amazonaws.cognitoidentity#ConcurrentModificationException":
|
|
771
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput);
|
|
772
|
+
default:
|
|
773
|
+
const parsedBody = parsedOutput.body;
|
|
774
|
+
return throwDefaultError({
|
|
775
|
+
output,
|
|
776
|
+
parsedBody,
|
|
777
|
+
errorCode,
|
|
778
|
+
});
|
|
779
|
+
}
|
|
780
|
+
};
|
|
781
|
+
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
782
|
+
const body = parsedOutput.body;
|
|
783
|
+
const deserialized = smithyClient._json(body);
|
|
784
|
+
const exception = new ConcurrentModificationException({
|
|
785
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
786
|
+
...deserialized,
|
|
787
|
+
});
|
|
788
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
789
|
+
};
|
|
790
|
+
const de_DeveloperUserAlreadyRegisteredExceptionRes = async (parsedOutput, context) => {
|
|
791
|
+
const body = parsedOutput.body;
|
|
792
|
+
const deserialized = smithyClient._json(body);
|
|
793
|
+
const exception = new DeveloperUserAlreadyRegisteredException({
|
|
794
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
795
|
+
...deserialized,
|
|
796
|
+
});
|
|
797
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
798
|
+
};
|
|
799
|
+
const de_ExternalServiceExceptionRes = async (parsedOutput, context) => {
|
|
800
|
+
const body = parsedOutput.body;
|
|
801
|
+
const deserialized = smithyClient._json(body);
|
|
802
|
+
const exception = new ExternalServiceException({
|
|
803
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
804
|
+
...deserialized,
|
|
805
|
+
});
|
|
806
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
1398
807
|
};
|
|
808
|
+
const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
|
|
809
|
+
const body = parsedOutput.body;
|
|
810
|
+
const deserialized = smithyClient._json(body);
|
|
811
|
+
const exception = new InternalErrorException({
|
|
812
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
813
|
+
...deserialized,
|
|
814
|
+
});
|
|
815
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
816
|
+
};
|
|
817
|
+
const de_InvalidIdentityPoolConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
818
|
+
const body = parsedOutput.body;
|
|
819
|
+
const deserialized = smithyClient._json(body);
|
|
820
|
+
const exception = new InvalidIdentityPoolConfigurationException({
|
|
821
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
822
|
+
...deserialized,
|
|
823
|
+
});
|
|
824
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
825
|
+
};
|
|
826
|
+
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
827
|
+
const body = parsedOutput.body;
|
|
828
|
+
const deserialized = smithyClient._json(body);
|
|
829
|
+
const exception = new InvalidParameterException({
|
|
830
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
831
|
+
...deserialized,
|
|
832
|
+
});
|
|
833
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
834
|
+
};
|
|
835
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
836
|
+
const body = parsedOutput.body;
|
|
837
|
+
const deserialized = smithyClient._json(body);
|
|
838
|
+
const exception = new LimitExceededException({
|
|
839
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
840
|
+
...deserialized,
|
|
841
|
+
});
|
|
842
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
843
|
+
};
|
|
844
|
+
const de_NotAuthorizedExceptionRes = async (parsedOutput, context) => {
|
|
845
|
+
const body = parsedOutput.body;
|
|
846
|
+
const deserialized = smithyClient._json(body);
|
|
847
|
+
const exception = new NotAuthorizedException({
|
|
848
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
849
|
+
...deserialized,
|
|
850
|
+
});
|
|
851
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
852
|
+
};
|
|
853
|
+
const de_ResourceConflictExceptionRes = async (parsedOutput, context) => {
|
|
854
|
+
const body = parsedOutput.body;
|
|
855
|
+
const deserialized = smithyClient._json(body);
|
|
856
|
+
const exception = new ResourceConflictException({
|
|
857
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
858
|
+
...deserialized,
|
|
859
|
+
});
|
|
860
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
861
|
+
};
|
|
862
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
863
|
+
const body = parsedOutput.body;
|
|
864
|
+
const deserialized = smithyClient._json(body);
|
|
865
|
+
const exception = new ResourceNotFoundException({
|
|
866
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
867
|
+
...deserialized,
|
|
868
|
+
});
|
|
869
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
870
|
+
};
|
|
871
|
+
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
872
|
+
const body = parsedOutput.body;
|
|
873
|
+
const deserialized = smithyClient._json(body);
|
|
874
|
+
const exception = new TooManyRequestsException({
|
|
875
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
876
|
+
...deserialized,
|
|
877
|
+
});
|
|
878
|
+
return smithyClient.decorateServiceException(exception, body);
|
|
879
|
+
};
|
|
880
|
+
const de_Credentials = (output, context) => {
|
|
881
|
+
return smithyClient.take(output, {
|
|
882
|
+
AccessKeyId: smithyClient.expectString,
|
|
883
|
+
Expiration: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
884
|
+
SecretKey: smithyClient.expectString,
|
|
885
|
+
SessionToken: smithyClient.expectString,
|
|
886
|
+
});
|
|
887
|
+
};
|
|
888
|
+
const de_GetCredentialsForIdentityResponse = (output, context) => {
|
|
889
|
+
return smithyClient.take(output, {
|
|
890
|
+
Credentials: (_) => de_Credentials(_),
|
|
891
|
+
IdentityId: smithyClient.expectString,
|
|
892
|
+
});
|
|
893
|
+
};
|
|
894
|
+
const de_IdentitiesList = (output, context) => {
|
|
895
|
+
const retVal = (output || [])
|
|
896
|
+
.filter((e) => e != null)
|
|
897
|
+
.map((entry) => {
|
|
898
|
+
return de_IdentityDescription(entry);
|
|
899
|
+
});
|
|
900
|
+
return retVal;
|
|
901
|
+
};
|
|
902
|
+
const de_IdentityDescription = (output, context) => {
|
|
903
|
+
return smithyClient.take(output, {
|
|
904
|
+
CreationDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
905
|
+
IdentityId: smithyClient.expectString,
|
|
906
|
+
LastModifiedDate: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
907
|
+
Logins: smithyClient._json,
|
|
908
|
+
});
|
|
909
|
+
};
|
|
910
|
+
const de_ListIdentitiesResponse = (output, context) => {
|
|
911
|
+
return smithyClient.take(output, {
|
|
912
|
+
Identities: (_) => de_IdentitiesList(_),
|
|
913
|
+
IdentityPoolId: smithyClient.expectString,
|
|
914
|
+
NextToken: smithyClient.expectString,
|
|
915
|
+
});
|
|
916
|
+
};
|
|
917
|
+
const deserializeMetadata = (output) => ({
|
|
918
|
+
httpStatusCode: output.statusCode,
|
|
919
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
920
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
921
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
922
|
+
});
|
|
923
|
+
const throwDefaultError = smithyClient.withBaseException(CognitoIdentityServiceException);
|
|
924
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
925
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
926
|
+
const contents = {
|
|
927
|
+
protocol,
|
|
928
|
+
hostname,
|
|
929
|
+
port,
|
|
930
|
+
method: "POST",
|
|
931
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
932
|
+
headers,
|
|
933
|
+
};
|
|
934
|
+
if (body !== undefined) {
|
|
935
|
+
contents.body = body;
|
|
936
|
+
}
|
|
937
|
+
return new protocolHttp.HttpRequest(contents);
|
|
938
|
+
};
|
|
939
|
+
function sharedHeaders(operation) {
|
|
940
|
+
return {
|
|
941
|
+
"content-type": "application/x-amz-json-1.1",
|
|
942
|
+
"x-amz-target": `AWSCognitoIdentityService.${operation}`,
|
|
943
|
+
};
|
|
944
|
+
}
|
|
1399
945
|
|
|
1400
|
-
|
|
946
|
+
class CreateIdentityPoolCommand extends smithyClient.Command
|
|
947
|
+
.classBuilder()
|
|
948
|
+
.ep(commonParams)
|
|
949
|
+
.m(function (Command, cs, config, o) {
|
|
950
|
+
return [
|
|
951
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
952
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
953
|
+
];
|
|
954
|
+
})
|
|
955
|
+
.s("AWSCognitoIdentityService", "CreateIdentityPool", {})
|
|
956
|
+
.n("CognitoIdentityClient", "CreateIdentityPoolCommand")
|
|
957
|
+
.f(void 0, void 0)
|
|
958
|
+
.ser(se_CreateIdentityPoolCommand)
|
|
959
|
+
.de(de_CreateIdentityPoolCommand)
|
|
960
|
+
.build() {
|
|
961
|
+
}
|
|
1401
962
|
|
|
963
|
+
class DeleteIdentitiesCommand extends smithyClient.Command
|
|
964
|
+
.classBuilder()
|
|
965
|
+
.ep(commonParams)
|
|
966
|
+
.m(function (Command, cs, config, o) {
|
|
967
|
+
return [
|
|
968
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
969
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
970
|
+
];
|
|
971
|
+
})
|
|
972
|
+
.s("AWSCognitoIdentityService", "DeleteIdentities", {})
|
|
973
|
+
.n("CognitoIdentityClient", "DeleteIdentitiesCommand")
|
|
974
|
+
.f(void 0, void 0)
|
|
975
|
+
.ser(se_DeleteIdentitiesCommand)
|
|
976
|
+
.de(de_DeleteIdentitiesCommand)
|
|
977
|
+
.build() {
|
|
978
|
+
}
|
|
1402
979
|
|
|
980
|
+
class DeleteIdentityPoolCommand extends smithyClient.Command
|
|
981
|
+
.classBuilder()
|
|
982
|
+
.ep(commonParams)
|
|
983
|
+
.m(function (Command, cs, config, o) {
|
|
984
|
+
return [
|
|
985
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
986
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
987
|
+
];
|
|
988
|
+
})
|
|
989
|
+
.s("AWSCognitoIdentityService", "DeleteIdentityPool", {})
|
|
990
|
+
.n("CognitoIdentityClient", "DeleteIdentityPoolCommand")
|
|
991
|
+
.f(void 0, void 0)
|
|
992
|
+
.ser(se_DeleteIdentityPoolCommand)
|
|
993
|
+
.de(de_DeleteIdentityPoolCommand)
|
|
994
|
+
.build() {
|
|
995
|
+
}
|
|
1403
996
|
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
(
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
}
|
|
997
|
+
class DescribeIdentityCommand extends smithyClient.Command
|
|
998
|
+
.classBuilder()
|
|
999
|
+
.ep(commonParams)
|
|
1000
|
+
.m(function (Command, cs, config, o) {
|
|
1001
|
+
return [
|
|
1002
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1003
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1004
|
+
];
|
|
1005
|
+
})
|
|
1006
|
+
.s("AWSCognitoIdentityService", "DescribeIdentity", {})
|
|
1007
|
+
.n("CognitoIdentityClient", "DescribeIdentityCommand")
|
|
1008
|
+
.f(void 0, void 0)
|
|
1009
|
+
.ser(se_DescribeIdentityCommand)
|
|
1010
|
+
.de(de_DescribeIdentityCommand)
|
|
1011
|
+
.build() {
|
|
1012
|
+
}
|
|
1414
1013
|
|
|
1415
|
-
|
|
1014
|
+
class DescribeIdentityPoolCommand extends smithyClient.Command
|
|
1015
|
+
.classBuilder()
|
|
1016
|
+
.ep(commonParams)
|
|
1017
|
+
.m(function (Command, cs, config, o) {
|
|
1018
|
+
return [
|
|
1019
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1020
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1021
|
+
];
|
|
1022
|
+
})
|
|
1023
|
+
.s("AWSCognitoIdentityService", "DescribeIdentityPool", {})
|
|
1024
|
+
.n("CognitoIdentityClient", "DescribeIdentityPoolCommand")
|
|
1025
|
+
.f(void 0, void 0)
|
|
1026
|
+
.ser(se_DescribeIdentityPoolCommand)
|
|
1027
|
+
.de(de_DescribeIdentityPoolCommand)
|
|
1028
|
+
.build() {
|
|
1029
|
+
}
|
|
1416
1030
|
|
|
1031
|
+
class GetCredentialsForIdentityCommand extends smithyClient.Command
|
|
1032
|
+
.classBuilder()
|
|
1033
|
+
.ep(commonParams)
|
|
1034
|
+
.m(function (Command, cs, config, o) {
|
|
1035
|
+
return [
|
|
1036
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1037
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1038
|
+
];
|
|
1039
|
+
})
|
|
1040
|
+
.s("AWSCognitoIdentityService", "GetCredentialsForIdentity", {})
|
|
1041
|
+
.n("CognitoIdentityClient", "GetCredentialsForIdentityCommand")
|
|
1042
|
+
.f(GetCredentialsForIdentityInputFilterSensitiveLog, GetCredentialsForIdentityResponseFilterSensitiveLog)
|
|
1043
|
+
.ser(se_GetCredentialsForIdentityCommand)
|
|
1044
|
+
.de(de_GetCredentialsForIdentityCommand)
|
|
1045
|
+
.build() {
|
|
1046
|
+
}
|
|
1417
1047
|
|
|
1048
|
+
class GetIdCommand extends smithyClient.Command
|
|
1049
|
+
.classBuilder()
|
|
1050
|
+
.ep(commonParams)
|
|
1051
|
+
.m(function (Command, cs, config, o) {
|
|
1052
|
+
return [
|
|
1053
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1054
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1055
|
+
];
|
|
1056
|
+
})
|
|
1057
|
+
.s("AWSCognitoIdentityService", "GetId", {})
|
|
1058
|
+
.n("CognitoIdentityClient", "GetIdCommand")
|
|
1059
|
+
.f(GetIdInputFilterSensitiveLog, void 0)
|
|
1060
|
+
.ser(se_GetIdCommand)
|
|
1061
|
+
.de(de_GetIdCommand)
|
|
1062
|
+
.build() {
|
|
1063
|
+
}
|
|
1418
1064
|
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
(
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
}
|
|
1065
|
+
class GetIdentityPoolRolesCommand extends smithyClient.Command
|
|
1066
|
+
.classBuilder()
|
|
1067
|
+
.ep(commonParams)
|
|
1068
|
+
.m(function (Command, cs, config, o) {
|
|
1069
|
+
return [
|
|
1070
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1071
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1072
|
+
];
|
|
1073
|
+
})
|
|
1074
|
+
.s("AWSCognitoIdentityService", "GetIdentityPoolRoles", {})
|
|
1075
|
+
.n("CognitoIdentityClient", "GetIdentityPoolRolesCommand")
|
|
1076
|
+
.f(void 0, void 0)
|
|
1077
|
+
.ser(se_GetIdentityPoolRolesCommand)
|
|
1078
|
+
.de(de_GetIdentityPoolRolesCommand)
|
|
1079
|
+
.build() {
|
|
1080
|
+
}
|
|
1429
1081
|
|
|
1430
|
-
|
|
1082
|
+
class GetOpenIdTokenCommand extends smithyClient.Command
|
|
1083
|
+
.classBuilder()
|
|
1084
|
+
.ep(commonParams)
|
|
1085
|
+
.m(function (Command, cs, config, o) {
|
|
1086
|
+
return [
|
|
1087
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1088
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1089
|
+
];
|
|
1090
|
+
})
|
|
1091
|
+
.s("AWSCognitoIdentityService", "GetOpenIdToken", {})
|
|
1092
|
+
.n("CognitoIdentityClient", "GetOpenIdTokenCommand")
|
|
1093
|
+
.f(GetOpenIdTokenInputFilterSensitiveLog, GetOpenIdTokenResponseFilterSensitiveLog)
|
|
1094
|
+
.ser(se_GetOpenIdTokenCommand)
|
|
1095
|
+
.de(de_GetOpenIdTokenCommand)
|
|
1096
|
+
.build() {
|
|
1097
|
+
}
|
|
1431
1098
|
|
|
1099
|
+
class GetOpenIdTokenForDeveloperIdentityCommand extends smithyClient.Command
|
|
1100
|
+
.classBuilder()
|
|
1101
|
+
.ep(commonParams)
|
|
1102
|
+
.m(function (Command, cs, config, o) {
|
|
1103
|
+
return [
|
|
1104
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1105
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1106
|
+
];
|
|
1107
|
+
})
|
|
1108
|
+
.s("AWSCognitoIdentityService", "GetOpenIdTokenForDeveloperIdentity", {})
|
|
1109
|
+
.n("CognitoIdentityClient", "GetOpenIdTokenForDeveloperIdentityCommand")
|
|
1110
|
+
.f(GetOpenIdTokenForDeveloperIdentityInputFilterSensitiveLog, GetOpenIdTokenForDeveloperIdentityResponseFilterSensitiveLog)
|
|
1111
|
+
.ser(se_GetOpenIdTokenForDeveloperIdentityCommand)
|
|
1112
|
+
.de(de_GetOpenIdTokenForDeveloperIdentityCommand)
|
|
1113
|
+
.build() {
|
|
1114
|
+
}
|
|
1432
1115
|
|
|
1116
|
+
class GetPrincipalTagAttributeMapCommand extends smithyClient.Command
|
|
1117
|
+
.classBuilder()
|
|
1118
|
+
.ep(commonParams)
|
|
1119
|
+
.m(function (Command, cs, config, o) {
|
|
1120
|
+
return [
|
|
1121
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1122
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1123
|
+
];
|
|
1124
|
+
})
|
|
1125
|
+
.s("AWSCognitoIdentityService", "GetPrincipalTagAttributeMap", {})
|
|
1126
|
+
.n("CognitoIdentityClient", "GetPrincipalTagAttributeMapCommand")
|
|
1127
|
+
.f(void 0, void 0)
|
|
1128
|
+
.ser(se_GetPrincipalTagAttributeMapCommand)
|
|
1129
|
+
.de(de_GetPrincipalTagAttributeMapCommand)
|
|
1130
|
+
.build() {
|
|
1131
|
+
}
|
|
1433
1132
|
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
(
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
}
|
|
1133
|
+
class ListIdentitiesCommand extends smithyClient.Command
|
|
1134
|
+
.classBuilder()
|
|
1135
|
+
.ep(commonParams)
|
|
1136
|
+
.m(function (Command, cs, config, o) {
|
|
1137
|
+
return [
|
|
1138
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1139
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1140
|
+
];
|
|
1141
|
+
})
|
|
1142
|
+
.s("AWSCognitoIdentityService", "ListIdentities", {})
|
|
1143
|
+
.n("CognitoIdentityClient", "ListIdentitiesCommand")
|
|
1144
|
+
.f(void 0, void 0)
|
|
1145
|
+
.ser(se_ListIdentitiesCommand)
|
|
1146
|
+
.de(de_ListIdentitiesCommand)
|
|
1147
|
+
.build() {
|
|
1148
|
+
}
|
|
1444
1149
|
|
|
1445
|
-
|
|
1150
|
+
class ListIdentityPoolsCommand extends smithyClient.Command
|
|
1151
|
+
.classBuilder()
|
|
1152
|
+
.ep(commonParams)
|
|
1153
|
+
.m(function (Command, cs, config, o) {
|
|
1154
|
+
return [
|
|
1155
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1156
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1157
|
+
];
|
|
1158
|
+
})
|
|
1159
|
+
.s("AWSCognitoIdentityService", "ListIdentityPools", {})
|
|
1160
|
+
.n("CognitoIdentityClient", "ListIdentityPoolsCommand")
|
|
1161
|
+
.f(void 0, void 0)
|
|
1162
|
+
.ser(se_ListIdentityPoolsCommand)
|
|
1163
|
+
.de(de_ListIdentityPoolsCommand)
|
|
1164
|
+
.build() {
|
|
1165
|
+
}
|
|
1446
1166
|
|
|
1167
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
1168
|
+
.classBuilder()
|
|
1169
|
+
.ep(commonParams)
|
|
1170
|
+
.m(function (Command, cs, config, o) {
|
|
1171
|
+
return [
|
|
1172
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1173
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1174
|
+
];
|
|
1175
|
+
})
|
|
1176
|
+
.s("AWSCognitoIdentityService", "ListTagsForResource", {})
|
|
1177
|
+
.n("CognitoIdentityClient", "ListTagsForResourceCommand")
|
|
1178
|
+
.f(void 0, void 0)
|
|
1179
|
+
.ser(se_ListTagsForResourceCommand)
|
|
1180
|
+
.de(de_ListTagsForResourceCommand)
|
|
1181
|
+
.build() {
|
|
1182
|
+
}
|
|
1447
1183
|
|
|
1184
|
+
class LookupDeveloperIdentityCommand extends smithyClient.Command
|
|
1185
|
+
.classBuilder()
|
|
1186
|
+
.ep(commonParams)
|
|
1187
|
+
.m(function (Command, cs, config, o) {
|
|
1188
|
+
return [
|
|
1189
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1190
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1191
|
+
];
|
|
1192
|
+
})
|
|
1193
|
+
.s("AWSCognitoIdentityService", "LookupDeveloperIdentity", {})
|
|
1194
|
+
.n("CognitoIdentityClient", "LookupDeveloperIdentityCommand")
|
|
1195
|
+
.f(void 0, void 0)
|
|
1196
|
+
.ser(se_LookupDeveloperIdentityCommand)
|
|
1197
|
+
.de(de_LookupDeveloperIdentityCommand)
|
|
1198
|
+
.build() {
|
|
1199
|
+
}
|
|
1448
1200
|
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
(
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
}
|
|
1201
|
+
class MergeDeveloperIdentitiesCommand extends smithyClient.Command
|
|
1202
|
+
.classBuilder()
|
|
1203
|
+
.ep(commonParams)
|
|
1204
|
+
.m(function (Command, cs, config, o) {
|
|
1205
|
+
return [
|
|
1206
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1207
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1208
|
+
];
|
|
1209
|
+
})
|
|
1210
|
+
.s("AWSCognitoIdentityService", "MergeDeveloperIdentities", {})
|
|
1211
|
+
.n("CognitoIdentityClient", "MergeDeveloperIdentitiesCommand")
|
|
1212
|
+
.f(void 0, void 0)
|
|
1213
|
+
.ser(se_MergeDeveloperIdentitiesCommand)
|
|
1214
|
+
.de(de_MergeDeveloperIdentitiesCommand)
|
|
1215
|
+
.build() {
|
|
1216
|
+
}
|
|
1459
1217
|
|
|
1460
|
-
|
|
1218
|
+
class SetIdentityPoolRolesCommand extends smithyClient.Command
|
|
1219
|
+
.classBuilder()
|
|
1220
|
+
.ep(commonParams)
|
|
1221
|
+
.m(function (Command, cs, config, o) {
|
|
1222
|
+
return [
|
|
1223
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1224
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1225
|
+
];
|
|
1226
|
+
})
|
|
1227
|
+
.s("AWSCognitoIdentityService", "SetIdentityPoolRoles", {})
|
|
1228
|
+
.n("CognitoIdentityClient", "SetIdentityPoolRolesCommand")
|
|
1229
|
+
.f(void 0, void 0)
|
|
1230
|
+
.ser(se_SetIdentityPoolRolesCommand)
|
|
1231
|
+
.de(de_SetIdentityPoolRolesCommand)
|
|
1232
|
+
.build() {
|
|
1233
|
+
}
|
|
1461
1234
|
|
|
1235
|
+
class SetPrincipalTagAttributeMapCommand extends smithyClient.Command
|
|
1236
|
+
.classBuilder()
|
|
1237
|
+
.ep(commonParams)
|
|
1238
|
+
.m(function (Command, cs, config, o) {
|
|
1239
|
+
return [
|
|
1240
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1241
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1242
|
+
];
|
|
1243
|
+
})
|
|
1244
|
+
.s("AWSCognitoIdentityService", "SetPrincipalTagAttributeMap", {})
|
|
1245
|
+
.n("CognitoIdentityClient", "SetPrincipalTagAttributeMapCommand")
|
|
1246
|
+
.f(void 0, void 0)
|
|
1247
|
+
.ser(se_SetPrincipalTagAttributeMapCommand)
|
|
1248
|
+
.de(de_SetPrincipalTagAttributeMapCommand)
|
|
1249
|
+
.build() {
|
|
1250
|
+
}
|
|
1462
1251
|
|
|
1252
|
+
class TagResourceCommand extends smithyClient.Command
|
|
1253
|
+
.classBuilder()
|
|
1254
|
+
.ep(commonParams)
|
|
1255
|
+
.m(function (Command, cs, config, o) {
|
|
1256
|
+
return [
|
|
1257
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1258
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1259
|
+
];
|
|
1260
|
+
})
|
|
1261
|
+
.s("AWSCognitoIdentityService", "TagResource", {})
|
|
1262
|
+
.n("CognitoIdentityClient", "TagResourceCommand")
|
|
1263
|
+
.f(void 0, void 0)
|
|
1264
|
+
.ser(se_TagResourceCommand)
|
|
1265
|
+
.de(de_TagResourceCommand)
|
|
1266
|
+
.build() {
|
|
1267
|
+
}
|
|
1463
1268
|
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
(
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
}
|
|
1269
|
+
class UnlinkDeveloperIdentityCommand extends smithyClient.Command
|
|
1270
|
+
.classBuilder()
|
|
1271
|
+
.ep(commonParams)
|
|
1272
|
+
.m(function (Command, cs, config, o) {
|
|
1273
|
+
return [
|
|
1274
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1275
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1276
|
+
];
|
|
1277
|
+
})
|
|
1278
|
+
.s("AWSCognitoIdentityService", "UnlinkDeveloperIdentity", {})
|
|
1279
|
+
.n("CognitoIdentityClient", "UnlinkDeveloperIdentityCommand")
|
|
1280
|
+
.f(void 0, void 0)
|
|
1281
|
+
.ser(se_UnlinkDeveloperIdentityCommand)
|
|
1282
|
+
.de(de_UnlinkDeveloperIdentityCommand)
|
|
1283
|
+
.build() {
|
|
1284
|
+
}
|
|
1474
1285
|
|
|
1475
|
-
|
|
1286
|
+
class UnlinkIdentityCommand extends smithyClient.Command
|
|
1287
|
+
.classBuilder()
|
|
1288
|
+
.ep(commonParams)
|
|
1289
|
+
.m(function (Command, cs, config, o) {
|
|
1290
|
+
return [
|
|
1291
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1292
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1293
|
+
];
|
|
1294
|
+
})
|
|
1295
|
+
.s("AWSCognitoIdentityService", "UnlinkIdentity", {})
|
|
1296
|
+
.n("CognitoIdentityClient", "UnlinkIdentityCommand")
|
|
1297
|
+
.f(UnlinkIdentityInputFilterSensitiveLog, void 0)
|
|
1298
|
+
.ser(se_UnlinkIdentityCommand)
|
|
1299
|
+
.de(de_UnlinkIdentityCommand)
|
|
1300
|
+
.build() {
|
|
1301
|
+
}
|
|
1476
1302
|
|
|
1303
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
1304
|
+
.classBuilder()
|
|
1305
|
+
.ep(commonParams)
|
|
1306
|
+
.m(function (Command, cs, config, o) {
|
|
1307
|
+
return [
|
|
1308
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1309
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1310
|
+
];
|
|
1311
|
+
})
|
|
1312
|
+
.s("AWSCognitoIdentityService", "UntagResource", {})
|
|
1313
|
+
.n("CognitoIdentityClient", "UntagResourceCommand")
|
|
1314
|
+
.f(void 0, void 0)
|
|
1315
|
+
.ser(se_UntagResourceCommand)
|
|
1316
|
+
.de(de_UntagResourceCommand)
|
|
1317
|
+
.build() {
|
|
1318
|
+
}
|
|
1477
1319
|
|
|
1320
|
+
class UpdateIdentityPoolCommand extends smithyClient.Command
|
|
1321
|
+
.classBuilder()
|
|
1322
|
+
.ep(commonParams)
|
|
1323
|
+
.m(function (Command, cs, config, o) {
|
|
1324
|
+
return [
|
|
1325
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1326
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1327
|
+
];
|
|
1328
|
+
})
|
|
1329
|
+
.s("AWSCognitoIdentityService", "UpdateIdentityPool", {})
|
|
1330
|
+
.n("CognitoIdentityClient", "UpdateIdentityPoolCommand")
|
|
1331
|
+
.f(void 0, void 0)
|
|
1332
|
+
.ser(se_UpdateIdentityPoolCommand)
|
|
1333
|
+
.de(de_UpdateIdentityPoolCommand)
|
|
1334
|
+
.build() {
|
|
1335
|
+
}
|
|
1478
1336
|
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1337
|
+
const commands = {
|
|
1338
|
+
CreateIdentityPoolCommand,
|
|
1339
|
+
DeleteIdentitiesCommand,
|
|
1340
|
+
DeleteIdentityPoolCommand,
|
|
1341
|
+
DescribeIdentityCommand,
|
|
1342
|
+
DescribeIdentityPoolCommand,
|
|
1343
|
+
GetCredentialsForIdentityCommand,
|
|
1344
|
+
GetIdCommand,
|
|
1345
|
+
GetIdentityPoolRolesCommand,
|
|
1346
|
+
GetOpenIdTokenCommand,
|
|
1347
|
+
GetOpenIdTokenForDeveloperIdentityCommand,
|
|
1348
|
+
GetPrincipalTagAttributeMapCommand,
|
|
1349
|
+
ListIdentitiesCommand,
|
|
1350
|
+
ListIdentityPoolsCommand,
|
|
1351
|
+
ListTagsForResourceCommand,
|
|
1352
|
+
LookupDeveloperIdentityCommand,
|
|
1353
|
+
MergeDeveloperIdentitiesCommand,
|
|
1354
|
+
SetIdentityPoolRolesCommand,
|
|
1355
|
+
SetPrincipalTagAttributeMapCommand,
|
|
1356
|
+
TagResourceCommand,
|
|
1357
|
+
UnlinkDeveloperIdentityCommand,
|
|
1358
|
+
UnlinkIdentityCommand,
|
|
1359
|
+
UntagResourceCommand,
|
|
1360
|
+
UpdateIdentityPoolCommand,
|
|
1488
1361
|
};
|
|
1362
|
+
class CognitoIdentity extends CognitoIdentityClient {
|
|
1363
|
+
}
|
|
1364
|
+
smithyClient.createAggregatedClient(commands, CognitoIdentity);
|
|
1489
1365
|
|
|
1490
|
-
|
|
1491
|
-
var commands = {
|
|
1492
|
-
CreateIdentityPoolCommand,
|
|
1493
|
-
DeleteIdentitiesCommand,
|
|
1494
|
-
DeleteIdentityPoolCommand,
|
|
1495
|
-
DescribeIdentityCommand,
|
|
1496
|
-
DescribeIdentityPoolCommand,
|
|
1497
|
-
GetCredentialsForIdentityCommand,
|
|
1498
|
-
GetIdCommand,
|
|
1499
|
-
GetIdentityPoolRolesCommand,
|
|
1500
|
-
GetOpenIdTokenCommand,
|
|
1501
|
-
GetOpenIdTokenForDeveloperIdentityCommand,
|
|
1502
|
-
GetPrincipalTagAttributeMapCommand,
|
|
1503
|
-
ListIdentitiesCommand,
|
|
1504
|
-
ListIdentityPoolsCommand,
|
|
1505
|
-
ListTagsForResourceCommand,
|
|
1506
|
-
LookupDeveloperIdentityCommand,
|
|
1507
|
-
MergeDeveloperIdentitiesCommand,
|
|
1508
|
-
SetIdentityPoolRolesCommand,
|
|
1509
|
-
SetPrincipalTagAttributeMapCommand,
|
|
1510
|
-
TagResourceCommand,
|
|
1511
|
-
UnlinkDeveloperIdentityCommand,
|
|
1512
|
-
UnlinkIdentityCommand,
|
|
1513
|
-
UntagResourceCommand,
|
|
1514
|
-
UpdateIdentityPoolCommand
|
|
1515
|
-
};
|
|
1516
|
-
var CognitoIdentity = class extends CognitoIdentityClient {
|
|
1517
|
-
static {
|
|
1518
|
-
__name(this, "CognitoIdentity");
|
|
1519
|
-
}
|
|
1520
|
-
};
|
|
1521
|
-
(0, import_smithy_client.createAggregatedClient)(commands, CognitoIdentity);
|
|
1522
|
-
|
|
1523
|
-
// src/pagination/ListIdentityPoolsPaginator.ts
|
|
1524
|
-
|
|
1525
|
-
var paginateListIdentityPools = (0, import_core.createPaginator)(CognitoIdentityClient, ListIdentityPoolsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1526
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1366
|
+
const paginateListIdentityPools = core.createPaginator(CognitoIdentityClient, ListIdentityPoolsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1527
1367
|
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
CognitoIdentityClient,
|
|
1532
|
-
CognitoIdentity,
|
|
1533
|
-
$Command,
|
|
1534
|
-
CreateIdentityPoolCommand,
|
|
1535
|
-
DeleteIdentitiesCommand,
|
|
1536
|
-
DeleteIdentityPoolCommand,
|
|
1537
|
-
DescribeIdentityCommand,
|
|
1538
|
-
DescribeIdentityPoolCommand,
|
|
1539
|
-
GetCredentialsForIdentityCommand,
|
|
1540
|
-
GetIdCommand,
|
|
1541
|
-
GetIdentityPoolRolesCommand,
|
|
1542
|
-
GetOpenIdTokenCommand,
|
|
1543
|
-
GetOpenIdTokenForDeveloperIdentityCommand,
|
|
1544
|
-
GetPrincipalTagAttributeMapCommand,
|
|
1545
|
-
ListIdentitiesCommand,
|
|
1546
|
-
ListIdentityPoolsCommand,
|
|
1547
|
-
ListTagsForResourceCommand,
|
|
1548
|
-
LookupDeveloperIdentityCommand,
|
|
1549
|
-
MergeDeveloperIdentitiesCommand,
|
|
1550
|
-
SetIdentityPoolRolesCommand,
|
|
1551
|
-
SetPrincipalTagAttributeMapCommand,
|
|
1552
|
-
TagResourceCommand,
|
|
1553
|
-
UnlinkDeveloperIdentityCommand,
|
|
1554
|
-
UnlinkIdentityCommand,
|
|
1555
|
-
UntagResourceCommand,
|
|
1556
|
-
UpdateIdentityPoolCommand,
|
|
1557
|
-
paginateListIdentityPools,
|
|
1558
|
-
AmbiguousRoleResolutionType,
|
|
1559
|
-
InternalErrorException,
|
|
1560
|
-
InvalidParameterException,
|
|
1561
|
-
LimitExceededException,
|
|
1562
|
-
NotAuthorizedException,
|
|
1563
|
-
ResourceConflictException,
|
|
1564
|
-
TooManyRequestsException,
|
|
1565
|
-
ErrorCode,
|
|
1566
|
-
ResourceNotFoundException,
|
|
1567
|
-
ExternalServiceException,
|
|
1568
|
-
InvalidIdentityPoolConfigurationException,
|
|
1569
|
-
MappingRuleMatchType,
|
|
1570
|
-
RoleMappingType,
|
|
1571
|
-
DeveloperUserAlreadyRegisteredException,
|
|
1572
|
-
ConcurrentModificationException,
|
|
1573
|
-
GetCredentialsForIdentityInputFilterSensitiveLog,
|
|
1574
|
-
CredentialsFilterSensitiveLog,
|
|
1575
|
-
GetCredentialsForIdentityResponseFilterSensitiveLog,
|
|
1576
|
-
GetIdInputFilterSensitiveLog,
|
|
1577
|
-
GetOpenIdTokenInputFilterSensitiveLog,
|
|
1578
|
-
GetOpenIdTokenResponseFilterSensitiveLog,
|
|
1579
|
-
GetOpenIdTokenForDeveloperIdentityInputFilterSensitiveLog,
|
|
1580
|
-
GetOpenIdTokenForDeveloperIdentityResponseFilterSensitiveLog,
|
|
1581
|
-
UnlinkIdentityInputFilterSensitiveLog
|
|
1368
|
+
Object.defineProperty(exports, "$Command", {
|
|
1369
|
+
enumerable: true,
|
|
1370
|
+
get: function () { return smithyClient.Command; }
|
|
1582
1371
|
});
|
|
1583
|
-
|
|
1372
|
+
Object.defineProperty(exports, "__Client", {
|
|
1373
|
+
enumerable: true,
|
|
1374
|
+
get: function () { return smithyClient.Client; }
|
|
1375
|
+
});
|
|
1376
|
+
exports.AmbiguousRoleResolutionType = AmbiguousRoleResolutionType;
|
|
1377
|
+
exports.CognitoIdentity = CognitoIdentity;
|
|
1378
|
+
exports.CognitoIdentityClient = CognitoIdentityClient;
|
|
1379
|
+
exports.CognitoIdentityServiceException = CognitoIdentityServiceException;
|
|
1380
|
+
exports.ConcurrentModificationException = ConcurrentModificationException;
|
|
1381
|
+
exports.CreateIdentityPoolCommand = CreateIdentityPoolCommand;
|
|
1382
|
+
exports.CredentialsFilterSensitiveLog = CredentialsFilterSensitiveLog;
|
|
1383
|
+
exports.DeleteIdentitiesCommand = DeleteIdentitiesCommand;
|
|
1384
|
+
exports.DeleteIdentityPoolCommand = DeleteIdentityPoolCommand;
|
|
1385
|
+
exports.DescribeIdentityCommand = DescribeIdentityCommand;
|
|
1386
|
+
exports.DescribeIdentityPoolCommand = DescribeIdentityPoolCommand;
|
|
1387
|
+
exports.DeveloperUserAlreadyRegisteredException = DeveloperUserAlreadyRegisteredException;
|
|
1388
|
+
exports.ErrorCode = ErrorCode;
|
|
1389
|
+
exports.ExternalServiceException = ExternalServiceException;
|
|
1390
|
+
exports.GetCredentialsForIdentityCommand = GetCredentialsForIdentityCommand;
|
|
1391
|
+
exports.GetCredentialsForIdentityInputFilterSensitiveLog = GetCredentialsForIdentityInputFilterSensitiveLog;
|
|
1392
|
+
exports.GetCredentialsForIdentityResponseFilterSensitiveLog = GetCredentialsForIdentityResponseFilterSensitiveLog;
|
|
1393
|
+
exports.GetIdCommand = GetIdCommand;
|
|
1394
|
+
exports.GetIdInputFilterSensitiveLog = GetIdInputFilterSensitiveLog;
|
|
1395
|
+
exports.GetIdentityPoolRolesCommand = GetIdentityPoolRolesCommand;
|
|
1396
|
+
exports.GetOpenIdTokenCommand = GetOpenIdTokenCommand;
|
|
1397
|
+
exports.GetOpenIdTokenForDeveloperIdentityCommand = GetOpenIdTokenForDeveloperIdentityCommand;
|
|
1398
|
+
exports.GetOpenIdTokenForDeveloperIdentityInputFilterSensitiveLog = GetOpenIdTokenForDeveloperIdentityInputFilterSensitiveLog;
|
|
1399
|
+
exports.GetOpenIdTokenForDeveloperIdentityResponseFilterSensitiveLog = GetOpenIdTokenForDeveloperIdentityResponseFilterSensitiveLog;
|
|
1400
|
+
exports.GetOpenIdTokenInputFilterSensitiveLog = GetOpenIdTokenInputFilterSensitiveLog;
|
|
1401
|
+
exports.GetOpenIdTokenResponseFilterSensitiveLog = GetOpenIdTokenResponseFilterSensitiveLog;
|
|
1402
|
+
exports.GetPrincipalTagAttributeMapCommand = GetPrincipalTagAttributeMapCommand;
|
|
1403
|
+
exports.InternalErrorException = InternalErrorException;
|
|
1404
|
+
exports.InvalidIdentityPoolConfigurationException = InvalidIdentityPoolConfigurationException;
|
|
1405
|
+
exports.InvalidParameterException = InvalidParameterException;
|
|
1406
|
+
exports.LimitExceededException = LimitExceededException;
|
|
1407
|
+
exports.ListIdentitiesCommand = ListIdentitiesCommand;
|
|
1408
|
+
exports.ListIdentityPoolsCommand = ListIdentityPoolsCommand;
|
|
1409
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
1410
|
+
exports.LookupDeveloperIdentityCommand = LookupDeveloperIdentityCommand;
|
|
1411
|
+
exports.MappingRuleMatchType = MappingRuleMatchType;
|
|
1412
|
+
exports.MergeDeveloperIdentitiesCommand = MergeDeveloperIdentitiesCommand;
|
|
1413
|
+
exports.NotAuthorizedException = NotAuthorizedException;
|
|
1414
|
+
exports.ResourceConflictException = ResourceConflictException;
|
|
1415
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1416
|
+
exports.RoleMappingType = RoleMappingType;
|
|
1417
|
+
exports.SetIdentityPoolRolesCommand = SetIdentityPoolRolesCommand;
|
|
1418
|
+
exports.SetPrincipalTagAttributeMapCommand = SetPrincipalTagAttributeMapCommand;
|
|
1419
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
1420
|
+
exports.TooManyRequestsException = TooManyRequestsException;
|
|
1421
|
+
exports.UnlinkDeveloperIdentityCommand = UnlinkDeveloperIdentityCommand;
|
|
1422
|
+
exports.UnlinkIdentityCommand = UnlinkIdentityCommand;
|
|
1423
|
+
exports.UnlinkIdentityInputFilterSensitiveLog = UnlinkIdentityInputFilterSensitiveLog;
|
|
1424
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
1425
|
+
exports.UpdateIdentityPoolCommand = UpdateIdentityPoolCommand;
|
|
1426
|
+
exports.paginateListIdentityPools = paginateListIdentityPools;
|