@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:44.461Z") @Stability(value=Stable) 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.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$ProxyIConstruct.Jsii$Default| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnIdentityPool(Construct scope,
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 |
|---|---|
Object |
getAllowClassicFlow()
Enables the Basic (Classic) authentication flow.
|
Object |
getAllowUnauthenticatedIdentities()
Specifies whether the identity pool supports unauthenticated logins.
|
String |
getAttrName()
The name of the Amazon Cognito identity pool, returned as a string.
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getCognitoEvents()
The events to configure.
|
Object |
getCognitoIdentityProviders()
The Amazon Cognito user pools and their client IDs.
|
Object |
getCognitoStreams()
Configuration options for configuring Amazon Cognito streams.
|
String |
getDeveloperProviderName()
The "domain" Amazon Cognito uses when referencing your users.
|
String |
getIdentityPoolName()
The name of your Amazon Cognito identity pool.
|
List<String> |
getOpenIdConnectProviderArns()
The Amazon Resource Names (ARNs) of the OpenID connect providers.
|
Object |
getPushSync()
The configuration options to be applied to the identity pool.
|
List<String> |
getSamlProviderArns()
The Amazon Resource Names (ARNs) of the Security Assertion Markup Language (SAML) providers.
|
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 Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAllowClassicFlow(Boolean value)
Enables the Basic (Classic) authentication flow.
|
void |
setAllowClassicFlow(IResolvable value)
Enables the Basic (Classic) authentication flow.
|
void |
setAllowUnauthenticatedIdentities(Boolean value)
Specifies whether the identity pool supports unauthenticated logins.
|
void |
setAllowUnauthenticatedIdentities(IResolvable value)
Specifies whether the identity pool supports unauthenticated logins.
|
void |
setCognitoEvents(Object value)
The events to configure.
|
void |
setCognitoIdentityProviders(IResolvable value)
The Amazon Cognito user pools and their client IDs.
|
void |
setCognitoIdentityProviders(List<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(String value)
The "domain" Amazon Cognito uses when referencing your users.
|
void |
setIdentityPoolName(String value)
The name of your Amazon Cognito identity pool.
|
void |
setOpenIdConnectProviderArns(List<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(List<String> value)
The Amazon Resource Names (ARNs) of the Security Assertion Markup Language (SAML) providers.
|
void |
setSupportedLoginProviders(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, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnIdentityPool(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnIdentityPool(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnIdentityPool(@NotNull
Construct scope,
@NotNull
String id,
@NotNull
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.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrName()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public Object getAllowUnauthenticatedIdentities()
@Stability(value=Stable)
public void setAllowUnauthenticatedIdentities(@NotNull
Boolean value)
@Stability(value=Stable)
public void setAllowUnauthenticatedIdentities(@NotNull
IResolvable value)
@Stability(value=Stable) @NotNull public Object getCognitoEvents()
@Stability(value=Stable)
public void setCognitoEvents(@NotNull
Object value)
@Stability(value=Stable) @NotNull public Object getSupportedLoginProviders()
@Stability(value=Stable)
public void setSupportedLoginProviders(@NotNull
Object value)
@Stability(value=Stable) @Nullable public Object getAllowClassicFlow()
@Stability(value=Stable)
public void setAllowClassicFlow(@Nullable
Boolean value)
@Stability(value=Stable)
public void setAllowClassicFlow(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getCognitoIdentityProviders()
@Stability(value=Stable)
public void setCognitoIdentityProviders(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setCognitoIdentityProviders(@Nullable
List<Object> value)
@Stability(value=Stable) @Nullable public Object getCognitoStreams()
@Stability(value=Stable)
public void setCognitoStreams(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setCognitoStreams(@Nullable
CfnIdentityPool.CognitoStreamsProperty value)
@Stability(value=Stable) @Nullable public 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
@Stability(value=Stable)
public void setDeveloperProviderName(@Nullable
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
@Stability(value=Stable) @Nullable public String getIdentityPoolName()
Minimum length : 1
Maximum length : 128
Pattern : [\w\s+=,.@-]+
@Stability(value=Stable)
public void setIdentityPoolName(@Nullable
String value)
Minimum length : 1
Maximum length : 128
Pattern : [\w\s+=,.@-]+
@Stability(value=Stable) @Nullable public List<String> getOpenIdConnectProviderArns()
@Stability(value=Stable)
public void setOpenIdConnectProviderArns(@Nullable
List<String> value)
@Stability(value=Stable) @Nullable public Object getPushSync()
@Stability(value=Stable)
public void setPushSync(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setPushSync(@Nullable
CfnIdentityPool.PushSyncProperty value)
@Stability(value=Stable) @Nullable public List<String> getSamlProviderArns()
Copyright © 2022. All rights reserved.