1. Registry
  2. Packages
  3. Vercel Provider
  4. API Docs
  5. AiGatewayApiKey
Viewing docs for Vercel v5.21.1
published on Thursday, Oct 15, 2026 by Pulumiverse
vercel logo vercel logo
Viewing docs for Vercel v5.21.1
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_quota requires 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:

    AiGatewayQuota Pulumiverse.Vercel.Inputs.AiGatewayApiKeyAiGatewayQuota
    A spend quota (budget) for the API key. Removing this attribute archives the quota; the API key itself is unaffected.
    ExpiresAt 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.
    ProjectId 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.
    TeamId string
    The ID of the Vercel team scope for this API key. Required if a default team has not been set in the provider.
    AiGatewayQuota AiGatewayApiKeyAiGatewayQuotaArgs
    A spend quota (budget) for the API key. Removing this attribute archives the quota; the API key itself is unaffected.
    ExpiresAt 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.
    ProjectId 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.
    TeamId 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_quota object
    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.
    aiGatewayQuota AiGatewayApiKeyAiGatewayQuota
    A spend quota (budget) for the API key. Removing this attribute archives the quota; the API key itself is unaffected.
    expiresAt 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.
    projectId 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.
    teamId String
    The ID of the Vercel team scope for this API key. Required if a default team has not been set in the provider.
    aiGatewayQuota AiGatewayApiKeyAiGatewayQuota
    A spend quota (budget) for the API key. Removing this attribute archives the quota; the API key itself is unaffected.
    expiresAt 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.
    projectId 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.
    teamId 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_quota AiGatewayApiKeyAiGatewayQuotaArgs
    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.
    aiGatewayQuota Property Map
    A spend quota (budget) for the API key. Removing this attribute archives the quota; the API key itself is unaffected.
    expiresAt 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.
    projectId 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.
    teamId 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:

    ApiKeyString string
    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.
    PartialKey string
    The final characters of the API key, used for identification.
    ApiKeyString string
    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.
    PartialKey string
    The final characters of the API key, used for identification.
    api_key_string string
    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.
    apiKeyString String
    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.
    partialKey String
    The final characters of the API key, used for identification.
    apiKeyString string
    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.
    partialKey string
    The final characters of the API key, used for identification.
    api_key_string str
    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.
    apiKeyString String
    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.
    partialKey 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) -> AiGatewayApiKey
    func 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.
    The following state arguments are supported:
    AiGatewayQuota Pulumiverse.Vercel.Inputs.AiGatewayApiKeyAiGatewayQuota
    A spend quota (budget) for the API key. Removing this attribute archives the quota; the API key itself is unaffected.
    ApiKeyString string
    The API key value. This is only returned during creation and then preserved in Terraform state.
    ExpiresAt 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.
    PartialKey string
    The final characters of the API key, used for identification.
    ProjectId 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.
    TeamId string
    The ID of the Vercel team scope for this API key. Required if a default team has not been set in the provider.
    AiGatewayQuota AiGatewayApiKeyAiGatewayQuotaArgs
    A spend quota (budget) for the API key. Removing this attribute archives the quota; the API key itself is unaffected.
    ApiKeyString string
    The API key value. This is only returned during creation and then preserved in Terraform state.
    ExpiresAt 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.
    PartialKey string
    The final characters of the API key, used for identification.
    ProjectId 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.
    TeamId 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_quota object
    A spend quota (budget) for the API key. Removing this attribute archives the quota; the API key itself is unaffected.
    api_key_string string
    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.
    aiGatewayQuota AiGatewayApiKeyAiGatewayQuota
    A spend quota (budget) for the API key. Removing this attribute archives the quota; the API key itself is unaffected.
    apiKeyString String
    The API key value. This is only returned during creation and then preserved in Terraform state.
    expiresAt 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.
    partialKey String
    The final characters of the API key, used for identification.
    projectId 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.
    teamId String
    The ID of the Vercel team scope for this API key. Required if a default team has not been set in the provider.
    aiGatewayQuota AiGatewayApiKeyAiGatewayQuota
    A spend quota (budget) for the API key. Removing this attribute archives the quota; the API key itself is unaffected.
    apiKeyString string
    The API key value. This is only returned during creation and then preserved in Terraform state.
    expiresAt 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.
    partialKey string
    The final characters of the API key, used for identification.
    projectId 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.
    teamId 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_quota AiGatewayApiKeyAiGatewayQuotaArgs
    A spend quota (budget) for the API key. Removing this attribute archives the quota; the API key itself is unaffected.
    api_key_string str
    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.
    aiGatewayQuota Property Map
    A spend quota (budget) for the API key. Removing this attribute archives the quota; the API key itself is unaffected.
    apiKeyString String
    The API key value. This is only returned during creation and then preserved in Terraform state.
    expiresAt 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.
    partialKey String
    The final characters of the API key, used for identification.
    projectId 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.
    teamId 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

    LimitAmount double
    The quota limit amount in US dollars.
    AlertThresholds List<int>
    Spend percentages (a subset of [50, 75, 100]) at which to send a spend alert.
    RefreshPeriod string
    How often the quota refreshes. Must be one of daily, weekly, monthly or none. Defaults to none.
    LimitAmount float64
    The quota limit amount in US dollars.
    AlertThresholds []int
    Spend percentages (a subset of [50, 75, 100]) at which to send a spend alert.
    RefreshPeriod string
    How often the quota refreshes. Must be one of daily, weekly, monthly or none. Defaults to none.
    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, monthly or none. Defaults to none.
    limitAmount Double
    The quota limit amount in US dollars.
    alertThresholds List<Integer>
    Spend percentages (a subset of [50, 75, 100]) at which to send a spend alert.
    refreshPeriod String
    How often the quota refreshes. Must be one of daily, weekly, monthly or none. Defaults to none.
    limitAmount number
    The quota limit amount in US dollars.
    alertThresholds number[]
    Spend percentages (a subset of [50, 75, 100]) at which to send a spend alert.
    refreshPeriod string
    How often the quota refreshes. Must be one of daily, weekly, monthly or none. Defaults to none.
    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, monthly or none. Defaults to none.
    limitAmount Number
    The quota limit amount in US dollars.
    alertThresholds List<Number>
    Spend percentages (a subset of [50, 75, 100]) at which to send a spend alert.
    refreshPeriod String
    How often the quota refreshes. Must be one of daily, weekly, monthly or none. Defaults to none.

    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 vercel Terraform Provider.
    vercel logo vercel logo
    Viewing docs for Vercel v5.21.1
    published on Thursday, Oct 15, 2026 by Pulumiverse

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial