1. Packages
  2. Packages
  3. stackit
  4. API Docs
  5. getObjectstorageComplianceLock
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.

    Example Usage

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

    Using getObjectstorageComplianceLock

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getObjectstorageComplianceLock(args: GetObjectstorageComplianceLockArgs, opts?: InvokeOptions): Promise<GetObjectstorageComplianceLockResult>
    function getObjectstorageComplianceLockOutput(args: GetObjectstorageComplianceLockOutputArgs, opts?: InvokeOptions): Output<GetObjectstorageComplianceLockResult>
    def get_objectstorage_compliance_lock(project_id: Optional[str] = None,
                                          region: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetObjectstorageComplianceLockResult
    def get_objectstorage_compliance_lock_output(project_id: Optional[pulumi.Input[str]] = None,
                                          region: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetObjectstorageComplianceLockResult]
    func LookupObjectstorageComplianceLock(ctx *Context, args *LookupObjectstorageComplianceLockArgs, opts ...InvokeOption) (*LookupObjectstorageComplianceLockResult, error)
    func LookupObjectstorageComplianceLockOutput(ctx *Context, args *LookupObjectstorageComplianceLockOutputArgs, opts ...InvokeOption) LookupObjectstorageComplianceLockResultOutput

    > Note: This function is named LookupObjectstorageComplianceLock in the Go SDK.

    public static class GetObjectstorageComplianceLock 
    {
        public static Task<GetObjectstorageComplianceLockResult> InvokeAsync(GetObjectstorageComplianceLockArgs args, InvokeOptions? opts = null)
        public static Output<GetObjectstorageComplianceLockResult> Invoke(GetObjectstorageComplianceLockInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetObjectstorageComplianceLockResult> getObjectstorageComplianceLock(GetObjectstorageComplianceLockArgs args, InvokeOptions options)
    public static Output<GetObjectstorageComplianceLockResult> getObjectstorageComplianceLock(GetObjectstorageComplianceLockArgs args, InvokeOptions options)
    
    fn::invoke:
      function: stackit:index/getObjectstorageComplianceLock:getObjectstorageComplianceLock
      arguments:
        # arguments dictionary

    The following arguments are supported:

    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.

    getObjectstorageComplianceLock Result

    The following output properties are available:

    Id string
    Terraform's internal resource identifier. It is structured as "projectId,region".
    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.
    Id string
    Terraform's internal resource identifier. It is structured as "projectId,region".
    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.
    id String
    Terraform's internal resource identifier. It is structured as "projectId,region".
    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.
    id string
    Terraform's internal resource identifier. It is structured as "projectId,region".
    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.
    id str
    Terraform's internal resource identifier. It is structured as "projectId,region".
    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.
    id String
    Terraform's internal resource identifier. It is structured as "projectId,region".
    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.