@aws-sdk/client-cognito-identity-provider 3.504.0 → 3.505.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-types/commands/AddCustomAttributesCommand.d.ts +2 -2
- package/dist-types/commands/AdminAddUserToGroupCommand.d.ts +2 -2
- package/dist-types/commands/AdminConfirmSignUpCommand.d.ts +2 -2
- package/dist-types/commands/AdminCreateUserCommand.d.ts +13 -13
- package/dist-types/commands/AdminDeleteUserAttributesCommand.d.ts +2 -2
- package/dist-types/commands/AdminDeleteUserCommand.d.ts +2 -2
- package/dist-types/commands/AdminDisableProviderForUserCommand.d.ts +2 -2
- package/dist-types/commands/AdminDisableUserCommand.d.ts +2 -2
- package/dist-types/commands/AdminEnableUserCommand.d.ts +2 -2
- package/dist-types/commands/AdminForgetDeviceCommand.d.ts +2 -2
- package/dist-types/commands/AdminGetDeviceCommand.d.ts +2 -2
- package/dist-types/commands/AdminGetUserCommand.d.ts +2 -2
- package/dist-types/commands/AdminInitiateAuthCommand.d.ts +13 -13
- package/dist-types/commands/AdminLinkProviderForUserCommand.d.ts +2 -2
- package/dist-types/commands/AdminListDevicesCommand.d.ts +2 -2
- package/dist-types/commands/AdminListGroupsForUserCommand.d.ts +2 -2
- package/dist-types/commands/AdminListUserAuthEventsCommand.d.ts +2 -2
- package/dist-types/commands/AdminRemoveUserFromGroupCommand.d.ts +2 -2
- package/dist-types/commands/AdminResetUserPasswordCommand.d.ts +13 -13
- package/dist-types/commands/AdminRespondToAuthChallengeCommand.d.ts +13 -13
- package/dist-types/commands/AdminSetUserMFAPreferenceCommand.d.ts +2 -2
- package/dist-types/commands/AdminSetUserPasswordCommand.d.ts +2 -2
- package/dist-types/commands/AdminSetUserSettingsCommand.d.ts +2 -2
- package/dist-types/commands/AdminUpdateAuthEventFeedbackCommand.d.ts +2 -2
- package/dist-types/commands/AdminUpdateDeviceStatusCommand.d.ts +2 -2
- package/dist-types/commands/AdminUpdateUserAttributesCommand.d.ts +13 -13
- package/dist-types/commands/AdminUserGlobalSignOutCommand.d.ts +2 -2
- package/dist-types/commands/AssociateSoftwareTokenCommand.d.ts +3 -3
- package/dist-types/commands/ChangePasswordCommand.d.ts +4 -3
- package/dist-types/commands/ConfirmDeviceCommand.d.ts +5 -4
- package/dist-types/commands/ConfirmForgotPasswordCommand.d.ts +3 -3
- package/dist-types/commands/ConfirmSignUpCommand.d.ts +3 -3
- package/dist-types/commands/CreateGroupCommand.d.ts +2 -2
- package/dist-types/commands/CreateIdentityProviderCommand.d.ts +3 -3
- package/dist-types/commands/CreateResourceServerCommand.d.ts +2 -2
- package/dist-types/commands/CreateUserImportJobCommand.d.ts +2 -2
- package/dist-types/commands/CreateUserPoolClientCommand.d.ts +2 -2
- package/dist-types/commands/CreateUserPoolCommand.d.ts +15 -15
- package/dist-types/commands/CreateUserPoolDomainCommand.d.ts +2 -2
- package/dist-types/commands/DeleteUserAttributesCommand.d.ts +4 -3
- package/dist-types/commands/DeleteUserCommand.d.ts +4 -3
- package/dist-types/commands/DescribeUserPoolClientCommand.d.ts +2 -2
- package/dist-types/commands/DescribeUserPoolCommand.d.ts +3 -3
- package/dist-types/commands/ForgetDeviceCommand.d.ts +6 -4
- package/dist-types/commands/ForgotPasswordCommand.d.ts +14 -14
- package/dist-types/commands/GetDeviceCommand.d.ts +5 -4
- package/dist-types/commands/GetUserAttributeVerificationCodeCommand.d.ts +15 -14
- package/dist-types/commands/GetUserCommand.d.ts +4 -3
- package/dist-types/commands/GlobalSignOutCommand.d.ts +4 -3
- package/dist-types/commands/InitiateAuthCommand.d.ts +14 -14
- package/dist-types/commands/ListDevicesCommand.d.ts +6 -4
- package/dist-types/commands/ListGroupsCommand.d.ts +2 -2
- package/dist-types/commands/ListIdentityProvidersCommand.d.ts +2 -2
- package/dist-types/commands/ListResourceServersCommand.d.ts +2 -2
- package/dist-types/commands/ListUserImportJobsCommand.d.ts +2 -2
- package/dist-types/commands/ListUserPoolClientsCommand.d.ts +2 -2
- package/dist-types/commands/ListUserPoolsCommand.d.ts +3 -3
- package/dist-types/commands/ListUsersCommand.d.ts +2 -2
- package/dist-types/commands/ListUsersInGroupCommand.d.ts +2 -2
- package/dist-types/commands/ResendConfirmationCodeCommand.d.ts +14 -14
- package/dist-types/commands/RespondToAuthChallengeCommand.d.ts +14 -14
- package/dist-types/commands/RevokeTokenCommand.d.ts +3 -3
- package/dist-types/commands/SetUserMFAPreferenceCommand.d.ts +4 -3
- package/dist-types/commands/SetUserPoolMfaConfigCommand.d.ts +11 -11
- package/dist-types/commands/SetUserSettingsCommand.d.ts +4 -3
- package/dist-types/commands/SignUpCommand.d.ts +14 -14
- package/dist-types/commands/UpdateAuthEventFeedbackCommand.d.ts +3 -3
- package/dist-types/commands/UpdateDeviceStatusCommand.d.ts +6 -4
- package/dist-types/commands/UpdateGroupCommand.d.ts +2 -2
- package/dist-types/commands/UpdateIdentityProviderCommand.d.ts +2 -2
- package/dist-types/commands/UpdateResourceServerCommand.d.ts +2 -2
- package/dist-types/commands/UpdateUserAttributesCommand.d.ts +15 -14
- package/dist-types/commands/UpdateUserPoolClientCommand.d.ts +2 -2
- package/dist-types/commands/UpdateUserPoolCommand.d.ts +14 -14
- package/dist-types/commands/UpdateUserPoolDomainCommand.d.ts +2 -2
- package/dist-types/commands/VerifySoftwareTokenCommand.d.ts +3 -3
- package/dist-types/commands/VerifyUserAttributeCommand.d.ts +4 -3
- package/dist-types/models/models_0.d.ts +473 -459
- package/dist-types/models/models_1.d.ts +191 -74
- package/dist-types/ts3.4/models/models_0.d.ts +1 -1
- package/package.json +1 -1
|
@@ -256,13 +256,13 @@ export interface SignUpRequest {
|
|
|
256
256
|
/**
|
|
257
257
|
* @public
|
|
258
258
|
* <p>Temporary user attributes that contribute to the outcomes of your pre sign-up Lambda
|
|
259
|
-
*
|
|
260
|
-
*
|
|
259
|
+
* trigger. This set of key-value pairs are for custom validation of information that you
|
|
260
|
+
* collect from your users but don't need to retain.</p>
|
|
261
261
|
* <p>Your Lambda function can analyze this additional data and act on it. Your function
|
|
262
|
-
*
|
|
263
|
-
*
|
|
264
|
-
*
|
|
265
|
-
*
|
|
262
|
+
* might perform external API operations like logging user attributes and validation data
|
|
263
|
+
* to Amazon CloudWatch Logs. Validation data might also affect the response that your function returns
|
|
264
|
+
* to Amazon Cognito, like automatically confirming the user if they sign up from within your
|
|
265
|
+
* network.</p>
|
|
266
266
|
* <p>For more information about the pre sign-up Lambda trigger, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-pre-sign-up.html">Pre sign-up Lambda trigger</a>.</p>
|
|
267
267
|
*/
|
|
268
268
|
ValidationData?: AttributeType[];
|
|
@@ -465,10 +465,10 @@ export interface UpdateAuthEventFeedbackRequest {
|
|
|
465
465
|
/**
|
|
466
466
|
* @public
|
|
467
467
|
* <p>The authentication event feedback value. When you provide a <code>FeedbackValue</code>
|
|
468
|
-
*
|
|
469
|
-
*
|
|
470
|
-
*
|
|
471
|
-
*
|
|
468
|
+
* value of <code>valid</code>, you tell Amazon Cognito that you trust a user session where Amazon Cognito
|
|
469
|
+
* has evaluated some level of risk. When you provide a <code>FeedbackValue</code> value of
|
|
470
|
+
* <code>invalid</code>, you tell Amazon Cognito that you don't trust a user session, or you
|
|
471
|
+
* don't believe that Amazon Cognito evaluated a high-enough risk level.</p>
|
|
472
472
|
*/
|
|
473
473
|
FeedbackValue: FeedbackValueType | undefined;
|
|
474
474
|
}
|
|
@@ -564,8 +564,125 @@ export interface UpdateIdentityProviderRequest {
|
|
|
564
564
|
ProviderName: string | undefined;
|
|
565
565
|
/**
|
|
566
566
|
* @public
|
|
567
|
-
* <p>The
|
|
568
|
-
*
|
|
567
|
+
* <p>The scopes, URLs, and identifiers for your external identity provider. The following
|
|
568
|
+
* examples describe the provider detail keys for each IdP type. These values and their
|
|
569
|
+
* schema are subject to change. Social IdP <code>authorize_scopes</code> values must match
|
|
570
|
+
* the values listed here.</p>
|
|
571
|
+
* <dl>
|
|
572
|
+
* <dt>OpenID Connect (OIDC)</dt>
|
|
573
|
+
* <dd>
|
|
574
|
+
* <p>Amazon Cognito accepts the following elements when it can't discover endpoint
|
|
575
|
+
* URLs from <code>oidc_issuer</code>: <code>attributes_url</code>,
|
|
576
|
+
* <code>authorize_url</code>, <code>jwks_uri</code>,
|
|
577
|
+
* <code>token_url</code>.</p>
|
|
578
|
+
* <p>Create or update request: <code>"ProviderDetails": \{
|
|
579
|
+
* "attributes_request_method": "GET", "attributes_url":
|
|
580
|
+
* "https://auth.example.com/userInfo", "authorize_scopes": "openid profile
|
|
581
|
+
* email", "authorize_url": "https://auth.example.com/authorize",
|
|
582
|
+
* "client_id": "1example23456789", "client_secret":
|
|
583
|
+
* "provider-app-client-secret", "jwks_uri":
|
|
584
|
+
* "https://auth.example.com/.well-known/jwks.json", "oidc_issuer":
|
|
585
|
+
* "https://auth.example.com", "token_url": "https://example.com/token"
|
|
586
|
+
* \}</code>
|
|
587
|
+
* </p>
|
|
588
|
+
* <p>Describe response: <code>"ProviderDetails": \{ "attributes_request_method":
|
|
589
|
+
* "GET", "attributes_url": "https://auth.example.com/userInfo",
|
|
590
|
+
* "attributes_url_add_attributes": "false", "authorize_scopes": "openid
|
|
591
|
+
* profile email", "authorize_url": "https://auth.example.com/authorize",
|
|
592
|
+
* "client_id": "1example23456789", "client_secret":
|
|
593
|
+
* "provider-app-client-secret", "jwks_uri":
|
|
594
|
+
* "https://auth.example.com/.well-known/jwks.json", "oidc_issuer":
|
|
595
|
+
* "https://auth.example.com", "token_url": "https://example.com/token"
|
|
596
|
+
* \}</code>
|
|
597
|
+
* </p>
|
|
598
|
+
* </dd>
|
|
599
|
+
* <dt>SAML</dt>
|
|
600
|
+
* <dd>
|
|
601
|
+
* <p>Create or update request with Metadata URL: <code>"ProviderDetails": \{ "IDPInit": "true",
|
|
602
|
+
* "IDPSignout": "true", "EncryptedResponses" : "true", "MetadataURL":
|
|
603
|
+
* "https://auth.example.com/sso/saml/metadata", "RequestSigningAlgorithm":
|
|
604
|
+
* "rsa-sha256" \}</code>
|
|
605
|
+
* </p>
|
|
606
|
+
* <p>Create or update request with Metadata file: <code>"ProviderDetails": \{ "IDPInit": "true",
|
|
607
|
+
* "IDPSignout": "true", "EncryptedResponses" : "true",
|
|
608
|
+
* "MetadataFile": "[metadata XML]", "RequestSigningAlgorithm":
|
|
609
|
+
* "rsa-sha256" \}</code>
|
|
610
|
+
* </p>
|
|
611
|
+
* <p>The value of <code>MetadataFile</code> must be the plaintext metadata document with all
|
|
612
|
+
* quote (") characters escaped by backslashes.</p>
|
|
613
|
+
* <p>Describe response: <code>"ProviderDetails": \{ "IDPInit": "true",
|
|
614
|
+
* "IDPSignout": "true", "EncryptedResponses" : "true", "ActiveEncryptionCertificate": "[certificate]",
|
|
615
|
+
* "MetadataURL": "https://auth.example.com/sso/saml/metadata", "RequestSigningAlgorithm":
|
|
616
|
+
* "rsa-sha256", "SLORedirectBindingURI":
|
|
617
|
+
* "https://auth.example.com/slo/saml", "SSORedirectBindingURI":
|
|
618
|
+
* "https://auth.example.com/sso/saml" \}</code>
|
|
619
|
+
* </p>
|
|
620
|
+
* </dd>
|
|
621
|
+
* <dt>LoginWithAmazon</dt>
|
|
622
|
+
* <dd>
|
|
623
|
+
* <p>Create or update request: <code>"ProviderDetails": \{ "authorize_scopes":
|
|
624
|
+
* "profile postal_code", "client_id":
|
|
625
|
+
* "amzn1.application-oa2-client.1example23456789", "client_secret":
|
|
626
|
+
* "provider-app-client-secret"</code>
|
|
627
|
+
* </p>
|
|
628
|
+
* <p>Describe response: <code>"ProviderDetails": \{ "attributes_url":
|
|
629
|
+
* "https://api.amazon.com/user/profile", "attributes_url_add_attributes":
|
|
630
|
+
* "false", "authorize_scopes": "profile postal_code", "authorize_url":
|
|
631
|
+
* "https://www.amazon.com/ap/oa", "client_id":
|
|
632
|
+
* "amzn1.application-oa2-client.1example23456789", "client_secret":
|
|
633
|
+
* "provider-app-client-secret", "token_request_method": "POST",
|
|
634
|
+
* "token_url": "https://api.amazon.com/auth/o2/token" \}</code>
|
|
635
|
+
* </p>
|
|
636
|
+
* </dd>
|
|
637
|
+
* <dt>Google</dt>
|
|
638
|
+
* <dd>
|
|
639
|
+
* <p>Create or update request: <code>"ProviderDetails": \{ "authorize_scopes":
|
|
640
|
+
* "email profile openid", "client_id":
|
|
641
|
+
* "1example23456789.apps.googleusercontent.com", "client_secret":
|
|
642
|
+
* "provider-app-client-secret" \}</code>
|
|
643
|
+
* </p>
|
|
644
|
+
* <p>Describe response: <code>"ProviderDetails": \{ "attributes_url":
|
|
645
|
+
* "https://people.googleapis.com/v1/people/me?personFields=",
|
|
646
|
+
* "attributes_url_add_attributes": "true", "authorize_scopes": "email
|
|
647
|
+
* profile openid", "authorize_url":
|
|
648
|
+
* "https://accounts.google.com/o/oauth2/v2/auth", "client_id":
|
|
649
|
+
* "1example23456789.apps.googleusercontent.com", "client_secret":
|
|
650
|
+
* "provider-app-client-secret", "oidc_issuer":
|
|
651
|
+
* "https://accounts.google.com", "token_request_method": "POST",
|
|
652
|
+
* "token_url": "https://www.googleapis.com/oauth2/v4/token"
|
|
653
|
+
* \}</code>
|
|
654
|
+
* </p>
|
|
655
|
+
* </dd>
|
|
656
|
+
* <dt>SignInWithApple</dt>
|
|
657
|
+
* <dd>
|
|
658
|
+
* <p>Create or update request: <code>"ProviderDetails": \{ "authorize_scopes":
|
|
659
|
+
* "email name", "client_id": "com.example.cognito", "private_key": "1EXAMPLE",
|
|
660
|
+
* "key_id": "2EXAMPLE", "team_id": "3EXAMPLE" \}</code>
|
|
661
|
+
* </p>
|
|
662
|
+
* <p>Describe response: <code>"ProviderDetails": \{
|
|
663
|
+
* "attributes_url_add_attributes": "false", "authorize_scopes": "email
|
|
664
|
+
* name", "authorize_url": "https://appleid.apple.com/auth/authorize",
|
|
665
|
+
* "client_id": "com.example.cognito", "key_id": "1EXAMPLE", "oidc_issuer":
|
|
666
|
+
* "https://appleid.apple.com", "team_id": "2EXAMPLE",
|
|
667
|
+
* "token_request_method": "POST", "token_url":
|
|
668
|
+
* "https://appleid.apple.com/auth/token" \}</code>
|
|
669
|
+
* </p>
|
|
670
|
+
* </dd>
|
|
671
|
+
* <dt>Facebook</dt>
|
|
672
|
+
* <dd>
|
|
673
|
+
* <p>Create or update request: <code>"ProviderDetails": \{ "api_version": "v17.0",
|
|
674
|
+
* "authorize_scopes": "public_profile, email", "client_id": "1example23456789",
|
|
675
|
+
* "client_secret": "provider-app-client-secret" \}</code>
|
|
676
|
+
* </p>
|
|
677
|
+
* <p>Describe response: <code>"ProviderDetails":
|
|
678
|
+
* \{ "api_version": "v17.0", "attributes_url": "https://graph.facebook.com/v17.0/me?fields=",
|
|
679
|
+
* "attributes_url_add_attributes": "true", "authorize_scopes": "public_profile, email",
|
|
680
|
+
* "authorize_url": "https://www.facebook.com/v17.0/dialog/oauth", "client_id":
|
|
681
|
+
* "1example23456789", "client_secret": "provider-app-client-secret", "token_request_method":
|
|
682
|
+
* "GET", "token_url": "https://graph.facebook.com/v17.0/oauth/access_token" \}</code>
|
|
683
|
+
* </p>
|
|
684
|
+
* </dd>
|
|
685
|
+
* </dl>
|
|
569
686
|
*/
|
|
570
687
|
ProviderDetails?: Record<string, string>;
|
|
571
688
|
/**
|
|
@@ -714,12 +831,12 @@ export interface UpdateUserPoolRequest {
|
|
|
714
831
|
/**
|
|
715
832
|
* @public
|
|
716
833
|
* <p>When active, <code>DeletionProtection</code> prevents accidental deletion of your user
|
|
717
|
-
*
|
|
718
|
-
*
|
|
834
|
+
* pool. Before you can delete a user pool that you have protected against deletion, you
|
|
835
|
+
* must deactivate this feature.</p>
|
|
719
836
|
* <p>When you try to delete a protected user pool in a <code>DeleteUserPool</code> API request,
|
|
720
|
-
*
|
|
721
|
-
*
|
|
722
|
-
*
|
|
837
|
+
* Amazon Cognito returns an <code>InvalidParameterException</code> error. To delete a protected user pool,
|
|
838
|
+
* send a new <code>DeleteUserPool</code> request after you deactivate deletion protection in an
|
|
839
|
+
* <code>UpdateUserPool</code> API request.</p>
|
|
723
840
|
*/
|
|
724
841
|
DeletionProtection?: DeletionProtectionType;
|
|
725
842
|
/**
|
|
@@ -830,9 +947,9 @@ export interface UpdateUserPoolRequest {
|
|
|
830
947
|
/**
|
|
831
948
|
* @public
|
|
832
949
|
* <p>User pool add-ons. Contains settings for activation of advanced security features. To
|
|
833
|
-
*
|
|
834
|
-
*
|
|
835
|
-
*
|
|
950
|
+
* log user security information but take no action, set to <code>AUDIT</code>. To
|
|
951
|
+
* configure automatic security responses to risky traffic to your user pool, set to
|
|
952
|
+
* <code>ENFORCED</code>.</p>
|
|
836
953
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security.html">Adding advanced security to a user pool</a>.</p>
|
|
837
954
|
*/
|
|
838
955
|
UserPoolAddOns?: UserPoolAddOnsType;
|
|
@@ -878,48 +995,48 @@ export interface UpdateUserPoolClientRequest {
|
|
|
878
995
|
/**
|
|
879
996
|
* @public
|
|
880
997
|
* <p>The refresh token time limit. After this limit expires, your user can't use
|
|
881
|
-
*
|
|
882
|
-
*
|
|
883
|
-
*
|
|
998
|
+
* their refresh token. To specify the time unit for <code>RefreshTokenValidity</code> as
|
|
999
|
+
* <code>seconds</code>, <code>minutes</code>, <code>hours</code>, or <code>days</code>,
|
|
1000
|
+
* set a <code>TokenValidityUnits</code> value in your API request.</p>
|
|
884
1001
|
* <p>For example, when you set <code>RefreshTokenValidity</code> as <code>10</code> and
|
|
885
|
-
*
|
|
886
|
-
*
|
|
1002
|
+
* <code>TokenValidityUnits</code> as <code>days</code>, your user can refresh their session
|
|
1003
|
+
* and retrieve new access and ID tokens for 10 days.</p>
|
|
887
1004
|
* <p>The default time unit for <code>RefreshTokenValidity</code> in an API request is days.
|
|
888
|
-
*
|
|
889
|
-
*
|
|
890
|
-
*
|
|
1005
|
+
* You can't set <code>RefreshTokenValidity</code> to 0. If you do, Amazon Cognito overrides the
|
|
1006
|
+
* value with the default value of 30 days. <i>Valid range</i> is displayed below
|
|
1007
|
+
* in seconds.</p>
|
|
891
1008
|
* <p>If you don't specify otherwise in the configuration of your app client, your refresh
|
|
892
|
-
*
|
|
1009
|
+
* tokens are valid for 30 days.</p>
|
|
893
1010
|
*/
|
|
894
1011
|
RefreshTokenValidity?: number;
|
|
895
1012
|
/**
|
|
896
1013
|
* @public
|
|
897
1014
|
* <p>The access token time limit. After this limit expires, your user can't use
|
|
898
|
-
*
|
|
899
|
-
*
|
|
900
|
-
*
|
|
1015
|
+
* their access token. To specify the time unit for <code>AccessTokenValidity</code> as
|
|
1016
|
+
* <code>seconds</code>, <code>minutes</code>, <code>hours</code>, or <code>days</code>,
|
|
1017
|
+
* set a <code>TokenValidityUnits</code> value in your API request.</p>
|
|
901
1018
|
* <p>For example, when you set <code>AccessTokenValidity</code> to <code>10</code> and
|
|
902
|
-
*
|
|
903
|
-
*
|
|
1019
|
+
* <code>TokenValidityUnits</code> to <code>hours</code>, your user can authorize access with
|
|
1020
|
+
* their access token for 10 hours.</p>
|
|
904
1021
|
* <p>The default time unit for <code>AccessTokenValidity</code> in an API request is hours.
|
|
905
|
-
*
|
|
1022
|
+
* <i>Valid range</i> is displayed below in seconds.</p>
|
|
906
1023
|
* <p>If you don't specify otherwise in the configuration of your app client, your access
|
|
907
|
-
*
|
|
1024
|
+
* tokens are valid for one hour.</p>
|
|
908
1025
|
*/
|
|
909
1026
|
AccessTokenValidity?: number;
|
|
910
1027
|
/**
|
|
911
1028
|
* @public
|
|
912
1029
|
* <p>The ID token time limit. After this limit expires, your user can't use
|
|
913
|
-
*
|
|
914
|
-
*
|
|
915
|
-
*
|
|
1030
|
+
* their ID token. To specify the time unit for <code>IdTokenValidity</code> as
|
|
1031
|
+
* <code>seconds</code>, <code>minutes</code>, <code>hours</code>, or <code>days</code>,
|
|
1032
|
+
* set a <code>TokenValidityUnits</code> value in your API request.</p>
|
|
916
1033
|
* <p>For example, when you set <code>IdTokenValidity</code> as <code>10</code> and
|
|
917
|
-
*
|
|
918
|
-
*
|
|
1034
|
+
* <code>TokenValidityUnits</code> as <code>hours</code>, your user can authenticate their
|
|
1035
|
+
* session with their ID token for 10 hours.</p>
|
|
919
1036
|
* <p>The default time unit for <code>IdTokenValidity</code> in an API request is hours.
|
|
920
|
-
*
|
|
1037
|
+
* <i>Valid range</i> is displayed below in seconds.</p>
|
|
921
1038
|
* <p>If you don't specify otherwise in the configuration of your app client, your ID
|
|
922
|
-
*
|
|
1039
|
+
* tokens are valid for one hour.</p>
|
|
923
1040
|
*/
|
|
924
1041
|
IdTokenValidity?: number;
|
|
925
1042
|
/**
|
|
@@ -932,40 +1049,40 @@ export interface UpdateUserPoolClientRequest {
|
|
|
932
1049
|
/**
|
|
933
1050
|
* @public
|
|
934
1051
|
* <p>The list of user attributes that you want your app client to have read-only access to.
|
|
935
|
-
*
|
|
936
|
-
*
|
|
937
|
-
*
|
|
938
|
-
*
|
|
939
|
-
*
|
|
1052
|
+
* After your user authenticates in your app, their access token authorizes them to read
|
|
1053
|
+
* their own attribute value for any attribute in this list. An example of this kind of
|
|
1054
|
+
* activity is when your user selects a link to view their profile information. Your app
|
|
1055
|
+
* makes a <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_GetUser.html">GetUser</a> API request to retrieve and display your user's profile
|
|
1056
|
+
* data.</p>
|
|
940
1057
|
* <p>When you don't specify the <code>ReadAttributes</code> for your app client, your
|
|
941
|
-
*
|
|
942
|
-
*
|
|
943
|
-
*
|
|
944
|
-
*
|
|
945
|
-
*
|
|
946
|
-
*
|
|
1058
|
+
* app can read the values of <code>email_verified</code>,
|
|
1059
|
+
* <code>phone_number_verified</code>, and the Standard attributes of your user pool.
|
|
1060
|
+
* When your user pool has read access to these default attributes,
|
|
1061
|
+
* <code>ReadAttributes</code> doesn't return any information. Amazon Cognito only
|
|
1062
|
+
* populates <code>ReadAttributes</code> in the API response if you have specified your own
|
|
1063
|
+
* custom set of read attributes.</p>
|
|
947
1064
|
*/
|
|
948
1065
|
ReadAttributes?: string[];
|
|
949
1066
|
/**
|
|
950
1067
|
* @public
|
|
951
1068
|
* <p>The list of user attributes that you want your app client to have write access to.
|
|
952
|
-
*
|
|
953
|
-
*
|
|
954
|
-
*
|
|
955
|
-
*
|
|
956
|
-
*
|
|
1069
|
+
* After your user authenticates in your app, their access token authorizes them to set or
|
|
1070
|
+
* modify their own attribute value for any attribute in this list. An example of this kind
|
|
1071
|
+
* of activity is when you present your user with a form to update their profile
|
|
1072
|
+
* information and they change their last name. Your app then makes an <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserAttributes.html">UpdateUserAttributes</a> API request and sets <code>family_name</code> to the
|
|
1073
|
+
* new value. </p>
|
|
957
1074
|
* <p>When you don't specify the <code>WriteAttributes</code> for your app client, your
|
|
958
|
-
*
|
|
959
|
-
*
|
|
960
|
-
*
|
|
961
|
-
*
|
|
962
|
-
*
|
|
1075
|
+
* app can write the values of the Standard attributes of your user pool. When your user
|
|
1076
|
+
* pool has write access to these default attributes, <code>WriteAttributes</code>
|
|
1077
|
+
* doesn't return any information. Amazon Cognito only populates
|
|
1078
|
+
* <code>WriteAttributes</code> in the API response if you have specified your own
|
|
1079
|
+
* custom set of write attributes.</p>
|
|
963
1080
|
* <p>If your app client allows users to sign in through an IdP, this array must include all
|
|
964
|
-
*
|
|
965
|
-
*
|
|
966
|
-
*
|
|
967
|
-
*
|
|
968
|
-
*
|
|
1081
|
+
* attributes that you have mapped to IdP attributes. Amazon Cognito updates mapped attributes when
|
|
1082
|
+
* users sign in to your application through an IdP. If your app client does not have write
|
|
1083
|
+
* access to a mapped attribute, Amazon Cognito throws an error when it tries to update the
|
|
1084
|
+
* attribute. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-specifying-attribute-mapping.html">Specifying IdP Attribute Mappings for Your user
|
|
1085
|
+
* pool</a>.</p>
|
|
969
1086
|
*/
|
|
970
1087
|
WriteAttributes?: string[];
|
|
971
1088
|
/**
|
|
@@ -1106,7 +1223,7 @@ export interface UpdateUserPoolClientRequest {
|
|
|
1106
1223
|
* <p>Set to <code>true</code> to use OAuth 2.0 features in your user pool app client.</p>
|
|
1107
1224
|
* <p>
|
|
1108
1225
|
* <code>AllowedOAuthFlowsUserPoolClient</code> must be <code>true</code> before you can configure
|
|
1109
|
-
*
|
|
1226
|
+
* the following features in your app client.</p>
|
|
1110
1227
|
* <ul>
|
|
1111
1228
|
* <li>
|
|
1112
1229
|
* <p>
|
|
@@ -1126,10 +1243,10 @@ export interface UpdateUserPoolClientRequest {
|
|
|
1126
1243
|
* </li>
|
|
1127
1244
|
* </ul>
|
|
1128
1245
|
* <p>To use OAuth 2.0 features, configure one of these features in the Amazon Cognito console or set
|
|
1129
|
-
*
|
|
1130
|
-
*
|
|
1131
|
-
*
|
|
1132
|
-
*
|
|
1246
|
+
* <code>AllowedOAuthFlowsUserPoolClient</code> to <code>true</code> in a <code>CreateUserPoolClient</code> or
|
|
1247
|
+
* <code>UpdateUserPoolClient</code> API request. If you don't set a value for
|
|
1248
|
+
* <code>AllowedOAuthFlowsUserPoolClient</code> in a request with the CLI or SDKs, it defaults
|
|
1249
|
+
* to <code>false</code>.</p>
|
|
1133
1250
|
*/
|
|
1134
1251
|
AllowedOAuthFlowsUserPoolClient?: boolean;
|
|
1135
1252
|
/**
|
|
@@ -977,8 +977,8 @@ export interface LambdaConfigType {
|
|
|
977
977
|
CreateAuthChallenge?: string;
|
|
978
978
|
VerifyAuthChallengeResponse?: string;
|
|
979
979
|
PreTokenGeneration?: string;
|
|
980
|
-
PreTokenGenerationConfig?: PreTokenGenerationVersionConfigType;
|
|
981
980
|
UserMigration?: string;
|
|
981
|
+
PreTokenGenerationConfig?: PreTokenGenerationVersionConfigType;
|
|
982
982
|
CustomSMSSender?: CustomSMSLambdaVersionConfigType;
|
|
983
983
|
CustomEmailSender?: CustomEmailLambdaVersionConfigType;
|
|
984
984
|
KMSKeyID?: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cognito-identity-provider",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cognito Identity Provider Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.505.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-provider",
|