@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
78 lines • 3.15 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.getLocalGatewayRouteTableOutput = exports.getLocalGatewayRouteTable = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* 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,
* });
* ```
*/
function getLocalGatewayRouteTable(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:ec2/getLocalGatewayRouteTable:getLocalGatewayRouteTable", {
"filters": args.filters,
"localGatewayId": args.localGatewayId,
"localGatewayRouteTableId": args.localGatewayRouteTableId,
"outpostArn": args.outpostArn,
"region": args.region,
"state": args.state,
"tags": args.tags,
}, opts);
}
exports.getLocalGatewayRouteTable = getLocalGatewayRouteTable;
/**
* 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,
* });
* ```
*/
function getLocalGatewayRouteTableOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:ec2/getLocalGatewayRouteTable:getLocalGatewayRouteTable", {
"filters": args.filters,
"localGatewayId": args.localGatewayId,
"localGatewayRouteTableId": args.localGatewayRouteTableId,
"outpostArn": args.outpostArn,
"region": args.region,
"state": args.state,
"tags": args.tags,
}, opts);
}
exports.getLocalGatewayRouteTableOutput = getLocalGatewayRouteTableOutput;
//# sourceMappingURL=getLocalGatewayRouteTable.js.map