Class CfnIdentityPool.CognitoIdentityProviderProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.CfnIdentityPool.CognitoIdentityProviderProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIdentityPool.CognitoIdentityProviderProperty>
- Enclosing interface:
CfnIdentityPool.CognitoIdentityProviderProperty
@Stability(Stable)
public static final class CfnIdentityPool.CognitoIdentityProviderProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIdentityPool.CognitoIdentityProviderProperty>
A builder for
CfnIdentityPool.CognitoIdentityProviderProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnIdentityPool.CognitoIdentityProviderProperty.getClientId()
providerName
(String providerName) Sets the value ofCfnIdentityPool.CognitoIdentityProviderProperty.getProviderName()
serverSideTokenCheck
(Boolean serverSideTokenCheck) serverSideTokenCheck
(IResolvable serverSideTokenCheck)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clientId
@Stability(Stable) public CfnIdentityPool.CognitoIdentityProviderProperty.Builder clientId(String clientId) Sets the value ofCfnIdentityPool.CognitoIdentityProviderProperty.getClientId()
- Parameters:
clientId
- The client ID for the Amazon Cognito user pool. This parameter is required.- Returns:
this
-
providerName
@Stability(Stable) public CfnIdentityPool.CognitoIdentityProviderProperty.Builder providerName(String providerName) Sets the value ofCfnIdentityPool.CognitoIdentityProviderProperty.getProviderName()
- Parameters:
providerName
- The provider name for an Amazon Cognito user pool. This parameter is required. For example:cognito-idp.us-east-2.amazonaws.com/us-east-2_123456789
.- Returns:
this
-
serverSideTokenCheck
@Stability(Stable) public CfnIdentityPool.CognitoIdentityProviderProperty.Builder serverSideTokenCheck(Boolean serverSideTokenCheck) - Parameters:
serverSideTokenCheck
- TRUE if server-side token validation is enabled for the identity provider’s token. After you set theServerSideTokenCheck
to TRUE for an identity pool, that identity pool checks with the integrated user pools to make sure the user has not been globally signed out or deleted before the identity pool provides an OIDC token or AWS credentials for the user.If the user is signed out or deleted, the identity pool returns a 400 Not Authorized error.
- Returns:
this
-
serverSideTokenCheck
@Stability(Stable) public CfnIdentityPool.CognitoIdentityProviderProperty.Builder serverSideTokenCheck(IResolvable serverSideTokenCheck) - Parameters:
serverSideTokenCheck
- TRUE if server-side token validation is enabled for the identity provider’s token. After you set theServerSideTokenCheck
to TRUE for an identity pool, that identity pool checks with the integrated user pools to make sure the user has not been globally signed out or deleted before the identity pool provides an OIDC token or AWS credentials for the user.If the user is signed out or deleted, the identity pool returns a 400 Not Authorized error.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnIdentityPool.CognitoIdentityProviderProperty>
- Returns:
- a new instance of
CfnIdentityPool.CognitoIdentityProviderProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-