@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
60 lines • 2.08 kB
JavaScript
// *** 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.getVpcLinkOutput = exports.getVpcLink = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get the id of a VPC Link in
* API Gateway. To fetch the VPC Link you must provide a name to match against.
* As there is no unique name constraint on API Gateway VPC Links this data source will
* error if there is more than one match.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const myApiGatewayVpcLink = aws.apigateway.getVpcLink({
* name: "my-vpc-link",
* });
* ```
*/
function getVpcLink(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:apigateway/getVpcLink:getVpcLink", {
"name": args.name,
"region": args.region,
"tags": args.tags,
}, opts);
}
exports.getVpcLink = getVpcLink;
/**
* Use this data source to get the id of a VPC Link in
* API Gateway. To fetch the VPC Link you must provide a name to match against.
* As there is no unique name constraint on API Gateway VPC Links this data source will
* error if there is more than one match.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const myApiGatewayVpcLink = aws.apigateway.getVpcLink({
* name: "my-vpc-link",
* });
* ```
*/
function getVpcLinkOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:apigateway/getVpcLink:getVpcLink", {
"name": args.name,
"region": args.region,
"tags": args.tags,
}, opts);
}
exports.getVpcLinkOutput = getVpcLinkOutput;
//# sourceMappingURL=getVpcLink.js.map
;