Module managementresource

managementresource

This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-azure repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-azurerm repo.
class pulumi_azure.managementresource.ManangementLock(resource_name, opts=None, lock_level=None, name=None, notes=None, scope=None, __props__=None, __name__=None, __opts__=None)

Manages a Management Lock which is scoped to a Subscription, Resource Group or Resource.

Parameters:
  • resource_name (str) – The name of the resource.
  • opts (pulumi.ResourceOptions) – Options for the resource.
  • lock_level (pulumi.Input[str]) – Specifies the Level to be used for this Lock. Possible values are CanNotDelete and ReadOnly. Changing this forces a new resource to be created.
  • name (pulumi.Input[str]) – Specifies the name of the Management Lock. Changing this forces a new resource to be created.
  • notes (pulumi.Input[str]) – Specifies some notes about the lock. Maximum of 512 characters. Changing this forces a new resource to be created.
  • scope (pulumi.Input[str]) – Specifies the scope at which the Management Lock should be created. Changing this forces a new resource to be created.
lock_level = None

Specifies the Level to be used for this Lock. Possible values are CanNotDelete and ReadOnly. Changing this forces a new resource to be created.

name = None

Specifies the name of the Management Lock. Changing this forces a new resource to be created.

notes = None

Specifies some notes about the lock. Maximum of 512 characters. Changing this forces a new resource to be created.

scope = None

Specifies the scope at which the Management Lock should be created. Changing this forces a new resource to be created.

static get(resource_name, id, opts=None, lock_level=None, name=None, notes=None, scope=None)

Get an existing ManangementLock resource’s state with the given name, id, and optional extra properties used to qualify the lookup. :param str resource_name: The unique name of the resulting resource. :param str id: The unique provider ID of the resource to lookup. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] lock_level: Specifies the Level to be used for this Lock. Possible values are CanNotDelete and ReadOnly. Changing this forces a new resource to be created. :param pulumi.Input[str] name: Specifies the name of the Management Lock. Changing this forces a new resource to be created. :param pulumi.Input[str] notes: Specifies some notes about the lock. Maximum of 512 characters. Changing this forces a new resource to be created. :param pulumi.Input[str] scope: Specifies the scope at which the Management Lock should be created. Changing this forces a new resource to be created.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str
translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters:prop (str) – A property name.
Returns:A potentially transformed property name.
Return type:str