Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

UserPoolType

import type { UserPoolType } from "https://aws-api.deno.dev/v0.4/services/cognitoidentityserviceprovider.ts?docs=full";

A container for information about the user pool.

interface UserPoolType {
AccountRecoverySetting?: AccountRecoverySettingType | null;
AdminCreateUserConfig?: AdminCreateUserConfigType | null;
AliasAttributes?: AliasAttributeType[] | null;
Arn?: string | null;
AutoVerifiedAttributes?: VerifiedAttributeType[] | null;
CreationDate?: Date | number | null;
CustomDomain?: string | null;
DeletionProtection?: DeletionProtectionType | null;
DeviceConfiguration?: DeviceConfigurationType | null;
Domain?: string | null;
EmailConfiguration?: EmailConfigurationType | null;
EmailConfigurationFailure?: string | null;
EmailVerificationMessage?: string | null;
EmailVerificationSubject?: string | null;
EstimatedNumberOfUsers?: number | null;
Id?: string | null;
LambdaConfig?: LambdaConfigType | null;
LastModifiedDate?: Date | number | null;
MfaConfiguration?: UserPoolMfaType | null;
Name?: string | null;
Policies?: UserPoolPolicyType | null;
SchemaAttributes?: SchemaAttributeType[] | null;
SmsAuthenticationMessage?: string | null;
SmsConfiguration?: SmsConfigurationType | null;
SmsConfigurationFailure?: string | null;
SmsVerificationMessage?: string | null;
Status?: StatusType | null;
UserAttributeUpdateSettings?: UserAttributeUpdateSettingsType | null;
UsernameAttributes?: UsernameAttributeType[] | null;
UsernameConfiguration?: UsernameConfigurationType | null;
UserPoolAddOns?: UserPoolAddOnsType | null;
UserPoolTags?: {
[key: string]: string | null | undefined;
}
| null;
VerificationMessageTemplate?: VerificationMessageTemplateType | null;
}

§Properties

§
AccountRecoverySetting?: AccountRecoverySettingType | null
[src]

The available verified method a user can use to recover their password when they call ForgotPassword. You can use this setting to define a preferred method when a user has more than one method available. With this setting, SMS doesn't qualify for a valid password recovery mechanism if the user also has SMS multi-factor authentication (MFA) activated. In the absence of this setting, Amazon Cognito uses the legacy behavior to determine the recovery method where SMS is preferred through email.

§
AdminCreateUserConfig?: AdminCreateUserConfigType | null
[src]

The configuration for AdminCreateUser requests.

§
AliasAttributes?: AliasAttributeType[] | null
[src]

The attributes that are aliased in a user pool.

§
Arn?: string | null
[src]

The Amazon Resource Name (ARN) for the user pool.

§
AutoVerifiedAttributes?: VerifiedAttributeType[] | null
[src]

The attributes that are auto-verified in a user pool.

§
CreationDate?: Date | number | null
[src]

The date the user pool was created.

§
CustomDomain?: string | null
[src]

A custom domain name that you provide to Amazon Cognito. This parameter applies only if you use a custom domain to host the sign-up and sign-in pages for your application. An example of a custom domain name might be auth.example.com.

For more information about adding a custom domain to your user pool, see Using Your Own Domain for the Hosted UI.

§
DeletionProtection?: DeletionProtectionType | null
[src]

When active, DeletionProtection prevents accidental deletion of your user pool. Before you can delete a user pool that you have protected against deletion, you must deactivate this feature.

When you try to delete a protected user pool in a DeleteUserPool API request, Amazon Cognito returns an InvalidParameterException error. To delete a protected user pool, send a new DeleteUserPool request after you deactivate deletion protection in an UpdateUserPool API request.

§
DeviceConfiguration?: DeviceConfigurationType | null
[src]

The device-remembering configuration for a user pool. A null value indicates that you have deactivated device remembering in your user pool.

Note: When you provide a value for any DeviceConfiguration field, you activate the Amazon Cognito device-remembering feature.

§
Domain?: string | null
[src]

The domain prefix, if the user pool has a domain associated with it.

§
EmailConfiguration?: EmailConfigurationType | null
[src]

The email configuration of your user pool. The email configuration type sets your preferred sending method, Amazon Web Services Region, and sender for messages tfrom your user pool.

§
EmailConfigurationFailure?: string | null
[src]

Deprecated. Review error codes from API requests with EventSource:cognito-idp.amazonaws.com in CloudTrail for information about problems with user pool email configuration.

§
EmailVerificationMessage?: string | null
[src]

This parameter is no longer used. See VerificationMessageTemplateType.

§
EmailVerificationSubject?: string | null
[src]

This parameter is no longer used. See VerificationMessageTemplateType.

§
EstimatedNumberOfUsers?: number | null
[src]

A number estimating the size of the user pool.

§
Id?: string | null
[src]

The ID of the user pool.

§
LambdaConfig?: LambdaConfigType | null
[src]

The Lambda triggers associated with the user pool.

§
LastModifiedDate?: Date | number | null
[src]

The date the user pool was last modified.

§
MfaConfiguration?: UserPoolMfaType | null
[src]

Can be one of the following values:

  • OFF - MFA tokens aren't required and can't be specified during user registration.
  • ON - MFA tokens are required for all user registrations. You can only specify required when you're initially creating a user pool.
  • OPTIONAL - Users have the option when registering to create an MFA token.
§
Name?: string | null
[src]

The name of the user pool.

§
Policies?: UserPoolPolicyType | null
[src]

The policies associated with the user pool.

§
SchemaAttributes?: SchemaAttributeType[] | null
[src]

A container with the schema attributes of a user pool.

§
SmsAuthenticationMessage?: string | null
[src]

The contents of the SMS authentication message.

§
SmsConfiguration?: SmsConfigurationType | null
[src]

The SMS configuration with the settings that your Amazon Cognito user pool must use to send an SMS message from your Amazon Web Services account through Amazon Simple Notification Service. To send SMS messages with Amazon SNS in the Amazon Web Services Region that you want, the Amazon Cognito user pool uses an Identity and Access Management (IAM) role in your Amazon Web Services account.

§
SmsConfigurationFailure?: string | null
[src]

The reason why the SMS configuration can't send the messages to your users.

This message might include comma-separated values to describe why your SMS configuration can't send messages to user pool end users.

InvalidSmsRoleAccessPolicyException: The Identity and Access Management role that Amazon Cognito uses to send SMS messages isn't properly configured. For more information, see SmsConfigurationType.

SNSSandbox: The Amazon Web Services account is in the SNS SMS Sandbox and messages will only reach verified end users. This parameter won’t get populated with SNSSandbox if the IAM user creating the user pool doesn’t have SNS permissions. To learn how to move your Amazon Web Services account out of the sandbox, see Moving out of the SMS sandbox.

§
SmsVerificationMessage?: string | null
[src]

This parameter is no longer used. See VerificationMessageTemplateType.

§
Status?: StatusType | null
[src]

The status of a user pool.

§
UserAttributeUpdateSettings?: UserAttributeUpdateSettingsType | null
[src]

The settings for updates to user attributes. These settings include the property AttributesRequireVerificationBeforeUpdate, a user-pool setting that tells Amazon Cognito how to handle changes to the value of your users' email address and phone number attributes. For more information, see Verifying updates to email addresses and phone numbers.

§
UsernameAttributes?: UsernameAttributeType[] | null
[src]

Specifies whether a user can use an email address or phone number as a username when they sign up.

§
UsernameConfiguration?: UsernameConfigurationType | null
[src]

Case sensitivity of the username input for the selected sign-in option. For example, when case sensitivity is set to False, users can sign in using either "username" or "Username". This configuration is immutable once it has been set. For more information, see UsernameConfigurationType.

§
UserPoolAddOns?: UserPoolAddOnsType | null
[src]

The user pool add-ons.

§
UserPoolTags?: {
[key: string]: string | null | undefined;
}
| null
[src]

The tags that are assigned to the user pool. A tag is a label that you can apply to user pools to categorize and manage them in different ways, such as by purpose, owner, environment, or other criteria.

§
VerificationMessageTemplate?: VerificationMessageTemplateType | null
[src]

The template for verification messages.