UNPKG

@pulumi/aws

Version:

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

58 lines 1.87 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.getNetworkInterfaceOutput = exports.getNetworkInterface = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Use this data source to get information about a Network Interface. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const bar = aws.ec2.getNetworkInterface({ * id: "eni-01234567", * }); * ``` */ function getNetworkInterface(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:ec2/getNetworkInterface:getNetworkInterface", { "filters": args.filters, "id": args.id, "region": args.region, "tags": args.tags, }, opts); } exports.getNetworkInterface = getNetworkInterface; /** * Use this data source to get information about a Network Interface. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const bar = aws.ec2.getNetworkInterface({ * id: "eni-01234567", * }); * ``` */ function getNetworkInterfaceOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:ec2/getNetworkInterface:getNetworkInterface", { "filters": args.filters, "id": args.id, "region": args.region, "tags": args.tags, }, opts); } exports.getNetworkInterfaceOutput = getNetworkInterfaceOutput; //# sourceMappingURL=getNetworkInterface.js.map