@aws-sdk/client-cognito-identity 3.1136.0 → 3.1138.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 CHANGED
@@ -94,7 +94,7 @@ const commonParams = {
94
94
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
95
95
  };
96
96
 
97
- var version = "3.1135.0";
97
+ var version = "3.1137.0";
98
98
  var packageInfo = {
99
99
  version: version};
100
100
 
@@ -462,10 +462,10 @@ const _m = "message";
462
462
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity";
463
463
  const _se = "server";
464
464
  const n0 = "com.amazonaws.cognitoidentity";
465
- const _s_registry = TypeRegistry.for(_s);
465
+ const _s_registry = new TypeRegistry(_s);
466
466
  var CognitoIdentityServiceException$ = [-3, _s, "CognitoIdentityServiceException", 0, [], []];
467
467
  _s_registry.registerError(CognitoIdentityServiceException$, CognitoIdentityServiceException);
468
- const n0_registry = TypeRegistry.for(n0);
468
+ const n0_registry = new TypeRegistry(n0);
469
469
  var ConcurrentModificationException$ = [-3, n0, _CME,
470
470
  { [_e]: _c, [_hE]: 400 },
471
471
  [_m],
@@ -152,10 +152,10 @@ const n0 = "com.amazonaws.cognitoidentity";
152
152
  import { TypeRegistry } from "@smithy/core/schema";
153
153
  import { CognitoIdentityServiceException } from "../models/CognitoIdentityServiceException";
154
154
  import { ConcurrentModificationException, DeveloperUserAlreadyRegisteredException, ExternalServiceException, InternalErrorException, InvalidIdentityPoolConfigurationException, InvalidParameterException, LimitExceededException, NotAuthorizedException, ResourceConflictException, ResourceNotFoundException, TooManyRequestsException, } from "../models/errors";
155
- const _s_registry = TypeRegistry.for(_s);
155
+ const _s_registry = new TypeRegistry(_s);
156
156
  export var CognitoIdentityServiceException$ = [-3, _s, "CognitoIdentityServiceException", 0, [], []];
157
157
  _s_registry.registerError(CognitoIdentityServiceException$, CognitoIdentityServiceException);
158
- const n0_registry = TypeRegistry.for(n0);
158
+ const n0_registry = new TypeRegistry(n0);
159
159
  export var ConcurrentModificationException$ = [-3, n0, _CME,
160
160
  { [_e]: _c, [_hE]: 400 },
161
161
  [_m],
@@ -1,4 +1,4 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder, PaginationConfiguration, Paginator } from "@smithy/types";
2
2
  import { CognitoIdentityClient } from "./CognitoIdentityClient";
3
3
  import { type CreateIdentityPoolCommandInput, type CreateIdentityPoolCommandOutput } from "./commands/CreateIdentityPoolCommand";
4
4
  import { type DeleteIdentitiesCommandInput, type DeleteIdentitiesCommandOutput } from "./commands/DeleteIdentitiesCommand";
@@ -23,145 +23,151 @@ import { type UnlinkDeveloperIdentityCommandInput, type UnlinkDeveloperIdentityC
23
23
  import { type UnlinkIdentityCommandInput, type UnlinkIdentityCommandOutput } from "./commands/UnlinkIdentityCommand";
24
24
  import { type UntagResourceCommandInput, type UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
25
25
  import { type UpdateIdentityPoolCommandInput, type UpdateIdentityPoolCommandOutput } from "./commands/UpdateIdentityPoolCommand";
26
+ /**
27
+ * @public
28
+ */
29
+ export interface CognitoIdentityRequestOptions extends __HttpHandlerOptions {
30
+ metricsRecorder?: __MetricsRecorder<unknown>;
31
+ }
26
32
  export interface CognitoIdentity {
27
33
  /**
28
34
  * @see {@link CreateIdentityPoolCommand}
29
35
  */
30
- createIdentityPool(args: CreateIdentityPoolCommandInput, options?: __HttpHandlerOptions): Promise<CreateIdentityPoolCommandOutput>;
36
+ createIdentityPool(args: CreateIdentityPoolCommandInput, options?: CognitoIdentityRequestOptions): Promise<CreateIdentityPoolCommandOutput>;
31
37
  createIdentityPool(args: CreateIdentityPoolCommandInput, cb: (err: any, data?: CreateIdentityPoolCommandOutput) => void): void;
32
- createIdentityPool(args: CreateIdentityPoolCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateIdentityPoolCommandOutput) => void): void;
38
+ createIdentityPool(args: CreateIdentityPoolCommandInput, options: CognitoIdentityRequestOptions, cb: (err: any, data?: CreateIdentityPoolCommandOutput) => void): void;
33
39
  /**
34
40
  * @see {@link DeleteIdentitiesCommand}
35
41
  */
36
- deleteIdentities(args: DeleteIdentitiesCommandInput, options?: __HttpHandlerOptions): Promise<DeleteIdentitiesCommandOutput>;
42
+ deleteIdentities(args: DeleteIdentitiesCommandInput, options?: CognitoIdentityRequestOptions): Promise<DeleteIdentitiesCommandOutput>;
37
43
  deleteIdentities(args: DeleteIdentitiesCommandInput, cb: (err: any, data?: DeleteIdentitiesCommandOutput) => void): void;
38
- deleteIdentities(args: DeleteIdentitiesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteIdentitiesCommandOutput) => void): void;
44
+ deleteIdentities(args: DeleteIdentitiesCommandInput, options: CognitoIdentityRequestOptions, cb: (err: any, data?: DeleteIdentitiesCommandOutput) => void): void;
39
45
  /**
40
46
  * @see {@link DeleteIdentityPoolCommand}
41
47
  */
42
- deleteIdentityPool(args: DeleteIdentityPoolCommandInput, options?: __HttpHandlerOptions): Promise<DeleteIdentityPoolCommandOutput>;
48
+ deleteIdentityPool(args: DeleteIdentityPoolCommandInput, options?: CognitoIdentityRequestOptions): Promise<DeleteIdentityPoolCommandOutput>;
43
49
  deleteIdentityPool(args: DeleteIdentityPoolCommandInput, cb: (err: any, data?: DeleteIdentityPoolCommandOutput) => void): void;
44
- deleteIdentityPool(args: DeleteIdentityPoolCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteIdentityPoolCommandOutput) => void): void;
50
+ deleteIdentityPool(args: DeleteIdentityPoolCommandInput, options: CognitoIdentityRequestOptions, cb: (err: any, data?: DeleteIdentityPoolCommandOutput) => void): void;
45
51
  /**
46
52
  * @see {@link DescribeIdentityCommand}
47
53
  */
48
- describeIdentity(args: DescribeIdentityCommandInput, options?: __HttpHandlerOptions): Promise<DescribeIdentityCommandOutput>;
54
+ describeIdentity(args: DescribeIdentityCommandInput, options?: CognitoIdentityRequestOptions): Promise<DescribeIdentityCommandOutput>;
49
55
  describeIdentity(args: DescribeIdentityCommandInput, cb: (err: any, data?: DescribeIdentityCommandOutput) => void): void;
50
- describeIdentity(args: DescribeIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeIdentityCommandOutput) => void): void;
56
+ describeIdentity(args: DescribeIdentityCommandInput, options: CognitoIdentityRequestOptions, cb: (err: any, data?: DescribeIdentityCommandOutput) => void): void;
51
57
  /**
52
58
  * @see {@link DescribeIdentityPoolCommand}
53
59
  */
54
- describeIdentityPool(args: DescribeIdentityPoolCommandInput, options?: __HttpHandlerOptions): Promise<DescribeIdentityPoolCommandOutput>;
60
+ describeIdentityPool(args: DescribeIdentityPoolCommandInput, options?: CognitoIdentityRequestOptions): Promise<DescribeIdentityPoolCommandOutput>;
55
61
  describeIdentityPool(args: DescribeIdentityPoolCommandInput, cb: (err: any, data?: DescribeIdentityPoolCommandOutput) => void): void;
56
- describeIdentityPool(args: DescribeIdentityPoolCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeIdentityPoolCommandOutput) => void): void;
62
+ describeIdentityPool(args: DescribeIdentityPoolCommandInput, options: CognitoIdentityRequestOptions, cb: (err: any, data?: DescribeIdentityPoolCommandOutput) => void): void;
57
63
  /**
58
64
  * @see {@link GetCredentialsForIdentityCommand}
59
65
  */
60
- getCredentialsForIdentity(args: GetCredentialsForIdentityCommandInput, options?: __HttpHandlerOptions): Promise<GetCredentialsForIdentityCommandOutput>;
66
+ getCredentialsForIdentity(args: GetCredentialsForIdentityCommandInput, options?: CognitoIdentityRequestOptions): Promise<GetCredentialsForIdentityCommandOutput>;
61
67
  getCredentialsForIdentity(args: GetCredentialsForIdentityCommandInput, cb: (err: any, data?: GetCredentialsForIdentityCommandOutput) => void): void;
62
- getCredentialsForIdentity(args: GetCredentialsForIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCredentialsForIdentityCommandOutput) => void): void;
68
+ getCredentialsForIdentity(args: GetCredentialsForIdentityCommandInput, options: CognitoIdentityRequestOptions, cb: (err: any, data?: GetCredentialsForIdentityCommandOutput) => void): void;
63
69
  /**
64
70
  * @see {@link GetIdCommand}
65
71
  */
66
- getId(args: GetIdCommandInput, options?: __HttpHandlerOptions): Promise<GetIdCommandOutput>;
72
+ getId(args: GetIdCommandInput, options?: CognitoIdentityRequestOptions): Promise<GetIdCommandOutput>;
67
73
  getId(args: GetIdCommandInput, cb: (err: any, data?: GetIdCommandOutput) => void): void;
68
- getId(args: GetIdCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetIdCommandOutput) => void): void;
74
+ getId(args: GetIdCommandInput, options: CognitoIdentityRequestOptions, cb: (err: any, data?: GetIdCommandOutput) => void): void;
69
75
  /**
70
76
  * @see {@link GetIdentityPoolRolesCommand}
71
77
  */
72
- getIdentityPoolRoles(args: GetIdentityPoolRolesCommandInput, options?: __HttpHandlerOptions): Promise<GetIdentityPoolRolesCommandOutput>;
78
+ getIdentityPoolRoles(args: GetIdentityPoolRolesCommandInput, options?: CognitoIdentityRequestOptions): Promise<GetIdentityPoolRolesCommandOutput>;
73
79
  getIdentityPoolRoles(args: GetIdentityPoolRolesCommandInput, cb: (err: any, data?: GetIdentityPoolRolesCommandOutput) => void): void;
74
- getIdentityPoolRoles(args: GetIdentityPoolRolesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetIdentityPoolRolesCommandOutput) => void): void;
80
+ getIdentityPoolRoles(args: GetIdentityPoolRolesCommandInput, options: CognitoIdentityRequestOptions, cb: (err: any, data?: GetIdentityPoolRolesCommandOutput) => void): void;
75
81
  /**
76
82
  * @see {@link GetOpenIdTokenCommand}
77
83
  */
78
- getOpenIdToken(args: GetOpenIdTokenCommandInput, options?: __HttpHandlerOptions): Promise<GetOpenIdTokenCommandOutput>;
84
+ getOpenIdToken(args: GetOpenIdTokenCommandInput, options?: CognitoIdentityRequestOptions): Promise<GetOpenIdTokenCommandOutput>;
79
85
  getOpenIdToken(args: GetOpenIdTokenCommandInput, cb: (err: any, data?: GetOpenIdTokenCommandOutput) => void): void;
80
- getOpenIdToken(args: GetOpenIdTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOpenIdTokenCommandOutput) => void): void;
86
+ getOpenIdToken(args: GetOpenIdTokenCommandInput, options: CognitoIdentityRequestOptions, cb: (err: any, data?: GetOpenIdTokenCommandOutput) => void): void;
81
87
  /**
82
88
  * @see {@link GetOpenIdTokenForDeveloperIdentityCommand}
83
89
  */
84
- getOpenIdTokenForDeveloperIdentity(args: GetOpenIdTokenForDeveloperIdentityCommandInput, options?: __HttpHandlerOptions): Promise<GetOpenIdTokenForDeveloperIdentityCommandOutput>;
90
+ getOpenIdTokenForDeveloperIdentity(args: GetOpenIdTokenForDeveloperIdentityCommandInput, options?: CognitoIdentityRequestOptions): Promise<GetOpenIdTokenForDeveloperIdentityCommandOutput>;
85
91
  getOpenIdTokenForDeveloperIdentity(args: GetOpenIdTokenForDeveloperIdentityCommandInput, cb: (err: any, data?: GetOpenIdTokenForDeveloperIdentityCommandOutput) => void): void;
86
- getOpenIdTokenForDeveloperIdentity(args: GetOpenIdTokenForDeveloperIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOpenIdTokenForDeveloperIdentityCommandOutput) => void): void;
92
+ getOpenIdTokenForDeveloperIdentity(args: GetOpenIdTokenForDeveloperIdentityCommandInput, options: CognitoIdentityRequestOptions, cb: (err: any, data?: GetOpenIdTokenForDeveloperIdentityCommandOutput) => void): void;
87
93
  /**
88
94
  * @see {@link GetPrincipalTagAttributeMapCommand}
89
95
  */
90
- getPrincipalTagAttributeMap(args: GetPrincipalTagAttributeMapCommandInput, options?: __HttpHandlerOptions): Promise<GetPrincipalTagAttributeMapCommandOutput>;
96
+ getPrincipalTagAttributeMap(args: GetPrincipalTagAttributeMapCommandInput, options?: CognitoIdentityRequestOptions): Promise<GetPrincipalTagAttributeMapCommandOutput>;
91
97
  getPrincipalTagAttributeMap(args: GetPrincipalTagAttributeMapCommandInput, cb: (err: any, data?: GetPrincipalTagAttributeMapCommandOutput) => void): void;
92
- getPrincipalTagAttributeMap(args: GetPrincipalTagAttributeMapCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPrincipalTagAttributeMapCommandOutput) => void): void;
98
+ getPrincipalTagAttributeMap(args: GetPrincipalTagAttributeMapCommandInput, options: CognitoIdentityRequestOptions, cb: (err: any, data?: GetPrincipalTagAttributeMapCommandOutput) => void): void;
93
99
  /**
94
100
  * @see {@link ListIdentitiesCommand}
95
101
  */
96
- listIdentities(args: ListIdentitiesCommandInput, options?: __HttpHandlerOptions): Promise<ListIdentitiesCommandOutput>;
102
+ listIdentities(args: ListIdentitiesCommandInput, options?: CognitoIdentityRequestOptions): Promise<ListIdentitiesCommandOutput>;
97
103
  listIdentities(args: ListIdentitiesCommandInput, cb: (err: any, data?: ListIdentitiesCommandOutput) => void): void;
98
- listIdentities(args: ListIdentitiesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListIdentitiesCommandOutput) => void): void;
104
+ listIdentities(args: ListIdentitiesCommandInput, options: CognitoIdentityRequestOptions, cb: (err: any, data?: ListIdentitiesCommandOutput) => void): void;
99
105
  /**
100
106
  * @see {@link ListIdentityPoolsCommand}
101
107
  */
102
- listIdentityPools(args: ListIdentityPoolsCommandInput, options?: __HttpHandlerOptions): Promise<ListIdentityPoolsCommandOutput>;
108
+ listIdentityPools(args: ListIdentityPoolsCommandInput, options?: CognitoIdentityRequestOptions): Promise<ListIdentityPoolsCommandOutput>;
103
109
  listIdentityPools(args: ListIdentityPoolsCommandInput, cb: (err: any, data?: ListIdentityPoolsCommandOutput) => void): void;
104
- listIdentityPools(args: ListIdentityPoolsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListIdentityPoolsCommandOutput) => void): void;
110
+ listIdentityPools(args: ListIdentityPoolsCommandInput, options: CognitoIdentityRequestOptions, cb: (err: any, data?: ListIdentityPoolsCommandOutput) => void): void;
105
111
  /**
106
112
  * @see {@link ListTagsForResourceCommand}
107
113
  */
108
- listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
114
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: CognitoIdentityRequestOptions): Promise<ListTagsForResourceCommandOutput>;
109
115
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
110
- listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
116
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: CognitoIdentityRequestOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
111
117
  /**
112
118
  * @see {@link LookupDeveloperIdentityCommand}
113
119
  */
114
- lookupDeveloperIdentity(args: LookupDeveloperIdentityCommandInput, options?: __HttpHandlerOptions): Promise<LookupDeveloperIdentityCommandOutput>;
120
+ lookupDeveloperIdentity(args: LookupDeveloperIdentityCommandInput, options?: CognitoIdentityRequestOptions): Promise<LookupDeveloperIdentityCommandOutput>;
115
121
  lookupDeveloperIdentity(args: LookupDeveloperIdentityCommandInput, cb: (err: any, data?: LookupDeveloperIdentityCommandOutput) => void): void;
116
- lookupDeveloperIdentity(args: LookupDeveloperIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: LookupDeveloperIdentityCommandOutput) => void): void;
122
+ lookupDeveloperIdentity(args: LookupDeveloperIdentityCommandInput, options: CognitoIdentityRequestOptions, cb: (err: any, data?: LookupDeveloperIdentityCommandOutput) => void): void;
117
123
  /**
118
124
  * @see {@link MergeDeveloperIdentitiesCommand}
119
125
  */
120
- mergeDeveloperIdentities(args: MergeDeveloperIdentitiesCommandInput, options?: __HttpHandlerOptions): Promise<MergeDeveloperIdentitiesCommandOutput>;
126
+ mergeDeveloperIdentities(args: MergeDeveloperIdentitiesCommandInput, options?: CognitoIdentityRequestOptions): Promise<MergeDeveloperIdentitiesCommandOutput>;
121
127
  mergeDeveloperIdentities(args: MergeDeveloperIdentitiesCommandInput, cb: (err: any, data?: MergeDeveloperIdentitiesCommandOutput) => void): void;
122
- mergeDeveloperIdentities(args: MergeDeveloperIdentitiesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: MergeDeveloperIdentitiesCommandOutput) => void): void;
128
+ mergeDeveloperIdentities(args: MergeDeveloperIdentitiesCommandInput, options: CognitoIdentityRequestOptions, cb: (err: any, data?: MergeDeveloperIdentitiesCommandOutput) => void): void;
123
129
  /**
124
130
  * @see {@link SetIdentityPoolRolesCommand}
125
131
  */
126
- setIdentityPoolRoles(args: SetIdentityPoolRolesCommandInput, options?: __HttpHandlerOptions): Promise<SetIdentityPoolRolesCommandOutput>;
132
+ setIdentityPoolRoles(args: SetIdentityPoolRolesCommandInput, options?: CognitoIdentityRequestOptions): Promise<SetIdentityPoolRolesCommandOutput>;
127
133
  setIdentityPoolRoles(args: SetIdentityPoolRolesCommandInput, cb: (err: any, data?: SetIdentityPoolRolesCommandOutput) => void): void;
128
- setIdentityPoolRoles(args: SetIdentityPoolRolesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SetIdentityPoolRolesCommandOutput) => void): void;
134
+ setIdentityPoolRoles(args: SetIdentityPoolRolesCommandInput, options: CognitoIdentityRequestOptions, cb: (err: any, data?: SetIdentityPoolRolesCommandOutput) => void): void;
129
135
  /**
130
136
  * @see {@link SetPrincipalTagAttributeMapCommand}
131
137
  */
132
- setPrincipalTagAttributeMap(args: SetPrincipalTagAttributeMapCommandInput, options?: __HttpHandlerOptions): Promise<SetPrincipalTagAttributeMapCommandOutput>;
138
+ setPrincipalTagAttributeMap(args: SetPrincipalTagAttributeMapCommandInput, options?: CognitoIdentityRequestOptions): Promise<SetPrincipalTagAttributeMapCommandOutput>;
133
139
  setPrincipalTagAttributeMap(args: SetPrincipalTagAttributeMapCommandInput, cb: (err: any, data?: SetPrincipalTagAttributeMapCommandOutput) => void): void;
134
- setPrincipalTagAttributeMap(args: SetPrincipalTagAttributeMapCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SetPrincipalTagAttributeMapCommandOutput) => void): void;
140
+ setPrincipalTagAttributeMap(args: SetPrincipalTagAttributeMapCommandInput, options: CognitoIdentityRequestOptions, cb: (err: any, data?: SetPrincipalTagAttributeMapCommandOutput) => void): void;
135
141
  /**
136
142
  * @see {@link TagResourceCommand}
137
143
  */
138
- tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
144
+ tagResource(args: TagResourceCommandInput, options?: CognitoIdentityRequestOptions): Promise<TagResourceCommandOutput>;
139
145
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
140
- tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
146
+ tagResource(args: TagResourceCommandInput, options: CognitoIdentityRequestOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
141
147
  /**
142
148
  * @see {@link UnlinkDeveloperIdentityCommand}
143
149
  */
144
- unlinkDeveloperIdentity(args: UnlinkDeveloperIdentityCommandInput, options?: __HttpHandlerOptions): Promise<UnlinkDeveloperIdentityCommandOutput>;
150
+ unlinkDeveloperIdentity(args: UnlinkDeveloperIdentityCommandInput, options?: CognitoIdentityRequestOptions): Promise<UnlinkDeveloperIdentityCommandOutput>;
145
151
  unlinkDeveloperIdentity(args: UnlinkDeveloperIdentityCommandInput, cb: (err: any, data?: UnlinkDeveloperIdentityCommandOutput) => void): void;
146
- unlinkDeveloperIdentity(args: UnlinkDeveloperIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UnlinkDeveloperIdentityCommandOutput) => void): void;
152
+ unlinkDeveloperIdentity(args: UnlinkDeveloperIdentityCommandInput, options: CognitoIdentityRequestOptions, cb: (err: any, data?: UnlinkDeveloperIdentityCommandOutput) => void): void;
147
153
  /**
148
154
  * @see {@link UnlinkIdentityCommand}
149
155
  */
150
- unlinkIdentity(args: UnlinkIdentityCommandInput, options?: __HttpHandlerOptions): Promise<UnlinkIdentityCommandOutput>;
156
+ unlinkIdentity(args: UnlinkIdentityCommandInput, options?: CognitoIdentityRequestOptions): Promise<UnlinkIdentityCommandOutput>;
151
157
  unlinkIdentity(args: UnlinkIdentityCommandInput, cb: (err: any, data?: UnlinkIdentityCommandOutput) => void): void;
152
- unlinkIdentity(args: UnlinkIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UnlinkIdentityCommandOutput) => void): void;
158
+ unlinkIdentity(args: UnlinkIdentityCommandInput, options: CognitoIdentityRequestOptions, cb: (err: any, data?: UnlinkIdentityCommandOutput) => void): void;
153
159
  /**
154
160
  * @see {@link UntagResourceCommand}
155
161
  */
156
- untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
162
+ untagResource(args: UntagResourceCommandInput, options?: CognitoIdentityRequestOptions): Promise<UntagResourceCommandOutput>;
157
163
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
158
- untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
164
+ untagResource(args: UntagResourceCommandInput, options: CognitoIdentityRequestOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
159
165
  /**
160
166
  * @see {@link UpdateIdentityPoolCommand}
161
167
  */
162
- updateIdentityPool(args: UpdateIdentityPoolCommandInput, options?: __HttpHandlerOptions): Promise<UpdateIdentityPoolCommandOutput>;
168
+ updateIdentityPool(args: UpdateIdentityPoolCommandInput, options?: CognitoIdentityRequestOptions): Promise<UpdateIdentityPoolCommandOutput>;
163
169
  updateIdentityPool(args: UpdateIdentityPoolCommandInput, cb: (err: any, data?: UpdateIdentityPoolCommandOutput) => void): void;
164
- updateIdentityPool(args: UpdateIdentityPoolCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateIdentityPoolCommandOutput) => void): void;
170
+ updateIdentityPool(args: UpdateIdentityPoolCommandInput, options: CognitoIdentityRequestOptions, cb: (err: any, data?: UpdateIdentityPoolCommandOutput) => void): void;
165
171
  /**
166
172
  * @see {@link ListIdentityPoolsCommand}
167
173
  * @param args - command input.
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  HttpHandlerOptions as __HttpHandlerOptions,
3
+ MetricsRecorder as __MetricsRecorder,
3
4
  PaginationConfiguration,
4
5
  Paginator,
5
6
  } from "@smithy/types";
@@ -90,10 +91,13 @@ import {
90
91
  UpdateIdentityPoolCommandInput,
91
92
  UpdateIdentityPoolCommandOutput,
92
93
  } from "./commands/UpdateIdentityPoolCommand";
94
+ export interface CognitoIdentityRequestOptions extends __HttpHandlerOptions {
95
+ metricsRecorder?: __MetricsRecorder<unknown>;
96
+ }
93
97
  export interface CognitoIdentity {
94
98
  createIdentityPool(
95
99
  args: CreateIdentityPoolCommandInput,
96
- options?: __HttpHandlerOptions,
100
+ options?: CognitoIdentityRequestOptions,
97
101
  ): Promise<CreateIdentityPoolCommandOutput>;
98
102
  createIdentityPool(
99
103
  args: CreateIdentityPoolCommandInput,
@@ -101,12 +105,12 @@ export interface CognitoIdentity {
101
105
  ): void;
102
106
  createIdentityPool(
103
107
  args: CreateIdentityPoolCommandInput,
104
- options: __HttpHandlerOptions,
108
+ options: CognitoIdentityRequestOptions,
105
109
  cb: (err: any, data?: CreateIdentityPoolCommandOutput) => void,
106
110
  ): void;
107
111
  deleteIdentities(
108
112
  args: DeleteIdentitiesCommandInput,
109
- options?: __HttpHandlerOptions,
113
+ options?: CognitoIdentityRequestOptions,
110
114
  ): Promise<DeleteIdentitiesCommandOutput>;
111
115
  deleteIdentities(
112
116
  args: DeleteIdentitiesCommandInput,
@@ -114,12 +118,12 @@ export interface CognitoIdentity {
114
118
  ): void;
115
119
  deleteIdentities(
116
120
  args: DeleteIdentitiesCommandInput,
117
- options: __HttpHandlerOptions,
121
+ options: CognitoIdentityRequestOptions,
118
122
  cb: (err: any, data?: DeleteIdentitiesCommandOutput) => void,
119
123
  ): void;
120
124
  deleteIdentityPool(
121
125
  args: DeleteIdentityPoolCommandInput,
122
- options?: __HttpHandlerOptions,
126
+ options?: CognitoIdentityRequestOptions,
123
127
  ): Promise<DeleteIdentityPoolCommandOutput>;
124
128
  deleteIdentityPool(
125
129
  args: DeleteIdentityPoolCommandInput,
@@ -127,12 +131,12 @@ export interface CognitoIdentity {
127
131
  ): void;
128
132
  deleteIdentityPool(
129
133
  args: DeleteIdentityPoolCommandInput,
130
- options: __HttpHandlerOptions,
134
+ options: CognitoIdentityRequestOptions,
131
135
  cb: (err: any, data?: DeleteIdentityPoolCommandOutput) => void,
132
136
  ): void;
133
137
  describeIdentity(
134
138
  args: DescribeIdentityCommandInput,
135
- options?: __HttpHandlerOptions,
139
+ options?: CognitoIdentityRequestOptions,
136
140
  ): Promise<DescribeIdentityCommandOutput>;
137
141
  describeIdentity(
138
142
  args: DescribeIdentityCommandInput,
@@ -140,12 +144,12 @@ export interface CognitoIdentity {
140
144
  ): void;
141
145
  describeIdentity(
142
146
  args: DescribeIdentityCommandInput,
143
- options: __HttpHandlerOptions,
147
+ options: CognitoIdentityRequestOptions,
144
148
  cb: (err: any, data?: DescribeIdentityCommandOutput) => void,
145
149
  ): void;
146
150
  describeIdentityPool(
147
151
  args: DescribeIdentityPoolCommandInput,
148
- options?: __HttpHandlerOptions,
152
+ options?: CognitoIdentityRequestOptions,
149
153
  ): Promise<DescribeIdentityPoolCommandOutput>;
150
154
  describeIdentityPool(
151
155
  args: DescribeIdentityPoolCommandInput,
@@ -153,12 +157,12 @@ export interface CognitoIdentity {
153
157
  ): void;
154
158
  describeIdentityPool(
155
159
  args: DescribeIdentityPoolCommandInput,
156
- options: __HttpHandlerOptions,
160
+ options: CognitoIdentityRequestOptions,
157
161
  cb: (err: any, data?: DescribeIdentityPoolCommandOutput) => void,
158
162
  ): void;
159
163
  getCredentialsForIdentity(
160
164
  args: GetCredentialsForIdentityCommandInput,
161
- options?: __HttpHandlerOptions,
165
+ options?: CognitoIdentityRequestOptions,
162
166
  ): Promise<GetCredentialsForIdentityCommandOutput>;
163
167
  getCredentialsForIdentity(
164
168
  args: GetCredentialsForIdentityCommandInput,
@@ -166,19 +170,22 @@ export interface CognitoIdentity {
166
170
  ): void;
167
171
  getCredentialsForIdentity(
168
172
  args: GetCredentialsForIdentityCommandInput,
169
- options: __HttpHandlerOptions,
173
+ options: CognitoIdentityRequestOptions,
170
174
  cb: (err: any, data?: GetCredentialsForIdentityCommandOutput) => void,
171
175
  ): void;
172
- getId(args: GetIdCommandInput, options?: __HttpHandlerOptions): Promise<GetIdCommandOutput>;
176
+ getId(
177
+ args: GetIdCommandInput,
178
+ options?: CognitoIdentityRequestOptions,
179
+ ): Promise<GetIdCommandOutput>;
173
180
  getId(args: GetIdCommandInput, cb: (err: any, data?: GetIdCommandOutput) => void): void;
174
181
  getId(
175
182
  args: GetIdCommandInput,
176
- options: __HttpHandlerOptions,
183
+ options: CognitoIdentityRequestOptions,
177
184
  cb: (err: any, data?: GetIdCommandOutput) => void,
178
185
  ): void;
179
186
  getIdentityPoolRoles(
180
187
  args: GetIdentityPoolRolesCommandInput,
181
- options?: __HttpHandlerOptions,
188
+ options?: CognitoIdentityRequestOptions,
182
189
  ): Promise<GetIdentityPoolRolesCommandOutput>;
183
190
  getIdentityPoolRoles(
184
191
  args: GetIdentityPoolRolesCommandInput,
@@ -186,12 +193,12 @@ export interface CognitoIdentity {
186
193
  ): void;
187
194
  getIdentityPoolRoles(
188
195
  args: GetIdentityPoolRolesCommandInput,
189
- options: __HttpHandlerOptions,
196
+ options: CognitoIdentityRequestOptions,
190
197
  cb: (err: any, data?: GetIdentityPoolRolesCommandOutput) => void,
191
198
  ): void;
192
199
  getOpenIdToken(
193
200
  args: GetOpenIdTokenCommandInput,
194
- options?: __HttpHandlerOptions,
201
+ options?: CognitoIdentityRequestOptions,
195
202
  ): Promise<GetOpenIdTokenCommandOutput>;
196
203
  getOpenIdToken(
197
204
  args: GetOpenIdTokenCommandInput,
@@ -199,12 +206,12 @@ export interface CognitoIdentity {
199
206
  ): void;
200
207
  getOpenIdToken(
201
208
  args: GetOpenIdTokenCommandInput,
202
- options: __HttpHandlerOptions,
209
+ options: CognitoIdentityRequestOptions,
203
210
  cb: (err: any, data?: GetOpenIdTokenCommandOutput) => void,
204
211
  ): void;
205
212
  getOpenIdTokenForDeveloperIdentity(
206
213
  args: GetOpenIdTokenForDeveloperIdentityCommandInput,
207
- options?: __HttpHandlerOptions,
214
+ options?: CognitoIdentityRequestOptions,
208
215
  ): Promise<GetOpenIdTokenForDeveloperIdentityCommandOutput>;
209
216
  getOpenIdTokenForDeveloperIdentity(
210
217
  args: GetOpenIdTokenForDeveloperIdentityCommandInput,
@@ -212,12 +219,12 @@ export interface CognitoIdentity {
212
219
  ): void;
213
220
  getOpenIdTokenForDeveloperIdentity(
214
221
  args: GetOpenIdTokenForDeveloperIdentityCommandInput,
215
- options: __HttpHandlerOptions,
222
+ options: CognitoIdentityRequestOptions,
216
223
  cb: (err: any, data?: GetOpenIdTokenForDeveloperIdentityCommandOutput) => void,
217
224
  ): void;
218
225
  getPrincipalTagAttributeMap(
219
226
  args: GetPrincipalTagAttributeMapCommandInput,
220
- options?: __HttpHandlerOptions,
227
+ options?: CognitoIdentityRequestOptions,
221
228
  ): Promise<GetPrincipalTagAttributeMapCommandOutput>;
222
229
  getPrincipalTagAttributeMap(
223
230
  args: GetPrincipalTagAttributeMapCommandInput,
@@ -225,12 +232,12 @@ export interface CognitoIdentity {
225
232
  ): void;
226
233
  getPrincipalTagAttributeMap(
227
234
  args: GetPrincipalTagAttributeMapCommandInput,
228
- options: __HttpHandlerOptions,
235
+ options: CognitoIdentityRequestOptions,
229
236
  cb: (err: any, data?: GetPrincipalTagAttributeMapCommandOutput) => void,
230
237
  ): void;
231
238
  listIdentities(
232
239
  args: ListIdentitiesCommandInput,
233
- options?: __HttpHandlerOptions,
240
+ options?: CognitoIdentityRequestOptions,
234
241
  ): Promise<ListIdentitiesCommandOutput>;
235
242
  listIdentities(
236
243
  args: ListIdentitiesCommandInput,
@@ -238,12 +245,12 @@ export interface CognitoIdentity {
238
245
  ): void;
239
246
  listIdentities(
240
247
  args: ListIdentitiesCommandInput,
241
- options: __HttpHandlerOptions,
248
+ options: CognitoIdentityRequestOptions,
242
249
  cb: (err: any, data?: ListIdentitiesCommandOutput) => void,
243
250
  ): void;
244
251
  listIdentityPools(
245
252
  args: ListIdentityPoolsCommandInput,
246
- options?: __HttpHandlerOptions,
253
+ options?: CognitoIdentityRequestOptions,
247
254
  ): Promise<ListIdentityPoolsCommandOutput>;
248
255
  listIdentityPools(
249
256
  args: ListIdentityPoolsCommandInput,
@@ -251,12 +258,12 @@ export interface CognitoIdentity {
251
258
  ): void;
252
259
  listIdentityPools(
253
260
  args: ListIdentityPoolsCommandInput,
254
- options: __HttpHandlerOptions,
261
+ options: CognitoIdentityRequestOptions,
255
262
  cb: (err: any, data?: ListIdentityPoolsCommandOutput) => void,
256
263
  ): void;
257
264
  listTagsForResource(
258
265
  args: ListTagsForResourceCommandInput,
259
- options?: __HttpHandlerOptions,
266
+ options?: CognitoIdentityRequestOptions,
260
267
  ): Promise<ListTagsForResourceCommandOutput>;
261
268
  listTagsForResource(
262
269
  args: ListTagsForResourceCommandInput,
@@ -264,12 +271,12 @@ export interface CognitoIdentity {
264
271
  ): void;
265
272
  listTagsForResource(
266
273
  args: ListTagsForResourceCommandInput,
267
- options: __HttpHandlerOptions,
274
+ options: CognitoIdentityRequestOptions,
268
275
  cb: (err: any, data?: ListTagsForResourceCommandOutput) => void,
269
276
  ): void;
270
277
  lookupDeveloperIdentity(
271
278
  args: LookupDeveloperIdentityCommandInput,
272
- options?: __HttpHandlerOptions,
279
+ options?: CognitoIdentityRequestOptions,
273
280
  ): Promise<LookupDeveloperIdentityCommandOutput>;
274
281
  lookupDeveloperIdentity(
275
282
  args: LookupDeveloperIdentityCommandInput,
@@ -277,12 +284,12 @@ export interface CognitoIdentity {
277
284
  ): void;
278
285
  lookupDeveloperIdentity(
279
286
  args: LookupDeveloperIdentityCommandInput,
280
- options: __HttpHandlerOptions,
287
+ options: CognitoIdentityRequestOptions,
281
288
  cb: (err: any, data?: LookupDeveloperIdentityCommandOutput) => void,
282
289
  ): void;
283
290
  mergeDeveloperIdentities(
284
291
  args: MergeDeveloperIdentitiesCommandInput,
285
- options?: __HttpHandlerOptions,
292
+ options?: CognitoIdentityRequestOptions,
286
293
  ): Promise<MergeDeveloperIdentitiesCommandOutput>;
287
294
  mergeDeveloperIdentities(
288
295
  args: MergeDeveloperIdentitiesCommandInput,
@@ -290,12 +297,12 @@ export interface CognitoIdentity {
290
297
  ): void;
291
298
  mergeDeveloperIdentities(
292
299
  args: MergeDeveloperIdentitiesCommandInput,
293
- options: __HttpHandlerOptions,
300
+ options: CognitoIdentityRequestOptions,
294
301
  cb: (err: any, data?: MergeDeveloperIdentitiesCommandOutput) => void,
295
302
  ): void;
296
303
  setIdentityPoolRoles(
297
304
  args: SetIdentityPoolRolesCommandInput,
298
- options?: __HttpHandlerOptions,
305
+ options?: CognitoIdentityRequestOptions,
299
306
  ): Promise<SetIdentityPoolRolesCommandOutput>;
300
307
  setIdentityPoolRoles(
301
308
  args: SetIdentityPoolRolesCommandInput,
@@ -303,12 +310,12 @@ export interface CognitoIdentity {
303
310
  ): void;
304
311
  setIdentityPoolRoles(
305
312
  args: SetIdentityPoolRolesCommandInput,
306
- options: __HttpHandlerOptions,
313
+ options: CognitoIdentityRequestOptions,
307
314
  cb: (err: any, data?: SetIdentityPoolRolesCommandOutput) => void,
308
315
  ): void;
309
316
  setPrincipalTagAttributeMap(
310
317
  args: SetPrincipalTagAttributeMapCommandInput,
311
- options?: __HttpHandlerOptions,
318
+ options?: CognitoIdentityRequestOptions,
312
319
  ): Promise<SetPrincipalTagAttributeMapCommandOutput>;
313
320
  setPrincipalTagAttributeMap(
314
321
  args: SetPrincipalTagAttributeMapCommandInput,
@@ -316,12 +323,12 @@ export interface CognitoIdentity {
316
323
  ): void;
317
324
  setPrincipalTagAttributeMap(
318
325
  args: SetPrincipalTagAttributeMapCommandInput,
319
- options: __HttpHandlerOptions,
326
+ options: CognitoIdentityRequestOptions,
320
327
  cb: (err: any, data?: SetPrincipalTagAttributeMapCommandOutput) => void,
321
328
  ): void;
322
329
  tagResource(
323
330
  args: TagResourceCommandInput,
324
- options?: __HttpHandlerOptions,
331
+ options?: CognitoIdentityRequestOptions,
325
332
  ): Promise<TagResourceCommandOutput>;
326
333
  tagResource(
327
334
  args: TagResourceCommandInput,
@@ -329,12 +336,12 @@ export interface CognitoIdentity {
329
336
  ): void;
330
337
  tagResource(
331
338
  args: TagResourceCommandInput,
332
- options: __HttpHandlerOptions,
339
+ options: CognitoIdentityRequestOptions,
333
340
  cb: (err: any, data?: TagResourceCommandOutput) => void,
334
341
  ): void;
335
342
  unlinkDeveloperIdentity(
336
343
  args: UnlinkDeveloperIdentityCommandInput,
337
- options?: __HttpHandlerOptions,
344
+ options?: CognitoIdentityRequestOptions,
338
345
  ): Promise<UnlinkDeveloperIdentityCommandOutput>;
339
346
  unlinkDeveloperIdentity(
340
347
  args: UnlinkDeveloperIdentityCommandInput,
@@ -342,12 +349,12 @@ export interface CognitoIdentity {
342
349
  ): void;
343
350
  unlinkDeveloperIdentity(
344
351
  args: UnlinkDeveloperIdentityCommandInput,
345
- options: __HttpHandlerOptions,
352
+ options: CognitoIdentityRequestOptions,
346
353
  cb: (err: any, data?: UnlinkDeveloperIdentityCommandOutput) => void,
347
354
  ): void;
348
355
  unlinkIdentity(
349
356
  args: UnlinkIdentityCommandInput,
350
- options?: __HttpHandlerOptions,
357
+ options?: CognitoIdentityRequestOptions,
351
358
  ): Promise<UnlinkIdentityCommandOutput>;
352
359
  unlinkIdentity(
353
360
  args: UnlinkIdentityCommandInput,
@@ -355,12 +362,12 @@ export interface CognitoIdentity {
355
362
  ): void;
356
363
  unlinkIdentity(
357
364
  args: UnlinkIdentityCommandInput,
358
- options: __HttpHandlerOptions,
365
+ options: CognitoIdentityRequestOptions,
359
366
  cb: (err: any, data?: UnlinkIdentityCommandOutput) => void,
360
367
  ): void;
361
368
  untagResource(
362
369
  args: UntagResourceCommandInput,
363
- options?: __HttpHandlerOptions,
370
+ options?: CognitoIdentityRequestOptions,
364
371
  ): Promise<UntagResourceCommandOutput>;
365
372
  untagResource(
366
373
  args: UntagResourceCommandInput,
@@ -368,12 +375,12 @@ export interface CognitoIdentity {
368
375
  ): void;
369
376
  untagResource(
370
377
  args: UntagResourceCommandInput,
371
- options: __HttpHandlerOptions,
378
+ options: CognitoIdentityRequestOptions,
372
379
  cb: (err: any, data?: UntagResourceCommandOutput) => void,
373
380
  ): void;
374
381
  updateIdentityPool(
375
382
  args: UpdateIdentityPoolCommandInput,
376
- options?: __HttpHandlerOptions,
383
+ options?: CognitoIdentityRequestOptions,
377
384
  ): Promise<UpdateIdentityPoolCommandOutput>;
378
385
  updateIdentityPool(
379
386
  args: UpdateIdentityPoolCommandInput,
@@ -381,7 +388,7 @@ export interface CognitoIdentity {
381
388
  ): void;
382
389
  updateIdentityPool(
383
390
  args: UpdateIdentityPoolCommandInput,
384
- options: __HttpHandlerOptions,
391
+ options: CognitoIdentityRequestOptions,
385
392
  cb: (err: any, data?: UpdateIdentityPoolCommandOutput) => void,
386
393
  ): void;
387
394
  paginateListIdentityPools(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cognito-identity",
3
- "version": "3.1136.0",
3
+ "version": "3.1138.0",
4
4
  "description": "AWS SDK for JavaScript Cognito Identity Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cognito-identity",
6
6
  "license": "Apache-2.0",
@@ -52,17 +52,17 @@
52
52
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
53
53
  },
54
54
  "dependencies": {
55
- "@aws-sdk/core": "^3.978.0",
56
- "@aws-sdk/credential-provider-node": "^3.972.83",
57
- "@aws-sdk/types": "^3.974.5",
58
- "@smithy/core": "^3.33.3",
59
- "@smithy/fetch-http-handler": "^5.7.2",
60
- "@smithy/node-http-handler": "^4.11.3",
61
- "@smithy/types": "^4.17.2",
55
+ "@aws-sdk/core": "^3.978.1",
56
+ "@aws-sdk/credential-provider-node": "^3.972.84",
57
+ "@aws-sdk/types": "^3.974.6",
58
+ "@smithy/core": "^3.35.0",
59
+ "@smithy/fetch-http-handler": "^5.8.0",
60
+ "@smithy/node-http-handler": "^4.12.1",
61
+ "@smithy/types": "^4.19.0",
62
62
  "tslib": "^2.6.2"
63
63
  },
64
64
  "devDependencies": {
65
- "@aws-sdk/client-iam": "3.1136.0",
65
+ "@aws-sdk/client-iam": "3.1138.0",
66
66
  "@smithy/snapshot-testing": "^2.3.2",
67
67
  "@tsconfig/node20": "20.1.8",
68
68
  "@types/chai": "^4.2.11",