@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.687Z") @Stability(value=Stable) public class UserPoolDomain extends Resource implements IUserPoolDomain
Example:
import software.amazon.awscdk.services.cognito.*;
HostedZone zone;
UserPoolDomain domain;
ARecord.Builder.create(this, "AliasRecord")
.zone(zone)
.target(RecordTarget.fromAlias(new UserPoolDomainTarget(domain)))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
UserPoolDomain.Builder
A fluent builder for
UserPoolDomain. |
software.amazon.jsii.JsiiObject.InitializationModeIUserPoolDomain.Jsii$Default, IUserPoolDomain.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
UserPoolDomain(software.constructs.Construct scope,
String id,
UserPoolDomainProps props) |
protected |
UserPoolDomain(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
UserPoolDomain(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
baseUrl()
The URL to the hosted UI associated with this domain.
|
String |
baseUrl(BaseUrlOptions options)
The URL to the hosted UI associated with this domain.
|
static IUserPoolDomain |
fromDomainName(software.constructs.Construct scope,
String id,
String userPoolDomainName)
Import a UserPoolDomain given its domain name.
|
String |
getCloudFrontDomainName()
The domain name of the CloudFront distribution associated with the user pool domain.
|
String |
getDomainName()
The domain that was specified to be created.
|
String |
signInUrl(UserPoolClient client,
SignInUrlOptions options)
The URL to the sign in page in this domain using a specific UserPoolClient.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackprotected UserPoolDomain(software.amazon.jsii.JsiiObjectRef objRef)
protected UserPoolDomain(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public UserPoolDomain(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
UserPoolDomainProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public static IUserPoolDomain fromDomainName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String userPoolDomainName)
scope - This parameter is required.id - This parameter is required.userPoolDomainName - This parameter is required.@Stability(value=Stable) @NotNull public String baseUrl(@Nullable BaseUrlOptions options)
options - options to customize baseUrl.@Stability(value=Stable) @NotNull public String baseUrl()
@Stability(value=Stable) @NotNull public String signInUrl(@NotNull UserPoolClient client, @NotNull SignInUrlOptions options)
client - [disable-awslint:ref-via-interface] the user pool client that the UI will use to interact with the UserPool. This parameter is required.options - options to customize signInUrl. This parameter is required.@Stability(value=Stable) @NotNull public String getCloudFrontDomainName()
@Stability(value=Stable) @NotNull public String getDomainName()
If customDomain was selected, this holds the full domain name that was specified.
If the cognitoDomain was used, it contains the prefix to the Cognito hosted domain.
getDomainName in interface IUserPoolDomainCopyright © 2022. All rights reserved.