@aws-sdk/client-cognito-identity 3.934.0 → 3.935.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 +19 -18
- package/dist-es/index.js +2 -1
- package/dist-es/models/enums.js +18 -0
- package/dist-es/models/errors.js +133 -0
- package/dist-es/models/models_0.js +1 -151
- package/dist-es/schemas/schemas_0.js +1 -1
- package/dist-types/index.d.ts +3 -1
- package/dist-types/models/enums.d.ts +50 -0
- package/dist-types/models/errors.d.ts +144 -0
- package/dist-types/models/models_0.d.ts +1 -194
- package/dist-types/ts3.4/index.d.ts +3 -1
- package/dist-types/ts3.4/models/enums.d.ts +25 -0
- package/dist-types/ts3.4/models/errors.d.ts +88 -0
- package/dist-types/ts3.4/models/models_0.d.ts +6 -113
- package/package.json +13 -13
- package/dist-es/models/index.js +0 -1
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/ts3.4/models/index.d.ts +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -117,10 +117,6 @@ let CognitoIdentityServiceException$1 = class CognitoIdentityServiceException ex
|
|
|
117
117
|
}
|
|
118
118
|
};
|
|
119
119
|
|
|
120
|
-
const AmbiguousRoleResolutionType = {
|
|
121
|
-
AUTHENTICATED_ROLE: "AuthenticatedRole",
|
|
122
|
-
DENY: "Deny",
|
|
123
|
-
};
|
|
124
120
|
let InternalErrorException$1 = class InternalErrorException extends CognitoIdentityServiceException$1 {
|
|
125
121
|
name = "InternalErrorException";
|
|
126
122
|
$fault = "server";
|
|
@@ -193,10 +189,6 @@ let TooManyRequestsException$1 = class TooManyRequestsException extends CognitoI
|
|
|
193
189
|
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
194
190
|
}
|
|
195
191
|
};
|
|
196
|
-
const ErrorCode = {
|
|
197
|
-
ACCESS_DENIED: "AccessDenied",
|
|
198
|
-
INTERNAL_SERVER_ERROR: "InternalServerError",
|
|
199
|
-
};
|
|
200
192
|
let ResourceNotFoundException$1 = class ResourceNotFoundException extends CognitoIdentityServiceException$1 {
|
|
201
193
|
name = "ResourceNotFoundException";
|
|
202
194
|
$fault = "client";
|
|
@@ -233,16 +225,6 @@ let InvalidIdentityPoolConfigurationException$1 = class InvalidIdentityPoolConfi
|
|
|
233
225
|
Object.setPrototypeOf(this, InvalidIdentityPoolConfigurationException.prototype);
|
|
234
226
|
}
|
|
235
227
|
};
|
|
236
|
-
const MappingRuleMatchType = {
|
|
237
|
-
CONTAINS: "Contains",
|
|
238
|
-
EQUALS: "Equals",
|
|
239
|
-
NOT_EQUAL: "NotEqual",
|
|
240
|
-
STARTS_WITH: "StartsWith",
|
|
241
|
-
};
|
|
242
|
-
const RoleMappingType = {
|
|
243
|
-
RULES: "Rules",
|
|
244
|
-
TOKEN: "Token",
|
|
245
|
-
};
|
|
246
228
|
let DeveloperUserAlreadyRegisteredException$1 = class DeveloperUserAlreadyRegisteredException extends CognitoIdentityServiceException$1 {
|
|
247
229
|
name = "DeveloperUserAlreadyRegisteredException";
|
|
248
230
|
$fault = "client";
|
|
@@ -1213,6 +1195,25 @@ smithyClient.createAggregatedClient(commands, CognitoIdentity);
|
|
|
1213
1195
|
|
|
1214
1196
|
const paginateListIdentityPools = core.createPaginator(CognitoIdentityClient, ListIdentityPoolsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1215
1197
|
|
|
1198
|
+
const AmbiguousRoleResolutionType = {
|
|
1199
|
+
AUTHENTICATED_ROLE: "AuthenticatedRole",
|
|
1200
|
+
DENY: "Deny",
|
|
1201
|
+
};
|
|
1202
|
+
const ErrorCode = {
|
|
1203
|
+
ACCESS_DENIED: "AccessDenied",
|
|
1204
|
+
INTERNAL_SERVER_ERROR: "InternalServerError",
|
|
1205
|
+
};
|
|
1206
|
+
const MappingRuleMatchType = {
|
|
1207
|
+
CONTAINS: "Contains",
|
|
1208
|
+
EQUALS: "Equals",
|
|
1209
|
+
NOT_EQUAL: "NotEqual",
|
|
1210
|
+
STARTS_WITH: "StartsWith",
|
|
1211
|
+
};
|
|
1212
|
+
const RoleMappingType = {
|
|
1213
|
+
RULES: "Rules",
|
|
1214
|
+
TOKEN: "Token",
|
|
1215
|
+
};
|
|
1216
|
+
|
|
1216
1217
|
Object.defineProperty(exports, "$Command", {
|
|
1217
1218
|
enumerable: true,
|
|
1218
1219
|
get: function () { return smithyClient.Command; }
|
package/dist-es/index.js
CHANGED
|
@@ -2,5 +2,6 @@ export * from "./CognitoIdentityClient";
|
|
|
2
2
|
export * from "./CognitoIdentity";
|
|
3
3
|
export * from "./commands";
|
|
4
4
|
export * from "./pagination";
|
|
5
|
-
export * from "./models";
|
|
5
|
+
export * from "./models/enums";
|
|
6
|
+
export * from "./models/errors";
|
|
6
7
|
export { CognitoIdentityServiceException } from "./models/CognitoIdentityServiceException";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export const AmbiguousRoleResolutionType = {
|
|
2
|
+
AUTHENTICATED_ROLE: "AuthenticatedRole",
|
|
3
|
+
DENY: "Deny",
|
|
4
|
+
};
|
|
5
|
+
export const ErrorCode = {
|
|
6
|
+
ACCESS_DENIED: "AccessDenied",
|
|
7
|
+
INTERNAL_SERVER_ERROR: "InternalServerError",
|
|
8
|
+
};
|
|
9
|
+
export const MappingRuleMatchType = {
|
|
10
|
+
CONTAINS: "Contains",
|
|
11
|
+
EQUALS: "Equals",
|
|
12
|
+
NOT_EQUAL: "NotEqual",
|
|
13
|
+
STARTS_WITH: "StartsWith",
|
|
14
|
+
};
|
|
15
|
+
export const RoleMappingType = {
|
|
16
|
+
RULES: "Rules",
|
|
17
|
+
TOKEN: "Token",
|
|
18
|
+
};
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { CognitoIdentityServiceException as __BaseException } from "./CognitoIdentityServiceException";
|
|
2
|
+
export class InternalErrorException extends __BaseException {
|
|
3
|
+
name = "InternalErrorException";
|
|
4
|
+
$fault = "server";
|
|
5
|
+
constructor(opts) {
|
|
6
|
+
super({
|
|
7
|
+
name: "InternalErrorException",
|
|
8
|
+
$fault: "server",
|
|
9
|
+
...opts,
|
|
10
|
+
});
|
|
11
|
+
Object.setPrototypeOf(this, InternalErrorException.prototype);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export class InvalidParameterException extends __BaseException {
|
|
15
|
+
name = "InvalidParameterException";
|
|
16
|
+
$fault = "client";
|
|
17
|
+
constructor(opts) {
|
|
18
|
+
super({
|
|
19
|
+
name: "InvalidParameterException",
|
|
20
|
+
$fault: "client",
|
|
21
|
+
...opts,
|
|
22
|
+
});
|
|
23
|
+
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export class LimitExceededException extends __BaseException {
|
|
27
|
+
name = "LimitExceededException";
|
|
28
|
+
$fault = "client";
|
|
29
|
+
constructor(opts) {
|
|
30
|
+
super({
|
|
31
|
+
name: "LimitExceededException",
|
|
32
|
+
$fault: "client",
|
|
33
|
+
...opts,
|
|
34
|
+
});
|
|
35
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export class NotAuthorizedException extends __BaseException {
|
|
39
|
+
name = "NotAuthorizedException";
|
|
40
|
+
$fault = "client";
|
|
41
|
+
constructor(opts) {
|
|
42
|
+
super({
|
|
43
|
+
name: "NotAuthorizedException",
|
|
44
|
+
$fault: "client",
|
|
45
|
+
...opts,
|
|
46
|
+
});
|
|
47
|
+
Object.setPrototypeOf(this, NotAuthorizedException.prototype);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
export class ResourceConflictException extends __BaseException {
|
|
51
|
+
name = "ResourceConflictException";
|
|
52
|
+
$fault = "client";
|
|
53
|
+
constructor(opts) {
|
|
54
|
+
super({
|
|
55
|
+
name: "ResourceConflictException",
|
|
56
|
+
$fault: "client",
|
|
57
|
+
...opts,
|
|
58
|
+
});
|
|
59
|
+
Object.setPrototypeOf(this, ResourceConflictException.prototype);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
export class TooManyRequestsException extends __BaseException {
|
|
63
|
+
name = "TooManyRequestsException";
|
|
64
|
+
$fault = "client";
|
|
65
|
+
constructor(opts) {
|
|
66
|
+
super({
|
|
67
|
+
name: "TooManyRequestsException",
|
|
68
|
+
$fault: "client",
|
|
69
|
+
...opts,
|
|
70
|
+
});
|
|
71
|
+
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
75
|
+
name = "ResourceNotFoundException";
|
|
76
|
+
$fault = "client";
|
|
77
|
+
constructor(opts) {
|
|
78
|
+
super({
|
|
79
|
+
name: "ResourceNotFoundException",
|
|
80
|
+
$fault: "client",
|
|
81
|
+
...opts,
|
|
82
|
+
});
|
|
83
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
export class ExternalServiceException extends __BaseException {
|
|
87
|
+
name = "ExternalServiceException";
|
|
88
|
+
$fault = "client";
|
|
89
|
+
constructor(opts) {
|
|
90
|
+
super({
|
|
91
|
+
name: "ExternalServiceException",
|
|
92
|
+
$fault: "client",
|
|
93
|
+
...opts,
|
|
94
|
+
});
|
|
95
|
+
Object.setPrototypeOf(this, ExternalServiceException.prototype);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
export class InvalidIdentityPoolConfigurationException extends __BaseException {
|
|
99
|
+
name = "InvalidIdentityPoolConfigurationException";
|
|
100
|
+
$fault = "client";
|
|
101
|
+
constructor(opts) {
|
|
102
|
+
super({
|
|
103
|
+
name: "InvalidIdentityPoolConfigurationException",
|
|
104
|
+
$fault: "client",
|
|
105
|
+
...opts,
|
|
106
|
+
});
|
|
107
|
+
Object.setPrototypeOf(this, InvalidIdentityPoolConfigurationException.prototype);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
export class DeveloperUserAlreadyRegisteredException extends __BaseException {
|
|
111
|
+
name = "DeveloperUserAlreadyRegisteredException";
|
|
112
|
+
$fault = "client";
|
|
113
|
+
constructor(opts) {
|
|
114
|
+
super({
|
|
115
|
+
name: "DeveloperUserAlreadyRegisteredException",
|
|
116
|
+
$fault: "client",
|
|
117
|
+
...opts,
|
|
118
|
+
});
|
|
119
|
+
Object.setPrototypeOf(this, DeveloperUserAlreadyRegisteredException.prototype);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
export class ConcurrentModificationException extends __BaseException {
|
|
123
|
+
name = "ConcurrentModificationException";
|
|
124
|
+
$fault = "client";
|
|
125
|
+
constructor(opts) {
|
|
126
|
+
super({
|
|
127
|
+
name: "ConcurrentModificationException",
|
|
128
|
+
$fault: "client",
|
|
129
|
+
...opts,
|
|
130
|
+
});
|
|
131
|
+
Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
@@ -1,151 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export const AmbiguousRoleResolutionType = {
|
|
3
|
-
AUTHENTICATED_ROLE: "AuthenticatedRole",
|
|
4
|
-
DENY: "Deny",
|
|
5
|
-
};
|
|
6
|
-
export class InternalErrorException extends __BaseException {
|
|
7
|
-
name = "InternalErrorException";
|
|
8
|
-
$fault = "server";
|
|
9
|
-
constructor(opts) {
|
|
10
|
-
super({
|
|
11
|
-
name: "InternalErrorException",
|
|
12
|
-
$fault: "server",
|
|
13
|
-
...opts,
|
|
14
|
-
});
|
|
15
|
-
Object.setPrototypeOf(this, InternalErrorException.prototype);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
export class InvalidParameterException extends __BaseException {
|
|
19
|
-
name = "InvalidParameterException";
|
|
20
|
-
$fault = "client";
|
|
21
|
-
constructor(opts) {
|
|
22
|
-
super({
|
|
23
|
-
name: "InvalidParameterException",
|
|
24
|
-
$fault: "client",
|
|
25
|
-
...opts,
|
|
26
|
-
});
|
|
27
|
-
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
export class LimitExceededException extends __BaseException {
|
|
31
|
-
name = "LimitExceededException";
|
|
32
|
-
$fault = "client";
|
|
33
|
-
constructor(opts) {
|
|
34
|
-
super({
|
|
35
|
-
name: "LimitExceededException",
|
|
36
|
-
$fault: "client",
|
|
37
|
-
...opts,
|
|
38
|
-
});
|
|
39
|
-
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
export class NotAuthorizedException extends __BaseException {
|
|
43
|
-
name = "NotAuthorizedException";
|
|
44
|
-
$fault = "client";
|
|
45
|
-
constructor(opts) {
|
|
46
|
-
super({
|
|
47
|
-
name: "NotAuthorizedException",
|
|
48
|
-
$fault: "client",
|
|
49
|
-
...opts,
|
|
50
|
-
});
|
|
51
|
-
Object.setPrototypeOf(this, NotAuthorizedException.prototype);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
export class ResourceConflictException extends __BaseException {
|
|
55
|
-
name = "ResourceConflictException";
|
|
56
|
-
$fault = "client";
|
|
57
|
-
constructor(opts) {
|
|
58
|
-
super({
|
|
59
|
-
name: "ResourceConflictException",
|
|
60
|
-
$fault: "client",
|
|
61
|
-
...opts,
|
|
62
|
-
});
|
|
63
|
-
Object.setPrototypeOf(this, ResourceConflictException.prototype);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
export class TooManyRequestsException extends __BaseException {
|
|
67
|
-
name = "TooManyRequestsException";
|
|
68
|
-
$fault = "client";
|
|
69
|
-
constructor(opts) {
|
|
70
|
-
super({
|
|
71
|
-
name: "TooManyRequestsException",
|
|
72
|
-
$fault: "client",
|
|
73
|
-
...opts,
|
|
74
|
-
});
|
|
75
|
-
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
export const ErrorCode = {
|
|
79
|
-
ACCESS_DENIED: "AccessDenied",
|
|
80
|
-
INTERNAL_SERVER_ERROR: "InternalServerError",
|
|
81
|
-
};
|
|
82
|
-
export class ResourceNotFoundException extends __BaseException {
|
|
83
|
-
name = "ResourceNotFoundException";
|
|
84
|
-
$fault = "client";
|
|
85
|
-
constructor(opts) {
|
|
86
|
-
super({
|
|
87
|
-
name: "ResourceNotFoundException",
|
|
88
|
-
$fault: "client",
|
|
89
|
-
...opts,
|
|
90
|
-
});
|
|
91
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
export class ExternalServiceException extends __BaseException {
|
|
95
|
-
name = "ExternalServiceException";
|
|
96
|
-
$fault = "client";
|
|
97
|
-
constructor(opts) {
|
|
98
|
-
super({
|
|
99
|
-
name: "ExternalServiceException",
|
|
100
|
-
$fault: "client",
|
|
101
|
-
...opts,
|
|
102
|
-
});
|
|
103
|
-
Object.setPrototypeOf(this, ExternalServiceException.prototype);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
export class InvalidIdentityPoolConfigurationException extends __BaseException {
|
|
107
|
-
name = "InvalidIdentityPoolConfigurationException";
|
|
108
|
-
$fault = "client";
|
|
109
|
-
constructor(opts) {
|
|
110
|
-
super({
|
|
111
|
-
name: "InvalidIdentityPoolConfigurationException",
|
|
112
|
-
$fault: "client",
|
|
113
|
-
...opts,
|
|
114
|
-
});
|
|
115
|
-
Object.setPrototypeOf(this, InvalidIdentityPoolConfigurationException.prototype);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
export const MappingRuleMatchType = {
|
|
119
|
-
CONTAINS: "Contains",
|
|
120
|
-
EQUALS: "Equals",
|
|
121
|
-
NOT_EQUAL: "NotEqual",
|
|
122
|
-
STARTS_WITH: "StartsWith",
|
|
123
|
-
};
|
|
124
|
-
export const RoleMappingType = {
|
|
125
|
-
RULES: "Rules",
|
|
126
|
-
TOKEN: "Token",
|
|
127
|
-
};
|
|
128
|
-
export class DeveloperUserAlreadyRegisteredException extends __BaseException {
|
|
129
|
-
name = "DeveloperUserAlreadyRegisteredException";
|
|
130
|
-
$fault = "client";
|
|
131
|
-
constructor(opts) {
|
|
132
|
-
super({
|
|
133
|
-
name: "DeveloperUserAlreadyRegisteredException",
|
|
134
|
-
$fault: "client",
|
|
135
|
-
...opts,
|
|
136
|
-
});
|
|
137
|
-
Object.setPrototypeOf(this, DeveloperUserAlreadyRegisteredException.prototype);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
export class ConcurrentModificationException extends __BaseException {
|
|
141
|
-
name = "ConcurrentModificationException";
|
|
142
|
-
$fault = "client";
|
|
143
|
-
constructor(opts) {
|
|
144
|
-
super({
|
|
145
|
-
name: "ConcurrentModificationException",
|
|
146
|
-
$fault: "client",
|
|
147
|
-
...opts,
|
|
148
|
-
});
|
|
149
|
-
Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
1
|
+
export {};
|
|
@@ -151,7 +151,7 @@ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity";
|
|
|
151
151
|
const n0 = "com.amazonaws.cognitoidentity";
|
|
152
152
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
153
153
|
import { CognitoIdentityServiceException as __CognitoIdentityServiceException } from "../models/CognitoIdentityServiceException";
|
|
154
|
-
import { ConcurrentModificationException as __ConcurrentModificationException, DeveloperUserAlreadyRegisteredException as __DeveloperUserAlreadyRegisteredException, ExternalServiceException as __ExternalServiceException, InternalErrorException as __InternalErrorException, InvalidIdentityPoolConfigurationException as __InvalidIdentityPoolConfigurationException, InvalidParameterException as __InvalidParameterException, LimitExceededException as __LimitExceededException, NotAuthorizedException as __NotAuthorizedException, ResourceConflictException as __ResourceConflictException, ResourceNotFoundException as __ResourceNotFoundException, TooManyRequestsException as __TooManyRequestsException, } from "../models/
|
|
154
|
+
import { ConcurrentModificationException as __ConcurrentModificationException, DeveloperUserAlreadyRegisteredException as __DeveloperUserAlreadyRegisteredException, ExternalServiceException as __ExternalServiceException, InternalErrorException as __InternalErrorException, InvalidIdentityPoolConfigurationException as __InvalidIdentityPoolConfigurationException, InvalidParameterException as __InvalidParameterException, LimitExceededException as __LimitExceededException, NotAuthorizedException as __NotAuthorizedException, ResourceConflictException as __ResourceConflictException, ResourceNotFoundException as __ResourceNotFoundException, TooManyRequestsException as __TooManyRequestsException, } from "../models/errors";
|
|
155
155
|
export var IdentityProviderToken = [0, n0, _IPT, 8, 0];
|
|
156
156
|
export var OIDCToken = [0, n0, _OIDCT, 8, 0];
|
|
157
157
|
export var SecretKeyString = [0, n0, _SKS, 8, 0];
|
package/dist-types/index.d.ts
CHANGED
|
@@ -24,5 +24,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
|
|
|
24
24
|
export type { CognitoIdentityExtensionConfiguration } from "./extensionConfiguration";
|
|
25
25
|
export * from "./commands";
|
|
26
26
|
export * from "./pagination";
|
|
27
|
-
export * from "./models";
|
|
27
|
+
export * from "./models/enums";
|
|
28
|
+
export * from "./models/errors";
|
|
29
|
+
export type * from "./models/models_0";
|
|
28
30
|
export { CognitoIdentityServiceException } from "./models/CognitoIdentityServiceException";
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
* @enum
|
|
4
|
+
*/
|
|
5
|
+
export declare const AmbiguousRoleResolutionType: {
|
|
6
|
+
readonly AUTHENTICATED_ROLE: "AuthenticatedRole";
|
|
7
|
+
readonly DENY: "Deny";
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export type AmbiguousRoleResolutionType = (typeof AmbiguousRoleResolutionType)[keyof typeof AmbiguousRoleResolutionType];
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
* @enum
|
|
16
|
+
*/
|
|
17
|
+
export declare const ErrorCode: {
|
|
18
|
+
readonly ACCESS_DENIED: "AccessDenied";
|
|
19
|
+
readonly INTERNAL_SERVER_ERROR: "InternalServerError";
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
export type ErrorCode = (typeof ErrorCode)[keyof typeof ErrorCode];
|
|
25
|
+
/**
|
|
26
|
+
* @public
|
|
27
|
+
* @enum
|
|
28
|
+
*/
|
|
29
|
+
export declare const MappingRuleMatchType: {
|
|
30
|
+
readonly CONTAINS: "Contains";
|
|
31
|
+
readonly EQUALS: "Equals";
|
|
32
|
+
readonly NOT_EQUAL: "NotEqual";
|
|
33
|
+
readonly STARTS_WITH: "StartsWith";
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
export type MappingRuleMatchType = (typeof MappingRuleMatchType)[keyof typeof MappingRuleMatchType];
|
|
39
|
+
/**
|
|
40
|
+
* @public
|
|
41
|
+
* @enum
|
|
42
|
+
*/
|
|
43
|
+
export declare const RoleMappingType: {
|
|
44
|
+
readonly RULES: "Rules";
|
|
45
|
+
readonly TOKEN: "Token";
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
50
|
+
export type RoleMappingType = (typeof RoleMappingType)[keyof typeof RoleMappingType];
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import { CognitoIdentityServiceException as __BaseException } from "./CognitoIdentityServiceException";
|
|
3
|
+
/**
|
|
4
|
+
* <p>Thrown when the service encounters an error during processing the request.</p>
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare class InternalErrorException extends __BaseException {
|
|
8
|
+
readonly name: "InternalErrorException";
|
|
9
|
+
readonly $fault: "server";
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
constructor(opts: __ExceptionOptionType<InternalErrorException, __BaseException>);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* <p>Thrown for missing or bad input parameter(s).</p>
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
export declare class InvalidParameterException extends __BaseException {
|
|
20
|
+
readonly name: "InvalidParameterException";
|
|
21
|
+
readonly $fault: "client";
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* <p>Thrown when the total number of user pools has exceeded a preset limit.</p>
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
export declare class LimitExceededException extends __BaseException {
|
|
32
|
+
readonly name: "LimitExceededException";
|
|
33
|
+
readonly $fault: "client";
|
|
34
|
+
/**
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* <p>Thrown when a user is not authorized to access the requested resource.</p>
|
|
41
|
+
* @public
|
|
42
|
+
*/
|
|
43
|
+
export declare class NotAuthorizedException extends __BaseException {
|
|
44
|
+
readonly name: "NotAuthorizedException";
|
|
45
|
+
readonly $fault: "client";
|
|
46
|
+
/**
|
|
47
|
+
* @internal
|
|
48
|
+
*/
|
|
49
|
+
constructor(opts: __ExceptionOptionType<NotAuthorizedException, __BaseException>);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* <p>Thrown when a user tries to use a login which is already linked to another
|
|
53
|
+
* account.</p>
|
|
54
|
+
* @public
|
|
55
|
+
*/
|
|
56
|
+
export declare class ResourceConflictException extends __BaseException {
|
|
57
|
+
readonly name: "ResourceConflictException";
|
|
58
|
+
readonly $fault: "client";
|
|
59
|
+
/**
|
|
60
|
+
* @internal
|
|
61
|
+
*/
|
|
62
|
+
constructor(opts: __ExceptionOptionType<ResourceConflictException, __BaseException>);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* <p>Thrown when a request is throttled.</p>
|
|
66
|
+
* @public
|
|
67
|
+
*/
|
|
68
|
+
export declare class TooManyRequestsException extends __BaseException {
|
|
69
|
+
readonly name: "TooManyRequestsException";
|
|
70
|
+
readonly $fault: "client";
|
|
71
|
+
/**
|
|
72
|
+
* @internal
|
|
73
|
+
*/
|
|
74
|
+
constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* <p>Thrown when the requested resource (for example, a dataset or record) does not
|
|
78
|
+
* exist.</p>
|
|
79
|
+
* @public
|
|
80
|
+
*/
|
|
81
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
82
|
+
readonly name: "ResourceNotFoundException";
|
|
83
|
+
readonly $fault: "client";
|
|
84
|
+
/**
|
|
85
|
+
* @internal
|
|
86
|
+
*/
|
|
87
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* <p>An exception thrown when a dependent service such as Facebook or Twitter is not
|
|
91
|
+
* responding</p>
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
export declare class ExternalServiceException extends __BaseException {
|
|
95
|
+
readonly name: "ExternalServiceException";
|
|
96
|
+
readonly $fault: "client";
|
|
97
|
+
/**
|
|
98
|
+
* @internal
|
|
99
|
+
*/
|
|
100
|
+
constructor(opts: __ExceptionOptionType<ExternalServiceException, __BaseException>);
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* <p>If you provided authentication information in the request, the identity pool has no
|
|
104
|
+
* authenticated role configured, or STS returned an error response to the
|
|
105
|
+
* request to assume the authenticated role from the identity pool. If you provided no
|
|
106
|
+
* authentication information in the request, the identity pool has no unauthenticated role
|
|
107
|
+
* configured, or STS returned an error response to the request to assume the
|
|
108
|
+
* unauthenticated role from the identity pool.</p>
|
|
109
|
+
* <p>Your role trust policy must grant <code>AssumeRoleWithWebIdentity</code> permissions to <code>cognito-identity.amazonaws.com</code>.</p>
|
|
110
|
+
* @public
|
|
111
|
+
*/
|
|
112
|
+
export declare class InvalidIdentityPoolConfigurationException extends __BaseException {
|
|
113
|
+
readonly name: "InvalidIdentityPoolConfigurationException";
|
|
114
|
+
readonly $fault: "client";
|
|
115
|
+
/**
|
|
116
|
+
* @internal
|
|
117
|
+
*/
|
|
118
|
+
constructor(opts: __ExceptionOptionType<InvalidIdentityPoolConfigurationException, __BaseException>);
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* <p>The provided developer user identifier is already registered with Cognito under a
|
|
122
|
+
* different identity ID.</p>
|
|
123
|
+
* @public
|
|
124
|
+
*/
|
|
125
|
+
export declare class DeveloperUserAlreadyRegisteredException extends __BaseException {
|
|
126
|
+
readonly name: "DeveloperUserAlreadyRegisteredException";
|
|
127
|
+
readonly $fault: "client";
|
|
128
|
+
/**
|
|
129
|
+
* @internal
|
|
130
|
+
*/
|
|
131
|
+
constructor(opts: __ExceptionOptionType<DeveloperUserAlreadyRegisteredException, __BaseException>);
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* <p>Thrown if there are parallel requests to modify a resource.</p>
|
|
135
|
+
* @public
|
|
136
|
+
*/
|
|
137
|
+
export declare class ConcurrentModificationException extends __BaseException {
|
|
138
|
+
readonly name: "ConcurrentModificationException";
|
|
139
|
+
readonly $fault: "client";
|
|
140
|
+
/**
|
|
141
|
+
* @internal
|
|
142
|
+
*/
|
|
143
|
+
constructor(opts: __ExceptionOptionType<ConcurrentModificationException, __BaseException>);
|
|
144
|
+
}
|
|
@@ -1,17 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CognitoIdentityServiceException as __BaseException } from "./CognitoIdentityServiceException";
|
|
3
|
-
/**
|
|
4
|
-
* @public
|
|
5
|
-
* @enum
|
|
6
|
-
*/
|
|
7
|
-
export declare const AmbiguousRoleResolutionType: {
|
|
8
|
-
readonly AUTHENTICATED_ROLE: "AuthenticatedRole";
|
|
9
|
-
readonly DENY: "Deny";
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* @public
|
|
13
|
-
*/
|
|
14
|
-
export type AmbiguousRoleResolutionType = (typeof AmbiguousRoleResolutionType)[keyof typeof AmbiguousRoleResolutionType];
|
|
1
|
+
import { AmbiguousRoleResolutionType, ErrorCode, MappingRuleMatchType, RoleMappingType } from "./enums";
|
|
15
2
|
/**
|
|
16
3
|
* <p>A provider representing an Amazon Cognito user pool and its client ID.</p>
|
|
17
4
|
* @public
|
|
@@ -164,79 +151,6 @@ export interface IdentityPool {
|
|
|
164
151
|
*/
|
|
165
152
|
IdentityPoolTags?: Record<string, string> | undefined;
|
|
166
153
|
}
|
|
167
|
-
/**
|
|
168
|
-
* <p>Thrown when the service encounters an error during processing the request.</p>
|
|
169
|
-
* @public
|
|
170
|
-
*/
|
|
171
|
-
export declare class InternalErrorException extends __BaseException {
|
|
172
|
-
readonly name: "InternalErrorException";
|
|
173
|
-
readonly $fault: "server";
|
|
174
|
-
/**
|
|
175
|
-
* @internal
|
|
176
|
-
*/
|
|
177
|
-
constructor(opts: __ExceptionOptionType<InternalErrorException, __BaseException>);
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* <p>Thrown for missing or bad input parameter(s).</p>
|
|
181
|
-
* @public
|
|
182
|
-
*/
|
|
183
|
-
export declare class InvalidParameterException extends __BaseException {
|
|
184
|
-
readonly name: "InvalidParameterException";
|
|
185
|
-
readonly $fault: "client";
|
|
186
|
-
/**
|
|
187
|
-
* @internal
|
|
188
|
-
*/
|
|
189
|
-
constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
|
-
* <p>Thrown when the total number of user pools has exceeded a preset limit.</p>
|
|
193
|
-
* @public
|
|
194
|
-
*/
|
|
195
|
-
export declare class LimitExceededException extends __BaseException {
|
|
196
|
-
readonly name: "LimitExceededException";
|
|
197
|
-
readonly $fault: "client";
|
|
198
|
-
/**
|
|
199
|
-
* @internal
|
|
200
|
-
*/
|
|
201
|
-
constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
|
|
202
|
-
}
|
|
203
|
-
/**
|
|
204
|
-
* <p>Thrown when a user is not authorized to access the requested resource.</p>
|
|
205
|
-
* @public
|
|
206
|
-
*/
|
|
207
|
-
export declare class NotAuthorizedException extends __BaseException {
|
|
208
|
-
readonly name: "NotAuthorizedException";
|
|
209
|
-
readonly $fault: "client";
|
|
210
|
-
/**
|
|
211
|
-
* @internal
|
|
212
|
-
*/
|
|
213
|
-
constructor(opts: __ExceptionOptionType<NotAuthorizedException, __BaseException>);
|
|
214
|
-
}
|
|
215
|
-
/**
|
|
216
|
-
* <p>Thrown when a user tries to use a login which is already linked to another
|
|
217
|
-
* account.</p>
|
|
218
|
-
* @public
|
|
219
|
-
*/
|
|
220
|
-
export declare class ResourceConflictException extends __BaseException {
|
|
221
|
-
readonly name: "ResourceConflictException";
|
|
222
|
-
readonly $fault: "client";
|
|
223
|
-
/**
|
|
224
|
-
* @internal
|
|
225
|
-
*/
|
|
226
|
-
constructor(opts: __ExceptionOptionType<ResourceConflictException, __BaseException>);
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* <p>Thrown when a request is throttled.</p>
|
|
230
|
-
* @public
|
|
231
|
-
*/
|
|
232
|
-
export declare class TooManyRequestsException extends __BaseException {
|
|
233
|
-
readonly name: "TooManyRequestsException";
|
|
234
|
-
readonly $fault: "client";
|
|
235
|
-
/**
|
|
236
|
-
* @internal
|
|
237
|
-
*/
|
|
238
|
-
constructor(opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>);
|
|
239
|
-
}
|
|
240
154
|
/**
|
|
241
155
|
* <p>Input to the <code>DeleteIdentities</code> action.</p>
|
|
242
156
|
* @public
|
|
@@ -248,18 +162,6 @@ export interface DeleteIdentitiesInput {
|
|
|
248
162
|
*/
|
|
249
163
|
IdentityIdsToDelete: string[] | undefined;
|
|
250
164
|
}
|
|
251
|
-
/**
|
|
252
|
-
* @public
|
|
253
|
-
* @enum
|
|
254
|
-
*/
|
|
255
|
-
export declare const ErrorCode: {
|
|
256
|
-
readonly ACCESS_DENIED: "AccessDenied";
|
|
257
|
-
readonly INTERNAL_SERVER_ERROR: "InternalServerError";
|
|
258
|
-
};
|
|
259
|
-
/**
|
|
260
|
-
* @public
|
|
261
|
-
*/
|
|
262
|
-
export type ErrorCode = (typeof ErrorCode)[keyof typeof ErrorCode];
|
|
263
165
|
/**
|
|
264
166
|
* <p>An array of UnprocessedIdentityId objects, each of which contains an ErrorCode and
|
|
265
167
|
* IdentityId.</p>
|
|
@@ -301,19 +203,6 @@ export interface DeleteIdentityPoolInput {
|
|
|
301
203
|
*/
|
|
302
204
|
IdentityPoolId: string | undefined;
|
|
303
205
|
}
|
|
304
|
-
/**
|
|
305
|
-
* <p>Thrown when the requested resource (for example, a dataset or record) does not
|
|
306
|
-
* exist.</p>
|
|
307
|
-
* @public
|
|
308
|
-
*/
|
|
309
|
-
export declare class ResourceNotFoundException extends __BaseException {
|
|
310
|
-
readonly name: "ResourceNotFoundException";
|
|
311
|
-
readonly $fault: "client";
|
|
312
|
-
/**
|
|
313
|
-
* @internal
|
|
314
|
-
*/
|
|
315
|
-
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
316
|
-
}
|
|
317
206
|
/**
|
|
318
207
|
* <p>Input to the <code>DescribeIdentity</code> action.</p>
|
|
319
208
|
* @public
|
|
@@ -362,19 +251,6 @@ export interface DescribeIdentityPoolInput {
|
|
|
362
251
|
*/
|
|
363
252
|
IdentityPoolId: string | undefined;
|
|
364
253
|
}
|
|
365
|
-
/**
|
|
366
|
-
* <p>An exception thrown when a dependent service such as Facebook or Twitter is not
|
|
367
|
-
* responding</p>
|
|
368
|
-
* @public
|
|
369
|
-
*/
|
|
370
|
-
export declare class ExternalServiceException extends __BaseException {
|
|
371
|
-
readonly name: "ExternalServiceException";
|
|
372
|
-
readonly $fault: "client";
|
|
373
|
-
/**
|
|
374
|
-
* @internal
|
|
375
|
-
*/
|
|
376
|
-
constructor(opts: __ExceptionOptionType<ExternalServiceException, __BaseException>);
|
|
377
|
-
}
|
|
378
254
|
/**
|
|
379
255
|
* <p>Input to the <code>GetCredentialsForIdentity</code> action.</p>
|
|
380
256
|
* @public
|
|
@@ -450,24 +326,6 @@ export interface GetCredentialsForIdentityResponse {
|
|
|
450
326
|
*/
|
|
451
327
|
Credentials?: Credentials | undefined;
|
|
452
328
|
}
|
|
453
|
-
/**
|
|
454
|
-
* <p>If you provided authentication information in the request, the identity pool has no
|
|
455
|
-
* authenticated role configured, or STS returned an error response to the
|
|
456
|
-
* request to assume the authenticated role from the identity pool. If you provided no
|
|
457
|
-
* authentication information in the request, the identity pool has no unauthenticated role
|
|
458
|
-
* configured, or STS returned an error response to the request to assume the
|
|
459
|
-
* unauthenticated role from the identity pool.</p>
|
|
460
|
-
* <p>Your role trust policy must grant <code>AssumeRoleWithWebIdentity</code> permissions to <code>cognito-identity.amazonaws.com</code>.</p>
|
|
461
|
-
* @public
|
|
462
|
-
*/
|
|
463
|
-
export declare class InvalidIdentityPoolConfigurationException extends __BaseException {
|
|
464
|
-
readonly name: "InvalidIdentityPoolConfigurationException";
|
|
465
|
-
readonly $fault: "client";
|
|
466
|
-
/**
|
|
467
|
-
* @internal
|
|
468
|
-
*/
|
|
469
|
-
constructor(opts: __ExceptionOptionType<InvalidIdentityPoolConfigurationException, __BaseException>);
|
|
470
|
-
}
|
|
471
329
|
/**
|
|
472
330
|
* <p>Input to the GetId action.</p>
|
|
473
331
|
* @public
|
|
@@ -540,20 +398,6 @@ export interface GetIdentityPoolRolesInput {
|
|
|
540
398
|
*/
|
|
541
399
|
IdentityPoolId: string | undefined;
|
|
542
400
|
}
|
|
543
|
-
/**
|
|
544
|
-
* @public
|
|
545
|
-
* @enum
|
|
546
|
-
*/
|
|
547
|
-
export declare const MappingRuleMatchType: {
|
|
548
|
-
readonly CONTAINS: "Contains";
|
|
549
|
-
readonly EQUALS: "Equals";
|
|
550
|
-
readonly NOT_EQUAL: "NotEqual";
|
|
551
|
-
readonly STARTS_WITH: "StartsWith";
|
|
552
|
-
};
|
|
553
|
-
/**
|
|
554
|
-
* @public
|
|
555
|
-
*/
|
|
556
|
-
export type MappingRuleMatchType = (typeof MappingRuleMatchType)[keyof typeof MappingRuleMatchType];
|
|
557
401
|
/**
|
|
558
402
|
* <p>A rule that maps a claim name, a claim value, and a match type to a role
|
|
559
403
|
* ARN.</p>
|
|
@@ -595,18 +439,6 @@ export interface RulesConfigurationType {
|
|
|
595
439
|
*/
|
|
596
440
|
Rules: MappingRule[] | undefined;
|
|
597
441
|
}
|
|
598
|
-
/**
|
|
599
|
-
* @public
|
|
600
|
-
* @enum
|
|
601
|
-
*/
|
|
602
|
-
export declare const RoleMappingType: {
|
|
603
|
-
readonly RULES: "Rules";
|
|
604
|
-
readonly TOKEN: "Token";
|
|
605
|
-
};
|
|
606
|
-
/**
|
|
607
|
-
* @public
|
|
608
|
-
*/
|
|
609
|
-
export type RoleMappingType = (typeof RoleMappingType)[keyof typeof RoleMappingType];
|
|
610
442
|
/**
|
|
611
443
|
* <p>A role mapping.</p>
|
|
612
444
|
* @public
|
|
@@ -700,19 +532,6 @@ export interface GetOpenIdTokenResponse {
|
|
|
700
532
|
*/
|
|
701
533
|
Token?: string | undefined;
|
|
702
534
|
}
|
|
703
|
-
/**
|
|
704
|
-
* <p>The provided developer user identifier is already registered with Cognito under a
|
|
705
|
-
* different identity ID.</p>
|
|
706
|
-
* @public
|
|
707
|
-
*/
|
|
708
|
-
export declare class DeveloperUserAlreadyRegisteredException extends __BaseException {
|
|
709
|
-
readonly name: "DeveloperUserAlreadyRegisteredException";
|
|
710
|
-
readonly $fault: "client";
|
|
711
|
-
/**
|
|
712
|
-
* @internal
|
|
713
|
-
*/
|
|
714
|
-
constructor(opts: __ExceptionOptionType<DeveloperUserAlreadyRegisteredException, __BaseException>);
|
|
715
|
-
}
|
|
716
535
|
/**
|
|
717
536
|
* <p>Input to the <code>GetOpenIdTokenForDeveloperIdentity</code> action.</p>
|
|
718
537
|
* @public
|
|
@@ -1050,18 +869,6 @@ export interface MergeDeveloperIdentitiesResponse {
|
|
|
1050
869
|
*/
|
|
1051
870
|
IdentityId?: string | undefined;
|
|
1052
871
|
}
|
|
1053
|
-
/**
|
|
1054
|
-
* <p>Thrown if there are parallel requests to modify a resource.</p>
|
|
1055
|
-
* @public
|
|
1056
|
-
*/
|
|
1057
|
-
export declare class ConcurrentModificationException extends __BaseException {
|
|
1058
|
-
readonly name: "ConcurrentModificationException";
|
|
1059
|
-
readonly $fault: "client";
|
|
1060
|
-
/**
|
|
1061
|
-
* @internal
|
|
1062
|
-
*/
|
|
1063
|
-
constructor(opts: __ExceptionOptionType<ConcurrentModificationException, __BaseException>);
|
|
1064
|
-
}
|
|
1065
872
|
/**
|
|
1066
873
|
* <p>Input to the <code>SetIdentityPoolRoles</code> action.</p>
|
|
1067
874
|
* @public
|
|
@@ -5,5 +5,7 @@ export { RuntimeExtension } from "./runtimeExtensions";
|
|
|
5
5
|
export { CognitoIdentityExtensionConfiguration } from "./extensionConfiguration";
|
|
6
6
|
export * from "./commands";
|
|
7
7
|
export * from "./pagination";
|
|
8
|
-
export * from "./models";
|
|
8
|
+
export * from "./models/enums";
|
|
9
|
+
export * from "./models/errors";
|
|
10
|
+
export * from "./models/models_0";
|
|
9
11
|
export { CognitoIdentityServiceException } from "./models/CognitoIdentityServiceException";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const AmbiguousRoleResolutionType: {
|
|
2
|
+
readonly AUTHENTICATED_ROLE: "AuthenticatedRole";
|
|
3
|
+
readonly DENY: "Deny";
|
|
4
|
+
};
|
|
5
|
+
export type AmbiguousRoleResolutionType =
|
|
6
|
+
(typeof AmbiguousRoleResolutionType)[keyof typeof AmbiguousRoleResolutionType];
|
|
7
|
+
export declare const ErrorCode: {
|
|
8
|
+
readonly ACCESS_DENIED: "AccessDenied";
|
|
9
|
+
readonly INTERNAL_SERVER_ERROR: "InternalServerError";
|
|
10
|
+
};
|
|
11
|
+
export type ErrorCode = (typeof ErrorCode)[keyof typeof ErrorCode];
|
|
12
|
+
export declare const MappingRuleMatchType: {
|
|
13
|
+
readonly CONTAINS: "Contains";
|
|
14
|
+
readonly EQUALS: "Equals";
|
|
15
|
+
readonly NOT_EQUAL: "NotEqual";
|
|
16
|
+
readonly STARTS_WITH: "StartsWith";
|
|
17
|
+
};
|
|
18
|
+
export type MappingRuleMatchType =
|
|
19
|
+
(typeof MappingRuleMatchType)[keyof typeof MappingRuleMatchType];
|
|
20
|
+
export declare const RoleMappingType: {
|
|
21
|
+
readonly RULES: "Rules";
|
|
22
|
+
readonly TOKEN: "Token";
|
|
23
|
+
};
|
|
24
|
+
export type RoleMappingType =
|
|
25
|
+
(typeof RoleMappingType)[keyof typeof RoleMappingType];
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import { CognitoIdentityServiceException as __BaseException } from "./CognitoIdentityServiceException";
|
|
3
|
+
export declare class InternalErrorException extends __BaseException {
|
|
4
|
+
readonly name: "InternalErrorException";
|
|
5
|
+
readonly $fault: "server";
|
|
6
|
+
constructor(
|
|
7
|
+
opts: __ExceptionOptionType<InternalErrorException, __BaseException>
|
|
8
|
+
);
|
|
9
|
+
}
|
|
10
|
+
export declare class InvalidParameterException extends __BaseException {
|
|
11
|
+
readonly name: "InvalidParameterException";
|
|
12
|
+
readonly $fault: "client";
|
|
13
|
+
constructor(
|
|
14
|
+
opts: __ExceptionOptionType<InvalidParameterException, __BaseException>
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
export declare class LimitExceededException extends __BaseException {
|
|
18
|
+
readonly name: "LimitExceededException";
|
|
19
|
+
readonly $fault: "client";
|
|
20
|
+
constructor(
|
|
21
|
+
opts: __ExceptionOptionType<LimitExceededException, __BaseException>
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
export declare class NotAuthorizedException extends __BaseException {
|
|
25
|
+
readonly name: "NotAuthorizedException";
|
|
26
|
+
readonly $fault: "client";
|
|
27
|
+
constructor(
|
|
28
|
+
opts: __ExceptionOptionType<NotAuthorizedException, __BaseException>
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
export declare class ResourceConflictException extends __BaseException {
|
|
32
|
+
readonly name: "ResourceConflictException";
|
|
33
|
+
readonly $fault: "client";
|
|
34
|
+
constructor(
|
|
35
|
+
opts: __ExceptionOptionType<ResourceConflictException, __BaseException>
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
export declare class TooManyRequestsException extends __BaseException {
|
|
39
|
+
readonly name: "TooManyRequestsException";
|
|
40
|
+
readonly $fault: "client";
|
|
41
|
+
constructor(
|
|
42
|
+
opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
46
|
+
readonly name: "ResourceNotFoundException";
|
|
47
|
+
readonly $fault: "client";
|
|
48
|
+
constructor(
|
|
49
|
+
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
export declare class ExternalServiceException extends __BaseException {
|
|
53
|
+
readonly name: "ExternalServiceException";
|
|
54
|
+
readonly $fault: "client";
|
|
55
|
+
constructor(
|
|
56
|
+
opts: __ExceptionOptionType<ExternalServiceException, __BaseException>
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
export declare class InvalidIdentityPoolConfigurationException extends __BaseException {
|
|
60
|
+
readonly name: "InvalidIdentityPoolConfigurationException";
|
|
61
|
+
readonly $fault: "client";
|
|
62
|
+
constructor(
|
|
63
|
+
opts: __ExceptionOptionType<
|
|
64
|
+
InvalidIdentityPoolConfigurationException,
|
|
65
|
+
__BaseException
|
|
66
|
+
>
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
export declare class DeveloperUserAlreadyRegisteredException extends __BaseException {
|
|
70
|
+
readonly name: "DeveloperUserAlreadyRegisteredException";
|
|
71
|
+
readonly $fault: "client";
|
|
72
|
+
constructor(
|
|
73
|
+
opts: __ExceptionOptionType<
|
|
74
|
+
DeveloperUserAlreadyRegisteredException,
|
|
75
|
+
__BaseException
|
|
76
|
+
>
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
export declare class ConcurrentModificationException extends __BaseException {
|
|
80
|
+
readonly name: "ConcurrentModificationException";
|
|
81
|
+
readonly $fault: "client";
|
|
82
|
+
constructor(
|
|
83
|
+
opts: __ExceptionOptionType<
|
|
84
|
+
ConcurrentModificationException,
|
|
85
|
+
__BaseException
|
|
86
|
+
>
|
|
87
|
+
);
|
|
88
|
+
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
export type AmbiguousRoleResolutionType =
|
|
8
|
-
(typeof AmbiguousRoleResolutionType)[keyof typeof AmbiguousRoleResolutionType];
|
|
1
|
+
import {
|
|
2
|
+
AmbiguousRoleResolutionType,
|
|
3
|
+
ErrorCode,
|
|
4
|
+
MappingRuleMatchType,
|
|
5
|
+
RoleMappingType,
|
|
6
|
+
} from "./enums";
|
|
9
7
|
export interface CognitoIdentityProvider {
|
|
10
8
|
ProviderName?: string | undefined;
|
|
11
9
|
ClientId?: string | undefined;
|
|
@@ -34,56 +32,9 @@ export interface IdentityPool {
|
|
|
34
32
|
SamlProviderARNs?: string[] | undefined;
|
|
35
33
|
IdentityPoolTags?: Record<string, string> | undefined;
|
|
36
34
|
}
|
|
37
|
-
export declare class InternalErrorException extends __BaseException {
|
|
38
|
-
readonly name: "InternalErrorException";
|
|
39
|
-
readonly $fault: "server";
|
|
40
|
-
constructor(
|
|
41
|
-
opts: __ExceptionOptionType<InternalErrorException, __BaseException>
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
export declare class InvalidParameterException extends __BaseException {
|
|
45
|
-
readonly name: "InvalidParameterException";
|
|
46
|
-
readonly $fault: "client";
|
|
47
|
-
constructor(
|
|
48
|
-
opts: __ExceptionOptionType<InvalidParameterException, __BaseException>
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
export declare class LimitExceededException extends __BaseException {
|
|
52
|
-
readonly name: "LimitExceededException";
|
|
53
|
-
readonly $fault: "client";
|
|
54
|
-
constructor(
|
|
55
|
-
opts: __ExceptionOptionType<LimitExceededException, __BaseException>
|
|
56
|
-
);
|
|
57
|
-
}
|
|
58
|
-
export declare class NotAuthorizedException extends __BaseException {
|
|
59
|
-
readonly name: "NotAuthorizedException";
|
|
60
|
-
readonly $fault: "client";
|
|
61
|
-
constructor(
|
|
62
|
-
opts: __ExceptionOptionType<NotAuthorizedException, __BaseException>
|
|
63
|
-
);
|
|
64
|
-
}
|
|
65
|
-
export declare class ResourceConflictException extends __BaseException {
|
|
66
|
-
readonly name: "ResourceConflictException";
|
|
67
|
-
readonly $fault: "client";
|
|
68
|
-
constructor(
|
|
69
|
-
opts: __ExceptionOptionType<ResourceConflictException, __BaseException>
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
export declare class TooManyRequestsException extends __BaseException {
|
|
73
|
-
readonly name: "TooManyRequestsException";
|
|
74
|
-
readonly $fault: "client";
|
|
75
|
-
constructor(
|
|
76
|
-
opts: __ExceptionOptionType<TooManyRequestsException, __BaseException>
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
35
|
export interface DeleteIdentitiesInput {
|
|
80
36
|
IdentityIdsToDelete: string[] | undefined;
|
|
81
37
|
}
|
|
82
|
-
export declare const ErrorCode: {
|
|
83
|
-
readonly ACCESS_DENIED: "AccessDenied";
|
|
84
|
-
readonly INTERNAL_SERVER_ERROR: "InternalServerError";
|
|
85
|
-
};
|
|
86
|
-
export type ErrorCode = (typeof ErrorCode)[keyof typeof ErrorCode];
|
|
87
38
|
export interface UnprocessedIdentityId {
|
|
88
39
|
IdentityId?: string | undefined;
|
|
89
40
|
ErrorCode?: ErrorCode | undefined;
|
|
@@ -94,13 +45,6 @@ export interface DeleteIdentitiesResponse {
|
|
|
94
45
|
export interface DeleteIdentityPoolInput {
|
|
95
46
|
IdentityPoolId: string | undefined;
|
|
96
47
|
}
|
|
97
|
-
export declare class ResourceNotFoundException extends __BaseException {
|
|
98
|
-
readonly name: "ResourceNotFoundException";
|
|
99
|
-
readonly $fault: "client";
|
|
100
|
-
constructor(
|
|
101
|
-
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
|
|
102
|
-
);
|
|
103
|
-
}
|
|
104
48
|
export interface DescribeIdentityInput {
|
|
105
49
|
IdentityId: string | undefined;
|
|
106
50
|
}
|
|
@@ -113,13 +57,6 @@ export interface IdentityDescription {
|
|
|
113
57
|
export interface DescribeIdentityPoolInput {
|
|
114
58
|
IdentityPoolId: string | undefined;
|
|
115
59
|
}
|
|
116
|
-
export declare class ExternalServiceException extends __BaseException {
|
|
117
|
-
readonly name: "ExternalServiceException";
|
|
118
|
-
readonly $fault: "client";
|
|
119
|
-
constructor(
|
|
120
|
-
opts: __ExceptionOptionType<ExternalServiceException, __BaseException>
|
|
121
|
-
);
|
|
122
|
-
}
|
|
123
60
|
export interface GetCredentialsForIdentityInput {
|
|
124
61
|
IdentityId: string | undefined;
|
|
125
62
|
Logins?: Record<string, string> | undefined;
|
|
@@ -135,16 +72,6 @@ export interface GetCredentialsForIdentityResponse {
|
|
|
135
72
|
IdentityId?: string | undefined;
|
|
136
73
|
Credentials?: Credentials | undefined;
|
|
137
74
|
}
|
|
138
|
-
export declare class InvalidIdentityPoolConfigurationException extends __BaseException {
|
|
139
|
-
readonly name: "InvalidIdentityPoolConfigurationException";
|
|
140
|
-
readonly $fault: "client";
|
|
141
|
-
constructor(
|
|
142
|
-
opts: __ExceptionOptionType<
|
|
143
|
-
InvalidIdentityPoolConfigurationException,
|
|
144
|
-
__BaseException
|
|
145
|
-
>
|
|
146
|
-
);
|
|
147
|
-
}
|
|
148
75
|
export interface GetIdInput {
|
|
149
76
|
AccountId?: string | undefined;
|
|
150
77
|
IdentityPoolId: string | undefined;
|
|
@@ -156,14 +83,6 @@ export interface GetIdResponse {
|
|
|
156
83
|
export interface GetIdentityPoolRolesInput {
|
|
157
84
|
IdentityPoolId: string | undefined;
|
|
158
85
|
}
|
|
159
|
-
export declare const MappingRuleMatchType: {
|
|
160
|
-
readonly CONTAINS: "Contains";
|
|
161
|
-
readonly EQUALS: "Equals";
|
|
162
|
-
readonly NOT_EQUAL: "NotEqual";
|
|
163
|
-
readonly STARTS_WITH: "StartsWith";
|
|
164
|
-
};
|
|
165
|
-
export type MappingRuleMatchType =
|
|
166
|
-
(typeof MappingRuleMatchType)[keyof typeof MappingRuleMatchType];
|
|
167
86
|
export interface MappingRule {
|
|
168
87
|
Claim: string | undefined;
|
|
169
88
|
MatchType: MappingRuleMatchType | undefined;
|
|
@@ -173,12 +92,6 @@ export interface MappingRule {
|
|
|
173
92
|
export interface RulesConfigurationType {
|
|
174
93
|
Rules: MappingRule[] | undefined;
|
|
175
94
|
}
|
|
176
|
-
export declare const RoleMappingType: {
|
|
177
|
-
readonly RULES: "Rules";
|
|
178
|
-
readonly TOKEN: "Token";
|
|
179
|
-
};
|
|
180
|
-
export type RoleMappingType =
|
|
181
|
-
(typeof RoleMappingType)[keyof typeof RoleMappingType];
|
|
182
95
|
export interface RoleMapping {
|
|
183
96
|
Type: RoleMappingType | undefined;
|
|
184
97
|
AmbiguousRoleResolution?: AmbiguousRoleResolutionType | undefined;
|
|
@@ -197,16 +110,6 @@ export interface GetOpenIdTokenResponse {
|
|
|
197
110
|
IdentityId?: string | undefined;
|
|
198
111
|
Token?: string | undefined;
|
|
199
112
|
}
|
|
200
|
-
export declare class DeveloperUserAlreadyRegisteredException extends __BaseException {
|
|
201
|
-
readonly name: "DeveloperUserAlreadyRegisteredException";
|
|
202
|
-
readonly $fault: "client";
|
|
203
|
-
constructor(
|
|
204
|
-
opts: __ExceptionOptionType<
|
|
205
|
-
DeveloperUserAlreadyRegisteredException,
|
|
206
|
-
__BaseException
|
|
207
|
-
>
|
|
208
|
-
);
|
|
209
|
-
}
|
|
210
113
|
export interface GetOpenIdTokenForDeveloperIdentityInput {
|
|
211
114
|
IdentityPoolId: string | undefined;
|
|
212
115
|
IdentityId?: string | undefined;
|
|
@@ -278,16 +181,6 @@ export interface MergeDeveloperIdentitiesInput {
|
|
|
278
181
|
export interface MergeDeveloperIdentitiesResponse {
|
|
279
182
|
IdentityId?: string | undefined;
|
|
280
183
|
}
|
|
281
|
-
export declare class ConcurrentModificationException extends __BaseException {
|
|
282
|
-
readonly name: "ConcurrentModificationException";
|
|
283
|
-
readonly $fault: "client";
|
|
284
|
-
constructor(
|
|
285
|
-
opts: __ExceptionOptionType<
|
|
286
|
-
ConcurrentModificationException,
|
|
287
|
-
__BaseException
|
|
288
|
-
>
|
|
289
|
-
);
|
|
290
|
-
}
|
|
291
184
|
export interface SetIdentityPoolRolesInput {
|
|
292
185
|
IdentityPoolId: string | undefined;
|
|
293
186
|
Roles: Record<string, string> | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cognito-identity",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cognito Identity Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.935.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-cognito-identity",
|
|
@@ -22,38 +22,38 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
24
24
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/core": "3.935.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.935.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.930.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.930.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.933.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.935.0",
|
|
31
31
|
"@aws-sdk/region-config-resolver": "3.930.0",
|
|
32
32
|
"@aws-sdk/types": "3.930.0",
|
|
33
33
|
"@aws-sdk/util-endpoints": "3.930.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.930.0",
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.935.0",
|
|
36
36
|
"@smithy/config-resolver": "^4.4.3",
|
|
37
|
-
"@smithy/core": "^3.18.
|
|
37
|
+
"@smithy/core": "^3.18.5",
|
|
38
38
|
"@smithy/fetch-http-handler": "^5.3.6",
|
|
39
39
|
"@smithy/hash-node": "^4.2.5",
|
|
40
40
|
"@smithy/invalid-dependency": "^4.2.5",
|
|
41
41
|
"@smithy/middleware-content-length": "^4.2.5",
|
|
42
|
-
"@smithy/middleware-endpoint": "^4.3.
|
|
43
|
-
"@smithy/middleware-retry": "^4.4.
|
|
44
|
-
"@smithy/middleware-serde": "^4.2.
|
|
42
|
+
"@smithy/middleware-endpoint": "^4.3.12",
|
|
43
|
+
"@smithy/middleware-retry": "^4.4.12",
|
|
44
|
+
"@smithy/middleware-serde": "^4.2.6",
|
|
45
45
|
"@smithy/middleware-stack": "^4.2.5",
|
|
46
46
|
"@smithy/node-config-provider": "^4.3.5",
|
|
47
47
|
"@smithy/node-http-handler": "^4.4.5",
|
|
48
48
|
"@smithy/protocol-http": "^5.3.5",
|
|
49
|
-
"@smithy/smithy-client": "^4.9.
|
|
49
|
+
"@smithy/smithy-client": "^4.9.8",
|
|
50
50
|
"@smithy/types": "^4.9.0",
|
|
51
51
|
"@smithy/url-parser": "^4.2.5",
|
|
52
52
|
"@smithy/util-base64": "^4.3.0",
|
|
53
53
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
54
54
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
55
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
55
|
+
"@smithy/util-defaults-mode-browser": "^4.3.11",
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^4.2.14",
|
|
57
57
|
"@smithy/util-endpoints": "^3.2.5",
|
|
58
58
|
"@smithy/util-middleware": "^4.2.5",
|
|
59
59
|
"@smithy/util-retry": "^4.2.5",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"tslib": "^2.6.2"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@aws-sdk/client-iam": "3.
|
|
64
|
+
"@aws-sdk/client-iam": "3.935.0",
|
|
65
65
|
"@tsconfig/node18": "18.2.4",
|
|
66
66
|
"@types/chai": "^4.2.11",
|
|
67
67
|
"@types/node": "^18.19.69",
|
package/dist-es/models/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./models_0";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./models_0";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./models_0";
|