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