AWS v6.54.0 published on Friday, Sep 27, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:cognito/getIdentityPool:getIdentityPool
arguments:
# arguments dictionary
The following arguments are supported:
- Identity
Pool stringName - The Cognito Identity Pool name.
- Dictionary<string, string>
- A map of tags to assigned to the Identity Pool.
- Identity
Pool stringName - The Cognito Identity Pool name.
- map[string]string
- A map of tags to assigned to the Identity Pool.
- identity
Pool StringName - The Cognito Identity Pool name.
- Map<String,String>
- A map of tags to assigned to the Identity Pool.
- identity
Pool 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.
- identity
Pool 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:
- Allow
Classic boolFlow - Whether the classic / basic authentication flow is enabled.
- Allow
Unauthenticated boolIdentities - Whether the identity pool supports unauthenticated logins or not.
- Arn string
- ARN of the Pool.
- Cognito
Identity List<GetProviders Identity Pool Cognito Identity Provider> - An array of Amazon Cognito Identity user pools and their client IDs.
- Developer
Provider stringName - The "domain" by which Cognito will refer to your users.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identity
Pool stringName - Openid
Connect List<string>Provider Arns - Set of OpendID Connect provider ARNs.
- Saml
Provider List<string>Arns - An array of Amazon Resource Names (ARNs) of the SAML provider for your identity.
- Supported
Login 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.
- Allow
Classic boolFlow - Whether the classic / basic authentication flow is enabled.
- Allow
Unauthenticated boolIdentities - Whether the identity pool supports unauthenticated logins or not.
- Arn string
- ARN of the Pool.
- Cognito
Identity []GetProviders Identity Pool Cognito Identity Provider - An array of Amazon Cognito Identity user pools and their client IDs.
- Developer
Provider stringName - The "domain" by which Cognito will refer to your users.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identity
Pool stringName - Openid
Connect []stringProvider Arns - Set of OpendID Connect provider ARNs.
- Saml
Provider []stringArns - An array of Amazon Resource Names (ARNs) of the SAML provider for your identity.
- Supported
Login 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.
- allow
Classic BooleanFlow - Whether the classic / basic authentication flow is enabled.
- allow
Unauthenticated BooleanIdentities - Whether the identity pool supports unauthenticated logins or not.
- arn String
- ARN of the Pool.
- cognito
Identity List<GetProviders Identity Pool Cognito Identity Provider> - An array of Amazon Cognito Identity user pools and their client IDs.
- developer
Provider StringName - The "domain" by which Cognito will refer to your users.
- id String
- The provider-assigned unique ID for this managed resource.
- identity
Pool StringName - openid
Connect List<String>Provider Arns - Set of OpendID Connect provider ARNs.
- saml
Provider List<String>Arns - An array of Amazon Resource Names (ARNs) of the SAML provider for your identity.
- supported
Login 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.
- allow
Classic booleanFlow - Whether the classic / basic authentication flow is enabled.
- allow
Unauthenticated booleanIdentities - Whether the identity pool supports unauthenticated logins or not.
- arn string
- ARN of the Pool.
- cognito
Identity GetProviders Identity Pool Cognito Identity Provider[] - An array of Amazon Cognito Identity user pools and their client IDs.
- developer
Provider stringName - The "domain" by which Cognito will refer to your users.
- id string
- The provider-assigned unique ID for this managed resource.
- identity
Pool stringName - openid
Connect string[]Provider Arns - Set of OpendID Connect provider ARNs.
- saml
Provider string[]Arns - An array of Amazon Resource Names (ARNs) of the SAML provider for your identity.
- supported
Login {[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.
- allow
Classic BooleanFlow - Whether the classic / basic authentication flow is enabled.
- allow
Unauthenticated BooleanIdentities - Whether the identity pool supports unauthenticated logins or not.
- arn String
- ARN of the Pool.
- cognito
Identity List<Property Map>Providers - An array of Amazon Cognito Identity user pools and their client IDs.
- developer
Provider StringName - The "domain" by which Cognito will refer to your users.
- id String
- The provider-assigned unique ID for this managed resource.
- identity
Pool StringName - openid
Connect List<String>Provider Arns - Set of OpendID Connect provider ARNs.
- saml
Provider List<String>Arns - An array of Amazon Resource Names (ARNs) of the SAML provider for your identity.
- supported
Login 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
- Client
Id string - Provider
Name string - Server
Side boolToken Check
- Client
Id string - Provider
Name string - Server
Side boolToken Check
- client
Id String - provider
Name String - server
Side BooleanToken Check
- client
Id string - provider
Name string - server
Side booleanToken Check
- client_
id str - provider_
name str - server_
side_ booltoken_ check
- client
Id String - provider
Name String - server
Side BooleanToken Check
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.