UNPKG

@pulumi/aws

Version:

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

54 lines 1.62 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.getApiOutput = exports.getApi = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Provides details about a specific Amazon API Gateway Version 2 API. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.apigatewayv2.getApi({ * apiId: "aabbccddee", * }); * ``` */ function getApi(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:apigatewayv2/getApi:getApi", { "apiId": args.apiId, "region": args.region, "tags": args.tags, }, opts); } exports.getApi = getApi; /** * Provides details about a specific Amazon API Gateway Version 2 API. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.apigatewayv2.getApi({ * apiId: "aabbccddee", * }); * ``` */ function getApiOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:apigatewayv2/getApi:getApi", { "apiId": args.apiId, "region": args.region, "tags": args.tags, }, opts); } exports.getApiOutput = getApiOutput; //# sourceMappingURL=getApi.js.map