@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
70 lines • 2.2 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.getVpcAttachmentsOutput = exports.getVpcAttachments = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Get information on EC2 Transit Gateway VPC Attachments.
*
* ## Example Usage
*
* ### By Filter
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const filtered = aws.ec2transitgateway.getVpcAttachments({
* filters: [{
* name: "state",
* values: ["pendingAcceptance"],
* }],
* });
* const unit = .map(__index => (aws.ec2transitgateway.getVpcAttachment({
* id: _arg0_.ids[__index],
* })));
* ```
*/
function getVpcAttachments(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:ec2transitgateway/getVpcAttachments:getVpcAttachments", {
"filters": args.filters,
"region": args.region,
}, opts);
}
exports.getVpcAttachments = getVpcAttachments;
/**
* Get information on EC2 Transit Gateway VPC Attachments.
*
* ## Example Usage
*
* ### By Filter
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const filtered = aws.ec2transitgateway.getVpcAttachments({
* filters: [{
* name: "state",
* values: ["pendingAcceptance"],
* }],
* });
* const unit = .map(__index => (aws.ec2transitgateway.getVpcAttachment({
* id: _arg0_.ids[__index],
* })));
* ```
*/
function getVpcAttachmentsOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:ec2transitgateway/getVpcAttachments:getVpcAttachments", {
"filters": args.filters,
"region": args.region,
}, opts);
}
exports.getVpcAttachmentsOutput = getVpcAttachmentsOutput;
//# sourceMappingURL=getVpcAttachments.js.map