public static final class UserPoolIdentityProviderAmazon.Builder
extends java.lang.Object
UserPoolIdentityProviderAmazon
.Modifier and Type | Method and Description |
---|---|
UserPoolIdentityProviderAmazon.Builder |
attributeMapping(AttributeMapping attributeMapping)
Mapping attributes from the identity provider to standard and custom attributes of the user pool.
|
UserPoolIdentityProviderAmazon |
build() |
UserPoolIdentityProviderAmazon.Builder |
clientId(java.lang.String clientId)
The client id recognized by 'Login with Amazon' APIs.
|
UserPoolIdentityProviderAmazon.Builder |
clientSecret(java.lang.String clientSecret)
The client secret to be accompanied with clientId for 'Login with Amazon' APIs to authenticate the client.
|
static UserPoolIdentityProviderAmazon.Builder |
create(software.constructs.Construct scope,
java.lang.String id) |
UserPoolIdentityProviderAmazon.Builder |
scopes(java.util.List<java.lang.String> scopes)
The types of user profile data to obtain for the Amazon profile.
|
UserPoolIdentityProviderAmazon.Builder |
userPool(IUserPool userPool)
The user pool to which this construct provides identities.
|
public static UserPoolIdentityProviderAmazon.Builder create(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.UserPoolIdentityProviderAmazon.Builder
.public UserPoolIdentityProviderAmazon.Builder userPool(IUserPool userPool)
userPool
- The user pool to which this construct provides identities. This parameter is required.this
public UserPoolIdentityProviderAmazon.Builder attributeMapping(AttributeMapping attributeMapping)
Default: - no attribute mapping
attributeMapping
- Mapping attributes from the identity provider to standard and custom attributes of the user pool. This parameter is required.this
public UserPoolIdentityProviderAmazon.Builder clientId(java.lang.String clientId)
clientId
- The client id recognized by 'Login with Amazon' APIs. This parameter is required.this
public UserPoolIdentityProviderAmazon.Builder clientSecret(java.lang.String clientSecret)
clientSecret
- The client secret to be accompanied with clientId for 'Login with Amazon' APIs to authenticate the client. This parameter is required.this
public UserPoolIdentityProviderAmazon.Builder scopes(java.util.List<java.lang.String> scopes)
Default: [ profile ]
scopes
- The types of user profile data to obtain for the Amazon profile. This parameter is required.this
public UserPoolIdentityProviderAmazon build()