@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)", date="2022-06-22T23:27:58.909Z") public interface UserPoolIdentityProviderFacebookProps extends UserPoolIdentityProviderProps
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.cognito.*; ProviderAttribute providerAttribute; UserPool userPool; UserPoolIdentityProviderFacebookProps userPoolIdentityProviderFacebookProps = UserPoolIdentityProviderFacebookProps.builder() .clientId("clientId") .clientSecret("clientSecret") .userPool(userPool) // the properties below are optional .apiVersion("apiVersion") .attributeMapping(AttributeMapping.builder() .address(providerAttribute) .birthdate(providerAttribute) .custom(Map.of( "customKey", providerAttribute)) .email(providerAttribute) .familyName(providerAttribute) .fullname(providerAttribute) .gender(providerAttribute) .givenName(providerAttribute) .lastUpdateTime(providerAttribute) .locale(providerAttribute) .middleName(providerAttribute) .nickname(providerAttribute) .phoneNumber(providerAttribute) .preferredUsername(providerAttribute) .profilePage(providerAttribute) .profilePicture(providerAttribute) .timezone(providerAttribute) .website(providerAttribute) .build()) .scopes(List.of("scopes")) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
UserPoolIdentityProviderFacebookProps.Builder
A builder for
UserPoolIdentityProviderFacebookProps |
static class |
UserPoolIdentityProviderFacebookProps.Jsii$Proxy
An implementation for
UserPoolIdentityProviderFacebookProps |
Modifier and Type | Method and Description |
---|---|
static UserPoolIdentityProviderFacebookProps.Builder |
builder() |
default java.lang.String |
getApiVersion()
The Facebook API version to use.
|
java.lang.String |
getClientId()
The client id recognized by Facebook APIs.
|
java.lang.String |
getClientSecret()
The client secret to be accompanied with clientUd for Facebook to authenticate the client.
|
default java.util.List<java.lang.String> |
getScopes()
The list of facebook permissions to obtain for getting access to the Facebook profile.
|
getAttributeMapping, getUserPool
java.lang.String getClientId()
java.lang.String getClientSecret()
default java.lang.String getApiVersion()
Default: - to the oldest version supported by Facebook
default java.util.List<java.lang.String> getScopes()
Default: [ public_profile ]
static UserPoolIdentityProviderFacebookProps.Builder builder()
builder
in interface UserPoolIdentityProviderProps
UserPoolIdentityProviderFacebookProps.Builder
of UserPoolIdentityProviderFacebookProps