UNPKG

@pulumi/aws

Version:

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

56 lines 1.91 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.getAuthorizerOutput = exports.getAuthorizer = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Provides details about a specific API Gateway Authorizer. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.apigateway.getAuthorizer({ * restApiId: exampleAwsApiGatewayRestApi.id, * authorizerId: exampleAwsApiGatewayAuthorizers.ids[0], * }); * ``` */ function getAuthorizer(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:apigateway/getAuthorizer:getAuthorizer", { "authorizerId": args.authorizerId, "region": args.region, "restApiId": args.restApiId, }, opts); } exports.getAuthorizer = getAuthorizer; /** * Provides details about a specific API Gateway Authorizer. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.apigateway.getAuthorizer({ * restApiId: exampleAwsApiGatewayRestApi.id, * authorizerId: exampleAwsApiGatewayAuthorizers.ids[0], * }); * ``` */ function getAuthorizerOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:apigateway/getAuthorizer:getAuthorizer", { "authorizerId": args.authorizerId, "region": args.region, "restApiId": args.restApiId, }, opts); } exports.getAuthorizerOutput = getAuthorizerOutput; //# sourceMappingURL=getAuthorizer.js.map