Module managementresource
This page documents the language specification for the azure package. If you're looking for help working with the inputs, outputs, or functions of azure resources in a Pulumi program, please see the resource documentation for examples and API reference.
Resources
Others
Resources
Resource ManangementLock
class ManangementLock extends CustomResourceManages a Management Lock which is scoped to a Subscription, Resource Group or Resource.
#### Example Usage
##### Subscription Level Lock)
```typescript
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const current = azure.core.getSubscription({});
const subscription_level = new azure.management.Lock("subscription-level", {
scope: current.then(current => current.id),
lockLevel: "CanNotDelete",
notes: "Items can't be deleted in this subscription!",
});
```
##### Resource Level Lock)
```typescript
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const examplePublicIp = new azure.network.PublicIp("examplePublicIp", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
allocationMethod: "Static",
idleTimeoutInMinutes: 30,
});
const public_ip = new azure.management.Lock("public-ip", {
scope: examplePublicIp.id,
lockLevel: "CanNotDelete",
notes: "Locked because it's needed by a third-party",
});
```constructor
new ManangementLock(name: string, args: ManangementLockArgs, opts?: pulumi.CustomResourceOptions)method get
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ManangementLockState, opts?: pulumi.CustomResourceOptions): ManangementLockGet an existing ManangementLock resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
method getProvider
getProvider(moduleMember: string): ProviderResource | undefinedmethod isInstance
public static isInstance(obj: any): obj is ManangementLockReturns true if the given object is an instance of ManangementLock. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.
property id
id: Output<ID>;id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.
property lockLevel
public lockLevel: pulumi.Output<string>;Specifies the Level to be used for this Lock. Possible values are CanNotDelete and ReadOnly. Changing this forces a new resource to be created.
property name
public name: pulumi.Output<string>;Specifies the name of the Management Lock. Changing this forces a new resource to be created.
property notes
public notes: pulumi.Output<string | undefined>;Specifies some notes about the lock. Maximum of 512 characters. Changing this forces a new resource to be created.
property scope
public scope: pulumi.Output<string>;Specifies the scope at which the Management Lock should be created. Changing this forces a new resource to be created.
property urn
urn: Output<URN>;urn is the stable logical URN used to distinctly address a resource, both before and after deployments.
Others
interface ManangementLockArgs
interface ManangementLockArgsThe set of arguments for constructing a ManangementLock resource.
property lockLevel
lockLevel: pulumi.Input<string>;Specifies the Level to be used for this Lock. Possible values are CanNotDelete and ReadOnly. Changing this forces a new resource to be created.
property name
name?: pulumi.Input<string>;Specifies the name of the Management Lock. Changing this forces a new resource to be created.
property notes
notes?: pulumi.Input<string>;Specifies some notes about the lock. Maximum of 512 characters. Changing this forces a new resource to be created.
property scope
scope: pulumi.Input<string>;Specifies the scope at which the Management Lock should be created. Changing this forces a new resource to be created.
interface ManangementLockState
interface ManangementLockStateInput properties used for looking up and filtering ManangementLock resources.
property lockLevel
lockLevel?: pulumi.Input<string>;Specifies the Level to be used for this Lock. Possible values are CanNotDelete and ReadOnly. Changing this forces a new resource to be created.
property name
name?: pulumi.Input<string>;Specifies the name of the Management Lock. Changing this forces a new resource to be created.
property notes
notes?: pulumi.Input<string>;Specifies some notes about the lock. Maximum of 512 characters. Changing this forces a new resource to be created.
property scope
scope?: pulumi.Input<string>;Specifies the scope at which the Management Lock should be created. Changing this forces a new resource to be created.