UNPKG

@pulumi/aws

Version:

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

34 lines 1.27 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.getSubnetsOutput = exports.getSubnets = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * This resource can be useful for getting back a set of subnet IDs. */ function getSubnets(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:ec2/getSubnets:getSubnets", { "filters": args.filters, "region": args.region, "tags": args.tags, }, opts); } exports.getSubnets = getSubnets; /** * This resource can be useful for getting back a set of subnet IDs. */ function getSubnetsOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:ec2/getSubnets:getSubnets", { "filters": args.filters, "region": args.region, "tags": args.tags, }, opts); } exports.getSubnetsOutput = getSubnetsOutput; //# sourceMappingURL=getSubnets.js.map