1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Limits
  5. Quota
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.Limits.Quota

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    This resource provides the Quota resource in Oracle Cloud Infrastructure Limits service.

    Creates a new quota with the details supplied.

    Example Usage

    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 pulumi
    import pulumi_oci as oci
    
    test_quota = oci.limits.Quota("test_quota",
        compartment_id=tenancy_ocid,
        description=quota_description,
        name=quota_name,
        statements=quota_statements,
        defined_tags={
            "Operations.CostCenter": "42",
        },
        freeform_tags={
            "Department": "Finance",
        },
        locks=[{
            "type": quota_locks_type,
            "message": quota_locks_message,
            "related_resource_id": test_related_resource["id"],
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Limits"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Limits.NewQuota(ctx, "test_quota", &Limits.QuotaArgs{
    			CompartmentId: pulumi.Any(tenancyOcid),
    			Description:   pulumi.Any(quotaDescription),
    			Name:          pulumi.Any(quotaName),
    			Statements:    pulumi.Any(quotaStatements),
    			DefinedTags: pulumi.StringMap{
    				"Operations.CostCenter": pulumi.String("42"),
    			},
    			FreeformTags: pulumi.StringMap{
    				"Department": pulumi.String("Finance"),
    			},
    			Locks: limits.QuotaLockArray{
    				&limits.QuotaLockArgs{
    					Type:              pulumi.Any(quotaLocksType),
    					Message:           pulumi.Any(quotaLocksMessage),
    					RelatedResourceId: pulumi.Any(testRelatedResource.Id),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testQuota = new Oci.Limits.Quota("test_quota", new()
        {
            CompartmentId = tenancyOcid,
            Description = quotaDescription,
            Name = quotaName,
            Statements = quotaStatements,
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            Locks = new[]
            {
                new Oci.Limits.Inputs.QuotaLockArgs
                {
                    Type = quotaLocksType,
                    Message = quotaLocksMessage,
                    RelatedResourceId = testRelatedResource.Id,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Limits.Quota;
    import com.pulumi.oci.Limits.QuotaArgs;
    import com.pulumi.oci.Limits.inputs.QuotaLockArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var testQuota = new Quota("testQuota", QuotaArgs.builder()
                .compartmentId(tenancyOcid)
                .description(quotaDescription)
                .name(quotaName)
                .statements(quotaStatements)
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .freeformTags(Map.of("Department", "Finance"))
                .locks(QuotaLockArgs.builder()
                    .type(quotaLocksType)
                    .message(quotaLocksMessage)
                    .relatedResourceId(testRelatedResource.id())
                    .build())
                .build());
    
        }
    }
    
    resources:
      testQuota:
        type: oci:Limits:Quota
        name: test_quota
        properties:
          compartmentId: ${tenancyOcid}
          description: ${quotaDescription}
          name: ${quotaName}
          statements: ${quotaStatements}
          definedTags:
            Operations.CostCenter: '42'
          freeformTags:
            Department: Finance
          locks:
            - type: ${quotaLocksType}
              message: ${quotaLocksMessage}
              relatedResourceId: ${testRelatedResource.id}
    

    Create Quota Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Quota(name: string, args: QuotaArgs, opts?: CustomResourceOptions);
    @overload
    def Quota(resource_name: str,
              args: QuotaArgs,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def Quota(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              compartment_id: Optional[str] = None,
              description: Optional[str] = None,
              statements: Optional[Sequence[str]] = None,
              defined_tags: Optional[Mapping[str, str]] = None,
              freeform_tags: Optional[Mapping[str, str]] = None,
              locks: Optional[Sequence[_limits.QuotaLockArgs]] = None,
              name: Optional[str] = None)
    func NewQuota(ctx *Context, name string, args QuotaArgs, opts ...ResourceOption) (*Quota, error)
    public Quota(string name, QuotaArgs args, CustomResourceOptions? opts = null)
    public Quota(String name, QuotaArgs args)
    public Quota(String name, QuotaArgs args, CustomResourceOptions options)
    
    type: oci:Limits:Quota
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args QuotaArgs
    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 QuotaArgs
    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 QuotaArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args QuotaArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args QuotaArgs
    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 quotaResource = new Oci.Limits.Quota("quotaResource", new()
    {
        CompartmentId = "string",
        Description = "string",
        Statements = new[]
        {
            "string",
        },
        DefinedTags = 
        {
            { "string", "string" },
        },
        FreeformTags = 
        {
            { "string", "string" },
        },
        Locks = new[]
        {
            new Oci.Limits.Inputs.QuotaLockArgs
            {
                Type = "string",
                Message = "string",
                RelatedResourceId = "string",
                TimeCreated = "string",
            },
        },
        Name = "string",
    });
    
    example, err := Limits.NewQuota(ctx, "quotaResource", &Limits.QuotaArgs{
    	CompartmentId: pulumi.String("string"),
    	Description:   pulumi.String("string"),
    	Statements: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	DefinedTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	FreeformTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Locks: limits.QuotaLockArray{
    		&limits.QuotaLockArgs{
    			Type:              pulumi.String("string"),
    			Message:           pulumi.String("string"),
    			RelatedResourceId: pulumi.String("string"),
    			TimeCreated:       pulumi.String("string"),
    		},
    	},
    	Name: pulumi.String("string"),
    })
    
    var quotaResource = new Quota("quotaResource", QuotaArgs.builder()
        .compartmentId("string")
        .description("string")
        .statements("string")
        .definedTags(Map.of("string", "string"))
        .freeformTags(Map.of("string", "string"))
        .locks(QuotaLockArgs.builder()
            .type("string")
            .message("string")
            .relatedResourceId("string")
            .timeCreated("string")
            .build())
        .name("string")
        .build());
    
    quota_resource = oci.limits.Quota("quotaResource",
        compartment_id="string",
        description="string",
        statements=["string"],
        defined_tags={
            "string": "string",
        },
        freeform_tags={
            "string": "string",
        },
        locks=[oci.limits.QuotaLockArgs(
            type="string",
            message="string",
            related_resource_id="string",
            time_created="string",
        )],
        name="string")
    
    const quotaResource = new oci.limits.Quota("quotaResource", {
        compartmentId: "string",
        description: "string",
        statements: ["string"],
        definedTags: {
            string: "string",
        },
        freeformTags: {
            string: "string",
        },
        locks: [{
            type: "string",
            message: "string",
            relatedResourceId: "string",
            timeCreated: "string",
        }],
        name: "string",
    });
    
    type: oci:Limits:Quota
    properties:
        compartmentId: string
        definedTags:
            string: string
        description: string
        freeformTags:
            string: string
        locks:
            - message: string
              relatedResourceId: string
              timeCreated: string
              type: string
        name: string
        statements:
            - string
    

    Quota Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Quota resource accepts the following input properties:

    CompartmentId string
    The OCID of the compartment containing the resource this quota applies to.
    Description string
    (Updatable) The description you assign to the quota.
    Statements List<string>

    (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

    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    FreeformTags Dictionary<string, string>
    (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. Example: {"Department": "Finance"}
    Locks List<QuotaLock>
    Locks associated with this resource.
    Name string
    The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed.
    CompartmentId string
    The OCID of the compartment containing the resource this quota applies to.
    Description string
    (Updatable) The description you assign to the quota.
    Statements []string

    (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

    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    FreeformTags map[string]string
    (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. Example: {"Department": "Finance"}
    Locks []QuotaLockArgs
    Locks associated with this resource.
    Name string
    The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed.
    compartmentId String
    The OCID of the compartment containing the resource this quota applies to.
    description String
    (Updatable) The description you assign to the quota.
    statements List<String>

    (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

    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeformTags Map<String,String>
    (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. Example: {"Department": "Finance"}
    locks List<QuotaLock>
    Locks associated with this resource.
    name String
    The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed.
    compartmentId string
    The OCID of the compartment containing the resource this quota applies to.
    description string
    (Updatable) The description you assign to the quota.
    statements string[]

    (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

    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeformTags {[key: string]: string}
    (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. Example: {"Department": "Finance"}
    locks QuotaLock[]
    Locks associated with this resource.
    name string
    The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed.
    compartment_id str
    The OCID of the compartment containing the resource this quota applies to.
    description str
    (Updatable) The description you assign to the quota.
    statements Sequence[str]

    (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

    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeform_tags Mapping[str, str]
    (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. Example: {"Department": "Finance"}
    locks Sequence[limits.QuotaLockArgs]
    Locks associated with this resource.
    name str
    The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed.
    compartmentId String
    The OCID of the compartment containing the resource this quota applies to.
    description String
    (Updatable) The description you assign to the quota.
    statements List<String>

    (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

    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    freeformTags Map<String>
    (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. Example: {"Department": "Finance"}
    locks List<Property Map>
    Locks associated with this resource.
    name String
    The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Quota resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    IsLockOverride bool
    this is a computed field which is set to true if any lock is present`
    State string
    The quota's current state.
    TimeCreated string
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    Id string
    The provider-assigned unique ID for this managed resource.
    IsLockOverride bool
    this is a computed field which is set to true if any lock is present`
    State string
    The quota's current state.
    TimeCreated string
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    id String
    The provider-assigned unique ID for this managed resource.
    isLockOverride Boolean
    this is a computed field which is set to true if any lock is present`
    state String
    The quota's current state.
    timeCreated String
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    id string
    The provider-assigned unique ID for this managed resource.
    isLockOverride boolean
    this is a computed field which is set to true if any lock is present`
    state string
    The quota's current state.
    timeCreated string
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    id str
    The provider-assigned unique ID for this managed resource.
    is_lock_override bool
    this is a computed field which is set to true if any lock is present`
    state str
    The quota's current state.
    time_created str
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    id String
    The provider-assigned unique ID for this managed resource.
    isLockOverride Boolean
    this is a computed field which is set to true if any lock is present`
    state String
    The quota's current state.
    timeCreated String
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z

    Look up Existing Quota Resource

    Get an existing Quota 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?: QuotaState, opts?: CustomResourceOptions): Quota
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, str]] = None,
            description: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, str]] = None,
            is_lock_override: Optional[bool] = None,
            locks: Optional[Sequence[_limits.QuotaLockArgs]] = None,
            name: Optional[str] = None,
            state: Optional[str] = None,
            statements: Optional[Sequence[str]] = None,
            time_created: Optional[str] = None) -> Quota
    func GetQuota(ctx *Context, name string, id IDInput, state *QuotaState, opts ...ResourceOption) (*Quota, error)
    public static Quota Get(string name, Input<string> id, QuotaState? state, CustomResourceOptions? opts = null)
    public static Quota get(String name, Output<String> id, QuotaState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    CompartmentId string
    The OCID of the compartment containing the resource this quota applies to.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    (Updatable) The description you assign to the quota.
    FreeformTags Dictionary<string, string>
    (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. Example: {"Department": "Finance"}
    IsLockOverride bool
    this is a computed field which is set to true if any lock is present`
    Locks List<QuotaLock>
    Locks associated with this resource.
    Name string
    The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed.
    State string
    The quota's current state.
    Statements List<string>

    (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

    TimeCreated string
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    CompartmentId string
    The OCID of the compartment containing the resource this quota applies to.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    (Updatable) The description you assign to the quota.
    FreeformTags map[string]string
    (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. Example: {"Department": "Finance"}
    IsLockOverride bool
    this is a computed field which is set to true if any lock is present`
    Locks []QuotaLockArgs
    Locks associated with this resource.
    Name string
    The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed.
    State string
    The quota's current state.
    Statements []string

    (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

    TimeCreated string
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    compartmentId String
    The OCID of the compartment containing the resource this quota applies to.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    (Updatable) The description you assign to the quota.
    freeformTags Map<String,String>
    (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. Example: {"Department": "Finance"}
    isLockOverride Boolean
    this is a computed field which is set to true if any lock is present`
    locks List<QuotaLock>
    Locks associated with this resource.
    name String
    The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed.
    state String
    The quota's current state.
    statements List<String>

    (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

    timeCreated String
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    compartmentId string
    The OCID of the compartment containing the resource this quota applies to.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description string
    (Updatable) The description you assign to the quota.
    freeformTags {[key: string]: string}
    (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. Example: {"Department": "Finance"}
    isLockOverride boolean
    this is a computed field which is set to true if any lock is present`
    locks QuotaLock[]
    Locks associated with this resource.
    name string
    The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed.
    state string
    The quota's current state.
    statements string[]

    (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

    timeCreated string
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    compartment_id str
    The OCID of the compartment containing the resource this quota applies to.
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description str
    (Updatable) The description you assign to the quota.
    freeform_tags Mapping[str, str]
    (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. Example: {"Department": "Finance"}
    is_lock_override bool
    this is a computed field which is set to true if any lock is present`
    locks Sequence[limits.QuotaLockArgs]
    Locks associated with this resource.
    name str
    The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed.
    state str
    The quota's current state.
    statements Sequence[str]

    (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

    time_created str
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    compartmentId String
    The OCID of the compartment containing the resource this quota applies to.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    (Updatable) The description you assign to the quota.
    freeformTags Map<String>
    (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. Example: {"Department": "Finance"}
    isLockOverride Boolean
    this is a computed field which is set to true if any lock is present`
    locks List<Property Map>
    Locks associated with this resource.
    name String
    The name you assign to the quota during creation. The name must be unique across all quotas in the tenancy and cannot be changed.
    state String
    The quota's current state.
    statements List<String>

    (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

    timeCreated String
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z

    Supporting Types

    QuotaLock, QuotaLockArgs

    Type string
    Lock type.
    Message string
    A message added by the lock creator. The message typically gives an indication of why the resource is locked.
    RelatedResourceId string
    The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
    TimeCreated string
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    Type string
    Lock type.
    Message string
    A message added by the lock creator. The message typically gives an indication of why the resource is locked.
    RelatedResourceId string
    The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
    TimeCreated string
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    type String
    Lock type.
    message String
    A message added by the lock creator. The message typically gives an indication of why the resource is locked.
    relatedResourceId String
    The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
    timeCreated String
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    type string
    Lock type.
    message string
    A message added by the lock creator. The message typically gives an indication of why the resource is locked.
    relatedResourceId string
    The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
    timeCreated string
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    type str
    Lock type.
    message str
    A message added by the lock creator. The message typically gives an indication of why the resource is locked.
    related_resource_id str
    The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
    time_created str
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    type String
    Lock type.
    message String
    A message added by the lock creator. The message typically gives an indication of why the resource is locked.
    relatedResourceId String
    The resource ID that is locking this resource. Indicates that deleting this resource removes the lock.
    timeCreated String
    Date and time the quota was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z

    Import

    Quotas can be imported using the id, e.g.

    $ pulumi import oci:Limits/quota:Quota test_quota "id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi