@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
74 lines • 2.3 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.getLocalGatewaysOutput = exports.getLocalGateways = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Provides information for multiple EC2 Local Gateways, such as their identifiers.
*
* ## Example Usage
*
* The following example retrieves Local Gateways with a resource tag of `service` set to `production`.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* export = async () => {
* const foo = await aws.ec2.getLocalGateways({
* tags: {
* service: "production",
* },
* });
* return {
* foo: foo.ids,
* };
* }
* ```
*/
function getLocalGateways(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:ec2/getLocalGateways:getLocalGateways", {
"filters": args.filters,
"region": args.region,
"tags": args.tags,
}, opts);
}
exports.getLocalGateways = getLocalGateways;
/**
* Provides information for multiple EC2 Local Gateways, such as their identifiers.
*
* ## Example Usage
*
* The following example retrieves Local Gateways with a resource tag of `service` set to `production`.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* export = async () => {
* const foo = await aws.ec2.getLocalGateways({
* tags: {
* service: "production",
* },
* });
* return {
* foo: foo.ids,
* };
* }
* ```
*/
function getLocalGatewaysOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:ec2/getLocalGateways:getLocalGateways", {
"filters": args.filters,
"region": args.region,
"tags": args.tags,
}, opts);
}
exports.getLocalGatewaysOutput = getLocalGatewaysOutput;
//# sourceMappingURL=getLocalGateways.js.map