1. Registry
  2. Packages
  3. Pulumi Cloud (Pulumi Service provider)
  4. API Docs
  5. api
  6. api/neo
  7. UsageCap
Viewing docs for Pulumi Cloud v1.4.0
published on Wednesday, Sep 23, 2026 by Pulumi
pulumiservice logo pulumiservice logo
Viewing docs for Pulumi Cloud v1.4.0
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:

    CapCents 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.
    OrgName string
    The organization name
    NotificationsEnabled 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.
    CapCents 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.
    OrgName string
    The organization name
    NotificationsEnabled 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.
    capCents 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.
    orgName String
    The organization name
    notificationsEnabled 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.
    capCents 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.
    orgName string
    The organization name
    notificationsEnabled 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.
    capCents 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.
    orgName String
    The organization name
    notificationsEnabled 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.
    UpdatedAt string
    Time when the cap was last updated.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    Time when the cap was last updated.
    id string
    The provider-assigned unique ID for this managed resource.
    updated_at string
    Time when the cap was last updated.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    Time when the cap was last updated.
    id string
    The provider-assigned unique ID for this managed resource.
    updatedAt 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.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    Time when the cap was last updated.

    Package Details

    Repository
    pulumiservice pulumi/pulumi-pulumiservice
    License
    Apache-2.0
    pulumiservice logo pulumiservice logo
    Viewing docs for Pulumi Cloud v1.4.0
    published on Wednesday, Sep 23, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial