AWS v6.73.0 published on Wednesday, Mar 19, 2025 by Pulumi
aws.cognito.getIdentityPool
Explore with Pulumi AI
Data source for managing an AWS Cognito Identity Pool.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.cognito.getIdentityPool({
    identityPoolName: "test pool",
});
import pulumi
import pulumi_aws as aws
example = aws.cognito.get_identity_pool(identity_pool_name="test pool")
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cognito"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cognito.LookupIdentityPool(ctx, &cognito.LookupIdentityPoolArgs{
			IdentityPoolName: "test pool",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var example = Aws.Cognito.GetIdentityPool.Invoke(new()
    {
        IdentityPoolName = "test pool",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.cognito.CognitoFunctions;
import com.pulumi.aws.cognito.inputs.GetIdentityPoolArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var example = CognitoFunctions.getIdentityPool(GetIdentityPoolArgs.builder()
            .identityPoolName("test pool")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: aws:cognito:getIdentityPool
      arguments:
        identityPoolName: test pool
Using getIdentityPool
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getIdentityPool(args: GetIdentityPoolArgs, opts?: InvokeOptions): Promise<GetIdentityPoolResult>
function getIdentityPoolOutput(args: GetIdentityPoolOutputArgs, opts?: InvokeOptions): Output<GetIdentityPoolResult>def get_identity_pool(identity_pool_name: Optional[str] = None,
                      tags: Optional[Mapping[str, str]] = None,
                      opts: Optional[InvokeOptions] = None) -> GetIdentityPoolResult
def get_identity_pool_output(identity_pool_name: Optional[pulumi.Input[str]] = None,
                      tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetIdentityPoolResult]func LookupIdentityPool(ctx *Context, args *LookupIdentityPoolArgs, opts ...InvokeOption) (*LookupIdentityPoolResult, error)
func LookupIdentityPoolOutput(ctx *Context, args *LookupIdentityPoolOutputArgs, opts ...InvokeOption) LookupIdentityPoolResultOutput> Note: This function is named LookupIdentityPool in the Go SDK.
public static class GetIdentityPool 
{
    public static Task<GetIdentityPoolResult> InvokeAsync(GetIdentityPoolArgs args, InvokeOptions? opts = null)
    public static Output<GetIdentityPoolResult> Invoke(GetIdentityPoolInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetIdentityPoolResult> getIdentityPool(GetIdentityPoolArgs args, InvokeOptions options)
public static Output<GetIdentityPoolResult> getIdentityPool(GetIdentityPoolArgs args, InvokeOptions options)
fn::invoke:
  function: aws:cognito/getIdentityPool:getIdentityPool
  arguments:
    # arguments dictionaryThe following arguments are supported:
- IdentityPool stringName 
- The Cognito Identity Pool name.
- Dictionary<string, string>
- A map of tags to assigned to the Identity Pool.
- IdentityPool stringName 
- The Cognito Identity Pool name.
- map[string]string
- A map of tags to assigned to the Identity Pool.
- identityPool StringName 
- The Cognito Identity Pool name.
- Map<String,String>
- A map of tags to assigned to the Identity Pool.
- identityPool stringName 
- The Cognito Identity Pool name.
- {[key: string]: string}
- A map of tags to assigned to the Identity Pool.
- identity_pool_ strname 
- The Cognito Identity Pool name.
- Mapping[str, str]
- A map of tags to assigned to the Identity Pool.
- identityPool StringName 
- The Cognito Identity Pool name.
- Map<String>
- A map of tags to assigned to the Identity Pool.
getIdentityPool Result
The following output properties are available:
- AllowClassic boolFlow 
- Whether the classic / basic authentication flow is enabled.
- AllowUnauthenticated boolIdentities 
- Whether the identity pool supports unauthenticated logins or not.
- Arn string
- ARN of the Pool.
- CognitoIdentity List<GetProviders Identity Pool Cognito Identity Provider> 
- An array of Amazon Cognito Identity user pools and their client IDs.
- DeveloperProvider stringName 
- The "domain" by which Cognito will refer to your users.
- Id string
- The provider-assigned unique ID for this managed resource.
- IdentityPool stringName 
- OpenidConnect List<string>Provider Arns 
- Set of OpendID Connect provider ARNs.
- SamlProvider List<string>Arns 
- An array of Amazon Resource Names (ARNs) of the SAML provider for your identity.
- SupportedLogin Dictionary<string, string>Providers 
- Key-Value pairs mapping provider names to provider app IDs.
- Dictionary<string, string>
- A map of tags to assigned to the Identity Pool.
- AllowClassic boolFlow 
- Whether the classic / basic authentication flow is enabled.
- AllowUnauthenticated boolIdentities 
- Whether the identity pool supports unauthenticated logins or not.
- Arn string
- ARN of the Pool.
- CognitoIdentity []GetProviders Identity Pool Cognito Identity Provider 
- An array of Amazon Cognito Identity user pools and their client IDs.
- DeveloperProvider stringName 
- The "domain" by which Cognito will refer to your users.
- Id string
- The provider-assigned unique ID for this managed resource.
- IdentityPool stringName 
- OpenidConnect []stringProvider Arns 
- Set of OpendID Connect provider ARNs.
- SamlProvider []stringArns 
- An array of Amazon Resource Names (ARNs) of the SAML provider for your identity.
- SupportedLogin map[string]stringProviders 
- Key-Value pairs mapping provider names to provider app IDs.
- map[string]string
- A map of tags to assigned to the Identity Pool.
- allowClassic BooleanFlow 
- Whether the classic / basic authentication flow is enabled.
- allowUnauthenticated BooleanIdentities 
- Whether the identity pool supports unauthenticated logins or not.
- arn String
- ARN of the Pool.
- cognitoIdentity List<GetProviders Identity Pool Cognito Identity Provider> 
- An array of Amazon Cognito Identity user pools and their client IDs.
- developerProvider StringName 
- The "domain" by which Cognito will refer to your users.
- id String
- The provider-assigned unique ID for this managed resource.
- identityPool StringName 
- openidConnect List<String>Provider Arns 
- Set of OpendID Connect provider ARNs.
- samlProvider List<String>Arns 
- An array of Amazon Resource Names (ARNs) of the SAML provider for your identity.
- supportedLogin Map<String,String>Providers 
- Key-Value pairs mapping provider names to provider app IDs.
- Map<String,String>
- A map of tags to assigned to the Identity Pool.
- allowClassic booleanFlow 
- Whether the classic / basic authentication flow is enabled.
- allowUnauthenticated booleanIdentities 
- Whether the identity pool supports unauthenticated logins or not.
- arn string
- ARN of the Pool.
- cognitoIdentity GetProviders Identity Pool Cognito Identity Provider[] 
- An array of Amazon Cognito Identity user pools and their client IDs.
- developerProvider stringName 
- The "domain" by which Cognito will refer to your users.
- id string
- The provider-assigned unique ID for this managed resource.
- identityPool stringName 
- openidConnect string[]Provider Arns 
- Set of OpendID Connect provider ARNs.
- samlProvider string[]Arns 
- An array of Amazon Resource Names (ARNs) of the SAML provider for your identity.
- supportedLogin {[key: string]: string}Providers 
- Key-Value pairs mapping provider names to provider app IDs.
- {[key: string]: string}
- A map of tags to assigned to the Identity Pool.
- allow_classic_ boolflow 
- Whether the classic / basic authentication flow is enabled.
- allow_unauthenticated_ boolidentities 
- Whether the identity pool supports unauthenticated logins or not.
- arn str
- ARN of the Pool.
- cognito_identity_ Sequence[Getproviders Identity Pool Cognito Identity Provider] 
- An array of Amazon Cognito Identity user pools and their client IDs.
- developer_provider_ strname 
- The "domain" by which Cognito will refer to your users.
- id str
- The provider-assigned unique ID for this managed resource.
- identity_pool_ strname 
- openid_connect_ Sequence[str]provider_ arns 
- Set of OpendID Connect provider ARNs.
- saml_provider_ Sequence[str]arns 
- An array of Amazon Resource Names (ARNs) of the SAML provider for your identity.
- supported_login_ Mapping[str, str]providers 
- Key-Value pairs mapping provider names to provider app IDs.
- Mapping[str, str]
- A map of tags to assigned to the Identity Pool.
- allowClassic BooleanFlow 
- Whether the classic / basic authentication flow is enabled.
- allowUnauthenticated BooleanIdentities 
- Whether the identity pool supports unauthenticated logins or not.
- arn String
- ARN of the Pool.
- cognitoIdentity List<Property Map>Providers 
- An array of Amazon Cognito Identity user pools and their client IDs.
- developerProvider StringName 
- The "domain" by which Cognito will refer to your users.
- id String
- The provider-assigned unique ID for this managed resource.
- identityPool StringName 
- openidConnect List<String>Provider Arns 
- Set of OpendID Connect provider ARNs.
- samlProvider List<String>Arns 
- An array of Amazon Resource Names (ARNs) of the SAML provider for your identity.
- supportedLogin Map<String>Providers 
- Key-Value pairs mapping provider names to provider app IDs.
- Map<String>
- A map of tags to assigned to the Identity Pool.
Supporting Types
GetIdentityPoolCognitoIdentityProvider     
- ClientId string
- ProviderName string
- ServerSide boolToken Check 
- ClientId string
- ProviderName string
- ServerSide boolToken Check 
- clientId String
- providerName String
- serverSide BooleanToken Check 
- clientId string
- providerName string
- serverSide booleanToken Check 
- client_id str
- provider_name str
- server_side_ booltoken_ check 
- clientId String
- providerName String
- serverSide BooleanToken Check 
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.