import * as pulumi from "@pulumi/pulumi"; /** * This resource provides the File System Quota Rule resource in Oracle Cloud Infrastructure File Storage service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/filestorage/latest/FileSystemQuotaRule * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/ * * Create an FS level, user or group quota rule given the `fileSystemId`, `principalId`, `principalType` and * `isHardQuota` parameters. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testFileSystemQuotaRule = new oci.filestorage.FileSystemQuotaRule("test_file_system_quota_rule", { * fileSystemId: testFileSystem.id, * isHardQuota: fileSystemQuotaRuleIsHardQuota === "true", * principalType: fileSystemQuotaRulePrincipalType, * quotaLimitInGigabytes: Number(fileSystemQuotaRuleQuotaLimitInGigabytes), * displayName: fileSystemQuotaRuleDisplayName, * principalId: Number(testPrincipal.id), * }); * ``` * * ## Import * * FileSystemQuotaRules can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:FileStorage/fileSystemQuotaRule:FileSystemQuotaRule test_file_system_quota_rule "fileSystems/{fileSystemId}/quotaRules/{quotaRuleId}" * ``` */ export declare class FileSystemQuotaRule extends pulumi.CustomResource { /** * Get an existing FileSystemQuotaRule 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?: FileSystemQuotaRuleState, opts?: pulumi.CustomResourceOptions): FileSystemQuotaRule; /** * Returns true if the given object is an instance of FileSystemQuotaRule. 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 FileSystemQuotaRule; readonly areViolatorsOnly: pulumi.Output; /** * (Updatable) A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: `UserXYZ's quota` */ readonly displayName: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file system. */ readonly fileSystemId: pulumi.Output; /** * The flag is an identifier to tell whether the quota rule will be enforced. If `isHardQuota` is true, the quota rule will be enforced so the write will be blocked if usage exceeds the hard quota limit. If `isHardQuota` is false, usage can exceed the soft quota limit. An alarm or notification will be sent to the customer, if the specific usage exceeds. */ readonly isHardQuota: pulumi.Output; /** * An identifier for the owner of this usage and quota rule. Unix-like operating systems use this integer value to identify a user or group to manage access control. */ readonly principalId: pulumi.Output; /** * The type of the owner of this quota rule and usage. */ readonly principalType: pulumi.Output; /** * (Updatable) The value of the quota rule. The unit is Gigabyte. * * ** 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 quotaLimitInGigabytes: pulumi.Output; readonly quotaRuleId: pulumi.Output; /** * The date and time the quota rule was started, expressed in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. Example: `2016-08-25T21:10:29.600Z` */ readonly timeCreated: pulumi.Output; /** * The date and time the quota rule was last updated, expressed in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. Example: `2016-08-25T21:10:29.600Z` */ readonly timeUpdated: pulumi.Output; /** * Create a FileSystemQuotaRule 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: FileSystemQuotaRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering FileSystemQuotaRule resources. */ export interface FileSystemQuotaRuleState { areViolatorsOnly?: pulumi.Input; /** * (Updatable) A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: `UserXYZ's quota` */ displayName?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file system. */ fileSystemId?: pulumi.Input; /** * The flag is an identifier to tell whether the quota rule will be enforced. If `isHardQuota` is true, the quota rule will be enforced so the write will be blocked if usage exceeds the hard quota limit. If `isHardQuota` is false, usage can exceed the soft quota limit. An alarm or notification will be sent to the customer, if the specific usage exceeds. */ isHardQuota?: pulumi.Input; /** * An identifier for the owner of this usage and quota rule. Unix-like operating systems use this integer value to identify a user or group to manage access control. */ principalId?: pulumi.Input; /** * The type of the owner of this quota rule and usage. */ principalType?: pulumi.Input; /** * (Updatable) The value of the quota rule. The unit is Gigabyte. * * ** 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 */ quotaLimitInGigabytes?: pulumi.Input; quotaRuleId?: pulumi.Input; /** * The date and time the quota rule was started, expressed in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. Example: `2016-08-25T21:10:29.600Z` */ timeCreated?: pulumi.Input; /** * The date and time the quota rule was last updated, expressed in [RFC 3339](https://tools.ietf.org/rfc/rfc3339) timestamp format. Example: `2016-08-25T21:10:29.600Z` */ timeUpdated?: pulumi.Input; } /** * The set of arguments for constructing a FileSystemQuotaRule resource. */ export interface FileSystemQuotaRuleArgs { areViolatorsOnly?: pulumi.Input; /** * (Updatable) A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: `UserXYZ's quota` */ displayName?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the file system. */ fileSystemId: pulumi.Input; /** * The flag is an identifier to tell whether the quota rule will be enforced. If `isHardQuota` is true, the quota rule will be enforced so the write will be blocked if usage exceeds the hard quota limit. If `isHardQuota` is false, usage can exceed the soft quota limit. An alarm or notification will be sent to the customer, if the specific usage exceeds. */ isHardQuota: pulumi.Input; /** * An identifier for the owner of this usage and quota rule. Unix-like operating systems use this integer value to identify a user or group to manage access control. */ principalId?: pulumi.Input; /** * The type of the owner of this quota rule and usage. */ principalType: pulumi.Input; /** * (Updatable) The value of the quota rule. The unit is Gigabyte. * * ** 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 */ quotaLimitInGigabytes: pulumi.Input; quotaRuleId?: pulumi.Input; } //# sourceMappingURL=fileSystemQuotaRule.d.ts.map