@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
102 lines • 2.78 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.getRouteTableOutput = exports.getRouteTable = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Get information on an EC2 Transit Gateway Route Table.
*
* ## Example Usage
*
* ### By Filter
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.ec2transitgateway.getRouteTable({
* filters: [
* {
* name: "default-association-route-table",
* values: ["true"],
* },
* {
* name: "transit-gateway-id",
* values: ["tgw-12345678"],
* },
* ],
* });
* ```
*
* ### By Identifier
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.ec2transitgateway.getRouteTable({
* id: "tgw-rtb-12345678",
* });
* ```
*/
function getRouteTable(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:ec2transitgateway/getRouteTable:getRouteTable", {
"filters": args.filters,
"id": args.id,
"region": args.region,
"tags": args.tags,
}, opts);
}
exports.getRouteTable = getRouteTable;
/**
* Get information on an EC2 Transit Gateway Route Table.
*
* ## Example Usage
*
* ### By Filter
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.ec2transitgateway.getRouteTable({
* filters: [
* {
* name: "default-association-route-table",
* values: ["true"],
* },
* {
* name: "transit-gateway-id",
* values: ["tgw-12345678"],
* },
* ],
* });
* ```
*
* ### By Identifier
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.ec2transitgateway.getRouteTable({
* id: "tgw-rtb-12345678",
* });
* ```
*/
function getRouteTableOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:ec2transitgateway/getRouteTable:getRouteTable", {
"filters": args.filters,
"id": args.id,
"region": args.region,
"tags": args.tags,
}, opts);
}
exports.getRouteTableOutput = getRouteTableOutput;
//# sourceMappingURL=getRouteTable.js.map
;