UNPKG

@pulumi/aws

Version:

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

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