timescale 2.3.0 published on Thursday, Jun 12, 2025 by timescale
timescale.getVpcs
Explore with Pulumi AI
timescale 2.3.0 published on Thursday, Jun 12, 2025 by timescale
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as timescale from "@pulumi/timescale";
const config = new pulumi.Config();
const tsAccessKey = config.require("tsAccessKey");
const tsSecretKey = config.require("tsSecretKey");
const tsProjectId = config.require("tsProjectId");
const vpcs = timescale.getVpcs({});
export const vpcsList = vpcs;
import pulumi
import pulumi_timescale as timescale
config = pulumi.Config()
ts_access_key = config.require("tsAccessKey")
ts_secret_key = config.require("tsSecretKey")
ts_project_id = config.require("tsProjectId")
vpcs = timescale.get_vpcs()
pulumi.export("vpcsList", vpcs)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/timescale/v2/timescale"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
tsAccessKey := cfg.Require("tsAccessKey")
tsSecretKey := cfg.Require("tsSecretKey")
tsProjectId := cfg.Require("tsProjectId")
vpcs, err := timescale.LookupVpcs(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
ctx.Export("vpcsList", vpcs)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Timescale = Pulumi.Timescale;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var tsAccessKey = config.Require("tsAccessKey");
var tsSecretKey = config.Require("tsSecretKey");
var tsProjectId = config.Require("tsProjectId");
var vpcs = Timescale.GetVpcs.Invoke();
return new Dictionary<string, object?>
{
["vpcsList"] = vpcs,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.timescale.TimescaleFunctions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var tsAccessKey = config.get("tsAccessKey");
final var tsSecretKey = config.get("tsSecretKey");
final var tsProjectId = config.get("tsProjectId");
final var vpcs = TimescaleFunctions.getVpcs();
ctx.export("vpcsList", vpcs.applyValue(getVpcsResult -> getVpcsResult));
}
}
configuration:
tsAccessKey:
type: string
tsSecretKey:
type: string
tsProjectId:
type: string
variables:
vpcs:
fn::invoke:
function: timescale:getVpcs
arguments: {}
outputs:
vpcsList: ${vpcs}
Using getVpcs
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getVpcs(opts?: InvokeOptions): Promise<GetVpcsResult>
function getVpcsOutput(opts?: InvokeOptions): Output<GetVpcsResult>
def get_vpcs(opts: Optional[InvokeOptions] = None) -> GetVpcsResult
def get_vpcs_output(opts: Optional[InvokeOptions] = None) -> Output[GetVpcsResult]
func LookupVpcs(ctx *Context, opts ...InvokeOption) (*LookupVpcsResult, error)
func LookupVpcsOutput(ctx *Context, opts ...InvokeOption) LookupVpcsResultOutput
> Note: This function is named LookupVpcs
in the Go SDK.
public static class GetVpcs
{
public static Task<GetVpcsResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetVpcsResult> Invoke(InvokeOptions? opts = null)
}
public static CompletableFuture<GetVpcsResult> getVpcs(InvokeOptions options)
public static Output<GetVpcsResult> getVpcs(InvokeOptions options)
fn::invoke:
function: timescale:index/getVpcs:getVpcs
arguments:
# arguments dictionary
getVpcs Result
The following output properties are available:
- Id string
- The ID of this resource.
- Vpcs
List<Get
Vpcs Vpc>
- Id string
- The ID of this resource.
- Vpcs
[]Get
Vpcs Vpc
- id String
- The ID of this resource.
- vpcs
List<Get
Vpcs Vpc>
- id string
- The ID of this resource.
- vpcs
Get
Vpcs Vpc[]
- id str
- The ID of this resource.
- vpcs
Sequence[Get
Vpcs Vpc]
- id String
- The ID of this resource.
- vpcs List<Property Map>
Supporting Types
GetVpcsVpc
- Cidr string
- Created string
- Error
Message string - Id double
- Name string
- Peering
Connections List<GetVpcs Vpc Peering Connection> - Project
Id string - Provisioned
Id string - Region
Code string - Status string
- Updated string
- Cidr string
- Created string
- Error
Message string - Id float64
- Name string
- Peering
Connections []GetVpcs Vpc Peering Connection - Project
Id string - Provisioned
Id string - Region
Code string - Status string
- Updated string
- cidr String
- created String
- error
Message String - id Double
- name String
- peering
Connections List<GetVpcs Vpc Peering Connection> - project
Id String - provisioned
Id String - region
Code String - status String
- updated String
- cidr string
- created string
- error
Message string - id number
- name string
- peering
Connections GetVpcs Vpc Peering Connection[] - project
Id string - provisioned
Id string - region
Code string - status string
- updated string
- cidr str
- created str
- error_
message str - id float
- name str
- peering_
connections Sequence[GetVpcs Vpc Peering Connection] - project_
id str - provisioned_
id str - region_
code str - status str
- updated str
- cidr String
- created String
- error
Message String - id Number
- name String
- peering
Connections List<Property Map> - project
Id String - provisioned
Id String - region
Code String - status String
- updated String
GetVpcsVpcPeeringConnection
- Error
Message string - Id double
- Peer
Account stringId - Peer
Cidr string - Peer
Cidr List<string>Blocks - Peer
Region stringCode - Peer
Tgw stringId - Peer
Vpc stringId - Peering
Type string - Provisioned
Id string - Status string
- Timescale
Vpc doubleId - Vpc
Id string
- Error
Message string - Id float64
- Peer
Account stringId - Peer
Cidr string - Peer
Cidr []stringBlocks - Peer
Region stringCode - Peer
Tgw stringId - Peer
Vpc stringId - Peering
Type string - Provisioned
Id string - Status string
- Timescale
Vpc float64Id - Vpc
Id string
- error
Message String - id Double
- peer
Account StringId - peer
Cidr String - peer
Cidr List<String>Blocks - peer
Region StringCode - peer
Tgw StringId - peer
Vpc StringId - peering
Type String - provisioned
Id String - status String
- timescale
Vpc DoubleId - vpc
Id String
- error
Message string - id number
- peer
Account stringId - peer
Cidr string - peer
Cidr string[]Blocks - peer
Region stringCode - peer
Tgw stringId - peer
Vpc stringId - peering
Type string - provisioned
Id string - status string
- timescale
Vpc numberId - vpc
Id string
- error_
message str - id float
- peer_
account_ strid - peer_
cidr str - peer_
cidr_ Sequence[str]blocks - peer_
region_ strcode - peer_
tgw_ strid - peer_
vpc_ strid - peering_
type str - provisioned_
id str - status str
- timescale_
vpc_ floatid - vpc_
id str
- error
Message String - id Number
- peer
Account StringId - peer
Cidr String - peer
Cidr List<String>Blocks - peer
Region StringCode - peer
Tgw StringId - peer
Vpc StringId - peering
Type String - provisioned
Id String - status String
- timescale
Vpc NumberId - vpc
Id String
Package Details
- Repository
- timescale timescale/terraform-provider-timescale
- License
- Notes
- This Pulumi package is based on the
timescale
Terraform Provider.
timescale 2.3.0 published on Thursday, Jun 12, 2025 by timescale