Class CfnIdentityPool

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-24T02:42:35.635Z") @Stability(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();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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)
      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

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrId

      @Stability(Stable) @NotNull public String getAttrId()
    • getAttrName

      @Stability(Stable) @NotNull public String getAttrName()
      The name of the Amazon Cognito identity pool, returned as a string.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getAllowUnauthenticatedIdentities

      @Stability(Stable) @NotNull public Object getAllowUnauthenticatedIdentities()
      Specifies whether the identity pool supports unauthenticated logins.
    • setAllowUnauthenticatedIdentities

      @Stability(Stable) public void setAllowUnauthenticatedIdentities(@NotNull Boolean value)
      Specifies whether the identity pool supports unauthenticated logins.
    • setAllowUnauthenticatedIdentities

      @Stability(Stable) public void setAllowUnauthenticatedIdentities(@NotNull IResolvable value)
      Specifies whether the identity pool supports unauthenticated logins.
    • getAllowClassicFlow

      @Stability(Stable) @Nullable public Object getAllowClassicFlow()
      Enables the Basic (Classic) authentication flow.
    • setAllowClassicFlow

      @Stability(Stable) public void setAllowClassicFlow(@Nullable Boolean value)
      Enables the Basic (Classic) authentication flow.
    • setAllowClassicFlow

      @Stability(Stable) public void setAllowClassicFlow(@Nullable IResolvable value)
      Enables the Basic (Classic) authentication flow.
    • getCognitoEvents

      @Stability(Stable) @Nullable public Object getCognitoEvents()
      The events to configure.
    • setCognitoEvents

      @Stability(Stable) public void setCognitoEvents(@Nullable Object value)
      The events to configure.
    • getCognitoIdentityProviders

      @Stability(Stable) @Nullable public Object getCognitoIdentityProviders()
      The Amazon Cognito user pools and their client IDs.
    • setCognitoIdentityProviders

      @Stability(Stable) public void setCognitoIdentityProviders(@Nullable IResolvable value)
      The Amazon Cognito user pools and their client IDs.
    • setCognitoIdentityProviders

      @Stability(Stable) public void setCognitoIdentityProviders(@Nullable List<Object> value)
      The Amazon Cognito user pools and their client IDs.
    • getCognitoStreams

      @Stability(Stable) @Nullable public Object getCognitoStreams()
      Configuration options for configuring Amazon Cognito streams.
    • setCognitoStreams

      @Stability(Stable) public void setCognitoStreams(@Nullable IResolvable value)
      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

      @Stability(Stable) @Nullable public String getDeveloperProviderName()
      The "domain" Amazon Cognito uses when referencing your users.
    • setDeveloperProviderName

      @Stability(Stable) public void setDeveloperProviderName(@Nullable String value)
      The "domain" Amazon Cognito uses when referencing your users.
    • getIdentityPoolName

      @Stability(Stable) @Nullable public String getIdentityPoolName()
      The name of your Amazon Cognito identity pool.
    • setIdentityPoolName

      @Stability(Stable) public void setIdentityPoolName(@Nullable String value)
      The name of your Amazon Cognito identity pool.
    • getOpenIdConnectProviderArns

      @Stability(Stable) @Nullable public List<String> getOpenIdConnectProviderArns()
      The Amazon Resource Names (ARNs) of the OpenID connect providers.
    • setOpenIdConnectProviderArns

      @Stability(Stable) public void setOpenIdConnectProviderArns(@Nullable List<String> value)
      The Amazon Resource Names (ARNs) of the OpenID connect providers.
    • getPushSync

      @Stability(Stable) @Nullable public Object getPushSync()
      The configuration options to be applied to the identity pool.
    • setPushSync

      @Stability(Stable) public void setPushSync(@Nullable IResolvable value)
      The configuration options to be applied to the identity pool.
    • setPushSync

      @Stability(Stable) public void setPushSync(@Nullable CfnIdentityPool.PushSyncProperty value)
      The configuration options to be applied to the identity pool.
    • getSamlProviderArns

      @Stability(Stable) @Nullable public List<String> getSamlProviderArns()
      The Amazon Resource Names (ARNs) of the Security Assertion Markup Language (SAML) providers.
    • setSamlProviderArns

      @Stability(Stable) public void setSamlProviderArns(@Nullable List<String> value)
      The Amazon Resource Names (ARNs) of the Security Assertion Markup Language (SAML) providers.
    • getSupportedLoginProviders

      @Stability(Stable) @Nullable public Object getSupportedLoginProviders()
      Key-value pairs that map provider names to provider app IDs.
    • setSupportedLoginProviders

      @Stability(Stable) public void setSupportedLoginProviders(@Nullable Object value)
      Key-value pairs that map provider names to provider app IDs.