We recommend using Azure Native.
azure.keyvault.ManagedHardwareSecurityModuleRoleAssignment
Explore with Pulumi AI
Manages a Managed Hardware Security Module Role Assignment.
Create ManagedHardwareSecurityModuleRoleAssignment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ManagedHardwareSecurityModuleRoleAssignment(name: string, args: ManagedHardwareSecurityModuleRoleAssignmentArgs, opts?: CustomResourceOptions);
@overload
def ManagedHardwareSecurityModuleRoleAssignment(resource_name: str,
args: ManagedHardwareSecurityModuleRoleAssignmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ManagedHardwareSecurityModuleRoleAssignment(resource_name: str,
opts: Optional[ResourceOptions] = None,
managed_hsm_id: Optional[str] = None,
principal_id: Optional[str] = None,
role_definition_id: Optional[str] = None,
scope: Optional[str] = None,
name: Optional[str] = None)
func NewManagedHardwareSecurityModuleRoleAssignment(ctx *Context, name string, args ManagedHardwareSecurityModuleRoleAssignmentArgs, opts ...ResourceOption) (*ManagedHardwareSecurityModuleRoleAssignment, error)
public ManagedHardwareSecurityModuleRoleAssignment(string name, ManagedHardwareSecurityModuleRoleAssignmentArgs args, CustomResourceOptions? opts = null)
public ManagedHardwareSecurityModuleRoleAssignment(String name, ManagedHardwareSecurityModuleRoleAssignmentArgs args)
public ManagedHardwareSecurityModuleRoleAssignment(String name, ManagedHardwareSecurityModuleRoleAssignmentArgs args, CustomResourceOptions options)
type: azure:keyvault:ManagedHardwareSecurityModuleRoleAssignment
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 ManagedHardwareSecurityModuleRoleAssignmentArgs
- 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 ManagedHardwareSecurityModuleRoleAssignmentArgs
- 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 ManagedHardwareSecurityModuleRoleAssignmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ManagedHardwareSecurityModuleRoleAssignmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ManagedHardwareSecurityModuleRoleAssignmentArgs
- 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 managedHardwareSecurityModuleRoleAssignmentResource = new Azure.KeyVault.ManagedHardwareSecurityModuleRoleAssignment("managedHardwareSecurityModuleRoleAssignmentResource", new()
{
ManagedHsmId = "string",
PrincipalId = "string",
RoleDefinitionId = "string",
Scope = "string",
Name = "string",
});
example, err := keyvault.NewManagedHardwareSecurityModuleRoleAssignment(ctx, "managedHardwareSecurityModuleRoleAssignmentResource", &keyvault.ManagedHardwareSecurityModuleRoleAssignmentArgs{
ManagedHsmId: pulumi.String("string"),
PrincipalId: pulumi.String("string"),
RoleDefinitionId: pulumi.String("string"),
Scope: pulumi.String("string"),
Name: pulumi.String("string"),
})
var managedHardwareSecurityModuleRoleAssignmentResource = new ManagedHardwareSecurityModuleRoleAssignment("managedHardwareSecurityModuleRoleAssignmentResource", ManagedHardwareSecurityModuleRoleAssignmentArgs.builder()
.managedHsmId("string")
.principalId("string")
.roleDefinitionId("string")
.scope("string")
.name("string")
.build());
managed_hardware_security_module_role_assignment_resource = azure.keyvault.ManagedHardwareSecurityModuleRoleAssignment("managedHardwareSecurityModuleRoleAssignmentResource",
managed_hsm_id="string",
principal_id="string",
role_definition_id="string",
scope="string",
name="string")
const managedHardwareSecurityModuleRoleAssignmentResource = new azure.keyvault.ManagedHardwareSecurityModuleRoleAssignment("managedHardwareSecurityModuleRoleAssignmentResource", {
managedHsmId: "string",
principalId: "string",
roleDefinitionId: "string",
scope: "string",
name: "string",
});
type: azure:keyvault:ManagedHardwareSecurityModuleRoleAssignment
properties:
managedHsmId: string
name: string
principalId: string
roleDefinitionId: string
scope: string
ManagedHardwareSecurityModuleRoleAssignment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ManagedHardwareSecurityModuleRoleAssignment resource accepts the following input properties:
- Managed
Hsm stringId - The ID of a Managed Hardware Security Module resource. Changing this forces a new Managed Hardware Security Module to be created. *
- Principal
Id string - The principal ID to be assigned to this role. It can point to a user, service principal, or security group. Changing this forces a new Managed Hardware Security Module to be created.
- Role
Definition stringId - The resource ID of the role definition to assign. Changing this forces a new Managed Hardware Security Module to be created.
- Scope string
- Specifies the scope to create the role assignment. Changing this forces a new Managed Hardware Security Module to be created.
- Name string
- The name in GUID notation which should be used for this Managed Hardware Security Module Role Assignment. Changing this forces a new Managed Hardware Security Module to be created.
- Managed
Hsm stringId - The ID of a Managed Hardware Security Module resource. Changing this forces a new Managed Hardware Security Module to be created. *
- Principal
Id string - The principal ID to be assigned to this role. It can point to a user, service principal, or security group. Changing this forces a new Managed Hardware Security Module to be created.
- Role
Definition stringId - The resource ID of the role definition to assign. Changing this forces a new Managed Hardware Security Module to be created.
- Scope string
- Specifies the scope to create the role assignment. Changing this forces a new Managed Hardware Security Module to be created.
- Name string
- The name in GUID notation which should be used for this Managed Hardware Security Module Role Assignment. Changing this forces a new Managed Hardware Security Module to be created.
- managed
Hsm StringId - The ID of a Managed Hardware Security Module resource. Changing this forces a new Managed Hardware Security Module to be created. *
- principal
Id String - The principal ID to be assigned to this role. It can point to a user, service principal, or security group. Changing this forces a new Managed Hardware Security Module to be created.
- role
Definition StringId - The resource ID of the role definition to assign. Changing this forces a new Managed Hardware Security Module to be created.
- scope String
- Specifies the scope to create the role assignment. Changing this forces a new Managed Hardware Security Module to be created.
- name String
- The name in GUID notation which should be used for this Managed Hardware Security Module Role Assignment. Changing this forces a new Managed Hardware Security Module to be created.
- managed
Hsm stringId - The ID of a Managed Hardware Security Module resource. Changing this forces a new Managed Hardware Security Module to be created. *
- principal
Id string - The principal ID to be assigned to this role. It can point to a user, service principal, or security group. Changing this forces a new Managed Hardware Security Module to be created.
- role
Definition stringId - The resource ID of the role definition to assign. Changing this forces a new Managed Hardware Security Module to be created.
- scope string
- Specifies the scope to create the role assignment. Changing this forces a new Managed Hardware Security Module to be created.
- name string
- The name in GUID notation which should be used for this Managed Hardware Security Module Role Assignment. Changing this forces a new Managed Hardware Security Module to be created.
- managed_
hsm_ strid - The ID of a Managed Hardware Security Module resource. Changing this forces a new Managed Hardware Security Module to be created. *
- principal_
id str - The principal ID to be assigned to this role. It can point to a user, service principal, or security group. Changing this forces a new Managed Hardware Security Module to be created.
- role_
definition_ strid - The resource ID of the role definition to assign. Changing this forces a new Managed Hardware Security Module to be created.
- scope str
- Specifies the scope to create the role assignment. Changing this forces a new Managed Hardware Security Module to be created.
- name str
- The name in GUID notation which should be used for this Managed Hardware Security Module Role Assignment. Changing this forces a new Managed Hardware Security Module to be created.
- managed
Hsm StringId - The ID of a Managed Hardware Security Module resource. Changing this forces a new Managed Hardware Security Module to be created. *
- principal
Id String - The principal ID to be assigned to this role. It can point to a user, service principal, or security group. Changing this forces a new Managed Hardware Security Module to be created.
- role
Definition StringId - The resource ID of the role definition to assign. Changing this forces a new Managed Hardware Security Module to be created.
- scope String
- Specifies the scope to create the role assignment. Changing this forces a new Managed Hardware Security Module to be created.
- name String
- The name in GUID notation which should be used for this Managed Hardware Security Module Role Assignment. Changing this forces a new Managed Hardware Security Module to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the ManagedHardwareSecurityModuleRoleAssignment resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Id string - (Deprecated) The resource id of created assignment resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Id string - (Deprecated) The resource id of created assignment resource.
- id String
- The provider-assigned unique ID for this managed resource.
- resource
Id String - (Deprecated) The resource id of created assignment resource.
- id string
- The provider-assigned unique ID for this managed resource.
- resource
Id string - (Deprecated) The resource id of created assignment resource.
- id str
- The provider-assigned unique ID for this managed resource.
- resource_
id str - (Deprecated) The resource id of created assignment resource.
- id String
- The provider-assigned unique ID for this managed resource.
- resource
Id String - (Deprecated) The resource id of created assignment resource.
Look up Existing ManagedHardwareSecurityModuleRoleAssignment Resource
Get an existing ManagedHardwareSecurityModuleRoleAssignment 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?: ManagedHardwareSecurityModuleRoleAssignmentState, opts?: CustomResourceOptions): ManagedHardwareSecurityModuleRoleAssignment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
managed_hsm_id: Optional[str] = None,
name: Optional[str] = None,
principal_id: Optional[str] = None,
resource_id: Optional[str] = None,
role_definition_id: Optional[str] = None,
scope: Optional[str] = None) -> ManagedHardwareSecurityModuleRoleAssignment
func GetManagedHardwareSecurityModuleRoleAssignment(ctx *Context, name string, id IDInput, state *ManagedHardwareSecurityModuleRoleAssignmentState, opts ...ResourceOption) (*ManagedHardwareSecurityModuleRoleAssignment, error)
public static ManagedHardwareSecurityModuleRoleAssignment Get(string name, Input<string> id, ManagedHardwareSecurityModuleRoleAssignmentState? state, CustomResourceOptions? opts = null)
public static ManagedHardwareSecurityModuleRoleAssignment get(String name, Output<String> id, ManagedHardwareSecurityModuleRoleAssignmentState 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.
- Managed
Hsm stringId - The ID of a Managed Hardware Security Module resource. Changing this forces a new Managed Hardware Security Module to be created. *
- Name string
- The name in GUID notation which should be used for this Managed Hardware Security Module Role Assignment. Changing this forces a new Managed Hardware Security Module to be created.
- Principal
Id string - The principal ID to be assigned to this role. It can point to a user, service principal, or security group. Changing this forces a new Managed Hardware Security Module to be created.
- Resource
Id string - (Deprecated) The resource id of created assignment resource.
- Role
Definition stringId - The resource ID of the role definition to assign. Changing this forces a new Managed Hardware Security Module to be created.
- Scope string
- Specifies the scope to create the role assignment. Changing this forces a new Managed Hardware Security Module to be created.
- Managed
Hsm stringId - The ID of a Managed Hardware Security Module resource. Changing this forces a new Managed Hardware Security Module to be created. *
- Name string
- The name in GUID notation which should be used for this Managed Hardware Security Module Role Assignment. Changing this forces a new Managed Hardware Security Module to be created.
- Principal
Id string - The principal ID to be assigned to this role. It can point to a user, service principal, or security group. Changing this forces a new Managed Hardware Security Module to be created.
- Resource
Id string - (Deprecated) The resource id of created assignment resource.
- Role
Definition stringId - The resource ID of the role definition to assign. Changing this forces a new Managed Hardware Security Module to be created.
- Scope string
- Specifies the scope to create the role assignment. Changing this forces a new Managed Hardware Security Module to be created.
- managed
Hsm StringId - The ID of a Managed Hardware Security Module resource. Changing this forces a new Managed Hardware Security Module to be created. *
- name String
- The name in GUID notation which should be used for this Managed Hardware Security Module Role Assignment. Changing this forces a new Managed Hardware Security Module to be created.
- principal
Id String - The principal ID to be assigned to this role. It can point to a user, service principal, or security group. Changing this forces a new Managed Hardware Security Module to be created.
- resource
Id String - (Deprecated) The resource id of created assignment resource.
- role
Definition StringId - The resource ID of the role definition to assign. Changing this forces a new Managed Hardware Security Module to be created.
- scope String
- Specifies the scope to create the role assignment. Changing this forces a new Managed Hardware Security Module to be created.
- managed
Hsm stringId - The ID of a Managed Hardware Security Module resource. Changing this forces a new Managed Hardware Security Module to be created. *
- name string
- The name in GUID notation which should be used for this Managed Hardware Security Module Role Assignment. Changing this forces a new Managed Hardware Security Module to be created.
- principal
Id string - The principal ID to be assigned to this role. It can point to a user, service principal, or security group. Changing this forces a new Managed Hardware Security Module to be created.
- resource
Id string - (Deprecated) The resource id of created assignment resource.
- role
Definition stringId - The resource ID of the role definition to assign. Changing this forces a new Managed Hardware Security Module to be created.
- scope string
- Specifies the scope to create the role assignment. Changing this forces a new Managed Hardware Security Module to be created.
- managed_
hsm_ strid - The ID of a Managed Hardware Security Module resource. Changing this forces a new Managed Hardware Security Module to be created. *
- name str
- The name in GUID notation which should be used for this Managed Hardware Security Module Role Assignment. Changing this forces a new Managed Hardware Security Module to be created.
- principal_
id str - The principal ID to be assigned to this role. It can point to a user, service principal, or security group. Changing this forces a new Managed Hardware Security Module to be created.
- resource_
id str - (Deprecated) The resource id of created assignment resource.
- role_
definition_ strid - The resource ID of the role definition to assign. Changing this forces a new Managed Hardware Security Module to be created.
- scope str
- Specifies the scope to create the role assignment. Changing this forces a new Managed Hardware Security Module to be created.
- managed
Hsm StringId - The ID of a Managed Hardware Security Module resource. Changing this forces a new Managed Hardware Security Module to be created. *
- name String
- The name in GUID notation which should be used for this Managed Hardware Security Module Role Assignment. Changing this forces a new Managed Hardware Security Module to be created.
- principal
Id String - The principal ID to be assigned to this role. It can point to a user, service principal, or security group. Changing this forces a new Managed Hardware Security Module to be created.
- resource
Id String - (Deprecated) The resource id of created assignment resource.
- role
Definition StringId - The resource ID of the role definition to assign. Changing this forces a new Managed Hardware Security Module to be created.
- scope String
- Specifies the scope to create the role assignment. Changing this forces a new Managed Hardware Security Module to be created.
Import
Managed Hardware Security Modules can be imported using the resource id
, e.g.
$ pulumi import azure:keyvault/managedHardwareSecurityModuleRoleAssignment:ManagedHardwareSecurityModuleRoleAssignment example https://0000.managedhsm.azure.net///RoleAssignment/00000000-0000-0000-0000-000000000000
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.