Class CfnIdentityPool
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::Cognito::IdentityPool.
The AWS::Cognito::IdentityPool resource creates an Amazon Cognito identity pool.
To avoid deleting the resource accidentally from AWS 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();
-
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.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnIdentityPool(Construct scope, String id, CfnIdentityPoolProps props) Create a newAWS::Cognito::IdentityPool.protectedCfnIdentityPool(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnIdentityPool(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionEnables 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.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.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.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.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.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.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 Construct scope, @NotNull String id, @NotNull CfnIdentityPoolProps props) Create a newAWS::Cognito::IdentityPool.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrName
The name of the Amazon Cognito identity pool, returned as a string. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getAllowUnauthenticatedIdentities
Specifies whether the identity pool supports unauthenticated logins. -
setAllowUnauthenticatedIdentities
Specifies whether the identity pool supports unauthenticated logins. -
setAllowUnauthenticatedIdentities
Specifies whether the identity pool supports unauthenticated logins. -
getCognitoEvents
The events to configure. -
setCognitoEvents
The events to configure. -
getSupportedLoginProviders
Key-value pairs that map provider names to provider app IDs. -
setSupportedLoginProviders
Key-value pairs that map provider names to provider app IDs. -
getAllowClassicFlow
Enables the Basic (Classic) authentication flow. -
setAllowClassicFlow
Enables the Basic (Classic) authentication flow. -
setAllowClassicFlow
Enables the Basic (Classic) authentication flow. -
getCognitoIdentityProviders
The Amazon Cognito user pools and their client IDs. -
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. -
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.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
-
setDeveloperProviderName
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
-
getIdentityPoolName
The name of your Amazon Cognito identity pool.Minimum length : 1
Maximum length : 128
Pattern :
[\w\s+=,.@-]+ -
setIdentityPoolName
The name of your Amazon Cognito identity pool.Minimum length : 1
Maximum length : 128
Pattern :
[\w\s+=,.@-]+ -
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. -
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.
-