googleComputeRouter
Get a router within GCE from its name and VPC.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
new google.dataGoogleComputeRouter.DataGoogleComputeRouter(this, "my-router", {
name: "myrouter-us-east1",
network: "my-network",
});
Argument Reference
The following arguments are supported:
-
name
- (Required) The name of the router. -
network
- (Required) The VPC network on which this router lives. -
project
- (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used. -
region
- (Optional) The region this router has been created in. If unspecified, this defaults to the region configured in the provider.
Attributes Reference
See google_compute_router resource for details of the available attributes.