1. Packages
  2. Vercel Provider
  3. API Docs
  4. getEdgeConfigItem
Vercel v3.1.2 published on Tuesday, May 13, 2025 by Pulumiverse

vercel.getEdgeConfigItem

Explore with Pulumi AI

vercel logo
Vercel v3.1.2 published on Tuesday, May 13, 2025 by Pulumiverse

    Provides the value of an existing Edge Config Item.

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

    An Edge Config Item is a value within an Edge Config.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vercel from "@pulumi/vercel";
    
    const example = vercel.getEdgeConfig({
        id: "ecfg_xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    });
    const test = example.then(example => vercel.getEdgeConfigItem({
        id: example.id,
        key: "foobar",
    }));
    
    import pulumi
    import pulumi_vercel as vercel
    
    example = vercel.get_edge_config(id="ecfg_xxxxxxxxxxxxxxxxxxxxxxxxxxxx")
    test = vercel.get_edge_config_item(id=example.id,
        key="foobar")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-vercel/sdk/v3/go/vercel"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := vercel.LookupEdgeConfig(ctx, &vercel.LookupEdgeConfigArgs{
    			Id: "ecfg_xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = vercel.LookupEdgeConfigItem(ctx, &vercel.LookupEdgeConfigItemArgs{
    			Id:  example.Id,
    			Key: "foobar",
    		}, 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 example = Vercel.GetEdgeConfig.Invoke(new()
        {
            Id = "ecfg_xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        });
    
        var test = Vercel.GetEdgeConfigItem.Invoke(new()
        {
            Id = example.Apply(getEdgeConfigResult => getEdgeConfigResult.Id),
            Key = "foobar",
        });
    
    });
    
    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.GetEdgeConfigArgs;
    import com.pulumi.vercel.inputs.GetEdgeConfigItemArgs;
    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 example = VercelFunctions.getEdgeConfig(GetEdgeConfigArgs.builder()
                .id("ecfg_xxxxxxxxxxxxxxxxxxxxxxxxxxxx")
                .build());
    
            final var test = VercelFunctions.getEdgeConfigItem(GetEdgeConfigItemArgs.builder()
                .id(example.applyValue(getEdgeConfigResult -> getEdgeConfigResult.id()))
                .key("foobar")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: vercel:getEdgeConfig
          Arguments:
            id: ecfg_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
      test:
        fn::invoke:
          Function: vercel:getEdgeConfigItem
          Arguments:
            id: ${example.id}
            key: foobar
    

    Using getEdgeConfigItem

    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 getEdgeConfigItem(args: GetEdgeConfigItemArgs, opts?: InvokeOptions): Promise<GetEdgeConfigItemResult>
    function getEdgeConfigItemOutput(args: GetEdgeConfigItemOutputArgs, opts?: InvokeOptions): Output<GetEdgeConfigItemResult>
    def get_edge_config_item(id: Optional[str] = None,
                             key: Optional[str] = None,
                             team_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetEdgeConfigItemResult
    def get_edge_config_item_output(id: Optional[pulumi.Input[str]] = None,
                             key: Optional[pulumi.Input[str]] = None,
                             team_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetEdgeConfigItemResult]
    func LookupEdgeConfigItem(ctx *Context, args *LookupEdgeConfigItemArgs, opts ...InvokeOption) (*LookupEdgeConfigItemResult, error)
    func LookupEdgeConfigItemOutput(ctx *Context, args *LookupEdgeConfigItemOutputArgs, opts ...InvokeOption) LookupEdgeConfigItemResultOutput

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

    public static class GetEdgeConfigItem 
    {
        public static Task<GetEdgeConfigItemResult> InvokeAsync(GetEdgeConfigItemArgs args, InvokeOptions? opts = null)
        public static Output<GetEdgeConfigItemResult> Invoke(GetEdgeConfigItemInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEdgeConfigItemResult> getEdgeConfigItem(GetEdgeConfigItemArgs args, InvokeOptions options)
    public static Output<GetEdgeConfigItemResult> getEdgeConfigItem(GetEdgeConfigItemArgs args, InvokeOptions options)
    
    fn::invoke:
      function: vercel:index/getEdgeConfigItem:getEdgeConfigItem
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The ID of the Edge Config that the item should exist under.
    Key string
    The name of the key you want to retrieve within your Edge Config.
    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.
    Id string
    The ID of the Edge Config that the item should exist under.
    Key string
    The name of the key you want to retrieve within your Edge Config.
    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.
    id String
    The ID of the Edge Config that the item should exist under.
    key String
    The name of the key you want to retrieve within your Edge Config.
    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.
    id string
    The ID of the Edge Config that the item should exist under.
    key string
    The name of the key you want to retrieve within your Edge Config.
    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.
    id str
    The ID of the Edge Config that the item should exist under.
    key str
    The name of the key you want to retrieve within your Edge Config.
    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.
    id String
    The ID of the Edge Config that the item should exist under.
    key String
    The name of the key you want to retrieve within your Edge Config.
    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.

    getEdgeConfigItem Result

    The following output properties are available:

    Id string
    The ID of the Edge Config that the item should exist under.
    Key string
    The name of the key you want to retrieve within your Edge Config.
    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.
    Value string
    The value assigned to the key.
    Id string
    The ID of the Edge Config that the item should exist under.
    Key string
    The name of the key you want to retrieve within your Edge Config.
    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.
    Value string
    The value assigned to the key.
    id String
    The ID of the Edge Config that the item should exist under.
    key String
    The name of the key you want to retrieve within your Edge Config.
    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.
    value String
    The value assigned to the key.
    id string
    The ID of the Edge Config that the item should exist under.
    key string
    The name of the key you want to retrieve within your Edge Config.
    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.
    value string
    The value assigned to the key.
    id str
    The ID of the Edge Config that the item should exist under.
    key str
    The name of the key you want to retrieve within your Edge Config.
    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.
    value str
    The value assigned to the key.
    id String
    The ID of the Edge Config that the item should exist under.
    key String
    The name of the key you want to retrieve within your Edge Config.
    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.
    value String
    The value assigned to the key.

    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 v3.1.2 published on Tuesday, May 13, 2025 by Pulumiverse