Vercel v1.14.3 published on Monday, Oct 7, 2024 by Pulumiverse
vercel.getEdgeConfig
Explore with Pulumi AI
Provides information about an existing Edge Config.
An Edge Config is a global data store that enables experimentation with feature flags, A/B testing, critical redirects, and more.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vercel from "@pulumi/vercel";
const example = vercel.getEdgeConfig({
id: "ecfg_xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
});
import pulumi
import pulumi_vercel as vercel
example = vercel.get_edge_config(id="ecfg_xxxxxxxxxxxxxxxxxxxxxxxxxxxx")
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.LookupEdgeConfig(ctx, &vercel.LookupEdgeConfigArgs{
Id: "ecfg_xxxxxxxxxxxxxxxxxxxxxxxxxxxx",
}, 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",
});
});
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 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());
}
}
variables:
example:
fn::invoke:
Function: vercel:getEdgeConfig
Arguments:
id: ecfg_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Using getEdgeConfig
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 getEdgeConfig(args: GetEdgeConfigArgs, opts?: InvokeOptions): Promise<GetEdgeConfigResult>
function getEdgeConfigOutput(args: GetEdgeConfigOutputArgs, opts?: InvokeOptions): Output<GetEdgeConfigResult>
def get_edge_config(id: Optional[str] = None,
team_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEdgeConfigResult
def get_edge_config_output(id: Optional[pulumi.Input[str]] = None,
team_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEdgeConfigResult]
func LookupEdgeConfig(ctx *Context, args *LookupEdgeConfigArgs, opts ...InvokeOption) (*LookupEdgeConfigResult, error)
func LookupEdgeConfigOutput(ctx *Context, args *LookupEdgeConfigOutputArgs, opts ...InvokeOption) LookupEdgeConfigResultOutput
> Note: This function is named LookupEdgeConfig
in the Go SDK.
public static class GetEdgeConfig
{
public static Task<GetEdgeConfigResult> InvokeAsync(GetEdgeConfigArgs args, InvokeOptions? opts = null)
public static Output<GetEdgeConfigResult> Invoke(GetEdgeConfigInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEdgeConfigResult> getEdgeConfig(GetEdgeConfigArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: vercel:index/getEdgeConfig:getEdgeConfig
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- The Edge Config ID to be retrieved. This can be found by navigating to the Edge Config in the Vercel UI and looking at the URL. It should begin with
ecfg_
. - Team
Id 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 Edge Config ID to be retrieved. This can be found by navigating to the Edge Config in the Vercel UI and looking at the URL. It should begin with
ecfg_
. - Team
Id 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 Edge Config ID to be retrieved. This can be found by navigating to the Edge Config in the Vercel UI and looking at the URL. It should begin with
ecfg_
. - team
Id 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 Edge Config ID to be retrieved. This can be found by navigating to the Edge Config in the Vercel UI and looking at the URL. It should begin with
ecfg_
. - team
Id 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 Edge Config ID to be retrieved. This can be found by navigating to the Edge Config in the Vercel UI and looking at the URL. It should begin with
ecfg_
. - 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 Edge Config ID to be retrieved. This can be found by navigating to the Edge Config in the Vercel UI and looking at the URL. It should begin with
ecfg_
. - team
Id 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.
getEdgeConfig Result
The following output properties are available:
- Id string
- The Edge Config ID to be retrieved. This can be found by navigating to the Edge Config in the Vercel UI and looking at the URL. It should begin with
ecfg_
. - Name string
- The name/slug of the Edge Config.
- Team
Id 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 Edge Config ID to be retrieved. This can be found by navigating to the Edge Config in the Vercel UI and looking at the URL. It should begin with
ecfg_
. - Name string
- The name/slug of the Edge Config.
- Team
Id 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 Edge Config ID to be retrieved. This can be found by navigating to the Edge Config in the Vercel UI and looking at the URL. It should begin with
ecfg_
. - name String
- The name/slug of the Edge Config.
- team
Id 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 Edge Config ID to be retrieved. This can be found by navigating to the Edge Config in the Vercel UI and looking at the URL. It should begin with
ecfg_
. - name string
- The name/slug of the Edge Config.
- team
Id 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 Edge Config ID to be retrieved. This can be found by navigating to the Edge Config in the Vercel UI and looking at the URL. It should begin with
ecfg_
. - name str
- The name/slug of the 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 Edge Config ID to be retrieved. This can be found by navigating to the Edge Config in the Vercel UI and looking at the URL. It should begin with
ecfg_
. - name String
- The name/slug of the Edge Config.
- team
Id 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.
Package Details
- Repository
- vercel pulumiverse/pulumi-vercel
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vercel
Terraform Provider.