Class CfnIdentityPoolProps.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.CfnIdentityPoolProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIdentityPoolProps>
- Enclosing interface:
CfnIdentityPoolProps
@Stability(Stable)
public static final class CfnIdentityPoolProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIdentityPoolProps>
A builder for
CfnIdentityPoolProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallowClassicFlow
(Boolean allowClassicFlow) Sets the value ofCfnIdentityPoolProps.getAllowClassicFlow()
allowClassicFlow
(IResolvable allowClassicFlow) Sets the value ofCfnIdentityPoolProps.getAllowClassicFlow()
allowUnauthenticatedIdentities
(Boolean allowUnauthenticatedIdentities) Sets the value ofCfnIdentityPoolProps.getAllowUnauthenticatedIdentities()
allowUnauthenticatedIdentities
(IResolvable allowUnauthenticatedIdentities) Sets the value ofCfnIdentityPoolProps.getAllowUnauthenticatedIdentities()
build()
Builds the configured instance.cognitoEvents
(Object cognitoEvents) Sets the value ofCfnIdentityPoolProps.getCognitoEvents()
cognitoIdentityProviders
(List<? extends Object> cognitoIdentityProviders) Sets the value ofCfnIdentityPoolProps.getCognitoIdentityProviders()
cognitoIdentityProviders
(IResolvable cognitoIdentityProviders) Sets the value ofCfnIdentityPoolProps.getCognitoIdentityProviders()
cognitoStreams
(IResolvable cognitoStreams) Sets the value ofCfnIdentityPoolProps.getCognitoStreams()
cognitoStreams
(CfnIdentityPool.CognitoStreamsProperty cognitoStreams) Sets the value ofCfnIdentityPoolProps.getCognitoStreams()
developerProviderName
(String developerProviderName) Sets the value ofCfnIdentityPoolProps.getDeveloperProviderName()
identityPoolName
(String identityPoolName) Sets the value ofCfnIdentityPoolProps.getIdentityPoolName()
openIdConnectProviderArns
(List<String> openIdConnectProviderArns) Sets the value ofCfnIdentityPoolProps.getOpenIdConnectProviderArns()
pushSync
(IResolvable pushSync) Sets the value ofCfnIdentityPoolProps.getPushSync()
pushSync
(CfnIdentityPool.PushSyncProperty pushSync) Sets the value ofCfnIdentityPoolProps.getPushSync()
samlProviderArns
(List<String> samlProviderArns) Sets the value ofCfnIdentityPoolProps.getSamlProviderArns()
supportedLoginProviders
(Object supportedLoginProviders) Sets the value ofCfnIdentityPoolProps.getSupportedLoginProviders()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allowUnauthenticatedIdentities
@Stability(Stable) public CfnIdentityPoolProps.Builder allowUnauthenticatedIdentities(Boolean allowUnauthenticatedIdentities) Sets the value ofCfnIdentityPoolProps.getAllowUnauthenticatedIdentities()
- Parameters:
allowUnauthenticatedIdentities
- Specifies whether the identity pool supports unauthenticated logins. This parameter is required.- Returns:
this
-
allowUnauthenticatedIdentities
@Stability(Stable) public CfnIdentityPoolProps.Builder allowUnauthenticatedIdentities(IResolvable allowUnauthenticatedIdentities) Sets the value ofCfnIdentityPoolProps.getAllowUnauthenticatedIdentities()
- Parameters:
allowUnauthenticatedIdentities
- Specifies whether the identity pool supports unauthenticated logins. This parameter is required.- Returns:
this
-
allowClassicFlow
Sets the value ofCfnIdentityPoolProps.getAllowClassicFlow()
- Parameters:
allowClassicFlow
- Enables the Basic (Classic) authentication flow.- Returns:
this
-
allowClassicFlow
@Stability(Stable) public CfnIdentityPoolProps.Builder allowClassicFlow(IResolvable allowClassicFlow) Sets the value ofCfnIdentityPoolProps.getAllowClassicFlow()
- Parameters:
allowClassicFlow
- Enables the Basic (Classic) authentication flow.- Returns:
this
-
cognitoEvents
Sets the value ofCfnIdentityPoolProps.getCognitoEvents()
- Parameters:
cognitoEvents
- The events to configure.- Returns:
this
-
cognitoIdentityProviders
@Stability(Stable) public CfnIdentityPoolProps.Builder cognitoIdentityProviders(IResolvable cognitoIdentityProviders) Sets the value ofCfnIdentityPoolProps.getCognitoIdentityProviders()
- Parameters:
cognitoIdentityProviders
- The Amazon Cognito user pools and their client IDs.- Returns:
this
-
cognitoIdentityProviders
@Stability(Stable) public CfnIdentityPoolProps.Builder cognitoIdentityProviders(List<? extends Object> cognitoIdentityProviders) Sets the value ofCfnIdentityPoolProps.getCognitoIdentityProviders()
- Parameters:
cognitoIdentityProviders
- The Amazon Cognito user pools and their client IDs.- Returns:
this
-
cognitoStreams
Sets the value ofCfnIdentityPoolProps.getCognitoStreams()
- Parameters:
cognitoStreams
- Configuration options for configuring Amazon Cognito streams.- Returns:
this
-
cognitoStreams
@Stability(Stable) public CfnIdentityPoolProps.Builder cognitoStreams(CfnIdentityPool.CognitoStreamsProperty cognitoStreams) Sets the value ofCfnIdentityPoolProps.getCognitoStreams()
- Parameters:
cognitoStreams
- Configuration options for configuring Amazon Cognito streams.- Returns:
this
-
developerProviderName
@Stability(Stable) public CfnIdentityPoolProps.Builder developerProviderName(String developerProviderName) Sets the value ofCfnIdentityPoolProps.getDeveloperProviderName()
- Parameters:
developerProviderName
- The "domain" Amazon Cognito uses when referencing your users. This name acts as a placeholder that allows your backend and the Amazon Cognito service to communicate about the developer provider. For theDeveloperProviderName
, you can use letters and periods (.), underscores (_), and dashes (-).Minimum length : 1
Maximum length : 100
- Returns:
this
-
identityPoolName
Sets the value ofCfnIdentityPoolProps.getIdentityPoolName()
- Parameters:
identityPoolName
- The name of your Amazon Cognito identity pool. Minimum length : 1Maximum length : 128
Pattern :
[\w\s+=,.@-]+
- Returns:
this
-
openIdConnectProviderArns
@Stability(Stable) public CfnIdentityPoolProps.Builder openIdConnectProviderArns(List<String> openIdConnectProviderArns) Sets the value ofCfnIdentityPoolProps.getOpenIdConnectProviderArns()
- Parameters:
openIdConnectProviderArns
- The Amazon Resource Names (ARNs) of the OpenID connect providers.- Returns:
this
-
pushSync
Sets the value ofCfnIdentityPoolProps.getPushSync()
- Parameters:
pushSync
- The configuration options to be applied to the identity pool.- Returns:
this
-
pushSync
@Stability(Stable) public CfnIdentityPoolProps.Builder pushSync(CfnIdentityPool.PushSyncProperty pushSync) Sets the value ofCfnIdentityPoolProps.getPushSync()
- Parameters:
pushSync
- The configuration options to be applied to the identity pool.- Returns:
this
-
samlProviderArns
@Stability(Stable) public CfnIdentityPoolProps.Builder samlProviderArns(List<String> samlProviderArns) Sets the value ofCfnIdentityPoolProps.getSamlProviderArns()
- Parameters:
samlProviderArns
- The Amazon Resource Names (ARNs) of the Security Assertion Markup Language (SAML) providers.- Returns:
this
-
supportedLoginProviders
@Stability(Stable) public CfnIdentityPoolProps.Builder supportedLoginProviders(Object supportedLoginProviders) Sets the value ofCfnIdentityPoolProps.getSupportedLoginProviders()
- Parameters:
supportedLoginProviders
- Key-value pairs that map provider names to provider app IDs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnIdentityPoolProps>
- Returns:
- a new instance of
CfnIdentityPoolProps
- Throws:
NullPointerException
- if any required attribute was not provided
-