1. Packages
  2. Packages
  3. stackit
  4. API Docs
  5. SfsProjectLock
Viewing docs for stackit v0.0.6
published on Wednesday, May 6, 2026 by stackitcloud
stackit logo
Viewing docs for stackit v0.0.6
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:

    ProjectId string
    STACKIT Project ID to which the project lock is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    ProjectId string
    STACKIT Project ID to which the project lock is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    projectId String
    STACKIT Project ID to which the project lock is associated.
    region String
    The resource region. If not defined, the provider region is used.
    projectId string
    STACKIT Project ID to which the project 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 project lock is associated.
    region str
    The resource region. If not defined, the provider region is used.
    projectId String
    STACKIT Project ID to which the project 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 SfsProjectLock resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    LockId string
    ID of the lock.
    Id string
    The provider-assigned unique ID for this managed resource.
    LockId string
    ID of the lock.
    id String
    The provider-assigned unique ID for this managed resource.
    lockId String
    ID of the lock.
    id string
    The provider-assigned unique ID for this managed resource.
    lockId string
    ID of the lock.
    id str
    The provider-assigned unique ID for this managed resource.
    lock_id str
    ID of the lock.
    id String
    The provider-assigned unique ID for this managed resource.
    lockId String
    ID of the lock.

    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) -> SfsProjectLock
    func 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.
    The following state arguments are supported:
    LockId string
    ID of the lock.
    ProjectId string
    STACKIT Project ID to which the project lock is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    LockId string
    ID of the lock.
    ProjectId string
    STACKIT Project ID to which the project lock is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    lockId String
    ID of the lock.
    projectId String
    STACKIT Project ID to which the project lock is associated.
    region String
    The resource region. If not defined, the provider region is used.
    lockId string
    ID of the lock.
    projectId string
    STACKIT Project ID to which the project lock is associated.
    region string
    The resource region. If not defined, the provider region is used.
    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.
    lockId String
    ID of the lock.
    projectId String
    STACKIT Project ID to which the project 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.6
    published on Wednesday, May 6, 2026 by stackitcloud
      Try Pulumi Cloud free. Your team will thank you.