@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
68 lines • 2.27 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.getInternetGatewayOutput = exports.getInternetGateway = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* `aws.ec2.InternetGateway` provides details about a specific Internet Gateway.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const config = new pulumi.Config();
* const vpcId = config.requireObject<any>("vpcId");
* const _default = aws.ec2.getInternetGateway({
* filters: [{
* name: "attachment.vpc-id",
* values: [vpcId],
* }],
* });
* ```
*/
function getInternetGateway(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:ec2/getInternetGateway:getInternetGateway", {
"filters": args.filters,
"internetGatewayId": args.internetGatewayId,
"region": args.region,
"tags": args.tags,
}, opts);
}
exports.getInternetGateway = getInternetGateway;
/**
* `aws.ec2.InternetGateway` provides details about a specific Internet Gateway.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const config = new pulumi.Config();
* const vpcId = config.requireObject<any>("vpcId");
* const _default = aws.ec2.getInternetGateway({
* filters: [{
* name: "attachment.vpc-id",
* values: [vpcId],
* }],
* });
* ```
*/
function getInternetGatewayOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:ec2/getInternetGateway:getInternetGateway", {
"filters": args.filters,
"internetGatewayId": args.internetGatewayId,
"region": args.region,
"tags": args.tags,
}, opts);
}
exports.getInternetGatewayOutput = getInternetGatewayOutput;
//# sourceMappingURL=getInternetGateway.js.map