KeyVault Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a KeyVault.
public class KeyVault : Azure.Provisioning.Resource<Azure.ResourceManager.KeyVault.KeyVaultData>
type KeyVault = class
inherit Resource<KeyVaultData>
Public Class KeyVault
Inherits Resource(Of KeyVaultData)
- Inheritance
Constructors
KeyVault(IConstruct, ResourceGroup, String, String, Nullable<AzureLocation>) |
Initializes a new instance of the KeyVault class. |
Properties
Id |
Gets the ResourceIdentifier of the resource. (Inherited from Resource) |
IsExisting |
Whether or not the resource already exists. (Inherited from Resource) |
Name |
Gets the name of the resource. (Inherited from Resource) |
Parent |
Gets the parent Resource. (Inherited from Resource) |
Properties |
Gets the properties of the resource. (Inherited from Resource<T>) |
ResourceData |
Gets the data of the resource. (Inherited from Resource) |
Scope |
Gets the IConstruct scope of the resource. (Inherited from Resource) |
Version |
Gets the version of the resource. (Inherited from Resource) |
Methods
AddAccessPolicy(Output) |
Adds an access policy to the KeyVault. |
AddDependency(Resource) |
Adds a dependency to the resource. (Inherited from Resource) |
AddOutput(String, Expression<Func<T,Object>>, BicepType, Boolean) |
Adds an output to the resource. (Inherited from Resource<T>) |
AddOutput(String, String, Expression<Func<T,Object>>, BicepType, Boolean) |
Adds an output to the resource. (Inherited from Resource<T>) |
AssignProperty(Expression<Func<T,Object>>, Parameter) | (Inherited from Resource<T>) |
AssignProperty(Expression<Func<T,Object>>, String) | (Inherited from Resource<T>) |
AssignRole(RoleDefinition, Nullable<Guid>, Nullable<RoleManagementPrincipalType>) |
Assigns a role to the resource. (Inherited from Resource) |
FindParentInScope(IConstruct) |
Finds the parent resource in the scope. (Inherited from Resource) |
FromExisting(IConstruct, String, ResourceGroup) |
Creates a new instance of the KeyVault class referencing an existing instance. |
GetAzureName(IConstruct, String) |
Validate and sanitize the resource name. |
GetBicepName(Resource) |
Gets the name of the resource for Bicep. (Inherited from Resource) |
GetGloballyUniqueName(String) |
Gets a globally unique name for the resource. (Inherited from Resource) |
NeedsParent() |
Determines whether the resource needs a parent declaration. (Inherited from Resource) |
NeedsScope() |
Determines whether the resource needs a scope declaration. (Inherited from Resource) |
Explicit Interface Implementations
IPersistableModel<Resource>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. (Inherited from Resource) |
IPersistableModel<Resource>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. (Inherited from Resource) |
IPersistableModel<Resource>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. (Inherited from Resource) |
Applies to
Azure SDK for .NET