1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. cognito
  5. getUserPoolDomain

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

aws-native.cognito.getUserPoolDomain

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

Resource Type definition for AWS::Cognito::UserPoolDomain

Using getUserPoolDomain

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getUserPoolDomain(args: GetUserPoolDomainArgs, opts?: InvokeOptions): Promise<GetUserPoolDomainResult>
function getUserPoolDomainOutput(args: GetUserPoolDomainOutputArgs, opts?: InvokeOptions): Output<GetUserPoolDomainResult>
Copy
def get_user_pool_domain(domain: Optional[str] = None,
                         user_pool_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetUserPoolDomainResult
def get_user_pool_domain_output(domain: Optional[pulumi.Input[str]] = None,
                         user_pool_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetUserPoolDomainResult]
Copy
func LookupUserPoolDomain(ctx *Context, args *LookupUserPoolDomainArgs, opts ...InvokeOption) (*LookupUserPoolDomainResult, error)
func LookupUserPoolDomainOutput(ctx *Context, args *LookupUserPoolDomainOutputArgs, opts ...InvokeOption) LookupUserPoolDomainResultOutput
Copy

> Note: This function is named LookupUserPoolDomain in the Go SDK.

public static class GetUserPoolDomain 
{
    public static Task<GetUserPoolDomainResult> InvokeAsync(GetUserPoolDomainArgs args, InvokeOptions? opts = null)
    public static Output<GetUserPoolDomainResult> Invoke(GetUserPoolDomainInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetUserPoolDomainResult> getUserPoolDomain(GetUserPoolDomainArgs args, InvokeOptions options)
public static Output<GetUserPoolDomainResult> getUserPoolDomain(GetUserPoolDomainArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws-native:cognito:getUserPoolDomain
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Domain This property is required. string
The name of the domain that you want to update. For custom domains, this is the fully-qualified domain name, for example auth.example.com . For prefix domains, this is the prefix alone, such as myprefix .
UserPoolId This property is required. string
The ID of the user pool that is associated with the domain you're updating.
Domain This property is required. string
The name of the domain that you want to update. For custom domains, this is the fully-qualified domain name, for example auth.example.com . For prefix domains, this is the prefix alone, such as myprefix .
UserPoolId This property is required. string
The ID of the user pool that is associated with the domain you're updating.
domain This property is required. String
The name of the domain that you want to update. For custom domains, this is the fully-qualified domain name, for example auth.example.com . For prefix domains, this is the prefix alone, such as myprefix .
userPoolId This property is required. String
The ID of the user pool that is associated with the domain you're updating.
domain This property is required. string
The name of the domain that you want to update. For custom domains, this is the fully-qualified domain name, for example auth.example.com . For prefix domains, this is the prefix alone, such as myprefix .
userPoolId This property is required. string
The ID of the user pool that is associated with the domain you're updating.
domain This property is required. str
The name of the domain that you want to update. For custom domains, this is the fully-qualified domain name, for example auth.example.com . For prefix domains, this is the prefix alone, such as myprefix .
user_pool_id This property is required. str
The ID of the user pool that is associated with the domain you're updating.
domain This property is required. String
The name of the domain that you want to update. For custom domains, this is the fully-qualified domain name, for example auth.example.com . For prefix domains, this is the prefix alone, such as myprefix .
userPoolId This property is required. String
The ID of the user pool that is associated with the domain you're updating.

getUserPoolDomain Result

The following output properties are available:

CloudFrontDistribution string
The Amazon CloudFront endpoint that you use as the target of the alias that you set up with your Domain Name Service (DNS) provider.
CustomDomainConfig Pulumi.AwsNative.Cognito.Outputs.UserPoolDomainCustomDomainConfigType

The configuration for a custom domain that hosts the sign-up and sign-in pages for your application. Use this object to specify an SSL certificate that is managed by ACM.

When you create a custom domain, the passkey RP ID defaults to the custom domain. If you had a prefix domain active, this will cause passkey integration for your prefix domain to stop working due to a mismatch in RP ID. To keep the prefix domain passkey integration working, you can explicitly set RP ID to the prefix domain.

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

The configuration for a custom domain that hosts the sign-up and sign-in pages for your application. Use this object to specify an SSL certificate that is managed by ACM.

When you create a custom domain, the passkey RP ID defaults to the custom domain. If you had a prefix domain active, this will cause passkey integration for your prefix domain to stop working due to a mismatch in RP ID. To keep the prefix domain passkey integration working, you can explicitly set RP ID to the prefix domain.

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

The configuration for a custom domain that hosts the sign-up and sign-in pages for your application. Use this object to specify an SSL certificate that is managed by ACM.

When you create a custom domain, the passkey RP ID defaults to the custom domain. If you had a prefix domain active, this will cause passkey integration for your prefix domain to stop working due to a mismatch in RP ID. To keep the prefix domain passkey integration working, you can explicitly set RP ID to the prefix domain.

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

The configuration for a custom domain that hosts the sign-up and sign-in pages for your application. Use this object to specify an SSL certificate that is managed by ACM.

When you create a custom domain, the passkey RP ID defaults to the custom domain. If you had a prefix domain active, this will cause passkey integration for your prefix domain to stop working due to a mismatch in RP ID. To keep the prefix domain passkey integration working, you can explicitly set RP ID to the prefix domain.

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

The configuration for a custom domain that hosts the sign-up and sign-in pages for your application. Use this object to specify an SSL certificate that is managed by ACM.

When you create a custom domain, the passkey RP ID defaults to the custom domain. If you had a prefix domain active, this will cause passkey integration for your prefix domain to stop working due to a mismatch in RP ID. To keep the prefix domain passkey integration working, you can explicitly set RP ID to the prefix domain.

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

The configuration for a custom domain that hosts the sign-up and sign-in pages for your application. Use this object to specify an SSL certificate that is managed by ACM.

When you create a custom domain, the passkey RP ID defaults to the custom domain. If you had a prefix domain active, this will cause passkey integration for your prefix domain to stop working due to a mismatch in RP ID. To keep the prefix domain passkey integration working, you can explicitly set RP ID to the prefix domain.

Supporting Types

UserPoolDomainCustomDomainConfigType

CertificateArn string
The Amazon Resource Name (ARN) of an AWS Certificate Manager SSL certificate. You use this certificate for the subdomain of your custom domain.
CertificateArn string
The Amazon Resource Name (ARN) of an AWS Certificate Manager SSL certificate. You use this certificate for the subdomain of your custom domain.
certificateArn String
The Amazon Resource Name (ARN) of an AWS Certificate Manager SSL certificate. You use this certificate for the subdomain of your custom domain.
certificateArn string
The Amazon Resource Name (ARN) of an AWS Certificate Manager SSL certificate. You use this certificate for the subdomain of your custom domain.
certificate_arn str
The Amazon Resource Name (ARN) of an AWS Certificate Manager SSL certificate. You use this certificate for the subdomain of your custom domain.
certificateArn String
The Amazon Resource Name (ARN) of an AWS Certificate Manager SSL certificate. You use this certificate for the subdomain of your custom domain.

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi