Class UserPoolIdentityProviderAmazonProps.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.UserPoolIdentityProviderAmazonProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<UserPoolIdentityProviderAmazonProps>
- Enclosing interface:
- UserPoolIdentityProviderAmazonProps
@Stability(Stable)
public static final class UserPoolIdentityProviderAmazonProps.Builder
extends Object
implements software.amazon.jsii.Builder<UserPoolIdentityProviderAmazonProps>
A builder for
UserPoolIdentityProviderAmazonProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionattributeMapping
(AttributeMapping attributeMapping) Sets the value ofUserPoolIdentityProviderProps.getAttributeMapping()
build()
Builds the configured instance.Sets the value ofUserPoolIdentityProviderAmazonProps.getClientId()
clientSecret
(String clientSecret) Sets the value ofUserPoolIdentityProviderAmazonProps.getClientSecret()
Sets the value ofUserPoolIdentityProviderAmazonProps.getScopes()
Sets the value ofUserPoolIdentityProviderProps.getUserPool()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clientId
Sets the value ofUserPoolIdentityProviderAmazonProps.getClientId()
- Parameters:
clientId
- The client id recognized by 'Login with Amazon' APIs. This parameter is required.- Returns:
this
-
clientSecret
@Stability(Stable) public UserPoolIdentityProviderAmazonProps.Builder clientSecret(String clientSecret) Sets the value ofUserPoolIdentityProviderAmazonProps.getClientSecret()
- Parameters:
clientSecret
- The client secret to be accompanied with clientId for 'Login with Amazon' APIs to authenticate the client. This parameter is required.- Returns:
this
-
scopes
Sets the value ofUserPoolIdentityProviderAmazonProps.getScopes()
- Parameters:
scopes
- The types of user profile data to obtain for the Amazon profile.- Returns:
this
-
userPool
Sets the value ofUserPoolIdentityProviderProps.getUserPool()
- Parameters:
userPool
- The user pool to which this construct provides identities. This parameter is required.- Returns:
this
-
attributeMapping
@Stability(Stable) public UserPoolIdentityProviderAmazonProps.Builder attributeMapping(AttributeMapping attributeMapping) Sets the value ofUserPoolIdentityProviderProps.getAttributeMapping()
- Parameters:
attributeMapping
- Mapping attributes from the identity provider to standard and custom attributes of the user pool.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<UserPoolIdentityProviderAmazonProps>
- Returns:
- a new instance of
UserPoolIdentityProviderAmazonProps
- Throws:
NullPointerException
- if any required attribute was not provided
-