Vercel v1.14.3 published on Monday, Oct 7, 2024 by Pulumiverse
vercel.getEdgeConfigToken
Explore with Pulumi AI
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:
- Edge
Config stringId - 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.
- 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.
- Edge
Config stringId - 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.
- 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.
- edge
Config StringId - 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.
- 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.
- edge
Config stringId - 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.
- 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.
- edge_
config_ strid - 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.
- edge
Config StringId - 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.
- 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.
getEdgeConfigToken Result
The following output properties are available:
- Connection
String 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.
- Edge
Config stringId - The label of the Edge Config Token.
- Id string
- The ID of this resource.
- Label string
- The label of the Edge Config Token.
- 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.
- Token string
- A read access token used for authenticating against the Edge Config's endpoint for high volume, low-latency requests.
- Connection
String 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.
- Edge
Config stringId - The label of the Edge Config Token.
- Id string
- The ID of this resource.
- Label string
- The label of the Edge Config Token.
- 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.
- Token string
- A read access token used for authenticating against the Edge Config's endpoint for high volume, low-latency requests.
- connection
String 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.
- edge
Config StringId - The label of the Edge Config Token.
- id String
- The ID of this resource.
- label String
- The label of the Edge Config Token.
- 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.
- token String
- A read access token used for authenticating against the Edge Config's endpoint for high volume, low-latency requests.
- connection
String 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.
- edge
Config stringId - The label of the Edge Config Token.
- id string
- The ID of this resource.
- label string
- The label of the Edge Config Token.
- 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.
- 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_ strid - 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.
- connection
String 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.
- edge
Config StringId - The label of the Edge Config Token.
- id String
- The ID of this resource.
- label String
- The label of the Edge Config Token.
- 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.
- 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.