Freigeben über


RoleAssignment Class

Definition

Role assignment resource.

public class RoleAssignment : Azure.Provisioning.Resource<Azure.ResourceManager.Authorization.RoleAssignmentData>
type RoleAssignment = class
    inherit Resource<RoleAssignmentData>
Public Class RoleAssignment
Inherits Resource(Of RoleAssignmentData)
Inheritance

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

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)
GetAzureName(IConstruct, String)

Validate and sanitize the resource name.

(Inherited from Resource)
GetBicepName(Resource)

Gets the name of the resource for Bicep.

GetGloballyUniqueName(String)

Gets a globally unique name for the resource.

(Inherited from Resource)
NeedsParent()

Determines whether the resource needs a parent declaration.

NeedsScope()

Determines whether the resource needs a scope declaration.

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