1. Packages
  2. Packages
  3. stackit
  4. API Docs
  5. ObjectstorageComplianceLock
Viewing docs for stackit v0.0.5
published on Tuesday, Mar 31, 2026 by stackitcloud
stackit logo
Viewing docs for stackit v0.0.5
published on Tuesday, Mar 31, 2026 by stackitcloud

    ObjectStorage compliance lock resource schema. Must have a region specified in the provider configuration. Always use only one compliance lock per project.

    Example Usage

    resource "stackit_objectstorage_compliance_lock" "example" {
      project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    }
    

    Create ObjectstorageComplianceLock Resource

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

    Constructor syntax

    new ObjectstorageComplianceLock(name: string, args: ObjectstorageComplianceLockArgs, opts?: CustomResourceOptions);
    @overload
    def ObjectstorageComplianceLock(resource_name: str,
                                    args: ObjectstorageComplianceLockArgs,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def ObjectstorageComplianceLock(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    project_id: Optional[str] = None,
                                    region: Optional[str] = None)
    func NewObjectstorageComplianceLock(ctx *Context, name string, args ObjectstorageComplianceLockArgs, opts ...ResourceOption) (*ObjectstorageComplianceLock, error)
    public ObjectstorageComplianceLock(string name, ObjectstorageComplianceLockArgs args, CustomResourceOptions? opts = null)
    public ObjectstorageComplianceLock(String name, ObjectstorageComplianceLockArgs args)
    public ObjectstorageComplianceLock(String name, ObjectstorageComplianceLockArgs args, CustomResourceOptions options)
    
    type: stackit:ObjectstorageComplianceLock
    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 ObjectstorageComplianceLockArgs
    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 ObjectstorageComplianceLockArgs
    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 ObjectstorageComplianceLockArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ObjectstorageComplianceLockArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ObjectstorageComplianceLockArgs
    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 objectstorageComplianceLockResource = new Stackit.ObjectstorageComplianceLock("objectstorageComplianceLockResource", new()
    {
        ProjectId = "string",
        Region = "string",
    });
    
    example, err := stackit.NewObjectstorageComplianceLock(ctx, "objectstorageComplianceLockResource", &stackit.ObjectstorageComplianceLockArgs{
    	ProjectId: pulumi.String("string"),
    	Region:    pulumi.String("string"),
    })
    
    var objectstorageComplianceLockResource = new ObjectstorageComplianceLock("objectstorageComplianceLockResource", ObjectstorageComplianceLockArgs.builder()
        .projectId("string")
        .region("string")
        .build());
    
    objectstorage_compliance_lock_resource = stackit.ObjectstorageComplianceLock("objectstorageComplianceLockResource",
        project_id="string",
        region="string")
    
    const objectstorageComplianceLockResource = new stackit.ObjectstorageComplianceLock("objectstorageComplianceLockResource", {
        projectId: "string",
        region: "string",
    });
    
    type: stackit:ObjectstorageComplianceLock
    properties:
        projectId: string
        region: string
    

    ObjectstorageComplianceLock 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 ObjectstorageComplianceLock resource accepts the following input properties:

    ProjectId string
    STACKIT Project ID to which the compliance lock is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    ProjectId string
    STACKIT Project ID to which the compliance lock is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    projectId String
    STACKIT Project ID to which the compliance lock is associated.
    region String
    The resource region. If not defined, the provider region is used.
    projectId string
    STACKIT Project ID to which the compliance lock is associated.
    region string
    The resource region. If not defined, the provider region is used.
    project_id str
    STACKIT Project ID to which the compliance lock is associated.
    region str
    The resource region. If not defined, the provider region is used.
    projectId String
    STACKIT Project ID to which the compliance lock is associated.
    region String
    The resource region. If not defined, the provider region is used.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    MaxRetentionDays int
    Maximum retention period in days.
    Id string
    The provider-assigned unique ID for this managed resource.
    MaxRetentionDays int
    Maximum retention period in days.
    id String
    The provider-assigned unique ID for this managed resource.
    maxRetentionDays Integer
    Maximum retention period in days.
    id string
    The provider-assigned unique ID for this managed resource.
    maxRetentionDays number
    Maximum retention period in days.
    id str
    The provider-assigned unique ID for this managed resource.
    max_retention_days int
    Maximum retention period in days.
    id String
    The provider-assigned unique ID for this managed resource.
    maxRetentionDays Number
    Maximum retention period in days.

    Look up Existing ObjectstorageComplianceLock Resource

    Get an existing ObjectstorageComplianceLock 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?: ObjectstorageComplianceLockState, opts?: CustomResourceOptions): ObjectstorageComplianceLock
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            max_retention_days: Optional[int] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None) -> ObjectstorageComplianceLock
    func GetObjectstorageComplianceLock(ctx *Context, name string, id IDInput, state *ObjectstorageComplianceLockState, opts ...ResourceOption) (*ObjectstorageComplianceLock, error)
    public static ObjectstorageComplianceLock Get(string name, Input<string> id, ObjectstorageComplianceLockState? state, CustomResourceOptions? opts = null)
    public static ObjectstorageComplianceLock get(String name, Output<String> id, ObjectstorageComplianceLockState state, CustomResourceOptions options)
    resources:  _:    type: stackit:ObjectstorageComplianceLock    get:      id: ${id}
    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:
    MaxRetentionDays int
    Maximum retention period in days.
    ProjectId string
    STACKIT Project ID to which the compliance lock is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    MaxRetentionDays int
    Maximum retention period in days.
    ProjectId string
    STACKIT Project ID to which the compliance lock is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    maxRetentionDays Integer
    Maximum retention period in days.
    projectId String
    STACKIT Project ID to which the compliance lock is associated.
    region String
    The resource region. If not defined, the provider region is used.
    maxRetentionDays number
    Maximum retention period in days.
    projectId string
    STACKIT Project ID to which the compliance lock is associated.
    region string
    The resource region. If not defined, the provider region is used.
    max_retention_days int
    Maximum retention period in days.
    project_id str
    STACKIT Project ID to which the compliance lock is associated.
    region str
    The resource region. If not defined, the provider region is used.
    maxRetentionDays Number
    Maximum retention period in days.
    projectId String
    STACKIT Project ID to which the compliance lock is associated.
    region String
    The resource region. If not defined, the provider region is used.

    Package Details

    Repository
    stackit stackitcloud/pulumi-stackit
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the stackit Terraform Provider.
    stackit logo
    Viewing docs for stackit v0.0.5
    published on Tuesday, Mar 31, 2026 by stackitcloud
      Try Pulumi Cloud free. Your team will thank you.