public static final class UserPoolIdentityProviderAmazonProps.Builder
extends java.lang.Object
UserPoolIdentityProviderAmazonProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
UserPoolIdentityProviderAmazonProps.Builder |
attributeMapping(AttributeMapping attributeMapping)
Sets the value of
UserPoolIdentityProviderProps.getAttributeMapping() |
UserPoolIdentityProviderAmazonProps |
build()
Builds the configured instance.
|
UserPoolIdentityProviderAmazonProps.Builder |
clientId(java.lang.String clientId)
Sets the value of
UserPoolIdentityProviderAmazonProps.getClientId() |
UserPoolIdentityProviderAmazonProps.Builder |
clientSecret(java.lang.String clientSecret)
Sets the value of
UserPoolIdentityProviderAmazonProps.getClientSecret() |
UserPoolIdentityProviderAmazonProps.Builder |
scopes(java.util.List<java.lang.String> scopes)
Sets the value of
UserPoolIdentityProviderAmazonProps.getScopes() |
UserPoolIdentityProviderAmazonProps.Builder |
userPool(IUserPool userPool)
Sets the value of
UserPoolIdentityProviderProps.getUserPool() |
public UserPoolIdentityProviderAmazonProps.Builder clientId(java.lang.String clientId)
UserPoolIdentityProviderAmazonProps.getClientId()
clientId
- The client id recognized by 'Login with Amazon' APIs. This parameter is required.this
public UserPoolIdentityProviderAmazonProps.Builder clientSecret(java.lang.String clientSecret)
UserPoolIdentityProviderAmazonProps.getClientSecret()
clientSecret
- The client secret to be accompanied with clientId for 'Login with Amazon' APIs to authenticate the client. This parameter is required.this
public UserPoolIdentityProviderAmazonProps.Builder scopes(java.util.List<java.lang.String> scopes)
UserPoolIdentityProviderAmazonProps.getScopes()
scopes
- The types of user profile data to obtain for the Amazon profile.this
public UserPoolIdentityProviderAmazonProps.Builder userPool(IUserPool userPool)
UserPoolIdentityProviderProps.getUserPool()
userPool
- The user pool to which this construct provides identities. This parameter is required.this
public UserPoolIdentityProviderAmazonProps.Builder attributeMapping(AttributeMapping attributeMapping)
UserPoolIdentityProviderProps.getAttributeMapping()
attributeMapping
- Mapping attributes from the identity provider to standard and custom attributes of the user pool.this
public UserPoolIdentityProviderAmazonProps build()
UserPoolIdentityProviderAmazonProps
java.lang.NullPointerException
- if any required attribute was not provided