1. Packages
  2. AWS
  3. API Docs
  4. cognito
  5. IdentityPool
AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi

aws.cognito.IdentityPool

Explore with Pulumi AI

aws logo
AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi

    Provides an AWS Cognito Identity Pool.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    import * as std from "@pulumi/std";
    
    const _default = new aws.iam.SamlProvider("default", {
        name: "my-saml-provider",
        samlMetadataDocument: std.file({
            input: "saml-metadata.xml",
        }).then(invoke => invoke.result),
    });
    const main = new aws.cognito.IdentityPool("main", {
        identityPoolName: "identity pool",
        allowUnauthenticatedIdentities: false,
        allowClassicFlow: false,
        cognitoIdentityProviders: [
            {
                clientId: "6lhlkkfbfb4q5kpp90urffae",
                providerName: "cognito-idp.us-east-1.amazonaws.com/us-east-1_Tv0493apJ",
                serverSideTokenCheck: false,
            },
            {
                clientId: "7kodkvfqfb4qfkp39eurffae",
                providerName: "cognito-idp.us-east-1.amazonaws.com/eu-west-1_Zr231apJu",
                serverSideTokenCheck: false,
            },
        ],
        supportedLoginProviders: {
            "graph.facebook.com": "7346241598935552",
            "accounts.google.com": "123456789012.apps.googleusercontent.com",
        },
        samlProviderArns: [_default.arn],
        openidConnectProviderArns: ["arn:aws:iam::123456789012:oidc-provider/id.example.com"],
    });
    
    import pulumi
    import pulumi_aws as aws
    import pulumi_std as std
    
    default = aws.iam.SamlProvider("default",
        name="my-saml-provider",
        saml_metadata_document=std.file(input="saml-metadata.xml").result)
    main = aws.cognito.IdentityPool("main",
        identity_pool_name="identity pool",
        allow_unauthenticated_identities=False,
        allow_classic_flow=False,
        cognito_identity_providers=[
            {
                "client_id": "6lhlkkfbfb4q5kpp90urffae",
                "provider_name": "cognito-idp.us-east-1.amazonaws.com/us-east-1_Tv0493apJ",
                "server_side_token_check": False,
            },
            {
                "client_id": "7kodkvfqfb4qfkp39eurffae",
                "provider_name": "cognito-idp.us-east-1.amazonaws.com/eu-west-1_Zr231apJu",
                "server_side_token_check": False,
            },
        ],
        supported_login_providers={
            "graph.facebook.com": "7346241598935552",
            "accounts.google.com": "123456789012.apps.googleusercontent.com",
        },
        saml_provider_arns=[default.arn],
        openid_connect_provider_arns=["arn:aws:iam::123456789012:oidc-provider/id.example.com"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cognito"
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/iam"
    	"github.com/pulumi/pulumi-std/sdk/go/std"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		invokeFile, err := std.File(ctx, &std.FileArgs{
    			Input: "saml-metadata.xml",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = iam.NewSamlProvider(ctx, "default", &iam.SamlProviderArgs{
    			Name:                 pulumi.String("my-saml-provider"),
    			SamlMetadataDocument: pulumi.String(invokeFile.Result),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cognito.NewIdentityPool(ctx, "main", &cognito.IdentityPoolArgs{
    			IdentityPoolName:               pulumi.String("identity pool"),
    			AllowUnauthenticatedIdentities: pulumi.Bool(false),
    			AllowClassicFlow:               pulumi.Bool(false),
    			CognitoIdentityProviders: cognito.IdentityPoolCognitoIdentityProviderArray{
    				&cognito.IdentityPoolCognitoIdentityProviderArgs{
    					ClientId:             pulumi.String("6lhlkkfbfb4q5kpp90urffae"),
    					ProviderName:         pulumi.String("cognito-idp.us-east-1.amazonaws.com/us-east-1_Tv0493apJ"),
    					ServerSideTokenCheck: pulumi.Bool(false),
    				},
    				&cognito.IdentityPoolCognitoIdentityProviderArgs{
    					ClientId:             pulumi.String("7kodkvfqfb4qfkp39eurffae"),
    					ProviderName:         pulumi.String("cognito-idp.us-east-1.amazonaws.com/eu-west-1_Zr231apJu"),
    					ServerSideTokenCheck: pulumi.Bool(false),
    				},
    			},
    			SupportedLoginProviders: pulumi.StringMap{
    				"graph.facebook.com":  pulumi.String("7346241598935552"),
    				"accounts.google.com": pulumi.String("123456789012.apps.googleusercontent.com"),
    			},
    			SamlProviderArns: pulumi.StringArray{
    				_default.Arn,
    			},
    			OpenidConnectProviderArns: pulumi.StringArray{
    				pulumi.String("arn:aws:iam::123456789012:oidc-provider/id.example.com"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    using Std = Pulumi.Std;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new Aws.Iam.SamlProvider("default", new()
        {
            Name = "my-saml-provider",
            SamlMetadataDocument = Std.File.Invoke(new()
            {
                Input = "saml-metadata.xml",
            }).Apply(invoke => invoke.Result),
        });
    
        var main = new Aws.Cognito.IdentityPool("main", new()
        {
            IdentityPoolName = "identity pool",
            AllowUnauthenticatedIdentities = false,
            AllowClassicFlow = false,
            CognitoIdentityProviders = new[]
            {
                new Aws.Cognito.Inputs.IdentityPoolCognitoIdentityProviderArgs
                {
                    ClientId = "6lhlkkfbfb4q5kpp90urffae",
                    ProviderName = "cognito-idp.us-east-1.amazonaws.com/us-east-1_Tv0493apJ",
                    ServerSideTokenCheck = false,
                },
                new Aws.Cognito.Inputs.IdentityPoolCognitoIdentityProviderArgs
                {
                    ClientId = "7kodkvfqfb4qfkp39eurffae",
                    ProviderName = "cognito-idp.us-east-1.amazonaws.com/eu-west-1_Zr231apJu",
                    ServerSideTokenCheck = false,
                },
            },
            SupportedLoginProviders = 
            {
                { "graph.facebook.com", "7346241598935552" },
                { "accounts.google.com", "123456789012.apps.googleusercontent.com" },
            },
            SamlProviderArns = new[]
            {
                @default.Arn,
            },
            OpenidConnectProviderArns = new[]
            {
                "arn:aws:iam::123456789012:oidc-provider/id.example.com",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.iam.SamlProvider;
    import com.pulumi.aws.iam.SamlProviderArgs;
    import com.pulumi.aws.cognito.IdentityPool;
    import com.pulumi.aws.cognito.IdentityPoolArgs;
    import com.pulumi.aws.cognito.inputs.IdentityPoolCognitoIdentityProviderArgs;
    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) {
            var default_ = new SamlProvider("default", SamlProviderArgs.builder()
                .name("my-saml-provider")
                .samlMetadataDocument(StdFunctions.file(FileArgs.builder()
                    .input("saml-metadata.xml")
                    .build()).result())
                .build());
    
            var main = new IdentityPool("main", IdentityPoolArgs.builder()
                .identityPoolName("identity pool")
                .allowUnauthenticatedIdentities(false)
                .allowClassicFlow(false)
                .cognitoIdentityProviders(            
                    IdentityPoolCognitoIdentityProviderArgs.builder()
                        .clientId("6lhlkkfbfb4q5kpp90urffae")
                        .providerName("cognito-idp.us-east-1.amazonaws.com/us-east-1_Tv0493apJ")
                        .serverSideTokenCheck(false)
                        .build(),
                    IdentityPoolCognitoIdentityProviderArgs.builder()
                        .clientId("7kodkvfqfb4qfkp39eurffae")
                        .providerName("cognito-idp.us-east-1.amazonaws.com/eu-west-1_Zr231apJu")
                        .serverSideTokenCheck(false)
                        .build())
                .supportedLoginProviders(Map.ofEntries(
                    Map.entry("graph.facebook.com", "7346241598935552"),
                    Map.entry("accounts.google.com", "123456789012.apps.googleusercontent.com")
                ))
                .samlProviderArns(default_.arn())
                .openidConnectProviderArns("arn:aws:iam::123456789012:oidc-provider/id.example.com")
                .build());
    
        }
    }
    
    resources:
      default:
        type: aws:iam:SamlProvider
        properties:
          name: my-saml-provider
          samlMetadataDocument:
            fn::invoke:
              Function: std:file
              Arguments:
                input: saml-metadata.xml
              Return: result
      main:
        type: aws:cognito:IdentityPool
        properties:
          identityPoolName: identity pool
          allowUnauthenticatedIdentities: false
          allowClassicFlow: false
          cognitoIdentityProviders:
            - clientId: 6lhlkkfbfb4q5kpp90urffae
              providerName: cognito-idp.us-east-1.amazonaws.com/us-east-1_Tv0493apJ
              serverSideTokenCheck: false
            - clientId: 7kodkvfqfb4qfkp39eurffae
              providerName: cognito-idp.us-east-1.amazonaws.com/eu-west-1_Zr231apJu
              serverSideTokenCheck: false
          supportedLoginProviders:
            graph.facebook.com: '7346241598935552'
            accounts.google.com: 123456789012.apps.googleusercontent.com
          samlProviderArns:
            - ${default.arn}
          openidConnectProviderArns:
            - arn:aws:iam::123456789012:oidc-provider/id.example.com
    

    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,
                     identity_pool_name: Optional[str] = None,
                     allow_classic_flow: Optional[bool] = None,
                     allow_unauthenticated_identities: Optional[bool] = None,
                     cognito_identity_providers: Optional[Sequence[IdentityPoolCognitoIdentityProviderArgs]] = None,
                     developer_provider_name: Optional[str] = None,
                     openid_connect_provider_arns: Optional[Sequence[str]] = None,
                     saml_provider_arns: Optional[Sequence[str]] = None,
                     supported_login_providers: Optional[Mapping[str, str]] = None,
                     tags: Optional[Mapping[str, str]] = 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: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.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var identityPoolResource = new Aws.Cognito.IdentityPool("identityPoolResource", new()
    {
        IdentityPoolName = "string",
        AllowClassicFlow = false,
        AllowUnauthenticatedIdentities = false,
        CognitoIdentityProviders = new[]
        {
            new Aws.Cognito.Inputs.IdentityPoolCognitoIdentityProviderArgs
            {
                ClientId = "string",
                ProviderName = "string",
                ServerSideTokenCheck = false,
            },
        },
        DeveloperProviderName = "string",
        OpenidConnectProviderArns = new[]
        {
            "string",
        },
        SamlProviderArns = new[]
        {
            "string",
        },
        SupportedLoginProviders = 
        {
            { "string", "string" },
        },
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := cognito.NewIdentityPool(ctx, "identityPoolResource", &cognito.IdentityPoolArgs{
    	IdentityPoolName:               pulumi.String("string"),
    	AllowClassicFlow:               pulumi.Bool(false),
    	AllowUnauthenticatedIdentities: pulumi.Bool(false),
    	CognitoIdentityProviders: cognito.IdentityPoolCognitoIdentityProviderArray{
    		&cognito.IdentityPoolCognitoIdentityProviderArgs{
    			ClientId:             pulumi.String("string"),
    			ProviderName:         pulumi.String("string"),
    			ServerSideTokenCheck: pulumi.Bool(false),
    		},
    	},
    	DeveloperProviderName: pulumi.String("string"),
    	OpenidConnectProviderArns: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	SamlProviderArns: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	SupportedLoginProviders: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var identityPoolResource = new IdentityPool("identityPoolResource", IdentityPoolArgs.builder()
        .identityPoolName("string")
        .allowClassicFlow(false)
        .allowUnauthenticatedIdentities(false)
        .cognitoIdentityProviders(IdentityPoolCognitoIdentityProviderArgs.builder()
            .clientId("string")
            .providerName("string")
            .serverSideTokenCheck(false)
            .build())
        .developerProviderName("string")
        .openidConnectProviderArns("string")
        .samlProviderArns("string")
        .supportedLoginProviders(Map.of("string", "string"))
        .tags(Map.of("string", "string"))
        .build());
    
    identity_pool_resource = aws.cognito.IdentityPool("identityPoolResource",
        identity_pool_name="string",
        allow_classic_flow=False,
        allow_unauthenticated_identities=False,
        cognito_identity_providers=[{
            "clientId": "string",
            "providerName": "string",
            "serverSideTokenCheck": False,
        }],
        developer_provider_name="string",
        openid_connect_provider_arns=["string"],
        saml_provider_arns=["string"],
        supported_login_providers={
            "string": "string",
        },
        tags={
            "string": "string",
        })
    
    const identityPoolResource = new aws.cognito.IdentityPool("identityPoolResource", {
        identityPoolName: "string",
        allowClassicFlow: false,
        allowUnauthenticatedIdentities: false,
        cognitoIdentityProviders: [{
            clientId: "string",
            providerName: "string",
            serverSideTokenCheck: false,
        }],
        developerProviderName: "string",
        openidConnectProviderArns: ["string"],
        samlProviderArns: ["string"],
        supportedLoginProviders: {
            string: "string",
        },
        tags: {
            string: "string",
        },
    });
    
    type: aws:cognito:IdentityPool
    properties:
        allowClassicFlow: false
        allowUnauthenticatedIdentities: false
        cognitoIdentityProviders:
            - clientId: string
              providerName: string
              serverSideTokenCheck: false
        developerProviderName: string
        identityPoolName: string
        openidConnectProviderArns:
            - string
        samlProviderArns:
            - string
        supportedLoginProviders:
            string: string
        tags:
            string: string
    

    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

    The IdentityPool resource accepts the following input properties:

    IdentityPoolName string
    The Cognito Identity Pool name.
    AllowClassicFlow bool
    Enables or disables the classic / basic authentication flow. Default is false.
    AllowUnauthenticatedIdentities bool
    Whether the identity pool supports unauthenticated logins or not.
    CognitoIdentityProviders List<IdentityPoolCognitoIdentityProvider>
    An array of Amazon Cognito Identity user pools and their client IDs.
    DeveloperProviderName string
    The "domain" by which Cognito will refer to your users. This name acts as a placeholder that allows your backend and the Cognito service to communicate about the developer provider.
    OpenidConnectProviderArns List<string>
    Set of OpendID Connect provider ARNs.
    SamlProviderArns List<string>
    An array of Amazon Resource Names (ARNs) of the SAML provider for your identity.
    SupportedLoginProviders Dictionary<string, string>
    Key-Value pairs mapping provider names to provider app IDs.
    Tags Dictionary<string, string>
    A map of tags to assign to the Identity Pool. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    IdentityPoolName string
    The Cognito Identity Pool name.
    AllowClassicFlow bool
    Enables or disables the classic / basic authentication flow. Default is false.
    AllowUnauthenticatedIdentities bool
    Whether the identity pool supports unauthenticated logins or not.
    CognitoIdentityProviders []IdentityPoolCognitoIdentityProviderArgs
    An array of Amazon Cognito Identity user pools and their client IDs.
    DeveloperProviderName string
    The "domain" by which Cognito will refer to your users. This name acts as a placeholder that allows your backend and the Cognito service to communicate about the developer provider.
    OpenidConnectProviderArns []string
    Set of OpendID Connect provider ARNs.
    SamlProviderArns []string
    An array of Amazon Resource Names (ARNs) of the SAML provider for your identity.
    SupportedLoginProviders map[string]string
    Key-Value pairs mapping provider names to provider app IDs.
    Tags map[string]string
    A map of tags to assign to the Identity Pool. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    identityPoolName String
    The Cognito Identity Pool name.
    allowClassicFlow Boolean
    Enables or disables the classic / basic authentication flow. Default is false.
    allowUnauthenticatedIdentities Boolean
    Whether the identity pool supports unauthenticated logins or not.
    cognitoIdentityProviders List<IdentityPoolCognitoIdentityProvider>
    An array of Amazon Cognito Identity user pools and their client IDs.
    developerProviderName String
    The "domain" by which Cognito will refer to your users. This name acts as a placeholder that allows your backend and the Cognito service to communicate about the developer provider.
    openidConnectProviderArns List<String>
    Set of OpendID Connect provider ARNs.
    samlProviderArns List<String>
    An array of Amazon Resource Names (ARNs) of the SAML provider for your identity.
    supportedLoginProviders Map<String,String>
    Key-Value pairs mapping provider names to provider app IDs.
    tags Map<String,String>
    A map of tags to assign to the Identity Pool. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    identityPoolName string
    The Cognito Identity Pool name.
    allowClassicFlow boolean
    Enables or disables the classic / basic authentication flow. Default is false.
    allowUnauthenticatedIdentities boolean
    Whether the identity pool supports unauthenticated logins or not.
    cognitoIdentityProviders IdentityPoolCognitoIdentityProvider[]
    An array of Amazon Cognito Identity user pools and their client IDs.
    developerProviderName string
    The "domain" by which Cognito will refer to your users. This name acts as a placeholder that allows your backend and the Cognito service to communicate about the developer provider.
    openidConnectProviderArns string[]
    Set of OpendID Connect provider ARNs.
    samlProviderArns string[]
    An array of Amazon Resource Names (ARNs) of the SAML provider for your identity.
    supportedLoginProviders {[key: string]: string}
    Key-Value pairs mapping provider names to provider app IDs.
    tags {[key: string]: string}
    A map of tags to assign to the Identity Pool. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    identity_pool_name str
    The Cognito Identity Pool name.
    allow_classic_flow bool
    Enables or disables the classic / basic authentication flow. Default is false.
    allow_unauthenticated_identities bool
    Whether the identity pool supports unauthenticated logins or not.
    cognito_identity_providers Sequence[IdentityPoolCognitoIdentityProviderArgs]
    An array of Amazon Cognito Identity user pools and their client IDs.
    developer_provider_name str
    The "domain" by which Cognito will refer to your users. This name acts as a placeholder that allows your backend and the Cognito service to communicate about the developer provider.
    openid_connect_provider_arns Sequence[str]
    Set of OpendID Connect provider ARNs.
    saml_provider_arns Sequence[str]
    An array of Amazon Resource Names (ARNs) of the SAML provider for your identity.
    supported_login_providers Mapping[str, str]
    Key-Value pairs mapping provider names to provider app IDs.
    tags Mapping[str, str]
    A map of tags to assign to the Identity Pool. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    identityPoolName String
    The Cognito Identity Pool name.
    allowClassicFlow Boolean
    Enables or disables the classic / basic authentication flow. Default is false.
    allowUnauthenticatedIdentities Boolean
    Whether the identity pool supports unauthenticated logins or not.
    cognitoIdentityProviders List<Property Map>
    An array of Amazon Cognito Identity user pools and their client IDs.
    developerProviderName String
    The "domain" by which Cognito will refer to your users. This name acts as a placeholder that allows your backend and the Cognito service to communicate about the developer provider.
    openidConnectProviderArns List<String>
    Set of OpendID Connect provider ARNs.
    samlProviderArns List<String>
    An array of Amazon Resource Names (ARNs) of the SAML provider for your identity.
    supportedLoginProviders Map<String>
    Key-Value pairs mapping provider names to provider app IDs.
    tags Map<String>
    A map of tags to assign to the Identity Pool. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the IdentityPool resource produces the following output properties:

    Arn string
    The ARN of the identity pool.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Arn string
    The ARN of the identity pool.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    The ARN of the identity pool.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn string
    The ARN of the identity pool.
    id string
    The provider-assigned unique ID for this managed resource.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn str
    The ARN of the identity pool.
    id str
    The provider-assigned unique ID for this managed resource.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    arn String
    The ARN of the identity pool.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Look up Existing IdentityPool Resource

    Get an existing IdentityPool resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: IdentityPoolState, opts?: CustomResourceOptions): IdentityPool
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            allow_classic_flow: Optional[bool] = None,
            allow_unauthenticated_identities: Optional[bool] = None,
            arn: Optional[str] = None,
            cognito_identity_providers: Optional[Sequence[IdentityPoolCognitoIdentityProviderArgs]] = None,
            developer_provider_name: Optional[str] = None,
            identity_pool_name: Optional[str] = None,
            openid_connect_provider_arns: Optional[Sequence[str]] = None,
            saml_provider_arns: Optional[Sequence[str]] = None,
            supported_login_providers: Optional[Mapping[str, str]] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None) -> IdentityPool
    func GetIdentityPool(ctx *Context, name string, id IDInput, state *IdentityPoolState, opts ...ResourceOption) (*IdentityPool, error)
    public static IdentityPool Get(string name, Input<string> id, IdentityPoolState? state, CustomResourceOptions? opts = null)
    public static IdentityPool get(String name, Output<String> id, IdentityPoolState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AllowClassicFlow bool
    Enables or disables the classic / basic authentication flow. Default is false.
    AllowUnauthenticatedIdentities bool
    Whether the identity pool supports unauthenticated logins or not.
    Arn string
    The ARN of the identity pool.
    CognitoIdentityProviders List<IdentityPoolCognitoIdentityProvider>
    An array of Amazon Cognito Identity user pools and their client IDs.
    DeveloperProviderName string
    The "domain" by which Cognito will refer to your users. This name acts as a placeholder that allows your backend and the Cognito service to communicate about the developer provider.
    IdentityPoolName string
    The Cognito Identity Pool name.
    OpenidConnectProviderArns List<string>
    Set of OpendID Connect provider ARNs.
    SamlProviderArns List<string>
    An array of Amazon Resource Names (ARNs) of the SAML provider for your identity.
    SupportedLoginProviders Dictionary<string, string>
    Key-Value pairs mapping provider names to provider app IDs.
    Tags Dictionary<string, string>
    A map of tags to assign to the Identity Pool. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    AllowClassicFlow bool
    Enables or disables the classic / basic authentication flow. Default is false.
    AllowUnauthenticatedIdentities bool
    Whether the identity pool supports unauthenticated logins or not.
    Arn string
    The ARN of the identity pool.
    CognitoIdentityProviders []IdentityPoolCognitoIdentityProviderArgs
    An array of Amazon Cognito Identity user pools and their client IDs.
    DeveloperProviderName string
    The "domain" by which Cognito will refer to your users. This name acts as a placeholder that allows your backend and the Cognito service to communicate about the developer provider.
    IdentityPoolName string
    The Cognito Identity Pool name.
    OpenidConnectProviderArns []string
    Set of OpendID Connect provider ARNs.
    SamlProviderArns []string
    An array of Amazon Resource Names (ARNs) of the SAML provider for your identity.
    SupportedLoginProviders map[string]string
    Key-Value pairs mapping provider names to provider app IDs.
    Tags map[string]string
    A map of tags to assign to the Identity Pool. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    allowClassicFlow Boolean
    Enables or disables the classic / basic authentication flow. Default is false.
    allowUnauthenticatedIdentities Boolean
    Whether the identity pool supports unauthenticated logins or not.
    arn String
    The ARN of the identity pool.
    cognitoIdentityProviders List<IdentityPoolCognitoIdentityProvider>
    An array of Amazon Cognito Identity user pools and their client IDs.
    developerProviderName String
    The "domain" by which Cognito will refer to your users. This name acts as a placeholder that allows your backend and the Cognito service to communicate about the developer provider.
    identityPoolName String
    The Cognito Identity Pool name.
    openidConnectProviderArns List<String>
    Set of OpendID Connect provider ARNs.
    samlProviderArns List<String>
    An array of Amazon Resource Names (ARNs) of the SAML provider for your identity.
    supportedLoginProviders Map<String,String>
    Key-Value pairs mapping provider names to provider app IDs.
    tags Map<String,String>
    A map of tags to assign to the Identity Pool. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    allowClassicFlow boolean
    Enables or disables the classic / basic authentication flow. Default is false.
    allowUnauthenticatedIdentities boolean
    Whether the identity pool supports unauthenticated logins or not.
    arn string
    The ARN of the identity pool.
    cognitoIdentityProviders IdentityPoolCognitoIdentityProvider[]
    An array of Amazon Cognito Identity user pools and their client IDs.
    developerProviderName string
    The "domain" by which Cognito will refer to your users. This name acts as a placeholder that allows your backend and the Cognito service to communicate about the developer provider.
    identityPoolName string
    The Cognito Identity Pool name.
    openidConnectProviderArns string[]
    Set of OpendID Connect provider ARNs.
    samlProviderArns string[]
    An array of Amazon Resource Names (ARNs) of the SAML provider for your identity.
    supportedLoginProviders {[key: string]: string}
    Key-Value pairs mapping provider names to provider app IDs.
    tags {[key: string]: string}
    A map of tags to assign to the Identity Pool. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    allow_classic_flow bool
    Enables or disables the classic / basic authentication flow. Default is false.
    allow_unauthenticated_identities bool
    Whether the identity pool supports unauthenticated logins or not.
    arn str
    The ARN of the identity pool.
    cognito_identity_providers Sequence[IdentityPoolCognitoIdentityProviderArgs]
    An array of Amazon Cognito Identity user pools and their client IDs.
    developer_provider_name str
    The "domain" by which Cognito will refer to your users. This name acts as a placeholder that allows your backend and the Cognito service to communicate about the developer provider.
    identity_pool_name str
    The Cognito Identity Pool name.
    openid_connect_provider_arns Sequence[str]
    Set of OpendID Connect provider ARNs.
    saml_provider_arns Sequence[str]
    An array of Amazon Resource Names (ARNs) of the SAML provider for your identity.
    supported_login_providers Mapping[str, str]
    Key-Value pairs mapping provider names to provider app IDs.
    tags Mapping[str, str]
    A map of tags to assign to the Identity Pool. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    allowClassicFlow Boolean
    Enables or disables the classic / basic authentication flow. Default is false.
    allowUnauthenticatedIdentities Boolean
    Whether the identity pool supports unauthenticated logins or not.
    arn String
    The ARN of the identity pool.
    cognitoIdentityProviders List<Property Map>
    An array of Amazon Cognito Identity user pools and their client IDs.
    developerProviderName String
    The "domain" by which Cognito will refer to your users. This name acts as a placeholder that allows your backend and the Cognito service to communicate about the developer provider.
    identityPoolName String
    The Cognito Identity Pool name.
    openidConnectProviderArns List<String>
    Set of OpendID Connect provider ARNs.
    samlProviderArns List<String>
    An array of Amazon Resource Names (ARNs) of the SAML provider for your identity.
    supportedLoginProviders Map<String>
    Key-Value pairs mapping provider names to provider app IDs.
    tags Map<String>
    A map of tags to assign to the Identity Pool. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

    Deprecated: Please use tags instead.

    Supporting Types

    IdentityPoolCognitoIdentityProvider, IdentityPoolCognitoIdentityProviderArgs

    ClientId string
    The client ID for the Amazon Cognito Identity User Pool.
    ProviderName string
    The provider name for an Amazon Cognito Identity User Pool.
    ServerSideTokenCheck bool
    Whether server-side token validation is enabled for the identity provider’s token or not.
    ClientId string
    The client ID for the Amazon Cognito Identity User Pool.
    ProviderName string
    The provider name for an Amazon Cognito Identity User Pool.
    ServerSideTokenCheck bool
    Whether server-side token validation is enabled for the identity provider’s token or not.
    clientId String
    The client ID for the Amazon Cognito Identity User Pool.
    providerName String
    The provider name for an Amazon Cognito Identity User Pool.
    serverSideTokenCheck Boolean
    Whether server-side token validation is enabled for the identity provider’s token or not.
    clientId string
    The client ID for the Amazon Cognito Identity User Pool.
    providerName string
    The provider name for an Amazon Cognito Identity User Pool.
    serverSideTokenCheck boolean
    Whether server-side token validation is enabled for the identity provider’s token or not.
    client_id str
    The client ID for the Amazon Cognito Identity User Pool.
    provider_name str
    The provider name for an Amazon Cognito Identity User Pool.
    server_side_token_check bool
    Whether server-side token validation is enabled for the identity provider’s token or not.
    clientId String
    The client ID for the Amazon Cognito Identity User Pool.
    providerName String
    The provider name for an Amazon Cognito Identity User Pool.
    serverSideTokenCheck Boolean
    Whether server-side token validation is enabled for the identity provider’s token or not.

    Import

    Using pulumi import, import Cognito Identity Pool using its ID. For example:

    $ pulumi import aws:cognito/identityPool:IdentityPool mypool us-west-2:1a234567-8901-234b-5cde-f6789g01h2i3
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.54.0 published on Friday, Sep 27, 2024 by Pulumi