Class CfnIdentityPool.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.CfnIdentityPool.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIdentityPool>
- Enclosing class:
CfnIdentityPool
@Stability(Stable)
public static final class CfnIdentityPool.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIdentityPool>
A fluent builder for
CfnIdentityPool
.-
Method Summary
Modifier and TypeMethodDescriptionallowClassicFlow
(Boolean allowClassicFlow) Enables the Basic (Classic) authentication flow.allowClassicFlow
(IResolvable allowClassicFlow) Enables the Basic (Classic) authentication flow.allowUnauthenticatedIdentities
(Boolean allowUnauthenticatedIdentities) Specifies whether the identity pool supports unauthenticated logins.allowUnauthenticatedIdentities
(IResolvable allowUnauthenticatedIdentities) Specifies whether the identity pool supports unauthenticated logins.build()
cognitoEvents
(Object cognitoEvents) The events to configure.cognitoIdentityProviders
(List<? extends Object> cognitoIdentityProviders) The Amazon Cognito user pools and their client IDs.cognitoIdentityProviders
(IResolvable cognitoIdentityProviders) The Amazon Cognito user pools and their client IDs.cognitoStreams
(IResolvable cognitoStreams) Configuration options for configuring Amazon Cognito streams.cognitoStreams
(CfnIdentityPool.CognitoStreamsProperty cognitoStreams) Configuration options for configuring Amazon Cognito streams.static CfnIdentityPool.Builder
developerProviderName
(String developerProviderName) The "domain" Amazon Cognito uses when referencing your users.identityPoolName
(String identityPoolName) The name of your Amazon Cognito identity pool.openIdConnectProviderArns
(List<String> openIdConnectProviderArns) The Amazon Resource Names (ARNs) of the OpenID connect providers.pushSync
(IResolvable pushSync) The configuration options to be applied to the identity pool.pushSync
(CfnIdentityPool.PushSyncProperty pushSync) The configuration options to be applied to the identity pool.samlProviderArns
(List<String> samlProviderArns) The Amazon Resource Names (ARNs) of the Security Assertion Markup Language (SAML) providers.supportedLoginProviders
(Object supportedLoginProviders) Key-value pairs that map provider names to provider app IDs.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnIdentityPool.Builder
.
-
allowUnauthenticatedIdentities
@Stability(Stable) public CfnIdentityPool.Builder allowUnauthenticatedIdentities(Boolean allowUnauthenticatedIdentities) Specifies whether the identity pool supports unauthenticated logins.- Parameters:
allowUnauthenticatedIdentities
- Specifies whether the identity pool supports unauthenticated logins. This parameter is required.- Returns:
this
-
allowUnauthenticatedIdentities
@Stability(Stable) public CfnIdentityPool.Builder allowUnauthenticatedIdentities(IResolvable allowUnauthenticatedIdentities) Specifies whether the identity pool supports unauthenticated logins.- Parameters:
allowUnauthenticatedIdentities
- Specifies whether the identity pool supports unauthenticated logins. This parameter is required.- Returns:
this
-
allowClassicFlow
Enables the Basic (Classic) authentication flow.- Parameters:
allowClassicFlow
- Enables the Basic (Classic) authentication flow. This parameter is required.- Returns:
this
-
allowClassicFlow
Enables the Basic (Classic) authentication flow.- Parameters:
allowClassicFlow
- Enables the Basic (Classic) authentication flow. This parameter is required.- Returns:
this
-
cognitoEvents
The events to configure.- Parameters:
cognitoEvents
- The events to configure. This parameter is required.- Returns:
this
-
cognitoIdentityProviders
@Stability(Stable) public CfnIdentityPool.Builder cognitoIdentityProviders(IResolvable cognitoIdentityProviders) The Amazon Cognito user pools and their client IDs.- Parameters:
cognitoIdentityProviders
- The Amazon Cognito user pools and their client IDs. This parameter is required.- Returns:
this
-
cognitoIdentityProviders
@Stability(Stable) public CfnIdentityPool.Builder cognitoIdentityProviders(List<? extends Object> cognitoIdentityProviders) The Amazon Cognito user pools and their client IDs.- Parameters:
cognitoIdentityProviders
- The Amazon Cognito user pools and their client IDs. This parameter is required.- Returns:
this
-
cognitoStreams
Configuration options for configuring Amazon Cognito streams.- Parameters:
cognitoStreams
- Configuration options for configuring Amazon Cognito streams. This parameter is required.- Returns:
this
-
cognitoStreams
@Stability(Stable) public CfnIdentityPool.Builder cognitoStreams(CfnIdentityPool.CognitoStreamsProperty cognitoStreams) Configuration options for configuring Amazon Cognito streams.- Parameters:
cognitoStreams
- Configuration options for configuring Amazon Cognito streams. This parameter is required.- Returns:
this
-
developerProviderName
@Stability(Stable) public CfnIdentityPool.Builder developerProviderName(String 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 the
DeveloperProviderName
, you can use letters and periods (.), underscores (_), and dashes (-).Minimum length : 1
Maximum length : 100
- Parameters:
developerProviderName
- The "domain" Amazon Cognito uses when referencing your users. This parameter is required.- Returns:
this
-
identityPoolName
The name of your Amazon Cognito identity pool.Minimum length : 1
Maximum length : 128
Pattern :
[\w\s+=,.@-]+
- Parameters:
identityPoolName
- The name of your Amazon Cognito identity pool. This parameter is required.- Returns:
this
-
openIdConnectProviderArns
@Stability(Stable) public CfnIdentityPool.Builder openIdConnectProviderArns(List<String> openIdConnectProviderArns) The Amazon Resource Names (ARNs) of the OpenID connect providers.- Parameters:
openIdConnectProviderArns
- The Amazon Resource Names (ARNs) of the OpenID connect providers. This parameter is required.- Returns:
this
-
pushSync
The configuration options to be applied to the identity pool.- Parameters:
pushSync
- The configuration options to be applied to the identity pool. This parameter is required.- Returns:
this
-
pushSync
@Stability(Stable) public CfnIdentityPool.Builder pushSync(CfnIdentityPool.PushSyncProperty pushSync) The configuration options to be applied to the identity pool.- Parameters:
pushSync
- The configuration options to be applied to the identity pool. This parameter is required.- Returns:
this
-
samlProviderArns
The Amazon Resource Names (ARNs) of the Security Assertion Markup Language (SAML) providers.- Parameters:
samlProviderArns
- The Amazon Resource Names (ARNs) of the Security Assertion Markup Language (SAML) providers. This parameter is required.- Returns:
this
-
supportedLoginProviders
@Stability(Stable) public CfnIdentityPool.Builder supportedLoginProviders(Object supportedLoginProviders) Key-value pairs that map provider names to provider app IDs.- Parameters:
supportedLoginProviders
- Key-value pairs that map provider names to provider app IDs. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnIdentityPool>
- Returns:
- a newly built instance of
CfnIdentityPool
.
-