@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:46.724Z") public class CfnIdentityPool extends CfnResource implements IInspectable
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();
Modifier and Type | Class and Description |
---|---|
static class |
CfnIdentityPool.Builder
A fluent builder for
CfnIdentityPool . |
static interface |
CfnIdentityPool.CognitoIdentityProviderProperty
`CognitoIdentityProvider` is a property of the [AWS::Cognito::IdentityPool](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypool.html) resource that represents an Amazon Cognito user pool and its client ID.
|
static interface |
CfnIdentityPool.CognitoStreamsProperty
`CognitoStreams` is a property of the [AWS::Cognito::IdentityPool](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypool.html) resource that defines configuration options for Amazon Cognito streams.
|
static interface |
CfnIdentityPool.PushSyncProperty
`PushSync` is a property of the [AWS::Cognito::IdentityPool](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-identitypool.html) resource that defines the configuration options to be applied to an Amazon Cognito identity pool.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnIdentityPool(Construct scope,
java.lang.String id,
CfnIdentityPoolProps props)
Create a new `AWS::Cognito::IdentityPool`.
|
protected |
CfnIdentityPool(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnIdentityPool(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAllowClassicFlow()
Enables the Basic (Classic) authentication flow.
|
java.lang.Object |
getAllowUnauthenticatedIdentities()
Specifies whether the identity pool supports unauthenticated logins.
|
java.lang.String |
getAttrName()
The name of the Amazon Cognito identity pool, returned as a string.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.Object |
getCognitoEvents()
The events to configure.
|
java.lang.Object |
getCognitoIdentityProviders()
The Amazon Cognito user pools and their client IDs.
|
java.lang.Object |
getCognitoStreams()
Configuration options for configuring Amazon Cognito streams.
|
java.lang.String |
getDeveloperProviderName()
The "domain" Amazon Cognito uses when referencing your users.
|
java.lang.String |
getIdentityPoolName()
The name of your Amazon Cognito identity pool.
|
java.util.List<java.lang.String> |
getOpenIdConnectProviderArns()
The Amazon Resource Names (ARNs) of the OpenID connect providers.
|
java.lang.Object |
getPushSync()
The configuration options to be applied to the identity pool.
|
java.util.List<java.lang.String> |
getSamlProviderArns()
The Amazon Resource Names (ARNs) of the Security Assertion Markup Language (SAML) providers.
|
java.lang.Object |
getSupportedLoginProviders()
Key-value pairs that map provider names to provider app IDs.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setAllowClassicFlow(java.lang.Boolean value)
Enables the Basic (Classic) authentication flow.
|
void |
setAllowClassicFlow(IResolvable value)
Enables the Basic (Classic) authentication flow.
|
void |
setAllowUnauthenticatedIdentities(java.lang.Boolean value)
Specifies whether the identity pool supports unauthenticated logins.
|
void |
setAllowUnauthenticatedIdentities(IResolvable value)
Specifies whether the identity pool supports unauthenticated logins.
|
void |
setCognitoEvents(java.lang.Object value)
The events to configure.
|
void |
setCognitoIdentityProviders(IResolvable value)
The Amazon Cognito user pools and their client IDs.
|
void |
setCognitoIdentityProviders(java.util.List<java.lang.Object> value)
The Amazon Cognito user pools and their client IDs.
|
void |
setCognitoStreams(CfnIdentityPool.CognitoStreamsProperty value)
Configuration options for configuring Amazon Cognito streams.
|
void |
setCognitoStreams(IResolvable value)
Configuration options for configuring Amazon Cognito streams.
|
void |
setDeveloperProviderName(java.lang.String value)
The "domain" Amazon Cognito uses when referencing your users.
|
void |
setIdentityPoolName(java.lang.String value)
The name of your Amazon Cognito identity pool.
|
void |
setOpenIdConnectProviderArns(java.util.List<java.lang.String> value)
The Amazon Resource Names (ARNs) of the OpenID connect providers.
|
void |
setPushSync(CfnIdentityPool.PushSyncProperty value)
The configuration options to be applied to the identity pool.
|
void |
setPushSync(IResolvable value)
The configuration options to be applied to the identity pool.
|
void |
setSamlProviderArns(java.util.List<java.lang.String> value)
The Amazon Resource Names (ARNs) of the Security Assertion Markup Language (SAML) providers.
|
void |
setSupportedLoginProviders(java.lang.Object value)
Key-value pairs that map provider names to provider app IDs.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnIdentityPool(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnIdentityPool(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnIdentityPool(Construct scope, java.lang.String id, CfnIdentityPoolProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrName()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.Object getAllowUnauthenticatedIdentities()
public void setAllowUnauthenticatedIdentities(java.lang.Boolean value)
public void setAllowUnauthenticatedIdentities(IResolvable value)
public java.lang.Object getCognitoEvents()
public void setCognitoEvents(java.lang.Object value)
public java.lang.Object getSupportedLoginProviders()
public void setSupportedLoginProviders(java.lang.Object value)
public java.lang.Object getAllowClassicFlow()
public void setAllowClassicFlow(java.lang.Boolean value)
public void setAllowClassicFlow(IResolvable value)
public java.lang.Object getCognitoIdentityProviders()
public void setCognitoIdentityProviders(IResolvable value)
public void setCognitoIdentityProviders(java.util.List<java.lang.Object> value)
public java.lang.Object getCognitoStreams()
public void setCognitoStreams(IResolvable value)
public void setCognitoStreams(CfnIdentityPool.CognitoStreamsProperty value)
public java.lang.String getDeveloperProviderName()
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
public void setDeveloperProviderName(java.lang.String value)
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
public java.lang.String getIdentityPoolName()
Minimum length : 1
Maximum length : 128
Pattern : [\w\s+=,.@-]+
public void setIdentityPoolName(java.lang.String value)
Minimum length : 1
Maximum length : 128
Pattern : [\w\s+=,.@-]+
public java.util.List<java.lang.String> getOpenIdConnectProviderArns()
public void setOpenIdConnectProviderArns(java.util.List<java.lang.String> value)
public java.lang.Object getPushSync()
public void setPushSync(IResolvable value)
public void setPushSync(CfnIdentityPool.PushSyncProperty value)
public java.util.List<java.lang.String> getSamlProviderArns()
public void setSamlProviderArns(java.util.List<java.lang.String> value)