@Generated(value="software.amazon.awssdk:codegen") public final class CreateUserPoolClientRequest extends CognitoIdentityProviderRequest implements ToCopyableBuilder<CreateUserPoolClientRequest.Builder,CreateUserPoolClientRequest>
Represents the request to create a user pool client.
Modifier and Type | Class and Description |
---|---|
static interface |
CreateUserPoolClientRequest.Builder |
Modifier and Type | Method and Description |
---|---|
List<OAuthFlowType> |
allowedOAuthFlows()
Set to
code to initiate a code grant flow, which provides an authorization code as the response. |
List<String> |
allowedOAuthFlowsAsStrings()
Set to
code to initiate a code grant flow, which provides an authorization code as the response. |
Boolean |
allowedOAuthFlowsUserPoolClient()
Set to
True if the client is allowed to follow the OAuth protocol when interacting with Cognito user
pools. |
List<String> |
allowedOAuthScopes()
A list of allowed
OAuth scopes. |
AnalyticsConfigurationType |
analyticsConfiguration()
The Amazon Pinpoint analytics configuration for collecting metrics for this user pool.
|
static CreateUserPoolClientRequest.Builder |
builder() |
List<String> |
callbackURLs()
A list of allowed redirect (callback) URLs for the identity providers.
|
String |
clientName()
The client name for the user pool client you would like to create.
|
String |
defaultRedirectURI()
The default redirect URI.
|
boolean |
equals(Object obj) |
List<ExplicitAuthFlowsType> |
explicitAuthFlows()
The explicit authentication flows.
|
List<String> |
explicitAuthFlowsAsStrings()
The explicit authentication flows.
|
Boolean |
generateSecret()
Boolean to specify whether you want to generate a secret for the user pool client being created.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<String> |
logoutURLs()
A list of allowed logout URLs for the identity providers.
|
List<String> |
readAttributes()
The read attributes.
|
Integer |
refreshTokenValidity()
The time limit, in days, after which the refresh token is no longer valid and cannot be used.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateUserPoolClientRequest.Builder> |
serializableBuilderClass() |
List<String> |
supportedIdentityProviders()
A list of provider names for the identity providers that are supported on this client.
|
CreateUserPoolClientRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
userPoolId()
The user pool ID for the user pool where you want to create a user pool client.
|
List<String> |
writeAttributes()
The user pool attributes that the app client can write to.
|
overrideConfiguration
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public String userPoolId()
The user pool ID for the user pool where you want to create a user pool client.
public String clientName()
The client name for the user pool client you would like to create.
public Boolean generateSecret()
Boolean to specify whether you want to generate a secret for the user pool client being created.
public Integer refreshTokenValidity()
The time limit, in days, after which the refresh token is no longer valid and cannot be used.
public List<String> readAttributes()
The read attributes.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<String> writeAttributes()
The user pool attributes that the app client can write to.
If your app client allows users to sign in through an identity provider, this array must include all attributes that are mapped to identity provider attributes. Amazon Cognito updates mapped attributes when users sign in to your application through an identity provider. If your app client lacks write access to a mapped attribute, Amazon Cognito throws an error when it attempts to update the attribute. For more information, see Specifying Identity Provider Attribute Mappings for Your User Pool.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
If your app client allows users to sign in through an identity provider, this array must include all attributes that are mapped to identity provider attributes. Amazon Cognito updates mapped attributes when users sign in to your application through an identity provider. If your app client lacks write access to a mapped attribute, Amazon Cognito throws an error when it attempts to update the attribute. For more information, see Specifying Identity Provider Attribute Mappings for Your User Pool.
public List<ExplicitAuthFlowsType> explicitAuthFlows()
The explicit authentication flows.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<String> explicitAuthFlowsAsStrings()
The explicit authentication flows.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<String> supportedIdentityProviders()
A list of provider names for the identity providers that are supported on this client. The following are
supported: COGNITO
, Facebook
, Google
and LoginWithAmazon
.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
COGNITO
, Facebook
, Google
and
LoginWithAmazon
.public List<String> callbackURLs()
A list of allowed redirect (callback) URLs for the identity providers.
A redirect URI must:
Be an absolute URI.
Be registered with the authorization server.
Not include a fragment component.
See OAuth 2.0 - Redirection Endpoint.
Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes only.
App callback URLs such as myapp://example are also supported.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
A redirect URI must:
Be an absolute URI.
Be registered with the authorization server.
Not include a fragment component.
See OAuth 2.0 - Redirection Endpoint.
Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes only.
App callback URLs such as myapp://example are also supported.
public List<String> logoutURLs()
A list of allowed logout URLs for the identity providers.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String defaultRedirectURI()
The default redirect URI. Must be in the CallbackURLs
list.
A redirect URI must:
Be an absolute URI.
Be registered with the authorization server.
Not include a fragment component.
See OAuth 2.0 - Redirection Endpoint.
Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes only.
App callback URLs such as myapp://example are also supported.
CallbackURLs
list.
A redirect URI must:
Be an absolute URI.
Be registered with the authorization server.
Not include a fragment component.
See OAuth 2.0 - Redirection Endpoint.
Amazon Cognito requires HTTPS over HTTP except for http://localhost for testing purposes only.
App callback URLs such as myapp://example are also supported.
public List<OAuthFlowType> allowedOAuthFlows()
Set to code
to initiate a code grant flow, which provides an authorization code as the response.
This code can be exchanged for access tokens with the token endpoint.
Set to token
to specify that the client should get the access token (and, optionally, ID token,
based on scopes) directly.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
code
to initiate a code grant flow, which provides an authorization code as the
response. This code can be exchanged for access tokens with the token endpoint.
Set to token
to specify that the client should get the access token (and, optionally, ID
token, based on scopes) directly.
public List<String> allowedOAuthFlowsAsStrings()
Set to code
to initiate a code grant flow, which provides an authorization code as the response.
This code can be exchanged for access tokens with the token endpoint.
Set to token
to specify that the client should get the access token (and, optionally, ID token,
based on scopes) directly.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
code
to initiate a code grant flow, which provides an authorization code as the
response. This code can be exchanged for access tokens with the token endpoint.
Set to token
to specify that the client should get the access token (and, optionally, ID
token, based on scopes) directly.
public List<String> allowedOAuthScopes()
A list of allowed OAuth
scopes. Currently supported values are "phone"
,
"email"
, "openid"
, and "Cognito"
.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
OAuth
scopes. Currently supported values are "phone"
,
"email"
, "openid"
, and "Cognito"
.public Boolean allowedOAuthFlowsUserPoolClient()
Set to True
if the client is allowed to follow the OAuth protocol when interacting with Cognito user
pools.
True
if the client is allowed to follow the OAuth protocol when interacting with
Cognito user pools.public AnalyticsConfigurationType analyticsConfiguration()
The Amazon Pinpoint analytics configuration for collecting metrics for this user pool.
public CreateUserPoolClientRequest.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<CreateUserPoolClientRequest.Builder,CreateUserPoolClientRequest>
toBuilder
in class CognitoIdentityProviderRequest
public static CreateUserPoolClientRequest.Builder builder()
public static Class<? extends CreateUserPoolClientRequest.Builder> serializableBuilderClass()
public String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField
in class SdkRequest
Copyright © 2019. All rights reserved.