@aws-sdk/client-cognito-identity 3.99.0 → 3.107.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/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.107.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.106.0...v3.107.0) (2022-06-08)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-cognito-identity
9
+
10
+
11
+
12
+
13
+
14
+ # [3.105.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.104.0...v3.105.0) (2022-06-06)
15
+
16
+
17
+ ### Features
18
+
19
+ * **clients:** support recursion detection in Lambda ([#3654](https://github.com/aws/aws-sdk-js-v3/issues/3654)) ([ecfe46e](https://github.com/aws/aws-sdk-js-v3/commit/ecfe46ea1fd8b6e3812b75b3dc6c03554fb4b3fa))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.100.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.99.0...v3.100.0) (2022-05-26)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-cognito-identity
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.99.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.98.0...v3.99.0) (2022-05-25)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-cognito-identity
@@ -5,6 +5,7 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
6
6
  const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
7
7
  const middleware_logger_1 = require("@aws-sdk/middleware-logger");
8
+ const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
8
9
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
9
10
  const middleware_signing_1 = require("@aws-sdk/middleware-signing");
10
11
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
@@ -25,6 +26,7 @@ class CognitoIdentityClient extends smithy_client_1.Client {
25
26
  this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
26
27
  this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
27
28
  this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
29
+ this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
28
30
  this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
29
31
  }
30
32
  destroy() {
@@ -3,6 +3,7 @@ import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-re
3
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
5
5
  import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
6
+ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
6
7
  import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
7
8
  import { resolveAwsAuthConfig } from "@aws-sdk/middleware-signing";
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
@@ -25,6 +26,7 @@ var CognitoIdentityClient = (function (_super) {
25
26
  _this.middlewareStack.use(getContentLengthPlugin(_this.config));
26
27
  _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
27
28
  _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
28
30
  _this.middlewareStack.use(getUserAgentPlugin(_this.config));
29
31
  return _this;
30
32
  }
@@ -55,9 +55,7 @@ export interface CreateIdentityPoolInput {
55
55
  /**
56
56
  * <p>Optional key:value pairs mapping provider names to provider app IDs.</p>
57
57
  */
58
- SupportedLoginProviders?: {
59
- [key: string]: string;
60
- };
58
+ SupportedLoginProviders?: Record<string, string>;
61
59
  /**
62
60
  * <p>The "domain" by which Cognito will refer to your users. This name acts as a
63
61
  * placeholder that allows your backend and the Cognito service to communicate about the
@@ -86,9 +84,7 @@ export interface CreateIdentityPoolInput {
86
84
  * pools to categorize and manage them in different ways, such as by purpose, owner,
87
85
  * environment, or other criteria.</p>
88
86
  */
89
- IdentityPoolTags?: {
90
- [key: string]: string;
91
- };
87
+ IdentityPoolTags?: Record<string, string>;
92
88
  }
93
89
  export declare namespace CreateIdentityPoolInput {
94
90
  /**
@@ -120,9 +116,7 @@ export interface IdentityPool {
120
116
  /**
121
117
  * <p>Optional key:value pairs mapping provider names to provider app IDs.</p>
122
118
  */
123
- SupportedLoginProviders?: {
124
- [key: string]: string;
125
- };
119
+ SupportedLoginProviders?: Record<string, string>;
126
120
  /**
127
121
  * <p>The "domain" by which Cognito will refer to your users.</p>
128
122
  */
@@ -145,9 +139,7 @@ export interface IdentityPool {
145
139
  * identity pools to categorize and manage them in different ways, such as by purpose, owner,
146
140
  * environment, or other criteria.</p>
147
141
  */
148
- IdentityPoolTags?: {
149
- [key: string]: string;
150
- };
142
+ IdentityPoolTags?: Record<string, string>;
151
143
  }
152
144
  export declare namespace IdentityPool {
153
145
  /**
@@ -393,9 +385,7 @@ export interface GetCredentialsForIdentityInput {
393
385
  * examples in the <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/external-identity-providers.html">External Identity Providers</a> section of the Amazon Cognito Developer
394
386
  * Guide.</p>
395
387
  */
396
- Logins?: {
397
- [key: string]: string;
398
- };
388
+ Logins?: Record<string, string>;
399
389
  /**
400
390
  * <p>The Amazon Resource Name (ARN) of the role to be assumed when multiple roles were
401
391
  * received in the token from the identity provider. For example, a SAML-based identity
@@ -513,9 +503,7 @@ export interface GetIdInput {
513
503
  * </li>
514
504
  * </ul>
515
505
  */
516
- Logins?: {
517
- [key: string]: string;
518
- };
506
+ Logins?: Record<string, string>;
519
507
  }
520
508
  export declare namespace GetIdInput {
521
509
  /**
@@ -655,18 +643,14 @@ export interface GetIdentityPoolRolesResponse {
655
643
  * <p>The map of roles associated with this pool. Currently only authenticated and
656
644
  * unauthenticated roles are supported.</p>
657
645
  */
658
- Roles?: {
659
- [key: string]: string;
660
- };
646
+ Roles?: Record<string, string>;
661
647
  /**
662
648
  * <p>How users for a specific identity provider are to mapped to roles. This is a
663
649
  * String-to-<a>RoleMapping</a> object map. The string identifies the identity
664
650
  * provider, for example, "graph.facebook.com" or
665
651
  * "cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id".</p>
666
652
  */
667
- RoleMappings?: {
668
- [key: string]: RoleMapping;
669
- };
653
+ RoleMappings?: Record<string, RoleMapping>;
670
654
  }
671
655
  export declare namespace GetIdentityPoolRolesResponse {
672
656
  /**
@@ -688,9 +672,7 @@ export interface GetOpenIdTokenInput {
688
672
  * provider's authflow. For accounts.google.com, an Amazon Cognito user pool provider, or any
689
673
  * other OpenID Connect provider, always include the <code>id_token</code>.</p>
690
674
  */
691
- Logins?: {
692
- [key: string]: string;
693
- };
675
+ Logins?: Record<string, string>;
694
676
  }
695
677
  export declare namespace GetOpenIdTokenInput {
696
678
  /**
@@ -752,15 +734,11 @@ export interface GetOpenIdTokenForDeveloperIdentityInput {
752
734
  * identifier from your backend that uniquely identifies a user. When you create an identity
753
735
  * pool, you can specify the supported logins.</p>
754
736
  */
755
- Logins: {
756
- [key: string]: string;
757
- } | undefined;
737
+ Logins: Record<string, string> | undefined;
758
738
  /**
759
739
  * <p>Use this operation to configure attribute mappings for custom providers. </p>
760
740
  */
761
- PrincipalTags?: {
762
- [key: string]: string;
763
- };
741
+ PrincipalTags?: Record<string, string>;
764
742
  /**
765
743
  * <p>The expiration time of the token, in seconds. You can specify a custom expiration
766
744
  * time for the token so that you can cache it. If you don't provide an expiration time, the
@@ -833,9 +811,7 @@ export interface GetPrincipalTagAttributeMapResponse {
833
811
  /**
834
812
  * <p>You can use this operation to add principal tags. The <code>PrincipalTags</code>operation enables you to reference user attributes in your IAM permissions policy.</p>
835
813
  */
836
- PrincipalTags?: {
837
- [key: string]: string;
838
- };
814
+ PrincipalTags?: Record<string, string>;
839
815
  }
840
816
  export declare namespace GetPrincipalTagAttributeMapResponse {
841
817
  /**
@@ -968,9 +944,7 @@ export interface ListTagsForResourceResponse {
968
944
  /**
969
945
  * <p>The tags that are assigned to the identity pool.</p>
970
946
  */
971
- Tags?: {
972
- [key: string]: string;
973
- };
947
+ Tags?: Record<string, string>;
974
948
  }
975
949
  export declare namespace ListTagsForResourceResponse {
976
950
  /**
@@ -1119,9 +1093,7 @@ export interface SetIdentityPoolRolesInput {
1119
1093
  * <p>The map of roles associated with this pool. For a given role, the key will be either
1120
1094
  * "authenticated" or "unauthenticated" and the value will be the Role ARN.</p>
1121
1095
  */
1122
- Roles: {
1123
- [key: string]: string;
1124
- } | undefined;
1096
+ Roles: Record<string, string> | undefined;
1125
1097
  /**
1126
1098
  * <p>How users for a specific identity provider are to mapped to roles. This is a string
1127
1099
  * to <a>RoleMapping</a> object map. The string identifies the identity provider,
@@ -1129,9 +1101,7 @@ export interface SetIdentityPoolRolesInput {
1129
1101
  * "cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id".</p>
1130
1102
  * <p>Up to 25 rules can be specified per identity provider.</p>
1131
1103
  */
1132
- RoleMappings?: {
1133
- [key: string]: RoleMapping;
1134
- };
1104
+ RoleMappings?: Record<string, RoleMapping>;
1135
1105
  }
1136
1106
  export declare namespace SetIdentityPoolRolesInput {
1137
1107
  /**
@@ -1155,9 +1125,7 @@ export interface SetPrincipalTagAttributeMapInput {
1155
1125
  /**
1156
1126
  * <p>You can use this operation to add principal tags.</p>
1157
1127
  */
1158
- PrincipalTags?: {
1159
- [key: string]: string;
1160
- };
1128
+ PrincipalTags?: Record<string, string>;
1161
1129
  }
1162
1130
  export declare namespace SetPrincipalTagAttributeMapInput {
1163
1131
  /**
@@ -1181,9 +1149,7 @@ export interface SetPrincipalTagAttributeMapResponse {
1181
1149
  /**
1182
1150
  * <p>You can use this operation to add principal tags. The <code>PrincipalTags</code>operation enables you to reference user attributes in your IAM permissions policy.</p>
1183
1151
  */
1184
- PrincipalTags?: {
1185
- [key: string]: string;
1186
- };
1152
+ PrincipalTags?: Record<string, string>;
1187
1153
  }
1188
1154
  export declare namespace SetPrincipalTagAttributeMapResponse {
1189
1155
  /**
@@ -1199,9 +1165,7 @@ export interface TagResourceInput {
1199
1165
  /**
1200
1166
  * <p>The tags to assign to the identity pool.</p>
1201
1167
  */
1202
- Tags: {
1203
- [key: string]: string;
1204
- } | undefined;
1168
+ Tags: Record<string, string> | undefined;
1205
1169
  }
1206
1170
  export declare namespace TagResourceInput {
1207
1171
  /**
@@ -1256,9 +1220,7 @@ export interface UnlinkIdentityInput {
1256
1220
  * <p>A set of optional name-value pairs that map provider names to provider
1257
1221
  * tokens.</p>
1258
1222
  */
1259
- Logins: {
1260
- [key: string]: string;
1261
- } | undefined;
1223
+ Logins: Record<string, string> | undefined;
1262
1224
  /**
1263
1225
  * <p>Provider names to unlink from this identity.</p>
1264
1226
  */
@@ -26,9 +26,7 @@ export interface CreateIdentityPoolInput {
26
26
 
27
27
  AllowClassicFlow?: boolean;
28
28
 
29
- SupportedLoginProviders?: {
30
- [key: string]: string;
31
- };
29
+ SupportedLoginProviders?: Record<string, string>;
32
30
 
33
31
  DeveloperProviderName?: string;
34
32
 
@@ -38,9 +36,7 @@ export interface CreateIdentityPoolInput {
38
36
 
39
37
  SamlProviderARNs?: string[];
40
38
 
41
- IdentityPoolTags?: {
42
- [key: string]: string;
43
- };
39
+ IdentityPoolTags?: Record<string, string>;
44
40
  }
45
41
  export declare namespace CreateIdentityPoolInput {
46
42
 
@@ -57,9 +53,7 @@ export interface IdentityPool {
57
53
 
58
54
  AllowClassicFlow?: boolean;
59
55
 
60
- SupportedLoginProviders?: {
61
- [key: string]: string;
62
- };
56
+ SupportedLoginProviders?: Record<string, string>;
63
57
 
64
58
  DeveloperProviderName?: string;
65
59
 
@@ -69,9 +63,7 @@ export interface IdentityPool {
69
63
 
70
64
  SamlProviderARNs?: string[];
71
65
 
72
- IdentityPoolTags?: {
73
- [key: string]: string;
74
- };
66
+ IdentityPoolTags?: Record<string, string>;
75
67
  }
76
68
  export declare namespace IdentityPool {
77
69
 
@@ -213,9 +205,7 @@ export interface GetCredentialsForIdentityInput {
213
205
 
214
206
  IdentityId: string | undefined;
215
207
 
216
- Logins?: {
217
- [key: string]: string;
218
- };
208
+ Logins?: Record<string, string>;
219
209
 
220
210
  CustomRoleArn?: string;
221
211
  }
@@ -263,9 +253,7 @@ export interface GetIdInput {
263
253
 
264
254
  IdentityPoolId: string | undefined;
265
255
 
266
- Logins?: {
267
- [key: string]: string;
268
- };
256
+ Logins?: Record<string, string>;
269
257
  }
270
258
  export declare namespace GetIdInput {
271
259
 
@@ -341,13 +329,9 @@ export interface GetIdentityPoolRolesResponse {
341
329
 
342
330
  IdentityPoolId?: string;
343
331
 
344
- Roles?: {
345
- [key: string]: string;
346
- };
332
+ Roles?: Record<string, string>;
347
333
 
348
- RoleMappings?: {
349
- [key: string]: RoleMapping;
350
- };
334
+ RoleMappings?: Record<string, RoleMapping>;
351
335
  }
352
336
  export declare namespace GetIdentityPoolRolesResponse {
353
337
 
@@ -358,9 +342,7 @@ export interface GetOpenIdTokenInput {
358
342
 
359
343
  IdentityId: string | undefined;
360
344
 
361
- Logins?: {
362
- [key: string]: string;
363
- };
345
+ Logins?: Record<string, string>;
364
346
  }
365
347
  export declare namespace GetOpenIdTokenInput {
366
348
 
@@ -391,13 +373,9 @@ export interface GetOpenIdTokenForDeveloperIdentityInput {
391
373
 
392
374
  IdentityId?: string;
393
375
 
394
- Logins: {
395
- [key: string]: string;
396
- } | undefined;
376
+ Logins: Record<string, string> | undefined;
397
377
 
398
- PrincipalTags?: {
399
- [key: string]: string;
400
- };
378
+ PrincipalTags?: Record<string, string>;
401
379
 
402
380
  TokenDuration?: number;
403
381
  }
@@ -434,9 +412,7 @@ export interface GetPrincipalTagAttributeMapResponse {
434
412
 
435
413
  UseDefaults?: boolean;
436
414
 
437
- PrincipalTags?: {
438
- [key: string]: string;
439
- };
415
+ PrincipalTags?: Record<string, string>;
440
416
  }
441
417
  export declare namespace GetPrincipalTagAttributeMapResponse {
442
418
 
@@ -513,9 +489,7 @@ export declare namespace ListTagsForResourceInput {
513
489
  }
514
490
  export interface ListTagsForResourceResponse {
515
491
 
516
- Tags?: {
517
- [key: string]: string;
518
- };
492
+ Tags?: Record<string, string>;
519
493
  }
520
494
  export declare namespace ListTagsForResourceResponse {
521
495
 
@@ -587,13 +561,9 @@ export interface SetIdentityPoolRolesInput {
587
561
 
588
562
  IdentityPoolId: string | undefined;
589
563
 
590
- Roles: {
591
- [key: string]: string;
592
- } | undefined;
564
+ Roles: Record<string, string> | undefined;
593
565
 
594
- RoleMappings?: {
595
- [key: string]: RoleMapping;
596
- };
566
+ RoleMappings?: Record<string, RoleMapping>;
597
567
  }
598
568
  export declare namespace SetIdentityPoolRolesInput {
599
569
 
@@ -607,9 +577,7 @@ export interface SetPrincipalTagAttributeMapInput {
607
577
 
608
578
  UseDefaults?: boolean;
609
579
 
610
- PrincipalTags?: {
611
- [key: string]: string;
612
- };
580
+ PrincipalTags?: Record<string, string>;
613
581
  }
614
582
  export declare namespace SetPrincipalTagAttributeMapInput {
615
583
 
@@ -623,9 +591,7 @@ export interface SetPrincipalTagAttributeMapResponse {
623
591
 
624
592
  UseDefaults?: boolean;
625
593
 
626
- PrincipalTags?: {
627
- [key: string]: string;
628
- };
594
+ PrincipalTags?: Record<string, string>;
629
595
  }
630
596
  export declare namespace SetPrincipalTagAttributeMapResponse {
631
597
 
@@ -635,9 +601,7 @@ export interface TagResourceInput {
635
601
 
636
602
  ResourceArn: string | undefined;
637
603
 
638
- Tags: {
639
- [key: string]: string;
640
- } | undefined;
604
+ Tags: Record<string, string> | undefined;
641
605
  }
642
606
  export declare namespace TagResourceInput {
643
607
 
@@ -669,9 +633,7 @@ export interface UnlinkIdentityInput {
669
633
 
670
634
  IdentityId: string | undefined;
671
635
 
672
- Logins: {
673
- [key: string]: string;
674
- } | undefined;
636
+ Logins: Record<string, string> | undefined;
675
637
 
676
638
  LoginsToRemove: string[] | undefined;
677
639
  }
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.99.0",
4
+ "version": "3.107.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,15 +19,16 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.99.0",
22
+ "@aws-sdk/client-sts": "3.105.0",
23
23
  "@aws-sdk/config-resolver": "3.80.0",
24
- "@aws-sdk/credential-provider-node": "3.99.0",
24
+ "@aws-sdk/credential-provider-node": "3.105.0",
25
25
  "@aws-sdk/fetch-http-handler": "3.78.0",
26
26
  "@aws-sdk/hash-node": "3.78.0",
27
27
  "@aws-sdk/invalid-dependency": "3.78.0",
28
28
  "@aws-sdk/middleware-content-length": "3.78.0",
29
29
  "@aws-sdk/middleware-host-header": "3.78.0",
30
30
  "@aws-sdk/middleware-logger": "3.78.0",
31
+ "@aws-sdk/middleware-recursion-detection": "3.105.0",
31
32
  "@aws-sdk/middleware-retry": "3.80.0",
32
33
  "@aws-sdk/middleware-serde": "3.78.0",
33
34
  "@aws-sdk/middleware-signing": "3.78.0",
@@ -52,7 +53,7 @@
52
53
  "tslib": "^2.3.1"
53
54
  },
54
55
  "devDependencies": {
55
- "@aws-sdk/client-iam": "3.99.0",
56
+ "@aws-sdk/client-iam": "3.107.0",
56
57
  "@aws-sdk/service-client-documentation-generator": "3.58.0",
57
58
  "@tsconfig/recommended": "1.0.1",
58
59
  "@types/chai": "^4.2.11",