UNPKG

@pulumi/aws

Version:

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

90 lines 2.71 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.getConnectPeerOutput = exports.getConnectPeer = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Get information on an EC2 Transit Gateway Connect Peer. * * ## Example Usage * * ### By Filter * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.ec2transitgateway.getConnectPeer({ * 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 example = aws.ec2transitgateway.getConnectPeer({ * transitGatewayConnectPeerId: "tgw-connect-peer-12345678", * }); * ``` */ function getConnectPeer(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:ec2transitgateway/getConnectPeer:getConnectPeer", { "filters": args.filters, "region": args.region, "tags": args.tags, "transitGatewayConnectPeerId": args.transitGatewayConnectPeerId, }, opts); } exports.getConnectPeer = getConnectPeer; /** * Get information on an EC2 Transit Gateway Connect Peer. * * ## Example Usage * * ### By Filter * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.ec2transitgateway.getConnectPeer({ * 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 example = aws.ec2transitgateway.getConnectPeer({ * transitGatewayConnectPeerId: "tgw-connect-peer-12345678", * }); * ``` */ function getConnectPeerOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:ec2transitgateway/getConnectPeer:getConnectPeer", { "filters": args.filters, "region": args.region, "tags": args.tags, "transitGatewayConnectPeerId": args.transitGatewayConnectPeerId, }, opts); } exports.getConnectPeerOutput = getConnectPeerOutput; //# sourceMappingURL=getConnectPeer.js.map