UNPKG

@pulumi/aws

Version:

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

68 lines 2.12 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.getEipsOutput = exports.getEips = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Provides a list of Elastic IPs in a region. * * ## Example Usage * * The following shows outputting all Elastic IPs with the a specific tag value. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.ec2.getEips({ * tags: { * Env: "dev", * }, * }); * export const allocationIds = example.then(example => example.allocationIds); * export const publicIps = example.then(example => example.publicIps); * ``` */ function getEips(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:ec2/getEips:getEips", { "filters": args.filters, "region": args.region, "tags": args.tags, }, opts); } exports.getEips = getEips; /** * Provides a list of Elastic IPs in a region. * * ## Example Usage * * The following shows outputting all Elastic IPs with the a specific tag value. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.ec2.getEips({ * tags: { * Env: "dev", * }, * }); * export const allocationIds = example.then(example => example.allocationIds); * export const publicIps = example.then(example => example.publicIps); * ``` */ function getEipsOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:ec2/getEips:getEips", { "filters": args.filters, "region": args.region, "tags": args.tags, }, opts); } exports.getEipsOutput = getEipsOutput; //# sourceMappingURL=getEips.js.map