@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
140 lines (139 loc) • 5.23 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Provides details about an EC2 Local Gateway Route Table.
*
* This data source can prove useful when a module accepts a local gateway route table id as
* an input variable and needs to, for example, find the associated Outpost or Local Gateway.
*
* ## Example Usage
*
* The following example returns a specific local gateway route table ID
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const config = new pulumi.Config();
* const awsEc2LocalGatewayRouteTable = config.requireObject<any>("awsEc2LocalGatewayRouteTable");
* const selected = aws.ec2.getLocalGatewayRouteTable({
* localGatewayRouteTableId: awsEc2LocalGatewayRouteTable,
* });
* ```
*/
export declare function getLocalGatewayRouteTable(args?: GetLocalGatewayRouteTableArgs, opts?: pulumi.InvokeOptions): Promise<GetLocalGatewayRouteTableResult>;
/**
* A collection of arguments for invoking getLocalGatewayRouteTable.
*/
export interface GetLocalGatewayRouteTableArgs {
filters?: inputs.ec2.GetLocalGatewayRouteTableFilter[];
/**
* ID of the specific local gateway route table to retrieve.
*/
localGatewayId?: string;
/**
* Local Gateway Route Table Id assigned to desired local gateway route table
*/
localGatewayRouteTableId?: string;
/**
* ARN of the Outpost the local gateway route table is associated with.
*/
outpostArn?: 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;
/**
* State of the local gateway route table.
*/
state?: string;
/**
* Mapping of tags, each pair of which must exactly match
* a pair on the desired local gateway route table.
*
* The arguments of this data source act as filters for querying the available
* Local Gateway Route Tables in the current region. The given filters must match exactly one
* Local Gateway Route Table whose data will be exported as attributes.
*/
tags?: {
[key: string]: string;
};
}
/**
* A collection of values returned by getLocalGatewayRouteTable.
*/
export interface GetLocalGatewayRouteTableResult {
readonly filters?: outputs.ec2.GetLocalGatewayRouteTableFilter[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly localGatewayId: string;
readonly localGatewayRouteTableId: string;
readonly outpostArn: string;
readonly region: string;
readonly state: string;
readonly tags: {
[key: string]: string;
};
}
/**
* Provides details about an EC2 Local Gateway Route Table.
*
* This data source can prove useful when a module accepts a local gateway route table id as
* an input variable and needs to, for example, find the associated Outpost or Local Gateway.
*
* ## Example Usage
*
* The following example returns a specific local gateway route table ID
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const config = new pulumi.Config();
* const awsEc2LocalGatewayRouteTable = config.requireObject<any>("awsEc2LocalGatewayRouteTable");
* const selected = aws.ec2.getLocalGatewayRouteTable({
* localGatewayRouteTableId: awsEc2LocalGatewayRouteTable,
* });
* ```
*/
export declare function getLocalGatewayRouteTableOutput(args?: GetLocalGatewayRouteTableOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetLocalGatewayRouteTableResult>;
/**
* A collection of arguments for invoking getLocalGatewayRouteTable.
*/
export interface GetLocalGatewayRouteTableOutputArgs {
filters?: pulumi.Input<pulumi.Input<inputs.ec2.GetLocalGatewayRouteTableFilterArgs>[]>;
/**
* ID of the specific local gateway route table to retrieve.
*/
localGatewayId?: pulumi.Input<string>;
/**
* Local Gateway Route Table Id assigned to desired local gateway route table
*/
localGatewayRouteTableId?: pulumi.Input<string>;
/**
* ARN of the Outpost the local gateway route table is associated with.
*/
outpostArn?: 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>;
/**
* State of the local gateway route table.
*/
state?: pulumi.Input<string>;
/**
* Mapping of tags, each pair of which must exactly match
* a pair on the desired local gateway route table.
*
* The arguments of this data source act as filters for querying the available
* Local Gateway Route Tables in the current region. The given filters must match exactly one
* Local Gateway Route Table whose data will be exported as attributes.
*/
tags?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
}