UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

70 lines 2.39 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getUserPoolsOutput = exports.getUserPools = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Use this data source to get a list of cognito user pools. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const selected = aws.apigateway.getRestApi({ * name: apiGatewayName, * }); * const selectedGetUserPools = aws.cognito.getUserPools({ * name: cognitoUserPoolName, * }); * const cognito = new aws.apigateway.Authorizer("cognito", { * name: "cognito", * type: "COGNITO_USER_POOLS", * restApi: selected.then(selected => selected.id), * providerArns: selectedGetUserPools.then(selectedGetUserPools => selectedGetUserPools.arns), * }); * ``` */ function getUserPools(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:cognito/getUserPools:getUserPools", { "name": args.name, "region": args.region, }, opts); } exports.getUserPools = getUserPools; /** * Use this data source to get a list of cognito user pools. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const selected = aws.apigateway.getRestApi({ * name: apiGatewayName, * }); * const selectedGetUserPools = aws.cognito.getUserPools({ * name: cognitoUserPoolName, * }); * const cognito = new aws.apigateway.Authorizer("cognito", { * name: "cognito", * type: "COGNITO_USER_POOLS", * restApi: selected.then(selected => selected.id), * providerArns: selectedGetUserPools.then(selectedGetUserPools => selectedGetUserPools.arns), * }); * ``` */ function getUserPoolsOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:cognito/getUserPools:getUserPools", { "name": args.name, "region": args.region, }, opts); } exports.getUserPoolsOutput = getUserPoolsOutput; //# sourceMappingURL=getUserPools.js.map