@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
90 lines • 2.52 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.getVpcAttachmentOutput = exports.getVpcAttachment = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Get information on an EC2 Transit Gateway VPC Attachment.
*
* ## Example Usage
*
* ### By Filter
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.ec2transitgateway.getVpcAttachment({
* filters: [{
* name: "vpc-id",
* values: ["vpc-12345678"],
* }],
* });
* ```
*
* ### By Identifier
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.ec2transitgateway.getVpcAttachment({
* id: "tgw-attach-12345678",
* });
* ```
*/
function getVpcAttachment(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:ec2transitgateway/getVpcAttachment:getVpcAttachment", {
"filters": args.filters,
"id": args.id,
"region": args.region,
"tags": args.tags,
}, opts);
}
exports.getVpcAttachment = getVpcAttachment;
/**
* Get information on an EC2 Transit Gateway VPC Attachment.
*
* ## Example Usage
*
* ### By Filter
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.ec2transitgateway.getVpcAttachment({
* filters: [{
* name: "vpc-id",
* values: ["vpc-12345678"],
* }],
* });
* ```
*
* ### By Identifier
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.ec2transitgateway.getVpcAttachment({
* id: "tgw-attach-12345678",
* });
* ```
*/
function getVpcAttachmentOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:ec2transitgateway/getVpcAttachment:getVpcAttachment", {
"filters": args.filters,
"id": args.id,
"region": args.region,
"tags": args.tags,
}, opts);
}
exports.getVpcAttachmentOutput = getVpcAttachmentOutput;
//# sourceMappingURL=getVpcAttachment.js.map
;