@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
98 lines (97 loc) • 3.32 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Provides informations for routes of a specific transit gateway, such as state, type, cidr
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const test = aws.ec2transitgateway.getRouteTableRoutes({
* filters: [{
* name: "type",
* values: ["propagated"],
* }],
* transitGatewayRouteTableId: example.id,
* });
* ```
*/
export declare function getRouteTableRoutes(args: GetRouteTableRoutesArgs, opts?: pulumi.InvokeOptions): Promise<GetRouteTableRoutesResult>;
/**
* A collection of arguments for invoking getRouteTableRoutes.
*/
export interface GetRouteTableRoutesArgs {
/**
* Custom filter block as described below.
*/
filters: inputs.ec2transitgateway.GetRouteTableRoutesFilter[];
/**
* 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;
/**
* Identifier of EC2 Transit Gateway Route Table.
*
* More complex filters can be expressed using one or more `filter` sub-blocks,
* which take the following arguments:
*/
transitGatewayRouteTableId: string;
}
/**
* A collection of values returned by getRouteTableRoutes.
*/
export interface GetRouteTableRoutesResult {
readonly filters: outputs.ec2transitgateway.GetRouteTableRoutesFilter[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly region: string;
/**
* List of Transit Gateway Routes.
*/
readonly routes: outputs.ec2transitgateway.GetRouteTableRoutesRoute[];
readonly transitGatewayRouteTableId: string;
}
/**
* Provides informations for routes of a specific transit gateway, such as state, type, cidr
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const test = aws.ec2transitgateway.getRouteTableRoutes({
* filters: [{
* name: "type",
* values: ["propagated"],
* }],
* transitGatewayRouteTableId: example.id,
* });
* ```
*/
export declare function getRouteTableRoutesOutput(args: GetRouteTableRoutesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetRouteTableRoutesResult>;
/**
* A collection of arguments for invoking getRouteTableRoutes.
*/
export interface GetRouteTableRoutesOutputArgs {
/**
* Custom filter block as described below.
*/
filters: pulumi.Input<pulumi.Input<inputs.ec2transitgateway.GetRouteTableRoutesFilterArgs>[]>;
/**
* 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>;
/**
* Identifier of EC2 Transit Gateway Route Table.
*
* More complex filters can be expressed using one or more `filter` sub-blocks,
* which take the following arguments:
*/
transitGatewayRouteTableId: pulumi.Input<string>;
}