published on Tuesday, Nov 3, 2026 by Pydantic
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:
- Project
Id string - 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.
- Project
Id string - 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.
- 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.
- project
Id String - The UUID of the project that the limits apply to. Changing it replaces the resource.
- daily
Usd Integer - The daily limit in whole US dollars. A day starts at 00:00 UTC. Omit it to have no daily limit.
- monthly
Usd 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.
- weekly
Usd Integer - 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.
- 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.
- 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.
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) -> GatewayProjectSpendingLimitsfunc 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.
- 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 string - 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.
- 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 string - 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.
- 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.
- daily
Usd Integer - The daily limit in whole US dollars. A day starts at 00:00 UTC. Omit it to have no daily limit.
- monthly
Usd 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.
- project
Id String - The UUID of the project that the limits apply to. Changing it replaces the resource.
- weekly
Usd Integer - 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.
- 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.
- 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.
Package Details
- Repository
- logfire pydantic/pulumi-logfire
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
logfireTerraform Provider.
published on Tuesday, Nov 3, 2026 by Pydantic