UNPKG

@pulumi/aws

Version:

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

157 lines (156 loc) 4.41 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * 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", * }); * ``` */ export declare function getRouteTable(args?: GetRouteTableArgs, opts?: pulumi.InvokeOptions): Promise<GetRouteTableResult>; /** * A collection of arguments for invoking getRouteTable. */ export interface GetRouteTableArgs { /** * One or more configuration blocks containing name-values filters. Detailed below. */ filters?: inputs.ec2transitgateway.GetRouteTableFilter[]; /** * Identifier of the EC2 Transit Gateway Route Table. */ id?: string; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: string; /** * Key-value tags for the EC2 Transit Gateway Route Table */ tags?: { [key: string]: string; }; } /** * A collection of values returned by getRouteTable. */ export interface GetRouteTableResult { /** * EC2 Transit Gateway Route Table ARN. */ readonly arn: string; /** * Boolean whether this is the default association route table for the EC2 Transit Gateway */ readonly defaultAssociationRouteTable: boolean; /** * Boolean whether this is the default propagation route table for the EC2 Transit Gateway */ readonly defaultPropagationRouteTable: boolean; readonly filters?: outputs.ec2transitgateway.GetRouteTableFilter[]; /** * EC2 Transit Gateway Route Table identifier */ readonly id: string; readonly region: string; /** * Key-value tags for the EC2 Transit Gateway Route Table */ readonly tags: { [key: string]: string; }; /** * EC2 Transit Gateway identifier */ readonly transitGatewayId: string; } /** * 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", * }); * ``` */ export declare function getRouteTableOutput(args?: GetRouteTableOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetRouteTableResult>; /** * A collection of arguments for invoking getRouteTable. */ export interface GetRouteTableOutputArgs { /** * One or more configuration blocks containing name-values filters. Detailed below. */ filters?: pulumi.Input<pulumi.Input<inputs.ec2transitgateway.GetRouteTableFilterArgs>[]>; /** * Identifier of the EC2 Transit Gateway Route Table. */ id?: pulumi.Input<string>; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input<string>; /** * Key-value tags for the EC2 Transit Gateway Route Table */ tags?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; }