published on Thursday, Oct 15, 2026 by Pulumiverse
published on Thursday, Oct 15, 2026 by Pulumiverse
Provides an AI Gateway API Key resource.
An AI Gateway API Key can be used to authenticate with the Vercel AI Gateway.
The api_key_string value is only returned during creation and is stored (marked sensitive) in Terraform state. It cannot be retrieved again later, so imported resources will not populate api_key_string.
Managing
ai_gateway_quotarequires the AI Gateway API key quotas feature to be enabled for the team.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vercel from "@pulumiverse/vercel";
const example = new vercel.AiGatewayApiKey("example", {name: "workflow-github-actions"});
// An API key with an expiration and a monthly spend quota.
const withQuota = new vercel.AiGatewayApiKey("with_quota", {
name: "production",
expiresAt: 1767225600000,
aiGatewayQuota: {
limitAmount: 500,
refreshPeriod: "monthly",
alertThresholds: [
50,
75,
100,
],
},
});
export const aiGatewayApiKey = example.apiKeyString;
import pulumi
import pulumiverse_vercel as vercel
example = vercel.AiGatewayApiKey("example", name="workflow-github-actions")
# An API key with an expiration and a monthly spend quota.
with_quota = vercel.AiGatewayApiKey("with_quota",
name="production",
expires_at=1767225600000,
ai_gateway_quota={
"limit_amount": 500,
"refresh_period": "monthly",
"alert_thresholds": [
50,
75,
100,
],
})
pulumi.export("aiGatewayApiKey", example.api_key_string)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-vercel/sdk/v5/go/vercel"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := vercel.NewAiGatewayApiKey(ctx, "example", &vercel.AiGatewayApiKeyArgs{
Name: pulumi.String("workflow-github-actions"),
})
if err != nil {
return err
}
// An API key with an expiration and a monthly spend quota.
_, err = vercel.NewAiGatewayApiKey(ctx, "with_quota", &vercel.AiGatewayApiKeyArgs{
Name: pulumi.String("production"),
ExpiresAt: pulumi.Int(1767225600000),
AiGatewayQuota: &vercel.AiGatewayApiKeyAiGatewayQuotaArgs{
LimitAmount: pulumi.Float64(500),
RefreshPeriod: pulumi.String("monthly"),
AlertThresholds: pulumi.IntArray{
pulumi.Int(50),
pulumi.Int(75),
pulumi.Int(100),
},
},
})
if err != nil {
return err
}
ctx.Export("aiGatewayApiKey", example.ApiKeyString)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vercel = Pulumiverse.Vercel;
return await Deployment.RunAsync(() =>
{
var example = new Vercel.AiGatewayApiKey("example", new()
{
Name = "workflow-github-actions",
});
// An API key with an expiration and a monthly spend quota.
var withQuota = new Vercel.AiGatewayApiKey("with_quota", new()
{
Name = "production",
ExpiresAt = 1767225600000,
AiGatewayQuota = new Vercel.Inputs.AiGatewayApiKeyAiGatewayQuotaArgs
{
LimitAmount = 500,
RefreshPeriod = "monthly",
AlertThresholds = new[]
{
50,
75,
100,
},
},
});
return new Dictionary<string, object?>
{
["aiGatewayApiKey"] = example.ApiKeyString,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumiverse.vercel.AiGatewayApiKey;
import com.pulumiverse.vercel.AiGatewayApiKeyArgs;
import com.pulumi.vercel.inputs.AiGatewayApiKeyAiGatewayQuotaArgs;
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) {
var example = new AiGatewayApiKey("example", AiGatewayApiKeyArgs.builder()
.name("workflow-github-actions")
.build());
// An API key with an expiration and a monthly spend quota.
var withQuota = new AiGatewayApiKey("withQuota", AiGatewayApiKeyArgs.builder()
.name("production")
.expiresAt(1767225600000)
.aiGatewayQuota(AiGatewayApiKeyAiGatewayQuotaArgs.builder()
.limitAmount(500.0)
.refreshPeriod("monthly")
.alertThresholds(
50,
75,
100)
.build())
.build());
ctx.export("aiGatewayApiKey", example.apiKeyString());
}
}
resources:
example:
type: vercel:AiGatewayApiKey
properties:
name: workflow-github-actions
# An API key with an expiration and a monthly spend quota.
withQuota:
type: vercel:AiGatewayApiKey
name: with_quota
properties:
name: production
expiresAt: 1.7672256e+12 # January 1, 2026
aiGatewayQuota:
limitAmount: 500
refreshPeriod: monthly
alertThresholds:
- 50
- 75
- 100
outputs:
aiGatewayApiKey: ${example.apiKeyString}
Example coming soon!
Create AiGatewayApiKey Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AiGatewayApiKey(name: string, args?: AiGatewayApiKeyArgs, opts?: CustomResourceOptions);@overload
def AiGatewayApiKey(resource_name: str,
args: Optional[AiGatewayApiKeyArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def AiGatewayApiKey(resource_name: str,
opts: Optional[ResourceOptions] = None,
ai_gateway_quota: Optional[AiGatewayApiKeyAiGatewayQuotaArgs] = None,
expires_at: Optional[int] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
team_id: Optional[str] = None)func NewAiGatewayApiKey(ctx *Context, name string, args *AiGatewayApiKeyArgs, opts ...ResourceOption) (*AiGatewayApiKey, error)public AiGatewayApiKey(string name, AiGatewayApiKeyArgs? args = null, CustomResourceOptions? opts = null)
public AiGatewayApiKey(String name, AiGatewayApiKeyArgs args)
public AiGatewayApiKey(String name, AiGatewayApiKeyArgs args, CustomResourceOptions options)
type: vercel:AiGatewayApiKey
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "vercel_ai_gateway_api_key" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args AiGatewayApiKeyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AiGatewayApiKeyArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AiGatewayApiKeyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AiGatewayApiKeyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AiGatewayApiKeyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var aiGatewayApiKeyResource = new Vercel.AiGatewayApiKey("aiGatewayApiKeyResource", new()
{
AiGatewayQuota = new Vercel.Inputs.AiGatewayApiKeyAiGatewayQuotaArgs
{
LimitAmount = 0.0,
AlertThresholds = new[]
{
0,
},
RefreshPeriod = "string",
},
ExpiresAt = 0,
Name = "string",
ProjectId = "string",
TeamId = "string",
});
example, err := vercel.NewAiGatewayApiKey(ctx, "aiGatewayApiKeyResource", &vercel.AiGatewayApiKeyArgs{
AiGatewayQuota: &vercel.AiGatewayApiKeyAiGatewayQuotaArgs{
LimitAmount: pulumi.Float64(0),
AlertThresholds: pulumi.IntArray{
pulumi.Int(0),
},
RefreshPeriod: pulumi.String("string"),
},
ExpiresAt: pulumi.Int(0),
Name: pulumi.String("string"),
ProjectId: pulumi.String("string"),
TeamId: pulumi.String("string"),
})
resource "vercel_ai_gateway_api_key" "aiGatewayApiKeyResource" {
lifecycle {
create_before_destroy = true
}
ai_gateway_quota = {
limit_amount = 0
alert_thresholds = [0]
refresh_period = "string"
}
expires_at = 0
name = "string"
project_id = "string"
team_id = "string"
}
var aiGatewayApiKeyResource = new AiGatewayApiKey("aiGatewayApiKeyResource", AiGatewayApiKeyArgs.builder()
.aiGatewayQuota(AiGatewayApiKeyAiGatewayQuotaArgs.builder()
.limitAmount(0.0)
.alertThresholds(0)
.refreshPeriod("string")
.build())
.expiresAt(0)
.name("string")
.projectId("string")
.teamId("string")
.build());
ai_gateway_api_key_resource = vercel.AiGatewayApiKey("aiGatewayApiKeyResource",
ai_gateway_quota={
"limit_amount": float(0),
"alert_thresholds": [0],
"refresh_period": "string",
},
expires_at=0,
name="string",
project_id="string",
team_id="string")
const aiGatewayApiKeyResource = new vercel.AiGatewayApiKey("aiGatewayApiKeyResource", {
aiGatewayQuota: {
limitAmount: 0,
alertThresholds: [0],
refreshPeriod: "string",
},
expiresAt: 0,
name: "string",
projectId: "string",
teamId: "string",
});
type: vercel:AiGatewayApiKey
properties:
aiGatewayQuota:
alertThresholds:
- 0
limitAmount: 0
refreshPeriod: string
expiresAt: 0
name: string
projectId: string
teamId: string
AiGatewayApiKey Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AiGatewayApiKey resource accepts the following input properties:
- Ai
Gateway Pulumiverse.Quota Vercel. Inputs. Ai Gateway Api Key Ai Gateway Quota - A spend quota (budget) for the API key. Removing this attribute archives the quota; the API key itself is unaffected.
- Expires
At int - The Unix timestamp in milliseconds when the API key should expire. Must not be in the past or more than two years in the future. Cannot be changed after creation.
- Name string
- The human-readable name of the API key.
- Project
Id string - The ID of a project to restrict the API key to. When unset, the API key grants access to all projects in the team. Cannot be changed after creation.
- Team
Id string - The ID of the Vercel team scope for this API key. Required if a default team has not been set in the provider.
- Ai
Gateway AiQuota Gateway Api Key Ai Gateway Quota Args - A spend quota (budget) for the API key. Removing this attribute archives the quota; the API key itself is unaffected.
- Expires
At int - The Unix timestamp in milliseconds when the API key should expire. Must not be in the past or more than two years in the future. Cannot be changed after creation.
- Name string
- The human-readable name of the API key.
- Project
Id string - The ID of a project to restrict the API key to. When unset, the API key grants access to all projects in the team. Cannot be changed after creation.
- Team
Id string - The ID of the Vercel team scope for this API key. Required if a default team has not been set in the provider.
- ai_
gateway_ objectquota - A spend quota (budget) for the API key. Removing this attribute archives the quota; the API key itself is unaffected.
- expires_
at number - The Unix timestamp in milliseconds when the API key should expire. Must not be in the past or more than two years in the future. Cannot be changed after creation.
- name string
- The human-readable name of the API key.
- project_
id string - The ID of a project to restrict the API key to. When unset, the API key grants access to all projects in the team. Cannot be changed after creation.
- team_
id string - The ID of the Vercel team scope for this API key. Required if a default team has not been set in the provider.
- ai
Gateway AiQuota Gateway Api Key Ai Gateway Quota - A spend quota (budget) for the API key. Removing this attribute archives the quota; the API key itself is unaffected.
- expires
At Integer - The Unix timestamp in milliseconds when the API key should expire. Must not be in the past or more than two years in the future. Cannot be changed after creation.
- name String
- The human-readable name of the API key.
- project
Id String - The ID of a project to restrict the API key to. When unset, the API key grants access to all projects in the team. Cannot be changed after creation.
- team
Id String - The ID of the Vercel team scope for this API key. Required if a default team has not been set in the provider.
- ai
Gateway AiQuota Gateway Api Key Ai Gateway Quota - A spend quota (budget) for the API key. Removing this attribute archives the quota; the API key itself is unaffected.
- expires
At number - The Unix timestamp in milliseconds when the API key should expire. Must not be in the past or more than two years in the future. Cannot be changed after creation.
- name string
- The human-readable name of the API key.
- project
Id string - The ID of a project to restrict the API key to. When unset, the API key grants access to all projects in the team. Cannot be changed after creation.
- team
Id string - The ID of the Vercel team scope for this API key. Required if a default team has not been set in the provider.
- ai_
gateway_ Aiquota Gateway Api Key Ai Gateway Quota Args - A spend quota (budget) for the API key. Removing this attribute archives the quota; the API key itself is unaffected.
- expires_
at int - The Unix timestamp in milliseconds when the API key should expire. Must not be in the past or more than two years in the future. Cannot be changed after creation.
- name str
- The human-readable name of the API key.
- project_
id str - The ID of a project to restrict the API key to. When unset, the API key grants access to all projects in the team. Cannot be changed after creation.
- team_
id str - The ID of the Vercel team scope for this API key. Required if a default team has not been set in the provider.
- ai
Gateway Property MapQuota - A spend quota (budget) for the API key. Removing this attribute archives the quota; the API key itself is unaffected.
- expires
At Number - The Unix timestamp in milliseconds when the API key should expire. Must not be in the past or more than two years in the future. Cannot be changed after creation.
- name String
- The human-readable name of the API key.
- project
Id String - The ID of a project to restrict the API key to. When unset, the API key grants access to all projects in the team. Cannot be changed after creation.
- team
Id String - The ID of the Vercel team scope for this API key. Required if a default team has not been set in the provider.
Outputs
All input properties are implicitly available as output properties. Additionally, the AiGatewayApiKey resource produces the following output properties:
- Api
Key stringString - The API key value. This is only returned during creation and then preserved in Terraform state.
- Id string
- The provider-assigned unique ID for this managed resource.
- Partial
Key string - The final characters of the API key, used for identification.
- Api
Key stringString - The API key value. This is only returned during creation and then preserved in Terraform state.
- Id string
- The provider-assigned unique ID for this managed resource.
- Partial
Key string - The final characters of the API key, used for identification.
- api_
key_ stringstring - The API key value. This is only returned during creation and then preserved in Terraform state.
- id string
- The provider-assigned unique ID for this managed resource.
- partial_
key string - The final characters of the API key, used for identification.
- api
Key StringString - The API key value. This is only returned during creation and then preserved in Terraform state.
- id String
- The provider-assigned unique ID for this managed resource.
- partial
Key String - The final characters of the API key, used for identification.
- api
Key stringString - The API key value. This is only returned during creation and then preserved in Terraform state.
- id string
- The provider-assigned unique ID for this managed resource.
- partial
Key string - The final characters of the API key, used for identification.
- api_
key_ strstring - The API key value. This is only returned during creation and then preserved in Terraform state.
- id str
- The provider-assigned unique ID for this managed resource.
- partial_
key str - The final characters of the API key, used for identification.
- api
Key StringString - The API key value. This is only returned during creation and then preserved in Terraform state.
- id String
- The provider-assigned unique ID for this managed resource.
- partial
Key String - The final characters of the API key, used for identification.
Look up Existing AiGatewayApiKey Resource
Get an existing AiGatewayApiKey resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AiGatewayApiKeyState, opts?: CustomResourceOptions): AiGatewayApiKey@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ai_gateway_quota: Optional[AiGatewayApiKeyAiGatewayQuotaArgs] = None,
api_key_string: Optional[str] = None,
expires_at: Optional[int] = None,
name: Optional[str] = None,
partial_key: Optional[str] = None,
project_id: Optional[str] = None,
team_id: Optional[str] = None) -> AiGatewayApiKeyfunc GetAiGatewayApiKey(ctx *Context, name string, id IDInput, state *AiGatewayApiKeyState, opts ...ResourceOption) (*AiGatewayApiKey, error)public static AiGatewayApiKey Get(string name, Input<string> id, AiGatewayApiKeyState? state, CustomResourceOptions? opts = null)public static AiGatewayApiKey get(String name, Output<String> id, AiGatewayApiKeyState state, CustomResourceOptions options)resources: _: type: vercel:AiGatewayApiKey get: id: ${id}import {
to = vercel_ai_gateway_api_key.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Ai
Gateway Pulumiverse.Quota Vercel. Inputs. Ai Gateway Api Key Ai Gateway Quota - A spend quota (budget) for the API key. Removing this attribute archives the quota; the API key itself is unaffected.
- Api
Key stringString - The API key value. This is only returned during creation and then preserved in Terraform state.
- Expires
At int - The Unix timestamp in milliseconds when the API key should expire. Must not be in the past or more than two years in the future. Cannot be changed after creation.
- Name string
- The human-readable name of the API key.
- Partial
Key string - The final characters of the API key, used for identification.
- Project
Id string - The ID of a project to restrict the API key to. When unset, the API key grants access to all projects in the team. Cannot be changed after creation.
- Team
Id string - The ID of the Vercel team scope for this API key. Required if a default team has not been set in the provider.
- Ai
Gateway AiQuota Gateway Api Key Ai Gateway Quota Args - A spend quota (budget) for the API key. Removing this attribute archives the quota; the API key itself is unaffected.
- Api
Key stringString - The API key value. This is only returned during creation and then preserved in Terraform state.
- Expires
At int - The Unix timestamp in milliseconds when the API key should expire. Must not be in the past or more than two years in the future. Cannot be changed after creation.
- Name string
- The human-readable name of the API key.
- Partial
Key string - The final characters of the API key, used for identification.
- Project
Id string - The ID of a project to restrict the API key to. When unset, the API key grants access to all projects in the team. Cannot be changed after creation.
- Team
Id string - The ID of the Vercel team scope for this API key. Required if a default team has not been set in the provider.
- ai_
gateway_ objectquota - A spend quota (budget) for the API key. Removing this attribute archives the quota; the API key itself is unaffected.
- api_
key_ stringstring - The API key value. This is only returned during creation and then preserved in Terraform state.
- expires_
at number - The Unix timestamp in milliseconds when the API key should expire. Must not be in the past or more than two years in the future. Cannot be changed after creation.
- name string
- The human-readable name of the API key.
- partial_
key string - The final characters of the API key, used for identification.
- project_
id string - The ID of a project to restrict the API key to. When unset, the API key grants access to all projects in the team. Cannot be changed after creation.
- team_
id string - The ID of the Vercel team scope for this API key. Required if a default team has not been set in the provider.
- ai
Gateway AiQuota Gateway Api Key Ai Gateway Quota - A spend quota (budget) for the API key. Removing this attribute archives the quota; the API key itself is unaffected.
- api
Key StringString - The API key value. This is only returned during creation and then preserved in Terraform state.
- expires
At Integer - The Unix timestamp in milliseconds when the API key should expire. Must not be in the past or more than two years in the future. Cannot be changed after creation.
- name String
- The human-readable name of the API key.
- partial
Key String - The final characters of the API key, used for identification.
- project
Id String - The ID of a project to restrict the API key to. When unset, the API key grants access to all projects in the team. Cannot be changed after creation.
- team
Id String - The ID of the Vercel team scope for this API key. Required if a default team has not been set in the provider.
- ai
Gateway AiQuota Gateway Api Key Ai Gateway Quota - A spend quota (budget) for the API key. Removing this attribute archives the quota; the API key itself is unaffected.
- api
Key stringString - The API key value. This is only returned during creation and then preserved in Terraform state.
- expires
At number - The Unix timestamp in milliseconds when the API key should expire. Must not be in the past or more than two years in the future. Cannot be changed after creation.
- name string
- The human-readable name of the API key.
- partial
Key string - The final characters of the API key, used for identification.
- project
Id string - The ID of a project to restrict the API key to. When unset, the API key grants access to all projects in the team. Cannot be changed after creation.
- team
Id string - The ID of the Vercel team scope for this API key. Required if a default team has not been set in the provider.
- ai_
gateway_ Aiquota Gateway Api Key Ai Gateway Quota Args - A spend quota (budget) for the API key. Removing this attribute archives the quota; the API key itself is unaffected.
- api_
key_ strstring - The API key value. This is only returned during creation and then preserved in Terraform state.
- expires_
at int - The Unix timestamp in milliseconds when the API key should expire. Must not be in the past or more than two years in the future. Cannot be changed after creation.
- name str
- The human-readable name of the API key.
- partial_
key str - The final characters of the API key, used for identification.
- project_
id str - The ID of a project to restrict the API key to. When unset, the API key grants access to all projects in the team. Cannot be changed after creation.
- team_
id str - The ID of the Vercel team scope for this API key. Required if a default team has not been set in the provider.
- ai
Gateway Property MapQuota - A spend quota (budget) for the API key. Removing this attribute archives the quota; the API key itself is unaffected.
- api
Key StringString - The API key value. This is only returned during creation and then preserved in Terraform state.
- expires
At Number - The Unix timestamp in milliseconds when the API key should expire. Must not be in the past or more than two years in the future. Cannot be changed after creation.
- name String
- The human-readable name of the API key.
- partial
Key String - The final characters of the API key, used for identification.
- project
Id String - The ID of a project to restrict the API key to. When unset, the API key grants access to all projects in the team. Cannot be changed after creation.
- team
Id String - The ID of the Vercel team scope for this API key. Required if a default team has not been set in the provider.
Supporting Types
AiGatewayApiKeyAiGatewayQuota, AiGatewayApiKeyAiGatewayQuotaArgs
- Limit
Amount double - The quota limit amount in US dollars.
- Alert
Thresholds List<int> - Spend percentages (a subset of
[50, 75, 100]) at which to send a spend alert. - Refresh
Period string - How often the quota refreshes. Must be one of
daily,weekly,monthlyornone. Defaults tonone.
- Limit
Amount float64 - The quota limit amount in US dollars.
- Alert
Thresholds []int - Spend percentages (a subset of
[50, 75, 100]) at which to send a spend alert. - Refresh
Period string - How often the quota refreshes. Must be one of
daily,weekly,monthlyornone. Defaults tonone.
- limit_
amount number - The quota limit amount in US dollars.
- alert_
thresholds list(number) - Spend percentages (a subset of
[50, 75, 100]) at which to send a spend alert. - refresh_
period string - How often the quota refreshes. Must be one of
daily,weekly,monthlyornone. Defaults tonone.
- limit
Amount Double - The quota limit amount in US dollars.
- alert
Thresholds List<Integer> - Spend percentages (a subset of
[50, 75, 100]) at which to send a spend alert. - refresh
Period String - How often the quota refreshes. Must be one of
daily,weekly,monthlyornone. Defaults tonone.
- limit
Amount number - The quota limit amount in US dollars.
- alert
Thresholds number[] - Spend percentages (a subset of
[50, 75, 100]) at which to send a spend alert. - refresh
Period string - How often the quota refreshes. Must be one of
daily,weekly,monthlyornone. Defaults tonone.
- limit_
amount float - The quota limit amount in US dollars.
- alert_
thresholds Sequence[int] - Spend percentages (a subset of
[50, 75, 100]) at which to send a spend alert. - refresh_
period str - How often the quota refreshes. Must be one of
daily,weekly,monthlyornone. Defaults tonone.
- limit
Amount Number - The quota limit amount in US dollars.
- alert
Thresholds List<Number> - Spend percentages (a subset of
[50, 75, 100]) at which to send a spend alert. - refresh
Period String - How often the quota refreshes. Must be one of
daily,weekly,monthlyornone. Defaults tonone.
Import
The pulumi import command can be used, for example:
AI Gateway API keys can be imported by team and API key ID.
$ pulumi import vercel:index/aiGatewayApiKey:AiGatewayApiKey example team_xxxxxxxxxxxxxxxxxxxx/key_xxxxxxxxxxxxxxxxxxxx
Or when a default team is configured on the provider, by API key ID only.
$ pulumi import vercel:index/aiGatewayApiKey:AiGatewayApiKey example key_xxxxxxxxxxxxxxxxxxxx
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- vercel pulumiverse/pulumi-vercel
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vercelTerraform Provider.
published on Thursday, Oct 15, 2026 by Pulumiverse