amazonka-cognito-idp-2.0: Amazon Cognito Identity Provider SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CognitoIdentityProvider.CreateUserPoolDomain

Description

Creates a new domain for a user pool.

Synopsis

Creating a Request

data CreateUserPoolDomain Source #

See: newCreateUserPoolDomain smart constructor.

Constructors

CreateUserPoolDomain' 

Fields

  • customDomainConfig :: Maybe CustomDomainConfigType

    The configuration for a custom domain that hosts the sign-up and sign-in webpages for your application.

    Provide this parameter only if you want to use a custom domain for your user pool. Otherwise, you can exclude this parameter and use the Amazon Cognito hosted domain instead.

    For more information about the hosted domain and custom domains, see Configuring a User Pool Domain.

  • domain :: Text

    The domain string. For custom domains, this is the fully-qualified domain name, such as auth.example.com. For Amazon Cognito prefix domains, this is the prefix alone, such as auth.

  • userPoolId :: Text

    The user pool ID.

Instances

Instances details
ToJSON CreateUserPoolDomain Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateUserPoolDomain

ToHeaders CreateUserPoolDomain Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateUserPoolDomain

ToPath CreateUserPoolDomain Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateUserPoolDomain

ToQuery CreateUserPoolDomain Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateUserPoolDomain

AWSRequest CreateUserPoolDomain Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateUserPoolDomain

Associated Types

type AWSResponse CreateUserPoolDomain #

Generic CreateUserPoolDomain Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateUserPoolDomain

Associated Types

type Rep CreateUserPoolDomain :: Type -> Type #

Read CreateUserPoolDomain Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateUserPoolDomain

Show CreateUserPoolDomain Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateUserPoolDomain

NFData CreateUserPoolDomain Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateUserPoolDomain

Methods

rnf :: CreateUserPoolDomain -> () #

Eq CreateUserPoolDomain Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateUserPoolDomain

Hashable CreateUserPoolDomain Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateUserPoolDomain

type AWSResponse CreateUserPoolDomain Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateUserPoolDomain

type Rep CreateUserPoolDomain Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateUserPoolDomain

type Rep CreateUserPoolDomain = D1 ('MetaData "CreateUserPoolDomain" "Amazonka.CognitoIdentityProvider.CreateUserPoolDomain" "amazonka-cognito-idp-2.0-D1ERgMvEVPG9z8cOLXdU2" 'False) (C1 ('MetaCons "CreateUserPoolDomain'" 'PrefixI 'True) (S1 ('MetaSel ('Just "customDomainConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CustomDomainConfigType)) :*: (S1 ('MetaSel ('Just "domain") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "userPoolId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateUserPoolDomain Source #

Create a value of CreateUserPoolDomain with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

CreateUserPoolDomain, createUserPoolDomain_customDomainConfig - The configuration for a custom domain that hosts the sign-up and sign-in webpages for your application.

Provide this parameter only if you want to use a custom domain for your user pool. Otherwise, you can exclude this parameter and use the Amazon Cognito hosted domain instead.

For more information about the hosted domain and custom domains, see Configuring a User Pool Domain.

CreateUserPoolDomain, createUserPoolDomain_domain - The domain string. For custom domains, this is the fully-qualified domain name, such as auth.example.com. For Amazon Cognito prefix domains, this is the prefix alone, such as auth.

CreateUserPoolDomain, createUserPoolDomain_userPoolId - The user pool ID.

Request Lenses

createUserPoolDomain_customDomainConfig :: Lens' CreateUserPoolDomain (Maybe CustomDomainConfigType) Source #

The configuration for a custom domain that hosts the sign-up and sign-in webpages for your application.

Provide this parameter only if you want to use a custom domain for your user pool. Otherwise, you can exclude this parameter and use the Amazon Cognito hosted domain instead.

For more information about the hosted domain and custom domains, see Configuring a User Pool Domain.

createUserPoolDomain_domain :: Lens' CreateUserPoolDomain Text Source #

The domain string. For custom domains, this is the fully-qualified domain name, such as auth.example.com. For Amazon Cognito prefix domains, this is the prefix alone, such as auth.

Destructuring the Response

data CreateUserPoolDomainResponse Source #

See: newCreateUserPoolDomainResponse smart constructor.

Constructors

CreateUserPoolDomainResponse' 

Fields

  • cloudFrontDomain :: Maybe Text

    The Amazon CloudFront endpoint that you use as the target of the alias that you set up with your Domain Name Service (DNS) provider.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic CreateUserPoolDomainResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateUserPoolDomain

Associated Types

type Rep CreateUserPoolDomainResponse :: Type -> Type #

Read CreateUserPoolDomainResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateUserPoolDomain

Show CreateUserPoolDomainResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateUserPoolDomain

NFData CreateUserPoolDomainResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateUserPoolDomain

Eq CreateUserPoolDomainResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateUserPoolDomain

type Rep CreateUserPoolDomainResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateUserPoolDomain

type Rep CreateUserPoolDomainResponse = D1 ('MetaData "CreateUserPoolDomainResponse" "Amazonka.CognitoIdentityProvider.CreateUserPoolDomain" "amazonka-cognito-idp-2.0-D1ERgMvEVPG9z8cOLXdU2" 'False) (C1 ('MetaCons "CreateUserPoolDomainResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "cloudFrontDomain") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateUserPoolDomainResponse Source #

Create a value of CreateUserPoolDomainResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:cloudFrontDomain:CreateUserPoolDomainResponse', createUserPoolDomainResponse_cloudFrontDomain - The Amazon CloudFront endpoint that you use as the target of the alias that you set up with your Domain Name Service (DNS) provider.

$sel:httpStatus:CreateUserPoolDomainResponse', createUserPoolDomainResponse_httpStatus - The response's http status code.

Response Lenses

createUserPoolDomainResponse_cloudFrontDomain :: Lens' CreateUserPoolDomainResponse (Maybe Text) Source #

The Amazon CloudFront endpoint that you use as the target of the alias that you set up with your Domain Name Service (DNS) provider.