@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
68 lines • 2.23 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.getLocalGatewayOutput = exports.getLocalGateway = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Provides details about an EC2 Local Gateway.
*
* ## Example Usage
*
* The following example shows how one might accept a local gateway id as a variable.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const config = new pulumi.Config();
* const localGatewayId = config.requireObject<any>("localGatewayId");
* const selected = aws.ec2.getLocalGateway({
* id: localGatewayId,
* });
* ```
*/
function getLocalGateway(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:ec2/getLocalGateway:getLocalGateway", {
"filters": args.filters,
"id": args.id,
"region": args.region,
"state": args.state,
"tags": args.tags,
}, opts);
}
exports.getLocalGateway = getLocalGateway;
/**
* Provides details about an EC2 Local Gateway.
*
* ## Example Usage
*
* The following example shows how one might accept a local gateway id as a variable.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const config = new pulumi.Config();
* const localGatewayId = config.requireObject<any>("localGatewayId");
* const selected = aws.ec2.getLocalGateway({
* id: localGatewayId,
* });
* ```
*/
function getLocalGatewayOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:ec2/getLocalGateway:getLocalGateway", {
"filters": args.filters,
"id": args.id,
"region": args.region,
"state": args.state,
"tags": args.tags,
}, opts);
}
exports.getLocalGatewayOutput = getLocalGatewayOutput;
//# sourceMappingURL=getLocalGateway.js.map