@aws-sdk/client-cognito-identity-provider 3.427.0 → 3.429.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.
@@ -28,7 +28,7 @@ export interface RecoveryOptionType {
28
28
  * @public
29
29
  * <p>The recovery method for a user.</p>
30
30
  */
31
- Name: RecoveryOptionNameType | string | undefined;
31
+ Name: RecoveryOptionNameType | undefined;
32
32
  }
33
33
  /**
34
34
  * @public
@@ -90,7 +90,7 @@ export interface AccountTakeoverActionType {
90
90
  * </li>
91
91
  * </ul>
92
92
  */
93
- EventAction: AccountTakeoverEventActionType | string | undefined;
93
+ EventAction: AccountTakeoverEventActionType | undefined;
94
94
  }
95
95
  /**
96
96
  * @public
@@ -259,7 +259,7 @@ export interface SchemaAttributeType {
259
259
  * @public
260
260
  * <p>The data format of the values for your attribute.</p>
261
261
  */
262
- AttributeDataType?: AttributeDataType | string;
262
+ AttributeDataType?: AttributeDataType;
263
263
  /**
264
264
  * @public
265
265
  * <note>
@@ -710,14 +710,14 @@ export interface AdminCreateUserRequest {
710
710
  * <code>SUPPRESS</code> to suppress sending the message. You can specify only one
711
711
  * value.</p>
712
712
  */
713
- MessageAction?: MessageActionType | string;
713
+ MessageAction?: MessageActionType;
714
714
  /**
715
715
  * @public
716
716
  * <p>Specify <code>"EMAIL"</code> if email will be used to send the welcome message.
717
717
  * Specify <code>"SMS"</code> if the phone number will be used. The default value is
718
718
  * <code>"SMS"</code>. You can specify more than one value.</p>
719
719
  */
720
- DesiredDeliveryMediums?: (DeliveryMediumType | string)[];
720
+ DesiredDeliveryMediums?: DeliveryMediumType[];
721
721
  /**
722
722
  * @public
723
723
  * <p>A map of custom key-value pairs that you can provide as input for any custom workflows
@@ -767,7 +767,7 @@ export interface MFAOptionType {
767
767
  * <p>The delivery medium to send the MFA code. You can use this parameter to set only the
768
768
  * <code>SMS</code> delivery medium value.</p>
769
769
  */
770
- DeliveryMedium?: DeliveryMediumType | string;
770
+ DeliveryMedium?: DeliveryMediumType;
771
771
  /**
772
772
  * @public
773
773
  * <p>The attribute name of the MFA option type. The only valid value is
@@ -849,7 +849,7 @@ export interface UserType {
849
849
  * </li>
850
850
  * </ul>
851
851
  */
852
- UserStatus?: UserStatusType | string;
852
+ UserStatus?: UserStatusType;
853
853
  /**
854
854
  * @public
855
855
  * <p>The MFA options for the user.</p>
@@ -1328,7 +1328,7 @@ export interface AdminGetUserResponse {
1328
1328
  * </li>
1329
1329
  * </ul>
1330
1330
  */
1331
- UserStatus?: UserStatusType | string;
1331
+ UserStatus?: UserStatusType;
1332
1332
  /**
1333
1333
  * @public
1334
1334
  * <p>
@@ -1500,7 +1500,7 @@ export interface AdminInitiateAuthRequest {
1500
1500
  * </li>
1501
1501
  * </ul>
1502
1502
  */
1503
- AuthFlow: AuthFlowType | string | undefined;
1503
+ AuthFlow: AuthFlowType | undefined;
1504
1504
  /**
1505
1505
  * @public
1506
1506
  * <p>The authentication parameters. These are inputs corresponding to the
@@ -1780,7 +1780,7 @@ export interface AdminInitiateAuthResponse {
1780
1780
  * </li>
1781
1781
  * </ul>
1782
1782
  */
1783
- ChallengeName?: ChallengeNameType | string;
1783
+ ChallengeName?: ChallengeNameType;
1784
1784
  /**
1785
1785
  * @public
1786
1786
  * <p>The session that should be passed both ways in challenge-response calls to the
@@ -2115,12 +2115,12 @@ export interface ChallengeResponseType {
2115
2115
  * @public
2116
2116
  * <p>The challenge name.</p>
2117
2117
  */
2118
- ChallengeName?: ChallengeName | string;
2118
+ ChallengeName?: ChallengeName;
2119
2119
  /**
2120
2120
  * @public
2121
2121
  * <p>The challenge response.</p>
2122
2122
  */
2123
- ChallengeResponse?: ChallengeResponse | string;
2123
+ ChallengeResponse?: ChallengeResponse;
2124
2124
  }
2125
2125
  /**
2126
2126
  * @public
@@ -2178,7 +2178,7 @@ export interface EventFeedbackType {
2178
2178
  * <code>invalid</code>, you tell Amazon Cognito that you don't trust a user session, or you
2179
2179
  * don't believe that Amazon Cognito evaluated a high-enough risk level.</p>
2180
2180
  */
2181
- FeedbackValue: FeedbackValueType | string | undefined;
2181
+ FeedbackValue: FeedbackValueType | undefined;
2182
2182
  /**
2183
2183
  * @public
2184
2184
  * <p>The provider.</p>
@@ -2238,12 +2238,12 @@ export interface EventRiskType {
2238
2238
  * @public
2239
2239
  * <p>The risk decision.</p>
2240
2240
  */
2241
- RiskDecision?: RiskDecisionType | string;
2241
+ RiskDecision?: RiskDecisionType;
2242
2242
  /**
2243
2243
  * @public
2244
2244
  * <p>The risk level.</p>
2245
2245
  */
2246
- RiskLevel?: RiskLevelType | string;
2246
+ RiskLevel?: RiskLevelType;
2247
2247
  /**
2248
2248
  * @public
2249
2249
  * <p>Indicates whether compromised credentials were detected during an authentication
@@ -2280,7 +2280,7 @@ export interface AuthEventType {
2280
2280
  * @public
2281
2281
  * <p>The event type.</p>
2282
2282
  */
2283
- EventType?: EventType | string;
2283
+ EventType?: EventType;
2284
2284
  /**
2285
2285
  * @public
2286
2286
  * <p>The date and time, in <a href="https://www.iso.org/iso-8601-date-and-time-format.html">ISO 8601</a> format, when the item was created.</p>
@@ -2290,7 +2290,7 @@ export interface AuthEventType {
2290
2290
  * @public
2291
2291
  * <p>The event response.</p>
2292
2292
  */
2293
- EventResponse?: EventResponseType | string;
2293
+ EventResponse?: EventResponseType;
2294
2294
  /**
2295
2295
  * @public
2296
2296
  * <p>The event risk.</p>
@@ -2453,7 +2453,7 @@ export interface AdminRespondToAuthChallengeRequest {
2453
2453
  * @public
2454
2454
  * <p>The challenge name. For more information, see <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminInitiateAuth.html">AdminInitiateAuth</a>.</p>
2455
2455
  */
2456
- ChallengeName: ChallengeNameType | string | undefined;
2456
+ ChallengeName: ChallengeNameType | undefined;
2457
2457
  /**
2458
2458
  * @public
2459
2459
  * <p>The challenge responses. These are inputs corresponding to the value of
@@ -2609,7 +2609,7 @@ export interface AdminRespondToAuthChallengeResponse {
2609
2609
  * @public
2610
2610
  * <p>The name of the challenge. For more information, see <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminInitiateAuth.html">AdminInitiateAuth</a>.</p>
2611
2611
  */
2612
- ChallengeName?: ChallengeNameType | string;
2612
+ ChallengeName?: ChallengeNameType;
2613
2613
  /**
2614
2614
  * @public
2615
2615
  * <p>The session that should be passed both ways in challenge-response calls to the
@@ -2831,7 +2831,7 @@ export interface AdminUpdateAuthEventFeedbackRequest {
2831
2831
  * <code>invalid</code>, you tell Amazon Cognito that you don't trust a user session, or you
2832
2832
  * don't believe that Amazon Cognito evaluated a high-enough risk level.</p>
2833
2833
  */
2834
- FeedbackValue: FeedbackValueType | string | undefined;
2834
+ FeedbackValue: FeedbackValueType | undefined;
2835
2835
  }
2836
2836
  /**
2837
2837
  * @public
@@ -2874,7 +2874,7 @@ export interface AdminUpdateDeviceStatusRequest {
2874
2874
  * @public
2875
2875
  * <p>The status indicating whether a device has been remembered or not.</p>
2876
2876
  */
2877
- DeviceRememberedStatus?: DeviceRememberedStatusType | string;
2877
+ DeviceRememberedStatus?: DeviceRememberedStatusType;
2878
2878
  }
2879
2879
  /**
2880
2880
  * @public
@@ -3503,7 +3503,7 @@ export interface CreateIdentityProviderRequest {
3503
3503
  * @public
3504
3504
  * <p>The IdP type.</p>
3505
3505
  */
3506
- ProviderType: IdentityProviderTypeType | string | undefined;
3506
+ ProviderType: IdentityProviderTypeType | undefined;
3507
3507
  /**
3508
3508
  * @public
3509
3509
  * <p>The IdP details. The following list describes the provider detail keys for each IdP
@@ -3652,7 +3652,7 @@ export interface IdentityProviderType {
3652
3652
  * @public
3653
3653
  * <p>The IdP type.</p>
3654
3654
  */
3655
- ProviderType?: IdentityProviderTypeType | string;
3655
+ ProviderType?: IdentityProviderTypeType;
3656
3656
  /**
3657
3657
  * @public
3658
3658
  * <p>The IdP details. The following list describes the provider detail keys for each IdP
@@ -4022,7 +4022,7 @@ export interface UserImportJobType {
4022
4022
  * </li>
4023
4023
  * </ul>
4024
4024
  */
4025
- Status?: UserImportJobStatusType | string;
4025
+ Status?: UserImportJobStatusType;
4026
4026
  /**
4027
4027
  * @public
4028
4028
  * <p>The role Amazon Resource Name (ARN) for the Amazon CloudWatch Logging role for the user import
@@ -4215,7 +4215,7 @@ export interface EmailConfigurationType {
4215
4215
  * </dd>
4216
4216
  * </dl>
4217
4217
  */
4218
- EmailSendingAccount?: EmailSendingAccountType | string;
4218
+ EmailSendingAccount?: EmailSendingAccountType;
4219
4219
  /**
4220
4220
  * @public
4221
4221
  * <p>Either the sender’s email address or the sender’s name with their email address. For
@@ -4270,7 +4270,7 @@ export interface CustomEmailLambdaVersionConfigType {
4270
4270
  * <p>Signature of the "request" attribute in the "event" information Amazon Cognito passes to your
4271
4271
  * custom email Lambda function. The only supported value is <code>V1_0</code>.</p>
4272
4272
  */
4273
- LambdaVersion: CustomEmailSenderLambdaVersionType | string | undefined;
4273
+ LambdaVersion: CustomEmailSenderLambdaVersionType | undefined;
4274
4274
  /**
4275
4275
  * @public
4276
4276
  * <p>The Amazon Resource Name (ARN) of the Lambda function that Amazon Cognito activates to send
@@ -4299,7 +4299,7 @@ export interface CustomSMSLambdaVersionConfigType {
4299
4299
  * <p>Signature of the "request" attribute in the "event" information that Amazon Cognito passes to
4300
4300
  * your custom SMS Lambda function. The only supported value is <code>V1_0</code>.</p>
4301
4301
  */
4302
- LambdaVersion: CustomSMSSenderLambdaVersionType | string | undefined;
4302
+ LambdaVersion: CustomSMSSenderLambdaVersionType | undefined;
4303
4303
  /**
4304
4304
  * @public
4305
4305
  * <p>The Amazon Resource Name (ARN) of the Lambda function that Amazon Cognito activates to send SMS
@@ -4517,7 +4517,7 @@ export interface UserAttributeUpdateSettingsType {
4517
4517
  * operations that change attribute values can immediately update a user’s
4518
4518
  * <code>email</code> or <code>phone_number</code> attribute.</p>
4519
4519
  */
4520
- AttributesRequireVerificationBeforeUpdate?: (VerifiedAttributeType | string)[];
4520
+ AttributesRequireVerificationBeforeUpdate?: VerifiedAttributeType[];
4521
4521
  }
4522
4522
  /**
4523
4523
  * @public
@@ -4577,7 +4577,7 @@ export interface UserPoolAddOnsType {
4577
4577
  * @public
4578
4578
  * <p>The operating mode of advanced security features in your user pool.</p>
4579
4579
  */
4580
- AdvancedSecurityMode: AdvancedSecurityModeType | string | undefined;
4580
+ AdvancedSecurityMode: AdvancedSecurityModeType | undefined;
4581
4581
  }
4582
4582
  /**
4583
4583
  * @public
@@ -4634,7 +4634,7 @@ export interface VerificationMessageTemplateType {
4634
4634
  * @public
4635
4635
  * <p>The default email option.</p>
4636
4636
  */
4637
- DefaultEmailOption?: DefaultEmailOptionType | string;
4637
+ DefaultEmailOption?: DefaultEmailOptionType;
4638
4638
  }
4639
4639
  /**
4640
4640
  * @public
@@ -4661,7 +4661,7 @@ export interface CreateUserPoolRequest {
4661
4661
  * send a new <code>DeleteUserPool</code> request after you deactivate deletion protection in an
4662
4662
  * <code>UpdateUserPool</code> API request.</p>
4663
4663
  */
4664
- DeletionProtection?: DeletionProtectionType | string;
4664
+ DeletionProtection?: DeletionProtectionType;
4665
4665
  /**
4666
4666
  * @public
4667
4667
  * <p>The Lambda trigger configuration information for the new user pool.</p>
@@ -4681,19 +4681,19 @@ export interface CreateUserPoolRequest {
4681
4681
  * @public
4682
4682
  * <p>The attributes to be auto-verified. Possible values: <b>email</b>, <b>phone_number</b>.</p>
4683
4683
  */
4684
- AutoVerifiedAttributes?: (VerifiedAttributeType | string)[];
4684
+ AutoVerifiedAttributes?: VerifiedAttributeType[];
4685
4685
  /**
4686
4686
  * @public
4687
4687
  * <p>Attributes supported as an alias for this user pool. Possible values: <b>phone_number</b>, <b>email</b>, or
4688
4688
  * <b>preferred_username</b>.</p>
4689
4689
  */
4690
- AliasAttributes?: (AliasAttributeType | string)[];
4690
+ AliasAttributes?: AliasAttributeType[];
4691
4691
  /**
4692
4692
  * @public
4693
4693
  * <p>Specifies whether a user can use an email address or phone number as a username when
4694
4694
  * they sign up.</p>
4695
4695
  */
4696
- UsernameAttributes?: (UsernameAttributeType | string)[];
4696
+ UsernameAttributes?: UsernameAttributeType[];
4697
4697
  /**
4698
4698
  * @public
4699
4699
  * <p>This parameter is no longer used. See <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_VerificationMessageTemplateType.html">VerificationMessageTemplateType</a>.</p>
@@ -4724,7 +4724,7 @@ export interface CreateUserPoolRequest {
4724
4724
  * @public
4725
4725
  * <p>Specifies MFA configuration details.</p>
4726
4726
  */
4727
- MfaConfiguration?: UserPoolMfaType | string;
4727
+ MfaConfiguration?: UserPoolMfaType;
4728
4728
  /**
4729
4729
  * @public
4730
4730
  * <p>The settings for updates to user attributes. These settings include the property <code>AttributesRequireVerificationBeforeUpdate</code>,
@@ -4852,7 +4852,7 @@ export interface UserPoolType {
4852
4852
  * send a new <code>DeleteUserPool</code> request after you deactivate deletion protection in an
4853
4853
  * <code>UpdateUserPool</code> API request.</p>
4854
4854
  */
4855
- DeletionProtection?: DeletionProtectionType | string;
4855
+ DeletionProtection?: DeletionProtectionType;
4856
4856
  /**
4857
4857
  * @public
4858
4858
  * <p>The Lambda triggers associated with the user pool.</p>
@@ -4864,7 +4864,7 @@ export interface UserPoolType {
4864
4864
  *
4865
4865
  * <p>The status of a user pool.</p>
4866
4866
  */
4867
- Status?: StatusType | string;
4867
+ Status?: StatusType;
4868
4868
  /**
4869
4869
  * @public
4870
4870
  * <p>The date and time, in <a href="https://www.iso.org/iso-8601-date-and-time-format.html">ISO 8601</a> format, when the item was modified.</p>
@@ -4891,18 +4891,18 @@ export interface UserPoolType {
4891
4891
  * @public
4892
4892
  * <p>The attributes that are auto-verified in a user pool.</p>
4893
4893
  */
4894
- AutoVerifiedAttributes?: (VerifiedAttributeType | string)[];
4894
+ AutoVerifiedAttributes?: VerifiedAttributeType[];
4895
4895
  /**
4896
4896
  * @public
4897
4897
  * <p>The attributes that are aliased in a user pool.</p>
4898
4898
  */
4899
- AliasAttributes?: (AliasAttributeType | string)[];
4899
+ AliasAttributes?: AliasAttributeType[];
4900
4900
  /**
4901
4901
  * @public
4902
4902
  * <p>Specifies whether a user can use an email address or phone number as a username when
4903
4903
  * they sign up.</p>
4904
4904
  */
4905
- UsernameAttributes?: (UsernameAttributeType | string)[];
4905
+ UsernameAttributes?: UsernameAttributeType[];
4906
4906
  /**
4907
4907
  * @public
4908
4908
  * <p>This parameter is no longer used. See <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_VerificationMessageTemplateType.html">VerificationMessageTemplateType</a>.</p>
@@ -4957,7 +4957,7 @@ export interface UserPoolType {
4957
4957
  * </li>
4958
4958
  * </ul>
4959
4959
  */
4960
- MfaConfiguration?: UserPoolMfaType | string;
4960
+ MfaConfiguration?: UserPoolMfaType;
4961
4961
  /**
4962
4962
  * @public
4963
4963
  * <p>The device-remembering configuration for a user pool. A null value indicates that you
@@ -5170,7 +5170,7 @@ export interface TokenValidityUnitsType {
5170
5170
  * <code>AccessTokenValidity</code> duration can range from five minutes to one
5171
5171
  * day.</p>
5172
5172
  */
5173
- AccessToken?: TimeUnitsType | string;
5173
+ AccessToken?: TimeUnitsType;
5174
5174
  /**
5175
5175
  * @public
5176
5176
  * <p>A time unit of <code>seconds</code>, <code>minutes</code>, <code>hours</code>, or
@@ -5178,7 +5178,7 @@ export interface TokenValidityUnitsType {
5178
5178
  * parameter. The default <code>IdTokenValidity</code> time unit is hours.
5179
5179
  * <code>IdTokenValidity</code> duration can range from five minutes to one day.</p>
5180
5180
  */
5181
- IdToken?: TimeUnitsType | string;
5181
+ IdToken?: TimeUnitsType;
5182
5182
  /**
5183
5183
  * @public
5184
5184
  * <p>A time unit of <code>seconds</code>, <code>minutes</code>, <code>hours</code>, or
@@ -5188,7 +5188,7 @@ export interface TokenValidityUnitsType {
5188
5188
  * <code>RefreshTokenValidity</code> duration can range from 60 minutes to 10
5189
5189
  * years.</p>
5190
5190
  */
5191
- RefreshToken?: TimeUnitsType | string;
5191
+ RefreshToken?: TimeUnitsType;
5192
5192
  }
5193
5193
  /**
5194
5194
  * @public
@@ -5323,7 +5323,7 @@ export interface CreateUserPoolClientRequest {
5323
5323
  * You can't assign these legacy <code>ExplicitAuthFlows</code> values to user pool clients at the same time as values that begin with <code>ALLOW_</code>,
5324
5324
  * like <code>ALLOW_USER_SRP_AUTH</code>.</p>
5325
5325
  */
5326
- ExplicitAuthFlows?: (ExplicitAuthFlowsType | string)[];
5326
+ ExplicitAuthFlows?: ExplicitAuthFlowsType[];
5327
5327
  /**
5328
5328
  * @public
5329
5329
  * <p>A list of provider names for the identity providers (IdPs) that are supported on this
@@ -5405,7 +5405,7 @@ export interface CreateUserPoolClientRequest {
5405
5405
  * </dd>
5406
5406
  * </dl>
5407
5407
  */
5408
- AllowedOAuthFlows?: (OAuthFlowType | string)[];
5408
+ AllowedOAuthFlows?: OAuthFlowType[];
5409
5409
  /**
5410
5410
  * @public
5411
5411
  * <p>The allowed OAuth scopes. Possible values provided by OAuth are <code>phone</code>,
@@ -5480,7 +5480,7 @@ export interface CreateUserPoolClientRequest {
5480
5480
  * </li>
5481
5481
  * </ul>
5482
5482
  */
5483
- PreventUserExistenceErrors?: PreventUserExistenceErrorTypes | string;
5483
+ PreventUserExistenceErrors?: PreventUserExistenceErrorTypes;
5484
5484
  /**
5485
5485
  * @public
5486
5486
  * <p>Activates or deactivates token revocation. For more information about revoking tokens,
@@ -5647,7 +5647,7 @@ export interface UserPoolClientType {
5647
5647
  * You can't assign these legacy <code>ExplicitAuthFlows</code> values to user pool clients at the same time as values that begin with <code>ALLOW_</code>,
5648
5648
  * like <code>ALLOW_USER_SRP_AUTH</code>.</p>
5649
5649
  */
5650
- ExplicitAuthFlows?: (ExplicitAuthFlowsType | string)[];
5650
+ ExplicitAuthFlows?: ExplicitAuthFlowsType[];
5651
5651
  /**
5652
5652
  * @public
5653
5653
  * <p>A list of provider names for the IdPs that this client supports. The following are
@@ -5728,7 +5728,7 @@ export interface UserPoolClientType {
5728
5728
  * </dd>
5729
5729
  * </dl>
5730
5730
  */
5731
- AllowedOAuthFlows?: (OAuthFlowType | string)[];
5731
+ AllowedOAuthFlows?: OAuthFlowType[];
5732
5732
  /**
5733
5733
  * @public
5734
5734
  * <p>The OAuth scopes that your app client supports. Possible values that OAuth provides
@@ -5802,7 +5802,7 @@ export interface UserPoolClientType {
5802
5802
  * </li>
5803
5803
  * </ul>
5804
5804
  */
5805
- PreventUserExistenceErrors?: PreventUserExistenceErrorTypes | string;
5805
+ PreventUserExistenceErrors?: PreventUserExistenceErrorTypes;
5806
5806
  /**
5807
5807
  * @public
5808
5808
  * <p>Indicates whether token revocation is activated for the user pool client. When you
@@ -6151,7 +6151,7 @@ export interface CompromisedCredentialsActionsType {
6151
6151
  * @public
6152
6152
  * <p>The event action.</p>
6153
6153
  */
6154
- EventAction: CompromisedCredentialsEventActionType | string | undefined;
6154
+ EventAction: CompromisedCredentialsEventActionType | undefined;
6155
6155
  }
6156
6156
  /**
6157
6157
  * @public
@@ -6176,7 +6176,7 @@ export interface CompromisedCredentialsRiskConfigurationType {
6176
6176
  * <p>Perform the action for these events. The default is to perform all events if no event
6177
6177
  * filter is specified.</p>
6178
6178
  */
6179
- EventFilter?: (EventFilterType | string)[];
6179
+ EventFilter?: EventFilterType[];
6180
6180
  /**
6181
6181
  * @public
6182
6182
  * <p>The compromised credentials risk configuration actions.</p>
@@ -6398,7 +6398,7 @@ export interface DomainDescriptionType {
6398
6398
  * @public
6399
6399
  * <p>The domain status.</p>
6400
6400
  */
6401
- Status?: DomainStatusType | string;
6401
+ Status?: DomainStatusType;
6402
6402
  /**
6403
6403
  * @public
6404
6404
  * <p>The configuration for a custom domain that hosts the sign-up and sign-in webpages for
@@ -6521,7 +6521,7 @@ export interface CodeDeliveryDetailsType {
6521
6521
  * @public
6522
6522
  * <p>The method that Amazon Cognito used to send the code.</p>
6523
6523
  */
6524
- DeliveryMedium?: DeliveryMediumType | string;
6524
+ DeliveryMedium?: DeliveryMediumType;
6525
6525
  /**
6526
6526
  * @public
6527
6527
  * <p>The name of the attribute that Amazon Cognito verifies with the code.</p>
@@ -6708,12 +6708,12 @@ export interface LogConfigurationType {
6708
6708
  * <p>The <code>errorlevel</code> selection of logs that a user pool sends for detailed
6709
6709
  * activity logging.</p>
6710
6710
  */
6711
- LogLevel: LogLevel | string | undefined;
6711
+ LogLevel: LogLevel | undefined;
6712
6712
  /**
6713
6713
  * @public
6714
6714
  * <p>The source of events that your user pool sends for detailed activity logging.</p>
6715
6715
  */
6716
- EventSource: EventSourceName | string | undefined;
6716
+ EventSource: EventSourceName | undefined;
6717
6717
  /**
6718
6718
  * @public
6719
6719
  * <p>The CloudWatch logging destination of a user pool.</p>
@@ -7027,7 +7027,7 @@ export interface GetUserPoolMfaConfigResponse {
7027
7027
  * </li>
7028
7028
  * </ul>
7029
7029
  */
7030
- MfaConfiguration?: UserPoolMfaType | string;
7030
+ MfaConfiguration?: UserPoolMfaType;
7031
7031
  }
7032
7032
  /**
7033
7033
  * @public
@@ -7101,7 +7101,7 @@ export interface InitiateAuthRequest {
7101
7101
  * <p>
7102
7102
  * <code>ADMIN_NO_SRP_AUTH</code> isn't a valid value.</p>
7103
7103
  */
7104
- AuthFlow: AuthFlowType | string | undefined;
7104
+ AuthFlow: AuthFlowType | undefined;
7105
7105
  /**
7106
7106
  * @public
7107
7107
  * <p>The authentication parameters. These are inputs corresponding to the
@@ -7300,7 +7300,7 @@ export interface InitiateAuthResponse {
7300
7300
  * </li>
7301
7301
  * </ul>
7302
7302
  */
7303
- ChallengeName?: ChallengeNameType | string;
7303
+ ChallengeName?: ChallengeNameType;
7304
7304
  /**
7305
7305
  * @public
7306
7306
  * <p>The session that should pass both ways in challenge-response calls to the service. If
@@ -7436,7 +7436,7 @@ export interface ProviderDescription {
7436
7436
  * @public
7437
7437
  * <p>The IdP type.</p>
7438
7438
  */
7439
- ProviderType?: IdentityProviderTypeType | string;
7439
+ ProviderType?: IdentityProviderTypeType;
7440
7440
  /**
7441
7441
  * @public
7442
7442
  * <p>The date the provider was last modified.</p>
@@ -7665,7 +7665,7 @@ export interface UserPoolDescriptionType {
7665
7665
  *
7666
7666
  * <p>The user pool status in a user pool description.</p>
7667
7667
  */
7668
- Status?: StatusType | string;
7668
+ Status?: StatusType;
7669
7669
  /**
7670
7670
  * @public
7671
7671
  * <p>The date and time, in <a href="https://www.iso.org/iso-8601-date-and-time-format.html">ISO 8601</a> format, when the item was modified.</p>
@@ -7985,7 +7985,7 @@ export interface RespondToAuthChallengeRequest {
7985
7985
  * <p>
7986
7986
  * <code>ADMIN_NO_SRP_AUTH</code> isn't a valid value.</p>
7987
7987
  */
7988
- ChallengeName: ChallengeNameType | string | undefined;
7988
+ ChallengeName: ChallengeNameType | undefined;
7989
7989
  /**
7990
7990
  * @public
7991
7991
  * <p>The session that should be passed both ways in challenge-response calls to the
@@ -8126,7 +8126,7 @@ export interface RespondToAuthChallengeResponse {
8126
8126
  * @public
8127
8127
  * <p>The challenge name. For more information, see <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_InitiateAuth.html">InitiateAuth</a>.</p>
8128
8128
  */
8129
- ChallengeName?: ChallengeNameType | string;
8129
+ ChallengeName?: ChallengeNameType;
8130
8130
  /**
8131
8131
  * @public
8132
8132
  * <p>The session that should be passed both ways in challenge-response calls to the
@@ -112,7 +112,7 @@ export interface SetUserPoolMfaConfigRequest {
112
112
  * </li>
113
113
  * </ul>
114
114
  */
115
- MfaConfiguration?: UserPoolMfaType | string;
115
+ MfaConfiguration?: UserPoolMfaType;
116
116
  }
117
117
  /**
118
118
  * @public
@@ -147,7 +147,7 @@ export interface SetUserPoolMfaConfigResponse {
147
147
  * </li>
148
148
  * </ul>
149
149
  */
150
- MfaConfiguration?: UserPoolMfaType | string;
150
+ MfaConfiguration?: UserPoolMfaType;
151
151
  }
152
152
  /**
153
153
  * @public
@@ -413,7 +413,7 @@ export interface UpdateAuthEventFeedbackRequest {
413
413
  * <code>invalid</code>, you tell Amazon Cognito that you don't trust a user session, or you
414
414
  * don't believe that Amazon Cognito evaluated a high-enough risk level.</p>
415
415
  */
416
- FeedbackValue: FeedbackValueType | string | undefined;
416
+ FeedbackValue: FeedbackValueType | undefined;
417
417
  }
418
418
  /**
419
419
  * @public
@@ -440,7 +440,7 @@ export interface UpdateDeviceStatusRequest {
440
440
  * @public
441
441
  * <p>The status of whether a device is remembered.</p>
442
442
  */
443
- DeviceRememberedStatus?: DeviceRememberedStatusType | string;
443
+ DeviceRememberedStatus?: DeviceRememberedStatusType;
444
444
  }
445
445
  /**
446
446
  * @public
@@ -664,7 +664,7 @@ export interface UpdateUserPoolRequest {
664
664
  * send a new <code>DeleteUserPool</code> request after you deactivate deletion protection in an
665
665
  * <code>UpdateUserPool</code> API request.</p>
666
666
  */
667
- DeletionProtection?: DeletionProtectionType | string;
667
+ DeletionProtection?: DeletionProtectionType;
668
668
  /**
669
669
  * @public
670
670
  * <p>The Lambda configuration information from the request to update the user pool.</p>
@@ -675,7 +675,7 @@ export interface UpdateUserPoolRequest {
675
675
  * <p>The attributes that are automatically verified when Amazon Cognito requests to update user
676
676
  * pools.</p>
677
677
  */
678
- AutoVerifiedAttributes?: (VerifiedAttributeType | string)[];
678
+ AutoVerifiedAttributes?: VerifiedAttributeType[];
679
679
  /**
680
680
  * @public
681
681
  * <p>This parameter is no longer used. See <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_VerificationMessageTemplateType.html">VerificationMessageTemplateType</a>.</p>
@@ -732,7 +732,7 @@ export interface UpdateUserPoolRequest {
732
732
  * </li>
733
733
  * </ul>
734
734
  */
735
- MfaConfiguration?: UserPoolMfaType | string;
735
+ MfaConfiguration?: UserPoolMfaType;
736
736
  /**
737
737
  * @public
738
738
  * <p>The device-remembering configuration for a user pool. A null value indicates that you
@@ -925,7 +925,7 @@ export interface UpdateUserPoolClientRequest {
925
925
  * You can't assign these legacy <code>ExplicitAuthFlows</code> values to user pool clients at the same time as values that begin with <code>ALLOW_</code>,
926
926
  * like <code>ALLOW_USER_SRP_AUTH</code>.</p>
927
927
  */
928
- ExplicitAuthFlows?: (ExplicitAuthFlowsType | string)[];
928
+ ExplicitAuthFlows?: ExplicitAuthFlowsType[];
929
929
  /**
930
930
  * @public
931
931
  * <p>A list of provider names for the IdPs that this client supports. The following are
@@ -1006,7 +1006,7 @@ export interface UpdateUserPoolClientRequest {
1006
1006
  * </dd>
1007
1007
  * </dl>
1008
1008
  */
1009
- AllowedOAuthFlows?: (OAuthFlowType | string)[];
1009
+ AllowedOAuthFlows?: OAuthFlowType[];
1010
1010
  /**
1011
1011
  * @public
1012
1012
  * <p>The allowed OAuth scopes. Possible values provided by OAuth are <code>phone</code>,
@@ -1080,7 +1080,7 @@ export interface UpdateUserPoolClientRequest {
1080
1080
  * </li>
1081
1081
  * </ul>
1082
1082
  */
1083
- PreventUserExistenceErrors?: PreventUserExistenceErrorTypes | string;
1083
+ PreventUserExistenceErrors?: PreventUserExistenceErrorTypes;
1084
1084
  /**
1085
1085
  * @public
1086
1086
  * <p>Activates or deactivates token revocation. For more information about revoking tokens,
@@ -1216,7 +1216,7 @@ export interface VerifySoftwareTokenResponse {
1216
1216
  * @public
1217
1217
  * <p>The status of the verify software token.</p>
1218
1218
  */
1219
- Status?: VerifySoftwareTokenResponseType | string;
1219
+ Status?: VerifySoftwareTokenResponseType;
1220
1220
  /**
1221
1221
  * @public
1222
1222
  * <p>The session that should be passed both ways in challenge-response calls to the
@@ -9,7 +9,7 @@ export type RecoveryOptionNameType =
9
9
  (typeof RecoveryOptionNameType)[keyof typeof RecoveryOptionNameType];
10
10
  export interface RecoveryOptionType {
11
11
  Priority: number | undefined;
12
- Name: RecoveryOptionNameType | string | undefined;
12
+ Name: RecoveryOptionNameType | undefined;
13
13
  }
14
14
  export interface AccountRecoverySettingType {
15
15
  RecoveryMechanisms?: RecoveryOptionType[];
@@ -24,7 +24,7 @@ export type AccountTakeoverEventActionType =
24
24
  (typeof AccountTakeoverEventActionType)[keyof typeof AccountTakeoverEventActionType];
25
25
  export interface AccountTakeoverActionType {
26
26
  Notify: boolean | undefined;
27
- EventAction: AccountTakeoverEventActionType | string | undefined;
27
+ EventAction: AccountTakeoverEventActionType | undefined;
28
28
  }
29
29
  export interface AccountTakeoverActionsType {
30
30
  LowAction?: AccountTakeoverActionType;
@@ -66,7 +66,7 @@ export interface StringAttributeConstraintsType {
66
66
  }
67
67
  export interface SchemaAttributeType {
68
68
  Name?: string;
69
- AttributeDataType?: AttributeDataType | string;
69
+ AttributeDataType?: AttributeDataType;
70
70
  DeveloperOnlyAttribute?: boolean;
71
71
  Mutable?: boolean;
72
72
  Required?: boolean;
@@ -196,12 +196,12 @@ export interface AdminCreateUserRequest {
196
196
  ValidationData?: AttributeType[];
197
197
  TemporaryPassword?: string;
198
198
  ForceAliasCreation?: boolean;
199
- MessageAction?: MessageActionType | string;
200
- DesiredDeliveryMediums?: (DeliveryMediumType | string)[];
199
+ MessageAction?: MessageActionType;
200
+ DesiredDeliveryMediums?: DeliveryMediumType[];
201
201
  ClientMetadata?: Record<string, string>;
202
202
  }
203
203
  export interface MFAOptionType {
204
- DeliveryMedium?: DeliveryMediumType | string;
204
+ DeliveryMedium?: DeliveryMediumType;
205
205
  AttributeName?: string;
206
206
  }
207
207
  export declare const UserStatusType: {
@@ -221,7 +221,7 @@ export interface UserType {
221
221
  UserCreateDate?: Date;
222
222
  UserLastModifiedDate?: Date;
223
223
  Enabled?: boolean;
224
- UserStatus?: UserStatusType | string;
224
+ UserStatus?: UserStatusType;
225
225
  MFAOptions?: MFAOptionType[];
226
226
  }
227
227
  export interface AdminCreateUserResponse {
@@ -369,7 +369,7 @@ export interface AdminGetUserResponse {
369
369
  UserCreateDate?: Date;
370
370
  UserLastModifiedDate?: Date;
371
371
  Enabled?: boolean;
372
- UserStatus?: UserStatusType | string;
372
+ UserStatus?: UserStatusType;
373
373
  MFAOptions?: MFAOptionType[];
374
374
  PreferredMfaSetting?: string;
375
375
  UserMFASettingList?: string[];
@@ -401,7 +401,7 @@ export interface ContextDataType {
401
401
  export interface AdminInitiateAuthRequest {
402
402
  UserPoolId: string | undefined;
403
403
  ClientId: string | undefined;
404
- AuthFlow: AuthFlowType | string | undefined;
404
+ AuthFlow: AuthFlowType | undefined;
405
405
  AuthParameters?: Record<string, string>;
406
406
  ClientMetadata?: Record<string, string>;
407
407
  AnalyticsMetadata?: AnalyticsMetadataType;
@@ -434,7 +434,7 @@ export declare const ChallengeNameType: {
434
434
  export type ChallengeNameType =
435
435
  (typeof ChallengeNameType)[keyof typeof ChallengeNameType];
436
436
  export interface AdminInitiateAuthResponse {
437
- ChallengeName?: ChallengeNameType | string;
437
+ ChallengeName?: ChallengeNameType;
438
438
  Session?: string;
439
439
  ChallengeParameters?: Record<string, string>;
440
440
  AuthenticationResult?: AuthenticationResultType;
@@ -513,8 +513,8 @@ export declare const ChallengeResponse: {
513
513
  export type ChallengeResponse =
514
514
  (typeof ChallengeResponse)[keyof typeof ChallengeResponse];
515
515
  export interface ChallengeResponseType {
516
- ChallengeName?: ChallengeName | string;
517
- ChallengeResponse?: ChallengeResponse | string;
516
+ ChallengeName?: ChallengeName;
517
+ ChallengeResponse?: ChallengeResponse;
518
518
  }
519
519
  export interface EventContextDataType {
520
520
  IpAddress?: string;
@@ -530,7 +530,7 @@ export declare const FeedbackValueType: {
530
530
  export type FeedbackValueType =
531
531
  (typeof FeedbackValueType)[keyof typeof FeedbackValueType];
532
532
  export interface EventFeedbackType {
533
- FeedbackValue: FeedbackValueType | string | undefined;
533
+ FeedbackValue: FeedbackValueType | undefined;
534
534
  Provider: string | undefined;
535
535
  FeedbackDate?: Date;
536
536
  }
@@ -555,8 +555,8 @@ export declare const RiskLevelType: {
555
555
  };
556
556
  export type RiskLevelType = (typeof RiskLevelType)[keyof typeof RiskLevelType];
557
557
  export interface EventRiskType {
558
- RiskDecision?: RiskDecisionType | string;
559
- RiskLevel?: RiskLevelType | string;
558
+ RiskDecision?: RiskDecisionType;
559
+ RiskLevel?: RiskLevelType;
560
560
  CompromisedCredentialsDetected?: boolean;
561
561
  }
562
562
  export declare const EventType: {
@@ -569,9 +569,9 @@ export declare const EventType: {
569
569
  export type EventType = (typeof EventType)[keyof typeof EventType];
570
570
  export interface AuthEventType {
571
571
  EventId?: string;
572
- EventType?: EventType | string;
572
+ EventType?: EventType;
573
573
  CreationDate?: Date;
574
- EventResponse?: EventResponseType | string;
574
+ EventResponse?: EventResponseType;
575
575
  EventRisk?: EventRiskType;
576
576
  ChallengeResponses?: ChallengeResponseType[];
577
577
  EventContextData?: EventContextDataType;
@@ -615,7 +615,7 @@ export declare class InvalidEmailRoleAccessPolicyException extends __BaseExcepti
615
615
  export interface AdminRespondToAuthChallengeRequest {
616
616
  UserPoolId: string | undefined;
617
617
  ClientId: string | undefined;
618
- ChallengeName: ChallengeNameType | string | undefined;
618
+ ChallengeName: ChallengeNameType | undefined;
619
619
  ChallengeResponses?: Record<string, string>;
620
620
  Session?: string;
621
621
  AnalyticsMetadata?: AnalyticsMetadataType;
@@ -623,7 +623,7 @@ export interface AdminRespondToAuthChallengeRequest {
623
623
  ClientMetadata?: Record<string, string>;
624
624
  }
625
625
  export interface AdminRespondToAuthChallengeResponse {
626
- ChallengeName?: ChallengeNameType | string;
626
+ ChallengeName?: ChallengeNameType;
627
627
  Session?: string;
628
628
  ChallengeParameters?: Record<string, string>;
629
629
  AuthenticationResult?: AuthenticationResultType;
@@ -684,7 +684,7 @@ export interface AdminUpdateAuthEventFeedbackRequest {
684
684
  UserPoolId: string | undefined;
685
685
  Username: string | undefined;
686
686
  EventId: string | undefined;
687
- FeedbackValue: FeedbackValueType | string | undefined;
687
+ FeedbackValue: FeedbackValueType | undefined;
688
688
  }
689
689
  export interface AdminUpdateAuthEventFeedbackResponse {}
690
690
  export declare const DeviceRememberedStatusType: {
@@ -697,7 +697,7 @@ export interface AdminUpdateDeviceStatusRequest {
697
697
  UserPoolId: string | undefined;
698
698
  Username: string | undefined;
699
699
  DeviceKey: string | undefined;
700
- DeviceRememberedStatus?: DeviceRememberedStatusType | string;
700
+ DeviceRememberedStatus?: DeviceRememberedStatusType;
701
701
  }
702
702
  export interface AdminUpdateDeviceStatusResponse {}
703
703
  export interface AdminUpdateUserAttributesRequest {
@@ -837,7 +837,7 @@ export type IdentityProviderTypeType =
837
837
  export interface CreateIdentityProviderRequest {
838
838
  UserPoolId: string | undefined;
839
839
  ProviderName: string | undefined;
840
- ProviderType: IdentityProviderTypeType | string | undefined;
840
+ ProviderType: IdentityProviderTypeType | undefined;
841
841
  ProviderDetails: Record<string, string> | undefined;
842
842
  AttributeMapping?: Record<string, string>;
843
843
  IdpIdentifiers?: string[];
@@ -845,7 +845,7 @@ export interface CreateIdentityProviderRequest {
845
845
  export interface IdentityProviderType {
846
846
  UserPoolId?: string;
847
847
  ProviderName?: string;
848
- ProviderType?: IdentityProviderTypeType | string;
848
+ ProviderType?: IdentityProviderTypeType;
849
849
  ProviderDetails?: Record<string, string>;
850
850
  AttributeMapping?: Record<string, string>;
851
851
  IdpIdentifiers?: string[];
@@ -906,7 +906,7 @@ export interface UserImportJobType {
906
906
  CreationDate?: Date;
907
907
  StartDate?: Date;
908
908
  CompletionDate?: Date;
909
- Status?: UserImportJobStatusType | string;
909
+ Status?: UserImportJobStatusType;
910
910
  CloudWatchLogsRoleArn?: string;
911
911
  ImportedUsers?: number;
912
912
  SkippedUsers?: number;
@@ -935,7 +935,7 @@ export type EmailSendingAccountType =
935
935
  export interface EmailConfigurationType {
936
936
  SourceArn?: string;
937
937
  ReplyToEmailAddress?: string;
938
- EmailSendingAccount?: EmailSendingAccountType | string;
938
+ EmailSendingAccount?: EmailSendingAccountType;
939
939
  From?: string;
940
940
  ConfigurationSet?: string;
941
941
  }
@@ -945,7 +945,7 @@ export declare const CustomEmailSenderLambdaVersionType: {
945
945
  export type CustomEmailSenderLambdaVersionType =
946
946
  (typeof CustomEmailSenderLambdaVersionType)[keyof typeof CustomEmailSenderLambdaVersionType];
947
947
  export interface CustomEmailLambdaVersionConfigType {
948
- LambdaVersion: CustomEmailSenderLambdaVersionType | string | undefined;
948
+ LambdaVersion: CustomEmailSenderLambdaVersionType | undefined;
949
949
  LambdaArn: string | undefined;
950
950
  }
951
951
  export declare const CustomSMSSenderLambdaVersionType: {
@@ -954,7 +954,7 @@ export declare const CustomSMSSenderLambdaVersionType: {
954
954
  export type CustomSMSSenderLambdaVersionType =
955
955
  (typeof CustomSMSSenderLambdaVersionType)[keyof typeof CustomSMSSenderLambdaVersionType];
956
956
  export interface CustomSMSLambdaVersionConfigType {
957
- LambdaVersion: CustomSMSSenderLambdaVersionType | string | undefined;
957
+ LambdaVersion: CustomSMSSenderLambdaVersionType | undefined;
958
958
  LambdaArn: string | undefined;
959
959
  }
960
960
  export interface LambdaConfigType {
@@ -996,10 +996,7 @@ export interface SmsConfigurationType {
996
996
  SnsRegion?: string;
997
997
  }
998
998
  export interface UserAttributeUpdateSettingsType {
999
- AttributesRequireVerificationBeforeUpdate?: (
1000
- | VerifiedAttributeType
1001
- | string
1002
- )[];
999
+ AttributesRequireVerificationBeforeUpdate?: VerifiedAttributeType[];
1003
1000
  }
1004
1001
  export declare const UsernameAttributeType: {
1005
1002
  readonly EMAIL: "email";
@@ -1011,7 +1008,7 @@ export interface UsernameConfigurationType {
1011
1008
  CaseSensitive: boolean | undefined;
1012
1009
  }
1013
1010
  export interface UserPoolAddOnsType {
1014
- AdvancedSecurityMode: AdvancedSecurityModeType | string | undefined;
1011
+ AdvancedSecurityMode: AdvancedSecurityModeType | undefined;
1015
1012
  }
1016
1013
  export declare const DefaultEmailOptionType: {
1017
1014
  readonly CONFIRM_WITH_CODE: "CONFIRM_WITH_CODE";
@@ -1025,22 +1022,22 @@ export interface VerificationMessageTemplateType {
1025
1022
  EmailSubject?: string;
1026
1023
  EmailMessageByLink?: string;
1027
1024
  EmailSubjectByLink?: string;
1028
- DefaultEmailOption?: DefaultEmailOptionType | string;
1025
+ DefaultEmailOption?: DefaultEmailOptionType;
1029
1026
  }
1030
1027
  export interface CreateUserPoolRequest {
1031
1028
  PoolName: string | undefined;
1032
1029
  Policies?: UserPoolPolicyType;
1033
- DeletionProtection?: DeletionProtectionType | string;
1030
+ DeletionProtection?: DeletionProtectionType;
1034
1031
  LambdaConfig?: LambdaConfigType;
1035
- AutoVerifiedAttributes?: (VerifiedAttributeType | string)[];
1036
- AliasAttributes?: (AliasAttributeType | string)[];
1037
- UsernameAttributes?: (UsernameAttributeType | string)[];
1032
+ AutoVerifiedAttributes?: VerifiedAttributeType[];
1033
+ AliasAttributes?: AliasAttributeType[];
1034
+ UsernameAttributes?: UsernameAttributeType[];
1038
1035
  SmsVerificationMessage?: string;
1039
1036
  EmailVerificationMessage?: string;
1040
1037
  EmailVerificationSubject?: string;
1041
1038
  VerificationMessageTemplate?: VerificationMessageTemplateType;
1042
1039
  SmsAuthenticationMessage?: string;
1043
- MfaConfiguration?: UserPoolMfaType | string;
1040
+ MfaConfiguration?: UserPoolMfaType;
1044
1041
  UserAttributeUpdateSettings?: UserAttributeUpdateSettingsType;
1045
1042
  DeviceConfiguration?: DeviceConfigurationType;
1046
1043
  EmailConfiguration?: EmailConfigurationType;
@@ -1061,22 +1058,22 @@ export interface UserPoolType {
1061
1058
  Id?: string;
1062
1059
  Name?: string;
1063
1060
  Policies?: UserPoolPolicyType;
1064
- DeletionProtection?: DeletionProtectionType | string;
1061
+ DeletionProtection?: DeletionProtectionType;
1065
1062
  LambdaConfig?: LambdaConfigType;
1066
- Status?: StatusType | string;
1063
+ Status?: StatusType;
1067
1064
  LastModifiedDate?: Date;
1068
1065
  CreationDate?: Date;
1069
1066
  SchemaAttributes?: SchemaAttributeType[];
1070
- AutoVerifiedAttributes?: (VerifiedAttributeType | string)[];
1071
- AliasAttributes?: (AliasAttributeType | string)[];
1072
- UsernameAttributes?: (UsernameAttributeType | string)[];
1067
+ AutoVerifiedAttributes?: VerifiedAttributeType[];
1068
+ AliasAttributes?: AliasAttributeType[];
1069
+ UsernameAttributes?: UsernameAttributeType[];
1073
1070
  SmsVerificationMessage?: string;
1074
1071
  EmailVerificationMessage?: string;
1075
1072
  EmailVerificationSubject?: string;
1076
1073
  VerificationMessageTemplate?: VerificationMessageTemplateType;
1077
1074
  SmsAuthenticationMessage?: string;
1078
1075
  UserAttributeUpdateSettings?: UserAttributeUpdateSettingsType;
1079
- MfaConfiguration?: UserPoolMfaType | string;
1076
+ MfaConfiguration?: UserPoolMfaType;
1080
1077
  DeviceConfiguration?: DeviceConfigurationType;
1081
1078
  EstimatedNumberOfUsers?: number;
1082
1079
  EmailConfiguration?: EmailConfigurationType;
@@ -1134,9 +1131,9 @@ export declare const TimeUnitsType: {
1134
1131
  };
1135
1132
  export type TimeUnitsType = (typeof TimeUnitsType)[keyof typeof TimeUnitsType];
1136
1133
  export interface TokenValidityUnitsType {
1137
- AccessToken?: TimeUnitsType | string;
1138
- IdToken?: TimeUnitsType | string;
1139
- RefreshToken?: TimeUnitsType | string;
1134
+ AccessToken?: TimeUnitsType;
1135
+ IdToken?: TimeUnitsType;
1136
+ RefreshToken?: TimeUnitsType;
1140
1137
  }
1141
1138
  export interface CreateUserPoolClientRequest {
1142
1139
  UserPoolId: string | undefined;
@@ -1148,16 +1145,16 @@ export interface CreateUserPoolClientRequest {
1148
1145
  TokenValidityUnits?: TokenValidityUnitsType;
1149
1146
  ReadAttributes?: string[];
1150
1147
  WriteAttributes?: string[];
1151
- ExplicitAuthFlows?: (ExplicitAuthFlowsType | string)[];
1148
+ ExplicitAuthFlows?: ExplicitAuthFlowsType[];
1152
1149
  SupportedIdentityProviders?: string[];
1153
1150
  CallbackURLs?: string[];
1154
1151
  LogoutURLs?: string[];
1155
1152
  DefaultRedirectURI?: string;
1156
- AllowedOAuthFlows?: (OAuthFlowType | string)[];
1153
+ AllowedOAuthFlows?: OAuthFlowType[];
1157
1154
  AllowedOAuthScopes?: string[];
1158
1155
  AllowedOAuthFlowsUserPoolClient?: boolean;
1159
1156
  AnalyticsConfiguration?: AnalyticsConfigurationType;
1160
- PreventUserExistenceErrors?: PreventUserExistenceErrorTypes | string;
1157
+ PreventUserExistenceErrors?: PreventUserExistenceErrorTypes;
1161
1158
  EnableTokenRevocation?: boolean;
1162
1159
  EnablePropagateAdditionalUserContextData?: boolean;
1163
1160
  AuthSessionValidity?: number;
@@ -1175,16 +1172,16 @@ export interface UserPoolClientType {
1175
1172
  TokenValidityUnits?: TokenValidityUnitsType;
1176
1173
  ReadAttributes?: string[];
1177
1174
  WriteAttributes?: string[];
1178
- ExplicitAuthFlows?: (ExplicitAuthFlowsType | string)[];
1175
+ ExplicitAuthFlows?: ExplicitAuthFlowsType[];
1179
1176
  SupportedIdentityProviders?: string[];
1180
1177
  CallbackURLs?: string[];
1181
1178
  LogoutURLs?: string[];
1182
1179
  DefaultRedirectURI?: string;
1183
- AllowedOAuthFlows?: (OAuthFlowType | string)[];
1180
+ AllowedOAuthFlows?: OAuthFlowType[];
1184
1181
  AllowedOAuthScopes?: string[];
1185
1182
  AllowedOAuthFlowsUserPoolClient?: boolean;
1186
1183
  AnalyticsConfiguration?: AnalyticsConfigurationType;
1187
- PreventUserExistenceErrors?: PreventUserExistenceErrorTypes | string;
1184
+ PreventUserExistenceErrors?: PreventUserExistenceErrorTypes;
1188
1185
  EnableTokenRevocation?: boolean;
1189
1186
  EnablePropagateAdditionalUserContextData?: boolean;
1190
1187
  AuthSessionValidity?: number;
@@ -1284,7 +1281,7 @@ export declare const CompromisedCredentialsEventActionType: {
1284
1281
  export type CompromisedCredentialsEventActionType =
1285
1282
  (typeof CompromisedCredentialsEventActionType)[keyof typeof CompromisedCredentialsEventActionType];
1286
1283
  export interface CompromisedCredentialsActionsType {
1287
- EventAction: CompromisedCredentialsEventActionType | string | undefined;
1284
+ EventAction: CompromisedCredentialsEventActionType | undefined;
1288
1285
  }
1289
1286
  export declare const EventFilterType: {
1290
1287
  readonly PASSWORD_CHANGE: "PASSWORD_CHANGE";
@@ -1294,7 +1291,7 @@ export declare const EventFilterType: {
1294
1291
  export type EventFilterType =
1295
1292
  (typeof EventFilterType)[keyof typeof EventFilterType];
1296
1293
  export interface CompromisedCredentialsRiskConfigurationType {
1297
- EventFilter?: (EventFilterType | string)[];
1294
+ EventFilter?: EventFilterType[];
1298
1295
  Actions: CompromisedCredentialsActionsType | undefined;
1299
1296
  }
1300
1297
  export interface RiskExceptionConfigurationType {
@@ -1351,7 +1348,7 @@ export interface DomainDescriptionType {
1351
1348
  S3Bucket?: string;
1352
1349
  CloudFrontDistribution?: string;
1353
1350
  Version?: string;
1354
- Status?: DomainStatusType | string;
1351
+ Status?: DomainStatusType;
1355
1352
  CustomDomainConfig?: CustomDomainConfigType;
1356
1353
  }
1357
1354
  export interface DescribeUserPoolDomainResponse {
@@ -1371,7 +1368,7 @@ export interface ForgotPasswordRequest {
1371
1368
  }
1372
1369
  export interface CodeDeliveryDetailsType {
1373
1370
  Destination?: string;
1374
- DeliveryMedium?: DeliveryMediumType | string;
1371
+ DeliveryMedium?: DeliveryMediumType;
1375
1372
  AttributeName?: string;
1376
1373
  }
1377
1374
  export interface ForgotPasswordResponse {
@@ -1421,8 +1418,8 @@ export declare const LogLevel: {
1421
1418
  };
1422
1419
  export type LogLevel = (typeof LogLevel)[keyof typeof LogLevel];
1423
1420
  export interface LogConfigurationType {
1424
- LogLevel: LogLevel | string | undefined;
1425
- EventSource: EventSourceName | string | undefined;
1421
+ LogLevel: LogLevel | undefined;
1422
+ EventSource: EventSourceName | undefined;
1426
1423
  CloudWatchLogsConfiguration?: CloudWatchLogsConfigurationType;
1427
1424
  }
1428
1425
  export interface LogDeliveryConfigurationType {
@@ -1485,14 +1482,14 @@ export interface SoftwareTokenMfaConfigType {
1485
1482
  export interface GetUserPoolMfaConfigResponse {
1486
1483
  SmsMfaConfiguration?: SmsMfaConfigType;
1487
1484
  SoftwareTokenMfaConfiguration?: SoftwareTokenMfaConfigType;
1488
- MfaConfiguration?: UserPoolMfaType | string;
1485
+ MfaConfiguration?: UserPoolMfaType;
1489
1486
  }
1490
1487
  export interface GlobalSignOutRequest {
1491
1488
  AccessToken: string | undefined;
1492
1489
  }
1493
1490
  export interface GlobalSignOutResponse {}
1494
1491
  export interface InitiateAuthRequest {
1495
- AuthFlow: AuthFlowType | string | undefined;
1492
+ AuthFlow: AuthFlowType | undefined;
1496
1493
  AuthParameters?: Record<string, string>;
1497
1494
  ClientMetadata?: Record<string, string>;
1498
1495
  ClientId: string | undefined;
@@ -1500,7 +1497,7 @@ export interface InitiateAuthRequest {
1500
1497
  UserContextData?: UserContextDataType;
1501
1498
  }
1502
1499
  export interface InitiateAuthResponse {
1503
- ChallengeName?: ChallengeNameType | string;
1500
+ ChallengeName?: ChallengeNameType;
1504
1501
  Session?: string;
1505
1502
  ChallengeParameters?: Record<string, string>;
1506
1503
  AuthenticationResult?: AuthenticationResultType;
@@ -1530,7 +1527,7 @@ export interface ListIdentityProvidersRequest {
1530
1527
  }
1531
1528
  export interface ProviderDescription {
1532
1529
  ProviderName?: string;
1533
- ProviderType?: IdentityProviderTypeType | string;
1530
+ ProviderType?: IdentityProviderTypeType;
1534
1531
  LastModifiedDate?: Date;
1535
1532
  CreationDate?: Date;
1536
1533
  }
@@ -1584,7 +1581,7 @@ export interface UserPoolDescriptionType {
1584
1581
  Id?: string;
1585
1582
  Name?: string;
1586
1583
  LambdaConfig?: LambdaConfigType;
1587
- Status?: StatusType | string;
1584
+ Status?: StatusType;
1588
1585
  LastModifiedDate?: Date;
1589
1586
  CreationDate?: Date;
1590
1587
  }
@@ -1626,7 +1623,7 @@ export interface ResendConfirmationCodeResponse {
1626
1623
  }
1627
1624
  export interface RespondToAuthChallengeRequest {
1628
1625
  ClientId: string | undefined;
1629
- ChallengeName: ChallengeNameType | string | undefined;
1626
+ ChallengeName: ChallengeNameType | undefined;
1630
1627
  Session?: string;
1631
1628
  ChallengeResponses?: Record<string, string>;
1632
1629
  AnalyticsMetadata?: AnalyticsMetadataType;
@@ -1634,7 +1631,7 @@ export interface RespondToAuthChallengeRequest {
1634
1631
  ClientMetadata?: Record<string, string>;
1635
1632
  }
1636
1633
  export interface RespondToAuthChallengeResponse {
1637
- ChallengeName?: ChallengeNameType | string;
1634
+ ChallengeName?: ChallengeNameType;
1638
1635
  Session?: string;
1639
1636
  ChallengeParameters?: Record<string, string>;
1640
1637
  AuthenticationResult?: AuthenticationResultType;
@@ -62,12 +62,12 @@ export interface SetUserPoolMfaConfigRequest {
62
62
  UserPoolId: string | undefined;
63
63
  SmsMfaConfiguration?: SmsMfaConfigType;
64
64
  SoftwareTokenMfaConfiguration?: SoftwareTokenMfaConfigType;
65
- MfaConfiguration?: UserPoolMfaType | string;
65
+ MfaConfiguration?: UserPoolMfaType;
66
66
  }
67
67
  export interface SetUserPoolMfaConfigResponse {
68
68
  SmsMfaConfiguration?: SmsMfaConfigType;
69
69
  SoftwareTokenMfaConfiguration?: SoftwareTokenMfaConfigType;
70
- MfaConfiguration?: UserPoolMfaType | string;
70
+ MfaConfiguration?: UserPoolMfaType;
71
71
  }
72
72
  export interface SetUserSettingsRequest {
73
73
  AccessToken: string | undefined;
@@ -119,13 +119,13 @@ export interface UpdateAuthEventFeedbackRequest {
119
119
  Username: string | undefined;
120
120
  EventId: string | undefined;
121
121
  FeedbackToken: string | undefined;
122
- FeedbackValue: FeedbackValueType | string | undefined;
122
+ FeedbackValue: FeedbackValueType | undefined;
123
123
  }
124
124
  export interface UpdateAuthEventFeedbackResponse {}
125
125
  export interface UpdateDeviceStatusRequest {
126
126
  AccessToken: string | undefined;
127
127
  DeviceKey: string | undefined;
128
- DeviceRememberedStatus?: DeviceRememberedStatusType | string;
128
+ DeviceRememberedStatus?: DeviceRememberedStatusType;
129
129
  }
130
130
  export interface UpdateDeviceStatusResponse {}
131
131
  export interface UpdateGroupRequest {
@@ -168,16 +168,16 @@ export interface UpdateUserAttributesResponse {
168
168
  export interface UpdateUserPoolRequest {
169
169
  UserPoolId: string | undefined;
170
170
  Policies?: UserPoolPolicyType;
171
- DeletionProtection?: DeletionProtectionType | string;
171
+ DeletionProtection?: DeletionProtectionType;
172
172
  LambdaConfig?: LambdaConfigType;
173
- AutoVerifiedAttributes?: (VerifiedAttributeType | string)[];
173
+ AutoVerifiedAttributes?: VerifiedAttributeType[];
174
174
  SmsVerificationMessage?: string;
175
175
  EmailVerificationMessage?: string;
176
176
  EmailVerificationSubject?: string;
177
177
  VerificationMessageTemplate?: VerificationMessageTemplateType;
178
178
  SmsAuthenticationMessage?: string;
179
179
  UserAttributeUpdateSettings?: UserAttributeUpdateSettingsType;
180
- MfaConfiguration?: UserPoolMfaType | string;
180
+ MfaConfiguration?: UserPoolMfaType;
181
181
  DeviceConfiguration?: DeviceConfigurationType;
182
182
  EmailConfiguration?: EmailConfigurationType;
183
183
  SmsConfiguration?: SmsConfigurationType;
@@ -197,16 +197,16 @@ export interface UpdateUserPoolClientRequest {
197
197
  TokenValidityUnits?: TokenValidityUnitsType;
198
198
  ReadAttributes?: string[];
199
199
  WriteAttributes?: string[];
200
- ExplicitAuthFlows?: (ExplicitAuthFlowsType | string)[];
200
+ ExplicitAuthFlows?: ExplicitAuthFlowsType[];
201
201
  SupportedIdentityProviders?: string[];
202
202
  CallbackURLs?: string[];
203
203
  LogoutURLs?: string[];
204
204
  DefaultRedirectURI?: string;
205
- AllowedOAuthFlows?: (OAuthFlowType | string)[];
205
+ AllowedOAuthFlows?: OAuthFlowType[];
206
206
  AllowedOAuthScopes?: string[];
207
207
  AllowedOAuthFlowsUserPoolClient?: boolean;
208
208
  AnalyticsConfiguration?: AnalyticsConfigurationType;
209
- PreventUserExistenceErrors?: PreventUserExistenceErrorTypes | string;
209
+ PreventUserExistenceErrors?: PreventUserExistenceErrorTypes;
210
210
  EnableTokenRevocation?: boolean;
211
211
  EnablePropagateAdditionalUserContextData?: boolean;
212
212
  AuthSessionValidity?: number;
@@ -245,7 +245,7 @@ export declare const VerifySoftwareTokenResponseType: {
245
245
  export type VerifySoftwareTokenResponseType =
246
246
  (typeof VerifySoftwareTokenResponseType)[keyof typeof VerifySoftwareTokenResponseType];
247
247
  export interface VerifySoftwareTokenResponse {
248
- Status?: VerifySoftwareTokenResponseType | string;
248
+ Status?: VerifySoftwareTokenResponseType;
249
249
  Session?: string;
250
250
  }
251
251
  export interface VerifyUserAttributeRequest {
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.427.0",
4
+ "version": "3.429.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",
@@ -21,39 +21,39 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.427.0",
25
- "@aws-sdk/credential-provider-node": "3.427.0",
26
- "@aws-sdk/middleware-host-header": "3.425.0",
27
- "@aws-sdk/middleware-logger": "3.425.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.425.0",
29
- "@aws-sdk/middleware-signing": "3.425.0",
30
- "@aws-sdk/middleware-user-agent": "3.427.0",
31
- "@aws-sdk/region-config-resolver": "3.425.0",
32
- "@aws-sdk/types": "3.425.0",
33
- "@aws-sdk/util-endpoints": "3.427.0",
34
- "@aws-sdk/util-user-agent-browser": "3.425.0",
35
- "@aws-sdk/util-user-agent-node": "3.425.0",
36
- "@smithy/config-resolver": "^2.0.11",
37
- "@smithy/fetch-http-handler": "^2.2.1",
38
- "@smithy/hash-node": "^2.0.10",
39
- "@smithy/invalid-dependency": "^2.0.10",
40
- "@smithy/middleware-content-length": "^2.0.12",
41
- "@smithy/middleware-endpoint": "^2.0.10",
42
- "@smithy/middleware-retry": "^2.0.13",
43
- "@smithy/middleware-serde": "^2.0.10",
44
- "@smithy/middleware-stack": "^2.0.4",
45
- "@smithy/node-config-provider": "^2.0.13",
46
- "@smithy/node-http-handler": "^2.1.6",
47
- "@smithy/protocol-http": "^3.0.6",
48
- "@smithy/smithy-client": "^2.1.9",
49
- "@smithy/types": "^2.3.4",
50
- "@smithy/url-parser": "^2.0.10",
24
+ "@aws-sdk/client-sts": "3.429.0",
25
+ "@aws-sdk/credential-provider-node": "3.429.0",
26
+ "@aws-sdk/middleware-host-header": "3.429.0",
27
+ "@aws-sdk/middleware-logger": "3.428.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.428.0",
29
+ "@aws-sdk/middleware-signing": "3.428.0",
30
+ "@aws-sdk/middleware-user-agent": "3.428.0",
31
+ "@aws-sdk/region-config-resolver": "3.428.0",
32
+ "@aws-sdk/types": "3.428.0",
33
+ "@aws-sdk/util-endpoints": "3.428.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.428.0",
35
+ "@aws-sdk/util-user-agent-node": "3.428.0",
36
+ "@smithy/config-resolver": "^2.0.14",
37
+ "@smithy/fetch-http-handler": "^2.2.3",
38
+ "@smithy/hash-node": "^2.0.11",
39
+ "@smithy/invalid-dependency": "^2.0.11",
40
+ "@smithy/middleware-content-length": "^2.0.13",
41
+ "@smithy/middleware-endpoint": "^2.1.1",
42
+ "@smithy/middleware-retry": "^2.0.16",
43
+ "@smithy/middleware-serde": "^2.0.11",
44
+ "@smithy/middleware-stack": "^2.0.5",
45
+ "@smithy/node-config-provider": "^2.1.1",
46
+ "@smithy/node-http-handler": "^2.1.7",
47
+ "@smithy/protocol-http": "^3.0.7",
48
+ "@smithy/smithy-client": "^2.1.11",
49
+ "@smithy/types": "^2.3.5",
50
+ "@smithy/url-parser": "^2.0.11",
51
51
  "@smithy/util-base64": "^2.0.0",
52
52
  "@smithy/util-body-length-browser": "^2.0.0",
53
53
  "@smithy/util-body-length-node": "^2.1.0",
54
- "@smithy/util-defaults-mode-browser": "^2.0.13",
55
- "@smithy/util-defaults-mode-node": "^2.0.15",
56
- "@smithy/util-retry": "^2.0.3",
54
+ "@smithy/util-defaults-mode-browser": "^2.0.15",
55
+ "@smithy/util-defaults-mode-node": "^2.0.19",
56
+ "@smithy/util-retry": "^2.0.4",
57
57
  "@smithy/util-utf8": "^2.0.0",
58
58
  "tslib": "^2.5.0"
59
59
  },