Show / Hide Table of Contents

Class UserPool

Provides a Cognito User Pool resource.

Example Usage

Basic configuration

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var pool = new Aws.Cognito.UserPool("pool", new Aws.Cognito.UserPoolArgs
    {
    });
}

}
Inheritance
System.Object
Resource
CustomResource
UserPool
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Cognito
Assembly: Pulumi.Aws.dll
Syntax
public class UserPool : CustomResource

Constructors

View Source

UserPool(String, UserPoolArgs, CustomResourceOptions)

Create a UserPool resource with the given unique name, arguments, and options.

Declaration
public UserPool(string name, UserPoolArgs args = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

UserPoolArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

AdminCreateUserConfig

The configuration for AdminCreateUser requests.

Declaration
public Output<UserPoolAdminCreateUserConfig> AdminCreateUserConfig { get; }
Property Value
Type Description
Output<UserPoolAdminCreateUserConfig>
View Source

AliasAttributes

Attributes supported as an alias for this user pool. Possible values: phone_number, email, or preferred_username. Conflicts with username_attributes.

Declaration
public Output<ImmutableArray<string>> AliasAttributes { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

Arn

The ARN of the user pool.

Declaration
public Output<string> Arn { get; }
Property Value
Type Description
Output<System.String>
View Source

AutoVerifiedAttributes

The attributes to be auto-verified. Possible values: email, phone_number.

Declaration
public Output<ImmutableArray<string>> AutoVerifiedAttributes { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

CreationDate

The date the user pool was created.

Declaration
public Output<string> CreationDate { get; }
Property Value
Type Description
Output<System.String>
View Source

DeviceConfiguration

The configuration for the user pool's device tracking.

Declaration
public Output<UserPoolDeviceConfiguration> DeviceConfiguration { get; }
Property Value
Type Description
Output<UserPoolDeviceConfiguration>
View Source

EmailConfiguration

The Email Configuration.

Declaration
public Output<UserPoolEmailConfiguration> EmailConfiguration { get; }
Property Value
Type Description
Output<UserPoolEmailConfiguration>
View Source

EmailVerificationMessage

A string representing the email verification message. Conflicts with verification_message_template configuration block email_message argument.

Declaration
public Output<string> EmailVerificationMessage { get; }
Property Value
Type Description
Output<System.String>
View Source

EmailVerificationSubject

A string representing the email verification subject. Conflicts with verification_message_template configuration block email_subject argument.

Declaration
public Output<string> EmailVerificationSubject { get; }
Property Value
Type Description
Output<System.String>
View Source

Endpoint

The endpoint name of the user pool. Example format: cognito-idp.REGION.amazonaws.com/xxxx_yyyyy

Declaration
public Output<string> Endpoint { get; }
Property Value
Type Description
Output<System.String>
View Source

LambdaConfig

A container for the AWS Lambda triggers associated with the user pool.

Declaration
public Output<UserPoolLambdaConfig> LambdaConfig { get; }
Property Value
Type Description
Output<UserPoolLambdaConfig>
View Source

LastModifiedDate

The date the user pool was last modified.

Declaration
public Output<string> LastModifiedDate { get; }
Property Value
Type Description
Output<System.String>
View Source

MfaConfiguration

Multi-Factor Authentication (MFA) configuration for the User Pool. Defaults of OFF. Valid values:

Declaration
public Output<string> MfaConfiguration { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

The name of the attribute.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

PasswordPolicy

A container for information about the user pool password policy.

Declaration
public Output<UserPoolPasswordPolicy> PasswordPolicy { get; }
Property Value
Type Description
Output<UserPoolPasswordPolicy>
View Source

Schemas

A container with the schema attributes of a user pool. Schema attributes from the standard attribute set only need to be specified if they are different from the default configuration. Maximum of 50 attributes.

Declaration
public Output<ImmutableArray<UserPoolSchema>> Schemas { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<UserPoolSchema>>
View Source

SmsAuthenticationMessage

A string representing the SMS authentication message. The message must contain the {####} placeholder, which will be replaced with the code.

Declaration
public Output<string> SmsAuthenticationMessage { get; }
Property Value
Type Description
Output<System.String>
View Source

SmsConfiguration

Configuration block for Short Message Service (SMS) settings. Detailed below. These settings apply to SMS user verification and SMS Multi-Factor Authentication (MFA). Due to Cognito API restrictions, the SMS configuration cannot be removed without recreating the Cognito User Pool. For user data safety, this resource will ignore the removal of this configuration by disabling drift detection. To force resource recreation after this configuration has been applied, see the up command and use --replace.

Declaration
public Output<UserPoolSmsConfiguration> SmsConfiguration { get; }
Property Value
Type Description
Output<UserPoolSmsConfiguration>
View Source

SmsVerificationMessage

A string representing the SMS verification message. Conflicts with verification_message_template configuration block sms_message argument.

Declaration
public Output<string> SmsVerificationMessage { get; }
Property Value
Type Description
Output<System.String>
View Source

SoftwareTokenMfaConfiguration

Configuration block for software token Mult-Factor Authentication (MFA) settings. Detailed below.

Declaration
public Output<UserPoolSoftwareTokenMfaConfiguration> SoftwareTokenMfaConfiguration { get; }
Property Value
Type Description
Output<UserPoolSoftwareTokenMfaConfiguration>
View Source

Tags

A map of tags to assign to the User Pool.

Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>>
View Source

UsernameAttributes

Specifies whether email addresses or phone numbers can be specified as usernames when a user signs up. Conflicts with alias_attributes.

Declaration
public Output<ImmutableArray<string>> UsernameAttributes { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

UsernameConfiguration

The Username Configuration.

Declaration
public Output<UserPoolUsernameConfiguration> UsernameConfiguration { get; }
Property Value
Type Description
Output<UserPoolUsernameConfiguration>
View Source

UserPoolAddOns

Configuration block for user pool add-ons to enable user pool advanced security mode features.

Declaration
public Output<UserPoolUserPoolAddOns> UserPoolAddOns { get; }
Property Value
Type Description
Output<UserPoolUserPoolAddOns>
View Source

VerificationMessageTemplate

The verification message templates configuration.

Declaration
public Output<UserPoolVerificationMessageTemplate> VerificationMessageTemplate { get; }
Property Value
Type Description
Output<UserPoolVerificationMessageTemplate>

Methods

View Source

Get(String, Input<String>, UserPoolState, CustomResourceOptions)

Get an existing UserPool resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static UserPool Get(string name, Input<string> id, UserPoolState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

UserPoolState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
UserPool
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.