published on Wednesday, Sep 23, 2026 by Pulumi
published on Wednesday, Sep 23, 2026 by Pulumi
Creates or replaces the monthly Neo usage cap for an organization. The cap must be at least $10/month. To remove the cap, call DeleteNeoUsageCap.
Create UsageCap Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new UsageCap(name: string, args: UsageCapArgs, opts?: CustomResourceOptions);@overload
def UsageCap(resource_name: str,
args: UsageCapArgs,
opts: Optional[ResourceOptions] = None)
@overload
def UsageCap(resource_name: str,
opts: Optional[ResourceOptions] = None,
cap_cents: Optional[int] = None,
org_name: Optional[str] = None,
notifications_enabled: Optional[bool] = None)func NewUsageCap(ctx *Context, name string, args UsageCapArgs, opts ...ResourceOption) (*UsageCap, error)public UsageCap(string name, UsageCapArgs args, CustomResourceOptions? opts = null)
public UsageCap(String name, UsageCapArgs args)
public UsageCap(String name, UsageCapArgs args, CustomResourceOptions options)
type: pulumiservice:api/neo:UsageCap
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "pulumiservice_api_neo_usage_cap" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args UsageCapArgs
- 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 UsageCapArgs
- 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 UsageCapArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UsageCapArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UsageCapArgs
- 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 usageCapResource = new PulumiService.Api.Neo.UsageCap("usageCapResource", new()
{
CapCents = 0,
OrgName = "string",
NotificationsEnabled = false,
});
example, err := neo.NewUsageCap(ctx, "usageCapResource", &neo.UsageCapArgs{
CapCents: pulumi.Int(0),
OrgName: pulumi.String("string"),
NotificationsEnabled: pulumi.Bool(false),
})
resource "pulumiservice_api_neo_usage_cap" "usageCapResource" {
lifecycle {
create_before_destroy = true
}
cap_cents = 0
org_name = "string"
notifications_enabled = false
}
var usageCapResource = new UsageCap("usageCapResource", UsageCapArgs.builder()
.capCents(0)
.orgName("string")
.notificationsEnabled(false)
.build());
usage_cap_resource = pulumiservice.api.neo.UsageCap("usageCapResource",
cap_cents=0,
org_name="string",
notifications_enabled=False)
const usageCapResource = new pulumiservice.api.neo.UsageCap("usageCapResource", {
capCents: 0,
orgName: "string",
notificationsEnabled: false,
});
type: pulumiservice:api/neo:UsageCap
properties:
capCents: 0
notificationsEnabled: false
orgName: string
UsageCap 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 UsageCap resource accepts the following input properties:
- Cap
Cents int - Monthly cap in US-dollar cents. Must be at least 1000 ($10, the self-serve floor) and at most 100_000_000 ($1M). Outside that range the call returns 400.
- Org
Name string - The organization name
- Notifications
Enabled bool - Whether to send threshold-warning emails (50/80/95/100% of the cap) to billing admins. Omit (null) to leave the current setting unchanged; new caps default to enabled.
- Cap
Cents int - Monthly cap in US-dollar cents. Must be at least 1000 ($10, the self-serve floor) and at most 100_000_000 ($1M). Outside that range the call returns 400.
- Org
Name string - The organization name
- Notifications
Enabled bool - Whether to send threshold-warning emails (50/80/95/100% of the cap) to billing admins. Omit (null) to leave the current setting unchanged; new caps default to enabled.
- cap_
cents number - Monthly cap in US-dollar cents. Must be at least 1000 ($10, the self-serve floor) and at most 100_000_000 ($1M). Outside that range the call returns 400.
- org_
name string - The organization name
- notifications_
enabled bool - Whether to send threshold-warning emails (50/80/95/100% of the cap) to billing admins. Omit (null) to leave the current setting unchanged; new caps default to enabled.
- cap
Cents Integer - Monthly cap in US-dollar cents. Must be at least 1000 ($10, the self-serve floor) and at most 100_000_000 ($1M). Outside that range the call returns 400.
- org
Name String - The organization name
- notifications
Enabled Boolean - Whether to send threshold-warning emails (50/80/95/100% of the cap) to billing admins. Omit (null) to leave the current setting unchanged; new caps default to enabled.
- cap
Cents number - Monthly cap in US-dollar cents. Must be at least 1000 ($10, the self-serve floor) and at most 100_000_000 ($1M). Outside that range the call returns 400.
- org
Name string - The organization name
- notifications
Enabled boolean - Whether to send threshold-warning emails (50/80/95/100% of the cap) to billing admins. Omit (null) to leave the current setting unchanged; new caps default to enabled.
- cap_
cents int - Monthly cap in US-dollar cents. Must be at least 1000 ($10, the self-serve floor) and at most 100_000_000 ($1M). Outside that range the call returns 400.
- org_
name str - The organization name
- notifications_
enabled bool - Whether to send threshold-warning emails (50/80/95/100% of the cap) to billing admins. Omit (null) to leave the current setting unchanged; new caps default to enabled.
- cap
Cents Number - Monthly cap in US-dollar cents. Must be at least 1000 ($10, the self-serve floor) and at most 100_000_000 ($1M). Outside that range the call returns 400.
- org
Name String - The organization name
- notifications
Enabled Boolean - Whether to send threshold-warning emails (50/80/95/100% of the cap) to billing admins. Omit (null) to leave the current setting unchanged; new caps default to enabled.
Outputs
All input properties are implicitly available as output properties. Additionally, the UsageCap resource produces the following output properties:
- id string
- The provider-assigned unique ID for this managed resource.
- updated_
at string - Time when the cap was last updated.
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
at str - Time when the cap was last updated.
Package Details
- Repository
- pulumiservice pulumi/pulumi-pulumiservice
- License
- Apache-2.0
published on Wednesday, Sep 23, 2026 by Pulumi