import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Quota resource in Oracle Cloud Infrastructure Limits service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/limits/latest/Quota * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/limits * * Creates a new quota with the details supplied. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testQuota = new oci.limits.Quota("test_quota", { * compartmentId: tenancyOcid, * description: quotaDescription, * name: quotaName, * statements: quotaStatements, * definedTags: { * "Operations.CostCenter": "42", * }, * freeformTags: { * Department: "Finance", * }, * locks: [{ * type: quotaLocksType, * message: quotaLocksMessage, * relatedResourceId: testRelatedResource.id, * }], * }); * ``` * * ## Import * * Quotas can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:Limits/quota:Quota test_quota "id" * ``` */ export declare class Quota extends pulumi.CustomResource { /** * Get an existing Quota resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: QuotaState, opts?: pulumi.CustomResourceOptions): Quota; /** * Returns true if the given object is an instance of Quota. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Quota; /** * The OCID of the compartment containing the resource this quota applies to. */ readonly compartmentId: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) The description you assign to the quota. */ readonly description: pulumi.Output; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * this is a computed field which is set to true if any lock is present` */ readonly isLockOverride: pulumi.Output; /** * Locks associated with this resource. */ readonly locks: pulumi.Output; /** * The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed. */ readonly name: pulumi.Output; /** * The quota's current state. */ readonly state: pulumi.Output; /** * (Updatable) An array of quota statements written in the declarative quota statement language. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ readonly statements: pulumi.Output; /** * Date and time the quota was created, in the format defined by RFC 3339. Example: `2016-08-25T21:10:29.600Z` */ readonly timeCreated: pulumi.Output; /** * Create a Quota resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: QuotaArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Quota resources. */ export interface QuotaState { /** * The OCID of the compartment containing the resource this quota applies to. */ compartmentId?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) The description you assign to the quota. */ description?: pulumi.Input; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * this is a computed field which is set to true if any lock is present` */ isLockOverride?: pulumi.Input; /** * Locks associated with this resource. */ locks?: pulumi.Input[] | undefined>; /** * The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed. */ name?: pulumi.Input; /** * The quota's current state. */ state?: pulumi.Input; /** * (Updatable) An array of quota statements written in the declarative quota statement language. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ statements?: pulumi.Input[] | undefined>; /** * Date and time the quota was created, in the format defined by RFC 3339. Example: `2016-08-25T21:10:29.600Z` */ timeCreated?: pulumi.Input; } /** * The set of arguments for constructing a Quota resource. */ export interface QuotaArgs { /** * The OCID of the compartment containing the resource this quota applies to. */ compartmentId: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) The description you assign to the quota. */ description: pulumi.Input; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Locks associated with this resource. */ locks?: pulumi.Input[] | undefined>; /** * The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed. */ name?: pulumi.Input; /** * (Updatable) An array of quota statements written in the declarative quota statement language. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ statements: pulumi.Input[]>; } //# sourceMappingURL=quota.d.ts.map