1. Packages
  2. Timescale Provider
  3. API Docs
  4. getVpcs
timescale 2.3.0 published on Thursday, Jun 12, 2025 by timescale

timescale.getVpcs

Explore with Pulumi AI

timescale logo
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<GetVpcsVpc>
    Id string
    The ID of this resource.
    Vpcs []GetVpcsVpc
    id String
    The ID of this resource.
    vpcs List<GetVpcsVpc>
    id string
    The ID of this resource.
    vpcs GetVpcsVpc[]
    id str
    The ID of this resource.
    vpcs Sequence[GetVpcsVpc]
    id String
    The ID of this resource.
    vpcs List<Property Map>

    Supporting Types

    GetVpcsVpc

    GetVpcsVpcPeeringConnection

    ErrorMessage string
    Id double
    PeerAccountId string
    PeerCidr string
    PeerCidrBlocks List<string>
    PeerRegionCode string
    PeerTgwId string
    PeerVpcId string
    PeeringType string
    ProvisionedId string
    Status string
    TimescaleVpcId double
    VpcId string
    ErrorMessage string
    Id float64
    PeerAccountId string
    PeerCidr string
    PeerCidrBlocks []string
    PeerRegionCode string
    PeerTgwId string
    PeerVpcId string
    PeeringType string
    ProvisionedId string
    Status string
    TimescaleVpcId float64
    VpcId string
    errorMessage String
    id Double
    peerAccountId String
    peerCidr String
    peerCidrBlocks List<String>
    peerRegionCode String
    peerTgwId String
    peerVpcId String
    peeringType String
    provisionedId String
    status String
    timescaleVpcId Double
    vpcId String
    errorMessage string
    id number
    peerAccountId string
    peerCidr string
    peerCidrBlocks string[]
    peerRegionCode string
    peerTgwId string
    peerVpcId string
    peeringType string
    provisionedId string
    status string
    timescaleVpcId number
    vpcId string
    errorMessage String
    id Number
    peerAccountId String
    peerCidr String
    peerCidrBlocks List<String>
    peerRegionCode String
    peerTgwId String
    peerVpcId String
    peeringType String
    provisionedId String
    status String
    timescaleVpcId Number
    vpcId String

    Package Details

    Repository
    timescale timescale/terraform-provider-timescale
    License
    Notes
    This Pulumi package is based on the timescale Terraform Provider.
    timescale logo
    timescale 2.3.0 published on Thursday, Jun 12, 2025 by timescale