Class CfnIdentityPool
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.cognito.CfnIdentityPool
- All Implemented Interfaces:
IInspectable,IIdentityPoolRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:33.205Z")
@Stability(Stable)
public class CfnIdentityPool
extends CfnResource
implements IInspectable, IIdentityPoolRef, ITaggableV2
The
AWS::Cognito::IdentityPool resource creates an Amazon Cognito identity pool.
To avoid deleting the resource accidentally from CloudFormation , use DeletionPolicy Attribute and the UpdateReplacePolicy Attribute to retain the resource on deletion or replacement.
Example:
import software.amazon.awscdk.services.cognito.*;
OpenIdConnectProvider myProvider;
CfnIdentityPool.Builder.create(this, "IdentityPool")
.openIdConnectProviderArns(List.of(myProvider.getOpenIdConnectProviderArn()))
// And the other properties for your identity pool
.allowUnauthenticatedIdentities(false)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnIdentityPool.static interfaceCognitoIdentityProvideris a property of the AWS::Cognito::IdentityPool resource that represents an Amazon Cognito user pool and its client ID.static interfaceCognitoStreamsis a property of the AWS::Cognito::IdentityPool resource that defines configuration options for Amazon Cognito streams.static interfacePushSyncis a property of the AWS::Cognito::IdentityPool resource that defines the configuration options to be applied to an Amazon Cognito identity pool.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.cognito.IIdentityPoolRef
IIdentityPoolRef.Jsii$Default, IIdentityPoolRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnIdentityPool(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnIdentityPool(software.amazon.jsii.JsiiObjectRef objRef) CfnIdentityPool(software.constructs.Construct scope, String id, CfnIdentityPoolProps props) Create a newAWS::Cognito::IdentityPool. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForIdentityPool(IIdentityPoolRef resource) static IIdentityPoolReffromIdentityPoolId(software.constructs.Construct scope, String id, String identityPoolId) Creates a new IIdentityPoolRef from a identityPoolId.Enables the Basic (Classic) authentication flow.Specifies whether the identity pool supports unauthenticated logins.The name of the Amazon Cognito identity pool, returned as a string.Tag Manager which manages the tags for this resource.The events to configure.The Amazon Cognito user pools and their client IDs.Configuration options for configuring Amazon Cognito streams.The "domain" Amazon Cognito uses when referencing your users.The name of your Amazon Cognito identity pool.A reference to a IdentityPool resource.Tags to assign to the identity pool.The Amazon Resource Names (ARNs) of the OpenID connect providers.The configuration options to be applied to the identity pool.The Amazon Resource Names (ARNs) of the Security Assertion Markup Language (SAML) providers.Key-value pairs that map provider names to provider app IDs.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnIdentityPool.renderProperties(Map<String, Object> props) voidsetAllowClassicFlow(Boolean value) Enables the Basic (Classic) authentication flow.voidsetAllowClassicFlow(IResolvable value) Enables the Basic (Classic) authentication flow.voidSpecifies whether the identity pool supports unauthenticated logins.voidSpecifies whether the identity pool supports unauthenticated logins.voidsetCognitoEvents(Object value) The events to configure.voidsetCognitoIdentityProviders(List<Object> value) The Amazon Cognito user pools and their client IDs.voidThe Amazon Cognito user pools and their client IDs.voidsetCognitoStreams(IResolvable value) Configuration options for configuring Amazon Cognito streams.voidConfiguration options for configuring Amazon Cognito streams.voidsetDeveloperProviderName(String value) The "domain" Amazon Cognito uses when referencing your users.voidsetIdentityPoolName(String value) The name of your Amazon Cognito identity pool.voidsetIdentityPoolTags(List<CfnTag> value) Tags to assign to the identity pool.voidsetOpenIdConnectProviderArns(List<String> value) The Amazon Resource Names (ARNs) of the OpenID connect providers.voidsetPushSync(IResolvable value) The configuration options to be applied to the identity pool.voidThe configuration options to be applied to the identity pool.voidsetSamlProviderArns(List<String> value) The Amazon Resource Names (ARNs) of the Security Assertion Markup Language (SAML) providers.voidsetSupportedLoginProviders(Object value) Key-value pairs that map provider names to provider app IDs.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnIdentityPool
protected CfnIdentityPool(software.amazon.jsii.JsiiObjectRef objRef) -
CfnIdentityPool
protected CfnIdentityPool(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnIdentityPool
@Stability(Stable) public CfnIdentityPool(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnIdentityPoolProps props) Create a newAWS::Cognito::IdentityPool.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForIdentityPool
@Stability(Stable) @NotNull public static String arnForIdentityPool(@NotNull IIdentityPoolRef resource) - Parameters:
resource- This parameter is required.
-
fromIdentityPoolId
@Stability(Stable) @NotNull public static IIdentityPoolRef fromIdentityPoolId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String identityPoolId) Creates a new IIdentityPoolRef from a identityPoolId.- Parameters:
scope- This parameter is required.id- This parameter is required.identityPoolId- This parameter is required.
-
isCfnIdentityPool
Checks whether the given object is a CfnIdentityPool.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrId
-
getAttrName
The name of the Amazon Cognito identity pool, returned as a string. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getIdentityPoolRef
A reference to a IdentityPool resource.- Specified by:
getIdentityPoolRefin interfaceIIdentityPoolRef
-
getAllowUnauthenticatedIdentities
Specifies whether the identity pool supports unauthenticated logins.Returns union: either
BooleanorIResolvable -
setAllowUnauthenticatedIdentities
Specifies whether the identity pool supports unauthenticated logins. -
setAllowUnauthenticatedIdentities
Specifies whether the identity pool supports unauthenticated logins. -
getAllowClassicFlow
Enables the Basic (Classic) authentication flow.Returns union: either
BooleanorIResolvable -
setAllowClassicFlow
Enables the Basic (Classic) authentication flow. -
setAllowClassicFlow
Enables the Basic (Classic) authentication flow. -
getCognitoEvents
The events to configure. -
setCognitoEvents
The events to configure. -
getCognitoIdentityProviders
The Amazon Cognito user pools and their client IDs.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnIdentityPool.CognitoIdentityProviderProperty> -
setCognitoIdentityProviders
The Amazon Cognito user pools and their client IDs. -
setCognitoIdentityProviders
The Amazon Cognito user pools and their client IDs. -
getCognitoStreams
Configuration options for configuring Amazon Cognito streams.Returns union: either
IResolvableorCfnIdentityPool.CognitoStreamsProperty -
setCognitoStreams
Configuration options for configuring Amazon Cognito streams. -
setCognitoStreams
@Stability(Stable) public void setCognitoStreams(@Nullable CfnIdentityPool.CognitoStreamsProperty value) Configuration options for configuring Amazon Cognito streams. -
getDeveloperProviderName
The "domain" Amazon Cognito uses when referencing your users. -
setDeveloperProviderName
The "domain" Amazon Cognito uses when referencing your users. -
getIdentityPoolName
The name of your Amazon Cognito identity pool. -
setIdentityPoolName
The name of your Amazon Cognito identity pool. -
getIdentityPoolTags
Tags to assign to the identity pool. -
setIdentityPoolTags
Tags to assign to the identity pool. -
getOpenIdConnectProviderArns
The Amazon Resource Names (ARNs) of the OpenID connect providers. -
setOpenIdConnectProviderArns
The Amazon Resource Names (ARNs) of the OpenID connect providers. -
getPushSync
The configuration options to be applied to the identity pool.Returns union: either
IResolvableorCfnIdentityPool.PushSyncProperty -
setPushSync
The configuration options to be applied to the identity pool. -
setPushSync
The configuration options to be applied to the identity pool. -
getSamlProviderArns
The Amazon Resource Names (ARNs) of the Security Assertion Markup Language (SAML) providers. -
setSamlProviderArns
The Amazon Resource Names (ARNs) of the Security Assertion Markup Language (SAML) providers. -
getSupportedLoginProviders
Key-value pairs that map provider names to provider app IDs. -
setSupportedLoginProviders
Key-value pairs that map provider names to provider app IDs.
-