We recommend using Azure Native.
azure.marketplace.RoleAssignment
Explore with Pulumi AI
Create RoleAssignment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RoleAssignment(name: string, args: RoleAssignmentArgs, opts?: CustomResourceOptions);
@overload
def RoleAssignment(resource_name: str,
args: RoleAssignmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RoleAssignment(resource_name: str,
opts: Optional[ResourceOptions] = None,
principal_id: Optional[str] = None,
condition: Optional[str] = None,
condition_version: Optional[str] = None,
delegated_managed_identity_resource_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
role_definition_id: Optional[str] = None,
role_definition_name: Optional[str] = None,
skip_service_principal_aad_check: Optional[bool] = None)
func NewRoleAssignment(ctx *Context, name string, args RoleAssignmentArgs, opts ...ResourceOption) (*RoleAssignment, error)
public RoleAssignment(string name, RoleAssignmentArgs args, CustomResourceOptions? opts = null)
public RoleAssignment(String name, RoleAssignmentArgs args)
public RoleAssignment(String name, RoleAssignmentArgs args, CustomResourceOptions options)
type: azure:marketplace:RoleAssignment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args RoleAssignmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args RoleAssignmentArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RoleAssignmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RoleAssignmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RoleAssignmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var roleAssignmentResource = new Azure.Marketplace.RoleAssignment("roleAssignmentResource", new()
{
PrincipalId = "string",
Condition = "string",
ConditionVersion = "string",
DelegatedManagedIdentityResourceId = "string",
Description = "string",
Name = "string",
RoleDefinitionId = "string",
RoleDefinitionName = "string",
SkipServicePrincipalAadCheck = false,
});
example, err := marketplace.NewRoleAssignment(ctx, "roleAssignmentResource", &marketplace.RoleAssignmentArgs{
PrincipalId: pulumi.String("string"),
Condition: pulumi.String("string"),
ConditionVersion: pulumi.String("string"),
DelegatedManagedIdentityResourceId: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
RoleDefinitionId: pulumi.String("string"),
RoleDefinitionName: pulumi.String("string"),
SkipServicePrincipalAadCheck: pulumi.Bool(false),
})
var roleAssignmentResource = new RoleAssignment("roleAssignmentResource", RoleAssignmentArgs.builder()
.principalId("string")
.condition("string")
.conditionVersion("string")
.delegatedManagedIdentityResourceId("string")
.description("string")
.name("string")
.roleDefinitionId("string")
.roleDefinitionName("string")
.skipServicePrincipalAadCheck(false)
.build());
role_assignment_resource = azure.marketplace.RoleAssignment("roleAssignmentResource",
principal_id="string",
condition="string",
condition_version="string",
delegated_managed_identity_resource_id="string",
description="string",
name="string",
role_definition_id="string",
role_definition_name="string",
skip_service_principal_aad_check=False)
const roleAssignmentResource = new azure.marketplace.RoleAssignment("roleAssignmentResource", {
principalId: "string",
condition: "string",
conditionVersion: "string",
delegatedManagedIdentityResourceId: "string",
description: "string",
name: "string",
roleDefinitionId: "string",
roleDefinitionName: "string",
skipServicePrincipalAadCheck: false,
});
type: azure:marketplace:RoleAssignment
properties:
condition: string
conditionVersion: string
delegatedManagedIdentityResourceId: string
description: string
name: string
principalId: string
roleDefinitionId: string
roleDefinitionName: string
skipServicePrincipalAadCheck: false
RoleAssignment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The RoleAssignment resource accepts the following input properties:
- Principal
Id string - Condition string
- Condition
Version string - Delegated
Managed stringIdentity Resource Id - Description string
- Name string
- Role
Definition stringId - Role
Definition stringName - Skip
Service boolPrincipal Aad Check
- Principal
Id string - Condition string
- Condition
Version string - Delegated
Managed stringIdentity Resource Id - Description string
- Name string
- Role
Definition stringId - Role
Definition stringName - Skip
Service boolPrincipal Aad Check
- principal
Id String - condition String
- condition
Version String - delegated
Managed StringIdentity Resource Id - description String
- name String
- role
Definition StringId - role
Definition StringName - skip
Service BooleanPrincipal Aad Check
- principal
Id string - condition string
- condition
Version string - delegated
Managed stringIdentity Resource Id - description string
- name string
- role
Definition stringId - role
Definition stringName - skip
Service booleanPrincipal Aad Check
- principal
Id String - condition String
- condition
Version String - delegated
Managed StringIdentity Resource Id - description String
- name String
- role
Definition StringId - role
Definition StringName - skip
Service BooleanPrincipal Aad Check
Outputs
All input properties are implicitly available as output properties. Additionally, the RoleAssignment resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Principal
Type string
- Id string
- The provider-assigned unique ID for this managed resource.
- Principal
Type string
- id String
- The provider-assigned unique ID for this managed resource.
- principal
Type String
- id string
- The provider-assigned unique ID for this managed resource.
- principal
Type string
- id str
- The provider-assigned unique ID for this managed resource.
- principal_
type str
- id String
- The provider-assigned unique ID for this managed resource.
- principal
Type String
Look up Existing RoleAssignment Resource
Get an existing RoleAssignment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: RoleAssignmentState, opts?: CustomResourceOptions): RoleAssignment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
condition: Optional[str] = None,
condition_version: Optional[str] = None,
delegated_managed_identity_resource_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
principal_id: Optional[str] = None,
principal_type: Optional[str] = None,
role_definition_id: Optional[str] = None,
role_definition_name: Optional[str] = None,
skip_service_principal_aad_check: Optional[bool] = None) -> RoleAssignment
func GetRoleAssignment(ctx *Context, name string, id IDInput, state *RoleAssignmentState, opts ...ResourceOption) (*RoleAssignment, error)
public static RoleAssignment Get(string name, Input<string> id, RoleAssignmentState? state, CustomResourceOptions? opts = null)
public static RoleAssignment get(String name, Output<String> id, RoleAssignmentState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Condition string
- Condition
Version string - Delegated
Managed stringIdentity Resource Id - Description string
- Name string
- Principal
Id string - Principal
Type string - Role
Definition stringId - Role
Definition stringName - Skip
Service boolPrincipal Aad Check
- Condition string
- Condition
Version string - Delegated
Managed stringIdentity Resource Id - Description string
- Name string
- Principal
Id string - Principal
Type string - Role
Definition stringId - Role
Definition stringName - Skip
Service boolPrincipal Aad Check
- condition String
- condition
Version String - delegated
Managed StringIdentity Resource Id - description String
- name String
- principal
Id String - principal
Type String - role
Definition StringId - role
Definition StringName - skip
Service BooleanPrincipal Aad Check
- condition string
- condition
Version string - delegated
Managed stringIdentity Resource Id - description string
- name string
- principal
Id string - principal
Type string - role
Definition stringId - role
Definition stringName - skip
Service booleanPrincipal Aad Check
- condition String
- condition
Version String - delegated
Managed StringIdentity Resource Id - description String
- name String
- principal
Id String - principal
Type String - role
Definition StringId - role
Definition StringName - skip
Service BooleanPrincipal Aad Check
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.