1. Registry
  2. Packages
  3. Logfire
  4. API Docs
  5. GatewayProjectSpendingLimits
Viewing docs for Logfire v0.2.5
published on Tuesday, Nov 3, 2026 by Pydantic
logfire logo Logfire
Viewing docs for Logfire v0.2.5
published on Tuesday, Nov 3, 2026 by Pydantic

    Import

    Import the limits of a project by the lowercase project UUID:

    terraform

    import {

    to = logfire_gateway_project_spending_limits.example

    id = “018f45c0-3cab-7b2f-a8f7-8a0b55a7ed00”

    }

    Or use the command line:

    Import the spending limits of a project by the project UUID.

    $ pulumi import logfire:index/gatewayProjectSpendingLimits:GatewayProjectSpendingLimits example' "018f45c0-3cab-7b2f-a8f7-8a0b55a7ed00"
    

    Create GatewayProjectSpendingLimits Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new GatewayProjectSpendingLimits(name: string, args: GatewayProjectSpendingLimitsArgs, opts?: CustomResourceOptions);
    @overload
    def GatewayProjectSpendingLimits(resource_name: str,
                                     args: GatewayProjectSpendingLimitsArgs,
                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def GatewayProjectSpendingLimits(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     project_id: Optional[str] = None,
                                     daily_usd: Optional[int] = None,
                                     monthly_usd: Optional[int] = None,
                                     weekly_usd: Optional[int] = None)
    func NewGatewayProjectSpendingLimits(ctx *Context, name string, args GatewayProjectSpendingLimitsArgs, opts ...ResourceOption) (*GatewayProjectSpendingLimits, error)
    public GatewayProjectSpendingLimits(string name, GatewayProjectSpendingLimitsArgs args, CustomResourceOptions? opts = null)
    public GatewayProjectSpendingLimits(String name, GatewayProjectSpendingLimitsArgs args)
    public GatewayProjectSpendingLimits(String name, GatewayProjectSpendingLimitsArgs args, CustomResourceOptions options)
    
    type: logfire:GatewayProjectSpendingLimits
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "logfire_gateway_project_spending_limits" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args GatewayProjectSpendingLimitsArgs
    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 GatewayProjectSpendingLimitsArgs
    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 GatewayProjectSpendingLimitsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GatewayProjectSpendingLimitsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GatewayProjectSpendingLimitsArgs
    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 gatewayProjectSpendingLimitsResource = new Logfire.GatewayProjectSpendingLimits("gatewayProjectSpendingLimitsResource", new()
    {
        ProjectId = "string",
        DailyUsd = 0,
        MonthlyUsd = 0,
        WeeklyUsd = 0,
    });
    
    example, err := logfire.NewGatewayProjectSpendingLimits(ctx, "gatewayProjectSpendingLimitsResource", &logfire.GatewayProjectSpendingLimitsArgs{
    	ProjectId:  pulumi.String("string"),
    	DailyUsd:   pulumi.Int(0),
    	MonthlyUsd: pulumi.Int(0),
    	WeeklyUsd:  pulumi.Int(0),
    })
    
    resource "logfire_gateway_project_spending_limits" "gatewayProjectSpendingLimitsResource" {
      lifecycle {
        create_before_destroy = true
      }
      project_id  = "string"
      daily_usd   = 0
      monthly_usd = 0
      weekly_usd  = 0
    }
    
    var gatewayProjectSpendingLimitsResource = new GatewayProjectSpendingLimits("gatewayProjectSpendingLimitsResource", GatewayProjectSpendingLimitsArgs.builder()
        .projectId("string")
        .dailyUsd(0)
        .monthlyUsd(0)
        .weeklyUsd(0)
        .build());
    
    gateway_project_spending_limits_resource = logfire.GatewayProjectSpendingLimits("gatewayProjectSpendingLimitsResource",
        project_id="string",
        daily_usd=0,
        monthly_usd=0,
        weekly_usd=0)
    
    const gatewayProjectSpendingLimitsResource = new logfire.GatewayProjectSpendingLimits("gatewayProjectSpendingLimitsResource", {
        projectId: "string",
        dailyUsd: 0,
        monthlyUsd: 0,
        weeklyUsd: 0,
    });
    
    type: logfire:GatewayProjectSpendingLimits
    properties:
        dailyUsd: 0
        monthlyUsd: 0
        projectId: string
        weeklyUsd: 0
    

    GatewayProjectSpendingLimits 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 GatewayProjectSpendingLimits resource accepts the following input properties:

    ProjectId string
    The UUID of the project that the limits apply to. Changing it replaces the resource.
    DailyUsd int
    The daily limit in whole US dollars. A day starts at 00:00 UTC. Omit it to have no daily limit.
    MonthlyUsd int
    The monthly limit in whole US dollars. A month starts on the 1st at 00:00 UTC. Omit it to have no monthly limit.
    WeeklyUsd int
    The weekly limit in whole US dollars. A week starts on Monday at 00:00 UTC. Omit it to have no weekly limit.
    ProjectId string
    The UUID of the project that the limits apply to. Changing it replaces the resource.
    DailyUsd int
    The daily limit in whole US dollars. A day starts at 00:00 UTC. Omit it to have no daily limit.
    MonthlyUsd int
    The monthly limit in whole US dollars. A month starts on the 1st at 00:00 UTC. Omit it to have no monthly limit.
    WeeklyUsd int
    The weekly limit in whole US dollars. A week starts on Monday at 00:00 UTC. Omit it to have no weekly limit.
    project_id string
    The UUID of the project that the limits apply to. Changing it replaces the resource.
    daily_usd number
    The daily limit in whole US dollars. A day starts at 00:00 UTC. Omit it to have no daily limit.
    monthly_usd number
    The monthly limit in whole US dollars. A month starts on the 1st at 00:00 UTC. Omit it to have no monthly limit.
    weekly_usd number
    The weekly limit in whole US dollars. A week starts on Monday at 00:00 UTC. Omit it to have no weekly limit.
    projectId String
    The UUID of the project that the limits apply to. Changing it replaces the resource.
    dailyUsd Integer
    The daily limit in whole US dollars. A day starts at 00:00 UTC. Omit it to have no daily limit.
    monthlyUsd Integer
    The monthly limit in whole US dollars. A month starts on the 1st at 00:00 UTC. Omit it to have no monthly limit.
    weeklyUsd Integer
    The weekly limit in whole US dollars. A week starts on Monday at 00:00 UTC. Omit it to have no weekly limit.
    projectId string
    The UUID of the project that the limits apply to. Changing it replaces the resource.
    dailyUsd number
    The daily limit in whole US dollars. A day starts at 00:00 UTC. Omit it to have no daily limit.
    monthlyUsd number
    The monthly limit in whole US dollars. A month starts on the 1st at 00:00 UTC. Omit it to have no monthly limit.
    weeklyUsd number
    The weekly limit in whole US dollars. A week starts on Monday at 00:00 UTC. Omit it to have no weekly limit.
    project_id str
    The UUID of the project that the limits apply to. Changing it replaces the resource.
    daily_usd int
    The daily limit in whole US dollars. A day starts at 00:00 UTC. Omit it to have no daily limit.
    monthly_usd int
    The monthly limit in whole US dollars. A month starts on the 1st at 00:00 UTC. Omit it to have no monthly limit.
    weekly_usd int
    The weekly limit in whole US dollars. A week starts on Monday at 00:00 UTC. Omit it to have no weekly limit.
    projectId String
    The UUID of the project that the limits apply to. Changing it replaces the resource.
    dailyUsd Number
    The daily limit in whole US dollars. A day starts at 00:00 UTC. Omit it to have no daily limit.
    monthlyUsd Number
    The monthly limit in whole US dollars. A month starts on the 1st at 00:00 UTC. Omit it to have no monthly limit.
    weeklyUsd Number
    The weekly limit in whole US dollars. A week starts on Monday at 00:00 UTC. Omit it to have no weekly limit.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the GatewayProjectSpendingLimits resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing GatewayProjectSpendingLimits Resource

    Get an existing GatewayProjectSpendingLimits 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?: GatewayProjectSpendingLimitsState, opts?: CustomResourceOptions): GatewayProjectSpendingLimits
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            daily_usd: Optional[int] = None,
            monthly_usd: Optional[int] = None,
            project_id: Optional[str] = None,
            weekly_usd: Optional[int] = None) -> GatewayProjectSpendingLimits
    func GetGatewayProjectSpendingLimits(ctx *Context, name string, id IDInput, state *GatewayProjectSpendingLimitsState, opts ...ResourceOption) (*GatewayProjectSpendingLimits, error)
    public static GatewayProjectSpendingLimits Get(string name, Input<string> id, GatewayProjectSpendingLimitsState? state, CustomResourceOptions? opts = null)
    public static GatewayProjectSpendingLimits get(String name, Output<String> id, GatewayProjectSpendingLimitsState state, CustomResourceOptions options)
    resources:  _:    type: logfire:GatewayProjectSpendingLimits    get:      id: ${id}
    import {
      to = logfire_gateway_project_spending_limits.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:
    DailyUsd int
    The daily limit in whole US dollars. A day starts at 00:00 UTC. Omit it to have no daily limit.
    MonthlyUsd int
    The monthly limit in whole US dollars. A month starts on the 1st at 00:00 UTC. Omit it to have no monthly limit.
    ProjectId string
    The UUID of the project that the limits apply to. Changing it replaces the resource.
    WeeklyUsd int
    The weekly limit in whole US dollars. A week starts on Monday at 00:00 UTC. Omit it to have no weekly limit.
    DailyUsd int
    The daily limit in whole US dollars. A day starts at 00:00 UTC. Omit it to have no daily limit.
    MonthlyUsd int
    The monthly limit in whole US dollars. A month starts on the 1st at 00:00 UTC. Omit it to have no monthly limit.
    ProjectId string
    The UUID of the project that the limits apply to. Changing it replaces the resource.
    WeeklyUsd int
    The weekly limit in whole US dollars. A week starts on Monday at 00:00 UTC. Omit it to have no weekly limit.
    daily_usd number
    The daily limit in whole US dollars. A day starts at 00:00 UTC. Omit it to have no daily limit.
    monthly_usd number
    The monthly limit in whole US dollars. A month starts on the 1st at 00:00 UTC. Omit it to have no monthly limit.
    project_id string
    The UUID of the project that the limits apply to. Changing it replaces the resource.
    weekly_usd number
    The weekly limit in whole US dollars. A week starts on Monday at 00:00 UTC. Omit it to have no weekly limit.
    dailyUsd Integer
    The daily limit in whole US dollars. A day starts at 00:00 UTC. Omit it to have no daily limit.
    monthlyUsd Integer
    The monthly limit in whole US dollars. A month starts on the 1st at 00:00 UTC. Omit it to have no monthly limit.
    projectId String
    The UUID of the project that the limits apply to. Changing it replaces the resource.
    weeklyUsd Integer
    The weekly limit in whole US dollars. A week starts on Monday at 00:00 UTC. Omit it to have no weekly limit.
    dailyUsd number
    The daily limit in whole US dollars. A day starts at 00:00 UTC. Omit it to have no daily limit.
    monthlyUsd number
    The monthly limit in whole US dollars. A month starts on the 1st at 00:00 UTC. Omit it to have no monthly limit.
    projectId string
    The UUID of the project that the limits apply to. Changing it replaces the resource.
    weeklyUsd number
    The weekly limit in whole US dollars. A week starts on Monday at 00:00 UTC. Omit it to have no weekly limit.
    daily_usd int
    The daily limit in whole US dollars. A day starts at 00:00 UTC. Omit it to have no daily limit.
    monthly_usd int
    The monthly limit in whole US dollars. A month starts on the 1st at 00:00 UTC. Omit it to have no monthly limit.
    project_id str
    The UUID of the project that the limits apply to. Changing it replaces the resource.
    weekly_usd int
    The weekly limit in whole US dollars. A week starts on Monday at 00:00 UTC. Omit it to have no weekly limit.
    dailyUsd Number
    The daily limit in whole US dollars. A day starts at 00:00 UTC. Omit it to have no daily limit.
    monthlyUsd Number
    The monthly limit in whole US dollars. A month starts on the 1st at 00:00 UTC. Omit it to have no monthly limit.
    projectId String
    The UUID of the project that the limits apply to. Changing it replaces the resource.
    weeklyUsd Number
    The weekly limit in whole US dollars. A week starts on Monday at 00:00 UTC. Omit it to have no weekly limit.

    Package Details

    Repository
    logfire pydantic/pulumi-logfire
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the logfire Terraform Provider.
    logfire logo Logfire
    Viewing docs for Logfire v0.2.5
    published on Tuesday, Nov 3, 2026 by Pydantic

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial