azure-native.authorization.ManagementLockAtResourceGroupLevel

The lock information. API Version: 2017-04-01.

Example Usage

Create management lock at resource group level

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var managementLockAtResourceGroupLevel = new AzureNative.Authorization.ManagementLockAtResourceGroupLevel("managementLockAtResourceGroupLevel", new()
    {
        Level = "ReadOnly",
        LockName = "testlock",
        ResourceGroupName = "resourcegroupname",
    });

});
package main

import (
	authorization "github.com/pulumi/pulumi-azure-native/sdk/go/azure/authorization"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := authorization.NewManagementLockAtResourceGroupLevel(ctx, "managementLockAtResourceGroupLevel", &authorization.ManagementLockAtResourceGroupLevelArgs{
			Level:             pulumi.String("ReadOnly"),
			LockName:          pulumi.String("testlock"),
			ResourceGroupName: pulumi.String("resourcegroupname"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.authorization.ManagementLockAtResourceGroupLevel;
import com.pulumi.azurenative.authorization.ManagementLockAtResourceGroupLevelArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var managementLockAtResourceGroupLevel = new ManagementLockAtResourceGroupLevel("managementLockAtResourceGroupLevel", ManagementLockAtResourceGroupLevelArgs.builder()        
            .level("ReadOnly")
            .lockName("testlock")
            .resourceGroupName("resourcegroupname")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

management_lock_at_resource_group_level = azure_native.authorization.ManagementLockAtResourceGroupLevel("managementLockAtResourceGroupLevel",
    level="ReadOnly",
    lock_name="testlock",
    resource_group_name="resourcegroupname")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const managementLockAtResourceGroupLevel = new azure_native.authorization.ManagementLockAtResourceGroupLevel("managementLockAtResourceGroupLevel", {
    level: "ReadOnly",
    lockName: "testlock",
    resourceGroupName: "resourcegroupname",
});
resources:
  managementLockAtResourceGroupLevel:
    type: azure-native:authorization:ManagementLockAtResourceGroupLevel
    properties:
      level: ReadOnly
      lockName: testlock
      resourceGroupName: resourcegroupname

Create ManagementLockAtResourceGroupLevel Resource

new ManagementLockAtResourceGroupLevel(name: string, args: ManagementLockAtResourceGroupLevelArgs, opts?: CustomResourceOptions);
@overload
def ManagementLockAtResourceGroupLevel(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       level: Optional[Union[str, LockLevel]] = None,
                                       lock_name: Optional[str] = None,
                                       notes: Optional[str] = None,
                                       owners: Optional[Sequence[ManagementLockOwnerArgs]] = None,
                                       resource_group_name: Optional[str] = None)
@overload
def ManagementLockAtResourceGroupLevel(resource_name: str,
                                       args: ManagementLockAtResourceGroupLevelArgs,
                                       opts: Optional[ResourceOptions] = None)
func NewManagementLockAtResourceGroupLevel(ctx *Context, name string, args ManagementLockAtResourceGroupLevelArgs, opts ...ResourceOption) (*ManagementLockAtResourceGroupLevel, error)
public ManagementLockAtResourceGroupLevel(string name, ManagementLockAtResourceGroupLevelArgs args, CustomResourceOptions? opts = null)
public ManagementLockAtResourceGroupLevel(String name, ManagementLockAtResourceGroupLevelArgs args)
public ManagementLockAtResourceGroupLevel(String name, ManagementLockAtResourceGroupLevelArgs args, CustomResourceOptions options)
type: azure-native:authorization:ManagementLockAtResourceGroupLevel
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ManagementLockAtResourceGroupLevelArgs
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 ManagementLockAtResourceGroupLevelArgs
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 ManagementLockAtResourceGroupLevelArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ManagementLockAtResourceGroupLevelArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ManagementLockAtResourceGroupLevelArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

ManagementLockAtResourceGroupLevel Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The ManagementLockAtResourceGroupLevel resource accepts the following input properties:

Level string | Pulumi.AzureNative.Authorization.LockLevel

The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized users are able to read and modify the resources, but not delete. ReadOnly means authorized users can only read from a resource, but they can't modify or delete it.

ResourceGroupName string

The name of the resource group to lock.

LockName string

The lock name. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, , ?, /, or any control characters.

Notes string

Notes about the lock. Maximum of 512 characters.

Owners List<Pulumi.AzureNative.Authorization.Inputs.ManagementLockOwnerArgs>

The owners of the lock.

Level string | LockLevel

The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized users are able to read and modify the resources, but not delete. ReadOnly means authorized users can only read from a resource, but they can't modify or delete it.

ResourceGroupName string

The name of the resource group to lock.

LockName string

The lock name. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, , ?, /, or any control characters.

Notes string

Notes about the lock. Maximum of 512 characters.

Owners []ManagementLockOwnerArgs

The owners of the lock.

level String | LockLevel

The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized users are able to read and modify the resources, but not delete. ReadOnly means authorized users can only read from a resource, but they can't modify or delete it.

resourceGroupName String

The name of the resource group to lock.

lockName String

The lock name. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, , ?, /, or any control characters.

notes String

Notes about the lock. Maximum of 512 characters.

owners List<ManagementLockOwnerArgs>

The owners of the lock.

level string | LockLevel

The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized users are able to read and modify the resources, but not delete. ReadOnly means authorized users can only read from a resource, but they can't modify or delete it.

resourceGroupName string

The name of the resource group to lock.

lockName string

The lock name. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, , ?, /, or any control characters.

notes string

Notes about the lock. Maximum of 512 characters.

owners ManagementLockOwnerArgs[]

The owners of the lock.

level str | LockLevel

The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized users are able to read and modify the resources, but not delete. ReadOnly means authorized users can only read from a resource, but they can't modify or delete it.

resource_group_name str

The name of the resource group to lock.

lock_name str

The lock name. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, , ?, /, or any control characters.

notes str

Notes about the lock. Maximum of 512 characters.

owners Sequence[ManagementLockOwnerArgs]

The owners of the lock.

level String | "NotSpecified" | "CanNotDelete" | "ReadOnly"

The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized users are able to read and modify the resources, but not delete. ReadOnly means authorized users can only read from a resource, but they can't modify or delete it.

resourceGroupName String

The name of the resource group to lock.

lockName String

The lock name. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, , ?, /, or any control characters.

notes String

Notes about the lock. Maximum of 512 characters.

owners List<Property Map>

The owners of the lock.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the lock.

Type string

The resource type of the lock - Microsoft.Authorization/locks.

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the lock.

Type string

The resource type of the lock - Microsoft.Authorization/locks.

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the lock.

type String

The resource type of the lock - Microsoft.Authorization/locks.

id string

The provider-assigned unique ID for this managed resource.

name string

The name of the lock.

type string

The resource type of the lock - Microsoft.Authorization/locks.

id str

The provider-assigned unique ID for this managed resource.

name str

The name of the lock.

type str

The resource type of the lock - Microsoft.Authorization/locks.

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the lock.

type String

The resource type of the lock - Microsoft.Authorization/locks.

Supporting Types

LockLevel

NotSpecified
NotSpecified
CanNotDelete
CanNotDelete
ReadOnly
ReadOnly
LockLevelNotSpecified
NotSpecified
LockLevelCanNotDelete
CanNotDelete
LockLevelReadOnly
ReadOnly
NotSpecified
NotSpecified
CanNotDelete
CanNotDelete
ReadOnly
ReadOnly
NotSpecified
NotSpecified
CanNotDelete
CanNotDelete
ReadOnly
ReadOnly
NOT_SPECIFIED
NotSpecified
CAN_NOT_DELETE
CanNotDelete
READ_ONLY
ReadOnly
"NotSpecified"
NotSpecified
"CanNotDelete"
CanNotDelete
"ReadOnly"
ReadOnly

ManagementLockOwner

ApplicationId string

The application ID of the lock owner.

ApplicationId string

The application ID of the lock owner.

applicationId String

The application ID of the lock owner.

applicationId string

The application ID of the lock owner.

application_id str

The application ID of the lock owner.

applicationId String

The application ID of the lock owner.

ManagementLockOwnerResponse

ApplicationId string

The application ID of the lock owner.

ApplicationId string

The application ID of the lock owner.

applicationId String

The application ID of the lock owner.

applicationId string

The application ID of the lock owner.

application_id str

The application ID of the lock owner.

applicationId String

The application ID of the lock owner.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:authorization:ManagementLockAtResourceGroupLevel testlock /subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock 

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0