published on Tuesday, Mar 31, 2026 by stackitcloud
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:
- 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.
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.
- Max
Retention intDays - Maximum retention period in days.
- Id string
- The provider-assigned unique ID for this managed resource.
- Max
Retention intDays - Maximum retention period in days.
- id String
- The provider-assigned unique ID for this managed resource.
- max
Retention IntegerDays - Maximum retention period in days.
- id string
- The provider-assigned unique ID for this managed resource.
- max
Retention numberDays - Maximum retention period in days.
- id str
- The provider-assigned unique ID for this managed resource.
- max_
retention_ intdays - Maximum retention period in days.
- id String
- The provider-assigned unique ID for this managed resource.
- max
Retention NumberDays - 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) -> ObjectstorageComplianceLockfunc 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.
- Max
Retention intDays - Maximum retention period in days.
- Project
Id 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 intDays - Maximum retention period in days.
- Project
Id 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 IntegerDays - Maximum retention period in days.
- project
Id 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 numberDays - Maximum retention period in days.
- project
Id 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_ intdays - 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.
- max
Retention NumberDays - Maximum retention period in days.
- project
Id 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
stackitTerraform Provider.
published on Tuesday, Mar 31, 2026 by stackitcloud
