@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 4.01 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
import * as enums from "../types/enums";
/**
* The lock information.
*
* Uses Azure REST API version 2020-05-01. In version 2.x of the Azure Native provider, it used API version 2020-05-01.
*/
export declare class ManagementLockByScope extends pulumi.CustomResource {
/**
* Get an existing ManagementLockByScope resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): ManagementLockByScope;
/**
* Returns true if the given object is an instance of ManagementLockByScope. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is ManagementLockByScope;
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: pulumi.Output<string>;
/**
* 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.
*/
readonly level: pulumi.Output<string>;
/**
* The name of the lock.
*/
readonly name: pulumi.Output<string>;
/**
* Notes about the lock. Maximum of 512 characters.
*/
readonly notes: pulumi.Output<string | undefined>;
/**
* The owners of the lock.
*/
readonly owners: pulumi.Output<outputs.authorization.ManagementLockOwnerResponse[] | undefined>;
/**
* Metadata pertaining to creation and last modification of the resource.
*/
readonly systemData: pulumi.Output<outputs.authorization.SystemDataResponse>;
/**
* The resource type of the lock - Microsoft.Authorization/locks.
*/
readonly type: pulumi.Output<string>;
/**
* Create a ManagementLockByScope resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: ManagementLockByScopeArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* The set of arguments for constructing a ManagementLockByScope resource.
*/
export interface ManagementLockByScopeArgs {
/**
* 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.
*/
level: pulumi.Input<string | enums.authorization.LockLevel>;
/**
* The name of lock.
*/
lockName?: pulumi.Input<string>;
/**
* Notes about the lock. Maximum of 512 characters.
*/
notes?: pulumi.Input<string>;
/**
* The owners of the lock.
*/
owners?: pulumi.Input<pulumi.Input<inputs.authorization.ManagementLockOwnerArgs>[]>;
/**
* The scope for the lock. When providing a scope for the assignment, use '/subscriptions/{subscriptionId}' for subscriptions, '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' for resources.
*/
scope: pulumi.Input<string>;
}