UNPKG

@pulumi/aws

Version:

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

66 lines 2.31 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.getTransitGatewayRouteTablesOutput = exports.getTransitGatewayRouteTables = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Provides information for multiple EC2 Transit Gateway Route Tables, such as their identifiers. * * ## Example Usage * * The following shows outputting all Transit Gateway Route Table Ids. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * export = async () => { * const example = await aws.ec2.getTransitGatewayRouteTables({}); * return { * example: example.ids, * }; * } * ``` */ function getTransitGatewayRouteTables(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:ec2/getTransitGatewayRouteTables:getTransitGatewayRouteTables", { "filters": args.filters, "region": args.region, "tags": args.tags, }, opts); } exports.getTransitGatewayRouteTables = getTransitGatewayRouteTables; /** * Provides information for multiple EC2 Transit Gateway Route Tables, such as their identifiers. * * ## Example Usage * * The following shows outputting all Transit Gateway Route Table Ids. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * export = async () => { * const example = await aws.ec2.getTransitGatewayRouteTables({}); * return { * example: example.ids, * }; * } * ``` */ function getTransitGatewayRouteTablesOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:ec2/getTransitGatewayRouteTables:getTransitGatewayRouteTables", { "filters": args.filters, "region": args.region, "tags": args.tags, }, opts); } exports.getTransitGatewayRouteTablesOutput = getTransitGatewayRouteTablesOutput; //# sourceMappingURL=getTransitGatewayRouteTables.js.map