published on Wednesday, May 6, 2026 by stackitcloud
published on Wednesday, May 6, 2026 by stackitcloud
SFS project lock resource schema. Must have a region specified in the provider configuration. Always use only one project lock per project.
Example Usage
resource "stackit_sfs_project_lock" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
# Only use the import statement, if you want to import an existing project lock
import {
to = stackit_sfs_project_lock.example
id = "${var.project_id},${var.region}"
}
Create SfsProjectLock Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SfsProjectLock(name: string, args: SfsProjectLockArgs, opts?: CustomResourceOptions);@overload
def SfsProjectLock(resource_name: str,
args: SfsProjectLockArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SfsProjectLock(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[str] = None,
region: Optional[str] = None)func NewSfsProjectLock(ctx *Context, name string, args SfsProjectLockArgs, opts ...ResourceOption) (*SfsProjectLock, error)public SfsProjectLock(string name, SfsProjectLockArgs args, CustomResourceOptions? opts = null)
public SfsProjectLock(String name, SfsProjectLockArgs args)
public SfsProjectLock(String name, SfsProjectLockArgs args, CustomResourceOptions options)
type: stackit:SfsProjectLock
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 SfsProjectLockArgs
- 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 SfsProjectLockArgs
- 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 SfsProjectLockArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SfsProjectLockArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SfsProjectLockArgs
- 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 sfsProjectLockResource = new Stackit.SfsProjectLock("sfsProjectLockResource", new()
{
ProjectId = "string",
Region = "string",
});
example, err := stackit.NewSfsProjectLock(ctx, "sfsProjectLockResource", &stackit.SfsProjectLockArgs{
ProjectId: pulumi.String("string"),
Region: pulumi.String("string"),
})
var sfsProjectLockResource = new SfsProjectLock("sfsProjectLockResource", SfsProjectLockArgs.builder()
.projectId("string")
.region("string")
.build());
sfs_project_lock_resource = stackit.SfsProjectLock("sfsProjectLockResource",
project_id="string",
region="string")
const sfsProjectLockResource = new stackit.SfsProjectLock("sfsProjectLockResource", {
projectId: "string",
region: "string",
});
type: stackit:SfsProjectLock
properties:
projectId: string
region: string
SfsProjectLock 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 SfsProjectLock resource accepts the following input properties:
- project_
id str - STACKIT Project ID to which the project 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 SfsProjectLock resource produces the following output properties:
Look up Existing SfsProjectLock Resource
Get an existing SfsProjectLock 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?: SfsProjectLockState, opts?: CustomResourceOptions): SfsProjectLock@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
lock_id: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None) -> SfsProjectLockfunc GetSfsProjectLock(ctx *Context, name string, id IDInput, state *SfsProjectLockState, opts ...ResourceOption) (*SfsProjectLock, error)public static SfsProjectLock Get(string name, Input<string> id, SfsProjectLockState? state, CustomResourceOptions? opts = null)public static SfsProjectLock get(String name, Output<String> id, SfsProjectLockState state, CustomResourceOptions options)resources: _: type: stackit:SfsProjectLock 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.
- lock_
id str - ID of the lock.
- project_
id str - STACKIT Project ID to which the project lock is associated.
- region str
- 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 Wednesday, May 6, 2026 by stackitcloud
