Show / Hide Table of Contents

Class GetUserPools

Inheritance
System.Object
GetUserPools
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Cognito
Assembly: Pulumi.Aws.dll
Syntax
public static class GetUserPools

Methods

View Source

InvokeAsync(GetUserPoolsArgs, InvokeOptions)

Use this data source to get a list of cognito user pools.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var selectedRestApi = Output.Create(Aws.ApiGateway.GetRestApi.InvokeAsync(new Aws.ApiGateway.GetRestApiArgs
    {
        Name = @var.Api_gateway_name,
    }));
    var selectedUserPools = Output.Create(Aws.Cognito.GetUserPools.InvokeAsync(new Aws.Cognito.GetUserPoolsArgs
    {
        Name = @var.Cognito_user_pool_name,
    }));
    var cognito = new Aws.ApiGateway.Authorizer("cognito", new Aws.ApiGateway.AuthorizerArgs
    {
        ProviderArns = selectedUserPools.Apply(selectedUserPools => selectedUserPools.Arns),
        RestApi = selectedRestApi.Apply(selectedRestApi => selectedRestApi.Id),
        Type = "COGNITO_USER_POOLS",
    });
}

}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetUserPoolsResult> InvokeAsync(GetUserPoolsArgs args, InvokeOptions options = null)
Parameters
Type Name Description
GetUserPoolsArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetUserPoolsResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.