1. Packages
  2. Vercel
  3. API Docs
  4. getEdgeConfigToken
Vercel v1.11.0 published on Thursday, May 23, 2024 by Pulumiverse

vercel.getEdgeConfigToken

Explore with Pulumi AI

vercel logo
Vercel v1.11.0 published on Thursday, May 23, 2024 by Pulumiverse

    Provides information about an existing Edge Config Token.

    An Edge Config is a global data store that enables experimentation with feature flags, A/B testing, critical redirects, and more.

    An Edge Config token is used to authenticate against an Edge Config’s endpoint.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vercel from "@pulumi/vercel";
    
    const test = vercel.getEdgeConfigToken({
        edgeConfigId: "ecfg_xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        token: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    });
    
    import pulumi
    import pulumi_vercel as vercel
    
    test = vercel.get_edge_config_token(edge_config_id="ecfg_xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        token="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-vercel/sdk/go/vercel"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vercel.LookupEdgeConfigToken(ctx, &vercel.LookupEdgeConfigTokenArgs{
    			EdgeConfigId: "ecfg_xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    			Token:        "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vercel = Pulumi.Vercel;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Vercel.GetEdgeConfigToken.Invoke(new()
        {
            EdgeConfigId = "ecfg_xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
            Token = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vercel.VercelFunctions;
    import com.pulumi.vercel.inputs.GetEdgeConfigTokenArgs;
    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 test = VercelFunctions.getEdgeConfigToken(GetEdgeConfigTokenArgs.builder()
                .edgeConfigId("ecfg_xxxxxxxxxxxxxxxxxxxxxxxxxxxx")
                .token("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          Function: vercel:getEdgeConfigToken
          Arguments:
            edgeConfigId: ecfg_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
            token: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    

    Using getEdgeConfigToken

    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 getEdgeConfigToken(args: GetEdgeConfigTokenArgs, opts?: InvokeOptions): Promise<GetEdgeConfigTokenResult>
    function getEdgeConfigTokenOutput(args: GetEdgeConfigTokenOutputArgs, opts?: InvokeOptions): Output<GetEdgeConfigTokenResult>
    def get_edge_config_token(edge_config_id: Optional[str] = None,
                              team_id: Optional[str] = None,
                              token: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetEdgeConfigTokenResult
    def get_edge_config_token_output(edge_config_id: Optional[pulumi.Input[str]] = None,
                              team_id: Optional[pulumi.Input[str]] = None,
                              token: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetEdgeConfigTokenResult]
    func LookupEdgeConfigToken(ctx *Context, args *LookupEdgeConfigTokenArgs, opts ...InvokeOption) (*LookupEdgeConfigTokenResult, error)
    func LookupEdgeConfigTokenOutput(ctx *Context, args *LookupEdgeConfigTokenOutputArgs, opts ...InvokeOption) LookupEdgeConfigTokenResultOutput

    > Note: This function is named LookupEdgeConfigToken in the Go SDK.

    public static class GetEdgeConfigToken 
    {
        public static Task<GetEdgeConfigTokenResult> InvokeAsync(GetEdgeConfigTokenArgs args, InvokeOptions? opts = null)
        public static Output<GetEdgeConfigTokenResult> Invoke(GetEdgeConfigTokenInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEdgeConfigTokenResult> getEdgeConfigToken(GetEdgeConfigTokenArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: vercel:index/getEdgeConfigToken:getEdgeConfigToken
      arguments:
        # arguments dictionary

    The following arguments are supported:

    EdgeConfigId string
    The label of the Edge Config Token.
    Token string
    A read access token used for authenticating against the Edge Config's endpoint for high volume, low-latency requests.
    TeamId string
    The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.
    EdgeConfigId string
    The label of the Edge Config Token.
    Token string
    A read access token used for authenticating against the Edge Config's endpoint for high volume, low-latency requests.
    TeamId string
    The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.
    edgeConfigId String
    The label of the Edge Config Token.
    token String
    A read access token used for authenticating against the Edge Config's endpoint for high volume, low-latency requests.
    teamId String
    The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.
    edgeConfigId string
    The label of the Edge Config Token.
    token string
    A read access token used for authenticating against the Edge Config's endpoint for high volume, low-latency requests.
    teamId string
    The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.
    edge_config_id str
    The label of the Edge Config Token.
    token str
    A read access token used for authenticating against the Edge Config's endpoint for high volume, low-latency requests.
    team_id str
    The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.
    edgeConfigId String
    The label of the Edge Config Token.
    token String
    A read access token used for authenticating against the Edge Config's endpoint for high volume, low-latency requests.
    teamId String
    The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.

    getEdgeConfigToken Result

    The following output properties are available:

    ConnectionString string
    A connection string is a URL that connects a project to an Edge Config. The variable can be called anything, but our Edge Config client SDK will search for process.env.EDGE_CONFIG by default.
    EdgeConfigId string
    The label of the Edge Config Token.
    Id string
    The ID of this resource.
    Label string
    The label of the Edge Config Token.
    TeamId string
    The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.
    Token string
    A read access token used for authenticating against the Edge Config's endpoint for high volume, low-latency requests.
    ConnectionString string
    A connection string is a URL that connects a project to an Edge Config. The variable can be called anything, but our Edge Config client SDK will search for process.env.EDGE_CONFIG by default.
    EdgeConfigId string
    The label of the Edge Config Token.
    Id string
    The ID of this resource.
    Label string
    The label of the Edge Config Token.
    TeamId string
    The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.
    Token string
    A read access token used for authenticating against the Edge Config's endpoint for high volume, low-latency requests.
    connectionString String
    A connection string is a URL that connects a project to an Edge Config. The variable can be called anything, but our Edge Config client SDK will search for process.env.EDGE_CONFIG by default.
    edgeConfigId String
    The label of the Edge Config Token.
    id String
    The ID of this resource.
    label String
    The label of the Edge Config Token.
    teamId String
    The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.
    token String
    A read access token used for authenticating against the Edge Config's endpoint for high volume, low-latency requests.
    connectionString string
    A connection string is a URL that connects a project to an Edge Config. The variable can be called anything, but our Edge Config client SDK will search for process.env.EDGE_CONFIG by default.
    edgeConfigId string
    The label of the Edge Config Token.
    id string
    The ID of this resource.
    label string
    The label of the Edge Config Token.
    teamId string
    The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.
    token string
    A read access token used for authenticating against the Edge Config's endpoint for high volume, low-latency requests.
    connection_string str
    A connection string is a URL that connects a project to an Edge Config. The variable can be called anything, but our Edge Config client SDK will search for process.env.EDGE_CONFIG by default.
    edge_config_id str
    The label of the Edge Config Token.
    id str
    The ID of this resource.
    label str
    The label of the Edge Config Token.
    team_id str
    The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.
    token str
    A read access token used for authenticating against the Edge Config's endpoint for high volume, low-latency requests.
    connectionString String
    A connection string is a URL that connects a project to an Edge Config. The variable can be called anything, but our Edge Config client SDK will search for process.env.EDGE_CONFIG by default.
    edgeConfigId String
    The label of the Edge Config Token.
    id String
    The ID of this resource.
    label String
    The label of the Edge Config Token.
    teamId String
    The ID of the team the Edge Config should exist under. Required when configuring a team resource if a default team has not been set in the provider.
    token String
    A read access token used for authenticating against the Edge Config's endpoint for high volume, low-latency requests.

    Package Details

    Repository
    vercel pulumiverse/pulumi-vercel
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the vercel Terraform Provider.
    vercel logo
    Vercel v1.11.0 published on Thursday, May 23, 2024 by Pulumiverse