Class UserPoolIdentityProviderAmazon.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.UserPoolIdentityProviderAmazon.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<UserPoolIdentityProviderAmazon>
- Enclosing class:
UserPoolIdentityProviderAmazon
@Stability(Stable)
public static final class UserPoolIdentityProviderAmazon.Builder
extends Object
implements software.amazon.jsii.Builder<UserPoolIdentityProviderAmazon>
A fluent builder for
UserPoolIdentityProviderAmazon
.-
Method Summary
Modifier and TypeMethodDescriptionattributeMapping
(AttributeMapping attributeMapping) Mapping attributes from the identity provider to standard and custom attributes of the user pool.build()
The client id recognized by 'Login with Amazon' APIs.clientSecret
(String clientSecret) The client secret to be accompanied with clientId for 'Login with Amazon' APIs to authenticate the client.The types of user profile data to obtain for the Amazon profile.The user pool to which this construct provides identities.
-
Method Details
-
create
@Stability(Stable) public static UserPoolIdentityProviderAmazon.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
UserPoolIdentityProviderAmazon.Builder
.
-
userPool
The user pool to which this construct provides identities.- Parameters:
userPool
- The user pool to which this construct provides identities. This parameter is required.- Returns:
this
-
attributeMapping
@Stability(Stable) public UserPoolIdentityProviderAmazon.Builder attributeMapping(AttributeMapping attributeMapping) Mapping attributes from the identity provider to standard and custom attributes of the user pool.Default: - no attribute mapping
- Parameters:
attributeMapping
- Mapping attributes from the identity provider to standard and custom attributes of the user pool. This parameter is required.- Returns:
this
-
clientId
The client id recognized by 'Login with Amazon' APIs.- Parameters:
clientId
- The client id recognized by 'Login with Amazon' APIs. This parameter is required.- Returns:
this
- See Also:
-
clientSecret
The client secret to be accompanied with clientId for 'Login with Amazon' APIs to authenticate the client.- 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
- See Also:
-
scopes
The types of user profile data to obtain for the Amazon profile.Default: [ profile ]
- Parameters:
scopes
- The types of user profile data to obtain for the Amazon profile. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<UserPoolIdentityProviderAmazon>
- Returns:
- a newly built instance of
UserPoolIdentityProviderAmazon
.
-