Class UserPoolIdentityProviderOidc.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.UserPoolIdentityProviderOidc.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<UserPoolIdentityProviderOidc>
- Enclosing class:
UserPoolIdentityProviderOidc
@Stability(Stable)
public static final class UserPoolIdentityProviderOidc.Builder
extends Object
implements software.amazon.jsii.Builder<UserPoolIdentityProviderOidc>
A fluent builder for
UserPoolIdentityProviderOidc.-
Method Summary
Modifier and TypeMethodDescriptionattributeMapping(AttributeMapping attributeMapping) Mapping attributes from the identity provider to standard and custom attributes of the user pool.attributeRequestMethod(OidcAttributeRequestMethod attributeRequestMethod) The method to use to request attributes.build()The client id.clientSecret(String clientSecret) The client secret.endpoints(OidcEndpoints endpoints) OpenID connect endpoints.identifiers(List<String> identifiers) Identifiers.Issuer URL.The name of the provider.The OAuth 2.0 scopes that you will request from OpenID Connect.The user pool to which this construct provides identities.
-
Method Details
-
create
@Stability(Stable) public static UserPoolIdentityProviderOidc.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- This parameter is required.id- This parameter is required.- Returns:
- a new instance of
UserPoolIdentityProviderOidc.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 UserPoolIdentityProviderOidc.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.- Parameters:
clientId- The client id. This parameter is required.- Returns:
this
-
clientSecret
The client secret.- Parameters:
clientSecret- The client secret. This parameter is required.- Returns:
this
-
issuerUrl
Issuer URL.- Parameters:
issuerUrl- Issuer URL. This parameter is required.- Returns:
this
-
attributeRequestMethod
@Stability(Stable) public UserPoolIdentityProviderOidc.Builder attributeRequestMethod(OidcAttributeRequestMethod attributeRequestMethod) The method to use to request attributes.Default: OidcAttributeRequestMethod.GET
- Parameters:
attributeRequestMethod- The method to use to request attributes. This parameter is required.- Returns:
this
-
endpoints
OpenID connect endpoints.Default: - auto discovered with issuer URL
- Parameters:
endpoints- OpenID connect endpoints. This parameter is required.- Returns:
this
-
identifiers
@Stability(Stable) public UserPoolIdentityProviderOidc.Builder identifiers(List<String> identifiers) Identifiers.Identifiers can be used to redirect users to the correct IdP in multitenant apps.
Default: - no identifiers used
- Parameters:
identifiers- Identifiers. This parameter is required.- Returns:
this
-
name
The name of the provider.Default: - the unique ID of the construct
- Parameters:
name- The name of the provider. This parameter is required.- Returns:
this
-
scopes
The OAuth 2.0 scopes that you will request from OpenID Connect. Scopes are groups of OpenID Connect user attributes to exchange with your app.Default: ['openid']
- Parameters:
scopes- The OAuth 2.0 scopes that you will request from OpenID Connect. Scopes are groups of OpenID Connect user attributes to exchange with your app. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<UserPoolIdentityProviderOidc>- Returns:
- a newly built instance of
UserPoolIdentityProviderOidc.
-