We recommend new projects start with resources from the AWS provider.
aws-native.cognito.IdentityPool
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::Cognito::IdentityPool
Create IdentityPool Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IdentityPool(name: string, args: IdentityPoolArgs, opts?: CustomResourceOptions);@overload
def IdentityPool(resource_name: str,
                 args: IdentityPoolArgs,
                 opts: Optional[ResourceOptions] = None)
@overload
def IdentityPool(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 allow_unauthenticated_identities: Optional[bool] = None,
                 allow_classic_flow: Optional[bool] = None,
                 cognito_events: Optional[Any] = None,
                 cognito_identity_providers: Optional[Sequence[IdentityPoolCognitoIdentityProviderArgs]] = None,
                 cognito_streams: Optional[IdentityPoolCognitoStreamsArgs] = None,
                 developer_provider_name: Optional[str] = None,
                 identity_pool_name: Optional[str] = None,
                 identity_pool_tags: Optional[Sequence[_root_inputs.TagArgs]] = None,
                 open_id_connect_provider_arns: Optional[Sequence[str]] = None,
                 push_sync: Optional[IdentityPoolPushSyncArgs] = None,
                 saml_provider_arns: Optional[Sequence[str]] = None,
                 supported_login_providers: Optional[Any] = None)func NewIdentityPool(ctx *Context, name string, args IdentityPoolArgs, opts ...ResourceOption) (*IdentityPool, error)public IdentityPool(string name, IdentityPoolArgs args, CustomResourceOptions? opts = null)
public IdentityPool(String name, IdentityPoolArgs args)
public IdentityPool(String name, IdentityPoolArgs args, CustomResourceOptions options)
type: aws-native:cognito:IdentityPool
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args IdentityPoolArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args IdentityPoolArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args IdentityPoolArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IdentityPoolArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IdentityPoolArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
IdentityPool Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The IdentityPool resource accepts the following input properties:
- AllowUnauthenticated boolIdentities 
- Specifies whether the identity pool supports unauthenticated logins.
- AllowClassic boolFlow 
- Enables the Basic (Classic) authentication flow.
- CognitoEvents object
- The events to configure. - Search the CloudFormation User Guide for - AWS::Cognito::IdentityPoolfor more information about the expected schema for this property.
- CognitoIdentity List<Pulumi.Providers Aws Native. Cognito. Inputs. Identity Pool Cognito Identity Provider> 
- The Amazon Cognito user pools and their client IDs.
- CognitoStreams Pulumi.Aws Native. Cognito. Inputs. Identity Pool Cognito Streams 
- Configuration options for configuring Amazon Cognito streams.
- DeveloperProvider stringName 
- 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 
- IdentityPool stringName 
- The name of your Amazon Cognito identity pool. - Minimum length : 1 - Maximum length : 128 - Pattern : - [\w\s+=,.@-]+
- 
List<Pulumi.Aws Native. Inputs. Tag> 
- An array of key-value pairs to apply to this resource.
- OpenId List<string>Connect Provider Arns 
- The Amazon Resource Names (ARNs) of the OpenID connect providers.
- PushSync Pulumi.Aws Native. Cognito. Inputs. Identity Pool Push Sync 
- The configuration options to be applied to the identity pool.
- SamlProvider List<string>Arns 
- The Amazon Resource Names (ARNs) of the Security Assertion Markup Language (SAML) providers.
- SupportedLogin objectProviders 
- Key-value pairs that map provider names to provider app IDs. - Search the CloudFormation User Guide for - AWS::Cognito::IdentityPoolfor more information about the expected schema for this property.
- AllowUnauthenticated boolIdentities 
- Specifies whether the identity pool supports unauthenticated logins.
- AllowClassic boolFlow 
- Enables the Basic (Classic) authentication flow.
- CognitoEvents interface{}
- The events to configure. - Search the CloudFormation User Guide for - AWS::Cognito::IdentityPoolfor more information about the expected schema for this property.
- CognitoIdentity []IdentityProviders Pool Cognito Identity Provider Args 
- The Amazon Cognito user pools and their client IDs.
- CognitoStreams IdentityPool Cognito Streams Args 
- Configuration options for configuring Amazon Cognito streams.
- DeveloperProvider stringName 
- 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 
- IdentityPool stringName 
- The name of your Amazon Cognito identity pool. - Minimum length : 1 - Maximum length : 128 - Pattern : - [\w\s+=,.@-]+
- 
TagArgs 
- An array of key-value pairs to apply to this resource.
- OpenId []stringConnect Provider Arns 
- The Amazon Resource Names (ARNs) of the OpenID connect providers.
- PushSync IdentityPool Push Sync Args 
- The configuration options to be applied to the identity pool.
- SamlProvider []stringArns 
- The Amazon Resource Names (ARNs) of the Security Assertion Markup Language (SAML) providers.
- SupportedLogin interface{}Providers 
- Key-value pairs that map provider names to provider app IDs. - Search the CloudFormation User Guide for - AWS::Cognito::IdentityPoolfor more information about the expected schema for this property.
- allowUnauthenticated BooleanIdentities 
- Specifies whether the identity pool supports unauthenticated logins.
- allowClassic BooleanFlow 
- Enables the Basic (Classic) authentication flow.
- cognitoEvents Object
- The events to configure. - Search the CloudFormation User Guide for - AWS::Cognito::IdentityPoolfor more information about the expected schema for this property.
- cognitoIdentity List<IdentityProviders Pool Cognito Identity Provider> 
- The Amazon Cognito user pools and their client IDs.
- cognitoStreams IdentityPool Cognito Streams 
- Configuration options for configuring Amazon Cognito streams.
- developerProvider StringName 
- 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 
- identityPool StringName 
- The name of your Amazon Cognito identity pool. - Minimum length : 1 - Maximum length : 128 - Pattern : - [\w\s+=,.@-]+
- List<Tag>
- An array of key-value pairs to apply to this resource.
- openId List<String>Connect Provider Arns 
- The Amazon Resource Names (ARNs) of the OpenID connect providers.
- pushSync IdentityPool Push Sync 
- The configuration options to be applied to the identity pool.
- samlProvider List<String>Arns 
- The Amazon Resource Names (ARNs) of the Security Assertion Markup Language (SAML) providers.
- supportedLogin ObjectProviders 
- Key-value pairs that map provider names to provider app IDs. - Search the CloudFormation User Guide for - AWS::Cognito::IdentityPoolfor more information about the expected schema for this property.
- allowUnauthenticated booleanIdentities 
- Specifies whether the identity pool supports unauthenticated logins.
- allowClassic booleanFlow 
- Enables the Basic (Classic) authentication flow.
- cognitoEvents any
- The events to configure. - Search the CloudFormation User Guide for - AWS::Cognito::IdentityPoolfor more information about the expected schema for this property.
- cognitoIdentity IdentityProviders Pool Cognito Identity Provider[] 
- The Amazon Cognito user pools and their client IDs.
- cognitoStreams IdentityPool Cognito Streams 
- Configuration options for configuring Amazon Cognito streams.
- developerProvider stringName 
- 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 
- identityPool stringName 
- The name of your Amazon Cognito identity pool. - Minimum length : 1 - Maximum length : 128 - Pattern : - [\w\s+=,.@-]+
- Tag[]
- An array of key-value pairs to apply to this resource.
- openId string[]Connect Provider Arns 
- The Amazon Resource Names (ARNs) of the OpenID connect providers.
- pushSync IdentityPool Push Sync 
- The configuration options to be applied to the identity pool.
- samlProvider string[]Arns 
- The Amazon Resource Names (ARNs) of the Security Assertion Markup Language (SAML) providers.
- supportedLogin anyProviders 
- Key-value pairs that map provider names to provider app IDs. - Search the CloudFormation User Guide for - AWS::Cognito::IdentityPoolfor more information about the expected schema for this property.
- allow_unauthenticated_ boolidentities 
- Specifies whether the identity pool supports unauthenticated logins.
- allow_classic_ boolflow 
- Enables the Basic (Classic) authentication flow.
- cognito_events Any
- The events to configure. - Search the CloudFormation User Guide for - AWS::Cognito::IdentityPoolfor more information about the expected schema for this property.
- cognito_identity_ Sequence[Identityproviders Pool Cognito Identity Provider Args] 
- The Amazon Cognito user pools and their client IDs.
- cognito_streams IdentityPool Cognito Streams Args 
- Configuration options for configuring Amazon Cognito streams.
- developer_provider_ strname 
- 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 
- identity_pool_ strname 
- The name of your Amazon Cognito identity pool. - Minimum length : 1 - Maximum length : 128 - Pattern : - [\w\s+=,.@-]+
- 
Sequence[TagArgs] 
- An array of key-value pairs to apply to this resource.
- open_id_ Sequence[str]connect_ provider_ arns 
- The Amazon Resource Names (ARNs) of the OpenID connect providers.
- push_sync IdentityPool Push Sync Args 
- The configuration options to be applied to the identity pool.
- saml_provider_ Sequence[str]arns 
- The Amazon Resource Names (ARNs) of the Security Assertion Markup Language (SAML) providers.
- supported_login_ Anyproviders 
- Key-value pairs that map provider names to provider app IDs. - Search the CloudFormation User Guide for - AWS::Cognito::IdentityPoolfor more information about the expected schema for this property.
- allowUnauthenticated BooleanIdentities 
- Specifies whether the identity pool supports unauthenticated logins.
- allowClassic BooleanFlow 
- Enables the Basic (Classic) authentication flow.
- cognitoEvents Any
- The events to configure. - Search the CloudFormation User Guide for - AWS::Cognito::IdentityPoolfor more information about the expected schema for this property.
- cognitoIdentity List<Property Map>Providers 
- The Amazon Cognito user pools and their client IDs.
- cognitoStreams Property Map
- Configuration options for configuring Amazon Cognito streams.
- developerProvider StringName 
- 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 
- identityPool StringName 
- The name of your Amazon Cognito identity pool. - Minimum length : 1 - Maximum length : 128 - Pattern : - [\w\s+=,.@-]+
- List<Property Map>
- An array of key-value pairs to apply to this resource.
- openId List<String>Connect Provider Arns 
- The Amazon Resource Names (ARNs) of the OpenID connect providers.
- pushSync Property Map
- The configuration options to be applied to the identity pool.
- samlProvider List<String>Arns 
- The Amazon Resource Names (ARNs) of the Security Assertion Markup Language (SAML) providers.
- supportedLogin AnyProviders 
- Key-value pairs that map provider names to provider app IDs. - Search the CloudFormation User Guide for - AWS::Cognito::IdentityPoolfor more information about the expected schema for this property.
Outputs
All input properties are implicitly available as output properties. Additionally, the IdentityPool resource produces the following output properties:
Supporting Types
IdentityPoolCognitoIdentityProvider, IdentityPoolCognitoIdentityProviderArgs          
- ClientId string
- The client ID for the Amazon Cognito user pool.
- ProviderName string
- The provider name for an Amazon Cognito user pool. For example: cognito-idp.us-east-2.amazonaws.com/us-east-2_123456789.
- ServerSide boolToken Check 
- TRUE if server-side token validation is enabled for the identity provider’s token. - After you set the - ServerSideTokenCheckto TRUE for an identity pool, that identity pool checks with the integrated user pools to make sure the user has not been globally signed out or deleted before the identity pool provides an OIDC token or AWS credentials for the user.- If the user is signed out or deleted, the identity pool returns a 400 Not Authorized error. 
- ClientId string
- The client ID for the Amazon Cognito user pool.
- ProviderName string
- The provider name for an Amazon Cognito user pool. For example: cognito-idp.us-east-2.amazonaws.com/us-east-2_123456789.
- ServerSide boolToken Check 
- TRUE if server-side token validation is enabled for the identity provider’s token. - After you set the - ServerSideTokenCheckto TRUE for an identity pool, that identity pool checks with the integrated user pools to make sure the user has not been globally signed out or deleted before the identity pool provides an OIDC token or AWS credentials for the user.- If the user is signed out or deleted, the identity pool returns a 400 Not Authorized error. 
- clientId String
- The client ID for the Amazon Cognito user pool.
- providerName String
- The provider name for an Amazon Cognito user pool. For example: cognito-idp.us-east-2.amazonaws.com/us-east-2_123456789.
- serverSide BooleanToken Check 
- TRUE if server-side token validation is enabled for the identity provider’s token. - After you set the - ServerSideTokenCheckto TRUE for an identity pool, that identity pool checks with the integrated user pools to make sure the user has not been globally signed out or deleted before the identity pool provides an OIDC token or AWS credentials for the user.- If the user is signed out or deleted, the identity pool returns a 400 Not Authorized error. 
- clientId string
- The client ID for the Amazon Cognito user pool.
- providerName string
- The provider name for an Amazon Cognito user pool. For example: cognito-idp.us-east-2.amazonaws.com/us-east-2_123456789.
- serverSide booleanToken Check 
- TRUE if server-side token validation is enabled for the identity provider’s token. - After you set the - ServerSideTokenCheckto TRUE for an identity pool, that identity pool checks with the integrated user pools to make sure the user has not been globally signed out or deleted before the identity pool provides an OIDC token or AWS credentials for the user.- If the user is signed out or deleted, the identity pool returns a 400 Not Authorized error. 
- client_id str
- The client ID for the Amazon Cognito user pool.
- provider_name str
- The provider name for an Amazon Cognito user pool. For example: cognito-idp.us-east-2.amazonaws.com/us-east-2_123456789.
- server_side_ booltoken_ check 
- TRUE if server-side token validation is enabled for the identity provider’s token. - After you set the - ServerSideTokenCheckto TRUE for an identity pool, that identity pool checks with the integrated user pools to make sure the user has not been globally signed out or deleted before the identity pool provides an OIDC token or AWS credentials for the user.- If the user is signed out or deleted, the identity pool returns a 400 Not Authorized error. 
- clientId String
- The client ID for the Amazon Cognito user pool.
- providerName String
- The provider name for an Amazon Cognito user pool. For example: cognito-idp.us-east-2.amazonaws.com/us-east-2_123456789.
- serverSide BooleanToken Check 
- TRUE if server-side token validation is enabled for the identity provider’s token. - After you set the - ServerSideTokenCheckto TRUE for an identity pool, that identity pool checks with the integrated user pools to make sure the user has not been globally signed out or deleted before the identity pool provides an OIDC token or AWS credentials for the user.- If the user is signed out or deleted, the identity pool returns a 400 Not Authorized error. 
IdentityPoolCognitoStreams, IdentityPoolCognitoStreamsArgs        
- RoleArn string
- The Amazon Resource Name (ARN) of the role Amazon Cognito can assume to publish to the stream. This role must grant access to Amazon Cognito (cognito-sync) to invoke PutRecordon your Amazon Cognito stream.
- StreamName string
- The name of the Amazon Cognito stream to receive updates. This stream must be in the developer's account and in the same Region as the identity pool.
- StreamingStatus string
- Status of the Amazon Cognito streams. Valid values are: ENABLEDorDISABLED.
- RoleArn string
- The Amazon Resource Name (ARN) of the role Amazon Cognito can assume to publish to the stream. This role must grant access to Amazon Cognito (cognito-sync) to invoke PutRecordon your Amazon Cognito stream.
- StreamName string
- The name of the Amazon Cognito stream to receive updates. This stream must be in the developer's account and in the same Region as the identity pool.
- StreamingStatus string
- Status of the Amazon Cognito streams. Valid values are: ENABLEDorDISABLED.
- roleArn String
- The Amazon Resource Name (ARN) of the role Amazon Cognito can assume to publish to the stream. This role must grant access to Amazon Cognito (cognito-sync) to invoke PutRecordon your Amazon Cognito stream.
- streamName String
- The name of the Amazon Cognito stream to receive updates. This stream must be in the developer's account and in the same Region as the identity pool.
- streamingStatus String
- Status of the Amazon Cognito streams. Valid values are: ENABLEDorDISABLED.
- roleArn string
- The Amazon Resource Name (ARN) of the role Amazon Cognito can assume to publish to the stream. This role must grant access to Amazon Cognito (cognito-sync) to invoke PutRecordon your Amazon Cognito stream.
- streamName string
- The name of the Amazon Cognito stream to receive updates. This stream must be in the developer's account and in the same Region as the identity pool.
- streamingStatus string
- Status of the Amazon Cognito streams. Valid values are: ENABLEDorDISABLED.
- role_arn str
- The Amazon Resource Name (ARN) of the role Amazon Cognito can assume to publish to the stream. This role must grant access to Amazon Cognito (cognito-sync) to invoke PutRecordon your Amazon Cognito stream.
- stream_name str
- The name of the Amazon Cognito stream to receive updates. This stream must be in the developer's account and in the same Region as the identity pool.
- streaming_status str
- Status of the Amazon Cognito streams. Valid values are: ENABLEDorDISABLED.
- roleArn String
- The Amazon Resource Name (ARN) of the role Amazon Cognito can assume to publish to the stream. This role must grant access to Amazon Cognito (cognito-sync) to invoke PutRecordon your Amazon Cognito stream.
- streamName String
- The name of the Amazon Cognito stream to receive updates. This stream must be in the developer's account and in the same Region as the identity pool.
- streamingStatus String
- Status of the Amazon Cognito streams. Valid values are: ENABLEDorDISABLED.
IdentityPoolPushSync, IdentityPoolPushSyncArgs        
- ApplicationArns List<string>
- The ARNs of the Amazon SNS platform applications that could be used by clients.
- RoleArn string
- An IAM role configured to allow Amazon Cognito to call Amazon SNS on behalf of the developer.
- ApplicationArns []string
- The ARNs of the Amazon SNS platform applications that could be used by clients.
- RoleArn string
- An IAM role configured to allow Amazon Cognito to call Amazon SNS on behalf of the developer.
- applicationArns List<String>
- The ARNs of the Amazon SNS platform applications that could be used by clients.
- roleArn String
- An IAM role configured to allow Amazon Cognito to call Amazon SNS on behalf of the developer.
- applicationArns string[]
- The ARNs of the Amazon SNS platform applications that could be used by clients.
- roleArn string
- An IAM role configured to allow Amazon Cognito to call Amazon SNS on behalf of the developer.
- application_arns Sequence[str]
- The ARNs of the Amazon SNS platform applications that could be used by clients.
- role_arn str
- An IAM role configured to allow Amazon Cognito to call Amazon SNS on behalf of the developer.
- applicationArns List<String>
- The ARNs of the Amazon SNS platform applications that could be used by clients.
- roleArn String
- An IAM role configured to allow Amazon Cognito to call Amazon SNS on behalf of the developer.
Tag, TagArgs  
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.