UNPKG

@pulumi/aws

Version:

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

90 lines 2.67 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.getPeeringAttachmentOutput = exports.getPeeringAttachment = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Get information on an EC2 Transit Gateway Peering Attachment. * * ## Example Usage * * ### By Filter * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.ec2transitgateway.getPeeringAttachment({ * filters: [{ * name: "transit-gateway-attachment-id", * values: ["tgw-attach-12345678"], * }], * }); * ``` * * ### By Identifier * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const attachment = aws.ec2transitgateway.getPeeringAttachment({ * id: "tgw-attach-12345678", * }); * ``` */ function getPeeringAttachment(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:ec2transitgateway/getPeeringAttachment:getPeeringAttachment", { "filters": args.filters, "id": args.id, "region": args.region, "tags": args.tags, }, opts); } exports.getPeeringAttachment = getPeeringAttachment; /** * Get information on an EC2 Transit Gateway Peering Attachment. * * ## Example Usage * * ### By Filter * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.ec2transitgateway.getPeeringAttachment({ * filters: [{ * name: "transit-gateway-attachment-id", * values: ["tgw-attach-12345678"], * }], * }); * ``` * * ### By Identifier * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const attachment = aws.ec2transitgateway.getPeeringAttachment({ * id: "tgw-attach-12345678", * }); * ``` */ function getPeeringAttachmentOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:ec2transitgateway/getPeeringAttachment:getPeeringAttachment", { "filters": args.filters, "id": args.id, "region": args.region, "tags": args.tags, }, opts); } exports.getPeeringAttachmentOutput = getPeeringAttachmentOutput; //# sourceMappingURL=getPeeringAttachment.js.map