1. Packages
  2. Azure Native v1
  3. API Docs
  4. customerinsights
  5. RoleAssignment
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.customerinsights.RoleAssignment

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    The Role Assignment resource format. API Version: 2017-04-26.

    Example Usage

    RoleAssignments_CreateOrUpdate

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var roleAssignment = new AzureNative.CustomerInsights.RoleAssignment("roleAssignment", new()
        {
            AssignmentName = "assignmentName8976",
            HubName = "sdkTestHub",
            Principals = new[]
            {
                new AzureNative.CustomerInsights.Inputs.AssignmentPrincipalArgs
                {
                    PrincipalId = "4c54c38ffa9b416ba5a6d6c8a20cbe7e",
                    PrincipalType = "User",
                },
                new AzureNative.CustomerInsights.Inputs.AssignmentPrincipalArgs
                {
                    PrincipalId = "93061d15a5054f2b9948ae25724cf9d5",
                    PrincipalType = "User",
                },
            },
            ResourceGroupName = "TestHubRG",
            Role = AzureNative.CustomerInsights.RoleTypes.Admin,
        });
    
    });
    
    package main
    
    import (
    	customerinsights "github.com/pulumi/pulumi-azure-native-sdk/customerinsights"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := customerinsights.NewRoleAssignment(ctx, "roleAssignment", &customerinsights.RoleAssignmentArgs{
    			AssignmentName: pulumi.String("assignmentName8976"),
    			HubName:        pulumi.String("sdkTestHub"),
    			Principals: []customerinsights.AssignmentPrincipalArgs{
    				{
    					PrincipalId:   pulumi.String("4c54c38ffa9b416ba5a6d6c8a20cbe7e"),
    					PrincipalType: pulumi.String("User"),
    				},
    				{
    					PrincipalId:   pulumi.String("93061d15a5054f2b9948ae25724cf9d5"),
    					PrincipalType: pulumi.String("User"),
    				},
    			},
    			ResourceGroupName: pulumi.String("TestHubRG"),
    			Role:              customerinsights.RoleTypesAdmin,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.customerinsights.RoleAssignment;
    import com.pulumi.azurenative.customerinsights.RoleAssignmentArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var roleAssignment = new RoleAssignment("roleAssignment", RoleAssignmentArgs.builder()        
                .assignmentName("assignmentName8976")
                .hubName("sdkTestHub")
                .principals(            
                    Map.ofEntries(
                        Map.entry("principalId", "4c54c38ffa9b416ba5a6d6c8a20cbe7e"),
                        Map.entry("principalType", "User")
                    ),
                    Map.ofEntries(
                        Map.entry("principalId", "93061d15a5054f2b9948ae25724cf9d5"),
                        Map.entry("principalType", "User")
                    ))
                .resourceGroupName("TestHubRG")
                .role("Admin")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    role_assignment = azure_native.customerinsights.RoleAssignment("roleAssignment",
        assignment_name="assignmentName8976",
        hub_name="sdkTestHub",
        principals=[
            azure_native.customerinsights.AssignmentPrincipalArgs(
                principal_id="4c54c38ffa9b416ba5a6d6c8a20cbe7e",
                principal_type="User",
            ),
            azure_native.customerinsights.AssignmentPrincipalArgs(
                principal_id="93061d15a5054f2b9948ae25724cf9d5",
                principal_type="User",
            ),
        ],
        resource_group_name="TestHubRG",
        role=azure_native.customerinsights.RoleTypes.ADMIN)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const roleAssignment = new azure_native.customerinsights.RoleAssignment("roleAssignment", {
        assignmentName: "assignmentName8976",
        hubName: "sdkTestHub",
        principals: [
            {
                principalId: "4c54c38ffa9b416ba5a6d6c8a20cbe7e",
                principalType: "User",
            },
            {
                principalId: "93061d15a5054f2b9948ae25724cf9d5",
                principalType: "User",
            },
        ],
        resourceGroupName: "TestHubRG",
        role: azure_native.customerinsights.RoleTypes.Admin,
    });
    
    resources:
      roleAssignment:
        type: azure-native:customerinsights:RoleAssignment
        properties:
          assignmentName: assignmentName8976
          hubName: sdkTestHub
          principals:
            - principalId: 4c54c38ffa9b416ba5a6d6c8a20cbe7e
              principalType: User
            - principalId: 93061d15a5054f2b9948ae25724cf9d5
              principalType: User
          resourceGroupName: TestHubRG
          role: Admin
    

    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,
                       hub_name: Optional[str] = None,
                       role: Optional[RoleTypes] = None,
                       resource_group_name: Optional[str] = None,
                       principals: Optional[Sequence[AssignmentPrincipalArgs]] = None,
                       profiles: Optional[ResourceSetDescriptionArgs] = None,
                       relationship_links: Optional[ResourceSetDescriptionArgs] = None,
                       interactions: Optional[ResourceSetDescriptionArgs] = None,
                       kpis: Optional[ResourceSetDescriptionArgs] = None,
                       links: Optional[ResourceSetDescriptionArgs] = None,
                       description: Optional[Mapping[str, str]] = None,
                       assignment_name: Optional[str] = None,
                       display_name: Optional[Mapping[str, str]] = None,
                       relationships: Optional[ResourceSetDescriptionArgs] = None,
                       connectors: Optional[ResourceSetDescriptionArgs] = None,
                       conflation_policies: Optional[ResourceSetDescriptionArgs] = None,
                       role_assignments: Optional[ResourceSetDescriptionArgs] = None,
                       sas_policies: Optional[ResourceSetDescriptionArgs] = None,
                       segments: Optional[ResourceSetDescriptionArgs] = None,
                       views: Optional[ResourceSetDescriptionArgs] = None,
                       widget_types: Optional[ResourceSetDescriptionArgs] = 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-native:customerinsights: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 azure_nativeRoleAssignmentResource = new AzureNative.Customerinsights.RoleAssignment("azure-nativeRoleAssignmentResource", new()
    {
        HubName = "string",
        Role = "Admin",
        ResourceGroupName = "string",
        Principals = new[]
        {
            
            {
                { "principalId", "string" },
                { "principalType", "string" },
                { "principalMetadata", 
                {
                    { "string", "string" },
                } },
            },
        },
        Profiles = 
        {
            { "elements", new[]
            {
                "string",
            } },
            { "exceptions", new[]
            {
                "string",
            } },
        },
        RelationshipLinks = 
        {
            { "elements", new[]
            {
                "string",
            } },
            { "exceptions", new[]
            {
                "string",
            } },
        },
        Interactions = 
        {
            { "elements", new[]
            {
                "string",
            } },
            { "exceptions", new[]
            {
                "string",
            } },
        },
        Kpis = 
        {
            { "elements", new[]
            {
                "string",
            } },
            { "exceptions", new[]
            {
                "string",
            } },
        },
        Links = 
        {
            { "elements", new[]
            {
                "string",
            } },
            { "exceptions", new[]
            {
                "string",
            } },
        },
        Description = 
        {
            { "string", "string" },
        },
        AssignmentName = "string",
        DisplayName = 
        {
            { "string", "string" },
        },
        Relationships = 
        {
            { "elements", new[]
            {
                "string",
            } },
            { "exceptions", new[]
            {
                "string",
            } },
        },
        Connectors = 
        {
            { "elements", new[]
            {
                "string",
            } },
            { "exceptions", new[]
            {
                "string",
            } },
        },
        ConflationPolicies = 
        {
            { "elements", new[]
            {
                "string",
            } },
            { "exceptions", new[]
            {
                "string",
            } },
        },
        RoleAssignments = 
        {
            { "elements", new[]
            {
                "string",
            } },
            { "exceptions", new[]
            {
                "string",
            } },
        },
        SasPolicies = 
        {
            { "elements", new[]
            {
                "string",
            } },
            { "exceptions", new[]
            {
                "string",
            } },
        },
        Segments = 
        {
            { "elements", new[]
            {
                "string",
            } },
            { "exceptions", new[]
            {
                "string",
            } },
        },
        Views = 
        {
            { "elements", new[]
            {
                "string",
            } },
            { "exceptions", new[]
            {
                "string",
            } },
        },
        WidgetTypes = 
        {
            { "elements", new[]
            {
                "string",
            } },
            { "exceptions", new[]
            {
                "string",
            } },
        },
    });
    
    example, err := customerinsights.NewRoleAssignment(ctx, "azure-nativeRoleAssignmentResource", &customerinsights.RoleAssignmentArgs{
    	HubName:           "string",
    	Role:              "Admin",
    	ResourceGroupName: "string",
    	Principals: []map[string]interface{}{
    		map[string]interface{}{
    			"principalId":   "string",
    			"principalType": "string",
    			"principalMetadata": map[string]interface{}{
    				"string": "string",
    			},
    		},
    	},
    	Profiles: map[string]interface{}{
    		"elements": []string{
    			"string",
    		},
    		"exceptions": []string{
    			"string",
    		},
    	},
    	RelationshipLinks: map[string]interface{}{
    		"elements": []string{
    			"string",
    		},
    		"exceptions": []string{
    			"string",
    		},
    	},
    	Interactions: map[string]interface{}{
    		"elements": []string{
    			"string",
    		},
    		"exceptions": []string{
    			"string",
    		},
    	},
    	Kpis: map[string]interface{}{
    		"elements": []string{
    			"string",
    		},
    		"exceptions": []string{
    			"string",
    		},
    	},
    	Links: map[string]interface{}{
    		"elements": []string{
    			"string",
    		},
    		"exceptions": []string{
    			"string",
    		},
    	},
    	Description: map[string]interface{}{
    		"string": "string",
    	},
    	AssignmentName: "string",
    	DisplayName: map[string]interface{}{
    		"string": "string",
    	},
    	Relationships: map[string]interface{}{
    		"elements": []string{
    			"string",
    		},
    		"exceptions": []string{
    			"string",
    		},
    	},
    	Connectors: map[string]interface{}{
    		"elements": []string{
    			"string",
    		},
    		"exceptions": []string{
    			"string",
    		},
    	},
    	ConflationPolicies: map[string]interface{}{
    		"elements": []string{
    			"string",
    		},
    		"exceptions": []string{
    			"string",
    		},
    	},
    	RoleAssignments: map[string]interface{}{
    		"elements": []string{
    			"string",
    		},
    		"exceptions": []string{
    			"string",
    		},
    	},
    	SasPolicies: map[string]interface{}{
    		"elements": []string{
    			"string",
    		},
    		"exceptions": []string{
    			"string",
    		},
    	},
    	Segments: map[string]interface{}{
    		"elements": []string{
    			"string",
    		},
    		"exceptions": []string{
    			"string",
    		},
    	},
    	Views: map[string]interface{}{
    		"elements": []string{
    			"string",
    		},
    		"exceptions": []string{
    			"string",
    		},
    	},
    	WidgetTypes: map[string]interface{}{
    		"elements": []string{
    			"string",
    		},
    		"exceptions": []string{
    			"string",
    		},
    	},
    })
    
    var azure_nativeRoleAssignmentResource = new RoleAssignment("azure-nativeRoleAssignmentResource", RoleAssignmentArgs.builder()
        .hubName("string")
        .role("Admin")
        .resourceGroupName("string")
        .principals(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .profiles(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .relationshipLinks(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .interactions(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .kpis(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .links(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .description(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .assignmentName("string")
        .displayName(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .relationships(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .connectors(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .conflationPolicies(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .roleAssignments(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .sasPolicies(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .segments(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .views(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .widgetTypes(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .build());
    
    azure_native_role_assignment_resource = azure_native.customerinsights.RoleAssignment("azure-nativeRoleAssignmentResource",
        hub_name=string,
        role=Admin,
        resource_group_name=string,
        principals=[{
            principalId: string,
            principalType: string,
            principalMetadata: {
                string: string,
            },
        }],
        profiles={
            elements: [string],
            exceptions: [string],
        },
        relationship_links={
            elements: [string],
            exceptions: [string],
        },
        interactions={
            elements: [string],
            exceptions: [string],
        },
        kpis={
            elements: [string],
            exceptions: [string],
        },
        links={
            elements: [string],
            exceptions: [string],
        },
        description={
            string: string,
        },
        assignment_name=string,
        display_name={
            string: string,
        },
        relationships={
            elements: [string],
            exceptions: [string],
        },
        connectors={
            elements: [string],
            exceptions: [string],
        },
        conflation_policies={
            elements: [string],
            exceptions: [string],
        },
        role_assignments={
            elements: [string],
            exceptions: [string],
        },
        sas_policies={
            elements: [string],
            exceptions: [string],
        },
        segments={
            elements: [string],
            exceptions: [string],
        },
        views={
            elements: [string],
            exceptions: [string],
        },
        widget_types={
            elements: [string],
            exceptions: [string],
        })
    
    const azure_nativeRoleAssignmentResource = new azure_native.customerinsights.RoleAssignment("azure-nativeRoleAssignmentResource", {
        hubName: "string",
        role: "Admin",
        resourceGroupName: "string",
        principals: [{
            principalId: "string",
            principalType: "string",
            principalMetadata: {
                string: "string",
            },
        }],
        profiles: {
            elements: ["string"],
            exceptions: ["string"],
        },
        relationshipLinks: {
            elements: ["string"],
            exceptions: ["string"],
        },
        interactions: {
            elements: ["string"],
            exceptions: ["string"],
        },
        kpis: {
            elements: ["string"],
            exceptions: ["string"],
        },
        links: {
            elements: ["string"],
            exceptions: ["string"],
        },
        description: {
            string: "string",
        },
        assignmentName: "string",
        displayName: {
            string: "string",
        },
        relationships: {
            elements: ["string"],
            exceptions: ["string"],
        },
        connectors: {
            elements: ["string"],
            exceptions: ["string"],
        },
        conflationPolicies: {
            elements: ["string"],
            exceptions: ["string"],
        },
        roleAssignments: {
            elements: ["string"],
            exceptions: ["string"],
        },
        sasPolicies: {
            elements: ["string"],
            exceptions: ["string"],
        },
        segments: {
            elements: ["string"],
            exceptions: ["string"],
        },
        views: {
            elements: ["string"],
            exceptions: ["string"],
        },
        widgetTypes: {
            elements: ["string"],
            exceptions: ["string"],
        },
    });
    
    type: azure-native:customerinsights:RoleAssignment
    properties:
        assignmentName: string
        conflationPolicies:
            elements:
                - string
            exceptions:
                - string
        connectors:
            elements:
                - string
            exceptions:
                - string
        description:
            string: string
        displayName:
            string: string
        hubName: string
        interactions:
            elements:
                - string
            exceptions:
                - string
        kpis:
            elements:
                - string
            exceptions:
                - string
        links:
            elements:
                - string
            exceptions:
                - string
        principals:
            - principalId: string
              principalMetadata:
                string: string
              principalType: string
        profiles:
            elements:
                - string
            exceptions:
                - string
        relationshipLinks:
            elements:
                - string
            exceptions:
                - string
        relationships:
            elements:
                - string
            exceptions:
                - string
        resourceGroupName: string
        role: Admin
        roleAssignments:
            elements:
                - string
            exceptions:
                - string
        sasPolicies:
            elements:
                - string
            exceptions:
                - string
        segments:
            elements:
                - string
            exceptions:
                - string
        views:
            elements:
                - string
            exceptions:
                - string
        widgetTypes:
            elements:
                - string
            exceptions:
                - string
    

    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

    The RoleAssignment resource accepts the following input properties:

    HubName string
    The name of the hub.
    Principals List<Pulumi.AzureNative.CustomerInsights.Inputs.AssignmentPrincipal>
    The principals being assigned to.
    ResourceGroupName string
    The name of the resource group.
    Role Pulumi.AzureNative.CustomerInsights.RoleTypes
    Type of roles.
    AssignmentName string
    The assignment name
    ConflationPolicies Pulumi.AzureNative.CustomerInsights.Inputs.ResourceSetDescription
    Widget types set for the assignment.
    Connectors Pulumi.AzureNative.CustomerInsights.Inputs.ResourceSetDescription
    Connectors set for the assignment.
    Description Dictionary<string, string>
    Localized description for the metadata.
    DisplayName Dictionary<string, string>
    Localized display names for the metadata.
    Interactions Pulumi.AzureNative.CustomerInsights.Inputs.ResourceSetDescription
    Interactions set for the assignment.
    Kpis Pulumi.AzureNative.CustomerInsights.Inputs.ResourceSetDescription
    Kpis set for the assignment.
    Links Pulumi.AzureNative.CustomerInsights.Inputs.ResourceSetDescription
    Links set for the assignment.
    Profiles Pulumi.AzureNative.CustomerInsights.Inputs.ResourceSetDescription
    Profiles set for the assignment.
    RelationshipLinks Pulumi.AzureNative.CustomerInsights.Inputs.ResourceSetDescription
    The Role assignments set for the relationship links.
    Relationships Pulumi.AzureNative.CustomerInsights.Inputs.ResourceSetDescription
    The Role assignments set for the relationships.
    RoleAssignments Pulumi.AzureNative.CustomerInsights.Inputs.ResourceSetDescription
    The Role assignments set for the assignment.
    SasPolicies Pulumi.AzureNative.CustomerInsights.Inputs.ResourceSetDescription
    Sas Policies set for the assignment.
    Segments Pulumi.AzureNative.CustomerInsights.Inputs.ResourceSetDescription
    The Role assignments set for the assignment.
    Views Pulumi.AzureNative.CustomerInsights.Inputs.ResourceSetDescription
    Views set for the assignment.
    WidgetTypes Pulumi.AzureNative.CustomerInsights.Inputs.ResourceSetDescription
    Widget types set for the assignment.
    HubName string
    The name of the hub.
    Principals []AssignmentPrincipalArgs
    The principals being assigned to.
    ResourceGroupName string
    The name of the resource group.
    Role RoleTypes
    Type of roles.
    AssignmentName string
    The assignment name
    ConflationPolicies ResourceSetDescriptionArgs
    Widget types set for the assignment.
    Connectors ResourceSetDescriptionArgs
    Connectors set for the assignment.
    Description map[string]string
    Localized description for the metadata.
    DisplayName map[string]string
    Localized display names for the metadata.
    Interactions ResourceSetDescriptionArgs
    Interactions set for the assignment.
    Kpis ResourceSetDescriptionArgs
    Kpis set for the assignment.
    Links ResourceSetDescriptionArgs
    Links set for the assignment.
    Profiles ResourceSetDescriptionArgs
    Profiles set for the assignment.
    RelationshipLinks ResourceSetDescriptionArgs
    The Role assignments set for the relationship links.
    Relationships ResourceSetDescriptionArgs
    The Role assignments set for the relationships.
    RoleAssignments ResourceSetDescriptionArgs
    The Role assignments set for the assignment.
    SasPolicies ResourceSetDescriptionArgs
    Sas Policies set for the assignment.
    Segments ResourceSetDescriptionArgs
    The Role assignments set for the assignment.
    Views ResourceSetDescriptionArgs
    Views set for the assignment.
    WidgetTypes ResourceSetDescriptionArgs
    Widget types set for the assignment.
    hubName String
    The name of the hub.
    principals List<AssignmentPrincipal>
    The principals being assigned to.
    resourceGroupName String
    The name of the resource group.
    role RoleTypes
    Type of roles.
    assignmentName String
    The assignment name
    conflationPolicies ResourceSetDescription
    Widget types set for the assignment.
    connectors ResourceSetDescription
    Connectors set for the assignment.
    description Map<String,String>
    Localized description for the metadata.
    displayName Map<String,String>
    Localized display names for the metadata.
    interactions ResourceSetDescription
    Interactions set for the assignment.
    kpis ResourceSetDescription
    Kpis set for the assignment.
    links ResourceSetDescription
    Links set for the assignment.
    profiles ResourceSetDescription
    Profiles set for the assignment.
    relationshipLinks ResourceSetDescription
    The Role assignments set for the relationship links.
    relationships ResourceSetDescription
    The Role assignments set for the relationships.
    roleAssignments ResourceSetDescription
    The Role assignments set for the assignment.
    sasPolicies ResourceSetDescription
    Sas Policies set for the assignment.
    segments ResourceSetDescription
    The Role assignments set for the assignment.
    views ResourceSetDescription
    Views set for the assignment.
    widgetTypes ResourceSetDescription
    Widget types set for the assignment.
    hubName string
    The name of the hub.
    principals AssignmentPrincipal[]
    The principals being assigned to.
    resourceGroupName string
    The name of the resource group.
    role RoleTypes
    Type of roles.
    assignmentName string
    The assignment name
    conflationPolicies ResourceSetDescription
    Widget types set for the assignment.
    connectors ResourceSetDescription
    Connectors set for the assignment.
    description {[key: string]: string}
    Localized description for the metadata.
    displayName {[key: string]: string}
    Localized display names for the metadata.
    interactions ResourceSetDescription
    Interactions set for the assignment.
    kpis ResourceSetDescription
    Kpis set for the assignment.
    links ResourceSetDescription
    Links set for the assignment.
    profiles ResourceSetDescription
    Profiles set for the assignment.
    relationshipLinks ResourceSetDescription
    The Role assignments set for the relationship links.
    relationships ResourceSetDescription
    The Role assignments set for the relationships.
    roleAssignments ResourceSetDescription
    The Role assignments set for the assignment.
    sasPolicies ResourceSetDescription
    Sas Policies set for the assignment.
    segments ResourceSetDescription
    The Role assignments set for the assignment.
    views ResourceSetDescription
    Views set for the assignment.
    widgetTypes ResourceSetDescription
    Widget types set for the assignment.
    hub_name str
    The name of the hub.
    principals Sequence[AssignmentPrincipalArgs]
    The principals being assigned to.
    resource_group_name str
    The name of the resource group.
    role RoleTypes
    Type of roles.
    assignment_name str
    The assignment name
    conflation_policies ResourceSetDescriptionArgs
    Widget types set for the assignment.
    connectors ResourceSetDescriptionArgs
    Connectors set for the assignment.
    description Mapping[str, str]
    Localized description for the metadata.
    display_name Mapping[str, str]
    Localized display names for the metadata.
    interactions ResourceSetDescriptionArgs
    Interactions set for the assignment.
    kpis ResourceSetDescriptionArgs
    Kpis set for the assignment.
    links ResourceSetDescriptionArgs
    Links set for the assignment.
    profiles ResourceSetDescriptionArgs
    Profiles set for the assignment.
    relationship_links ResourceSetDescriptionArgs
    The Role assignments set for the relationship links.
    relationships ResourceSetDescriptionArgs
    The Role assignments set for the relationships.
    role_assignments ResourceSetDescriptionArgs
    The Role assignments set for the assignment.
    sas_policies ResourceSetDescriptionArgs
    Sas Policies set for the assignment.
    segments ResourceSetDescriptionArgs
    The Role assignments set for the assignment.
    views ResourceSetDescriptionArgs
    Views set for the assignment.
    widget_types ResourceSetDescriptionArgs
    Widget types set for the assignment.
    hubName String
    The name of the hub.
    principals List<Property Map>
    The principals being assigned to.
    resourceGroupName String
    The name of the resource group.
    role "Admin" | "Reader" | "ManageAdmin" | "ManageReader" | "DataAdmin" | "DataReader"
    Type of roles.
    assignmentName String
    The assignment name
    conflationPolicies Property Map
    Widget types set for the assignment.
    connectors Property Map
    Connectors set for the assignment.
    description Map<String>
    Localized description for the metadata.
    displayName Map<String>
    Localized display names for the metadata.
    interactions Property Map
    Interactions set for the assignment.
    kpis Property Map
    Kpis set for the assignment.
    links Property Map
    Links set for the assignment.
    profiles Property Map
    Profiles set for the assignment.
    relationshipLinks Property Map
    The Role assignments set for the relationship links.
    relationships Property Map
    The Role assignments set for the relationships.
    roleAssignments Property Map
    The Role assignments set for the assignment.
    sasPolicies Property Map
    Sas Policies set for the assignment.
    segments Property Map
    The Role assignments set for the assignment.
    views Property Map
    Views set for the assignment.
    widgetTypes Property Map
    Widget types set for the assignment.

    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.
    Name string
    Resource name.
    ProvisioningState string
    Provisioning state.
    TenantId string
    The hub name.
    Type string
    Resource type.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name.
    ProvisioningState string
    Provisioning state.
    TenantId string
    The hub name.
    Type string
    Resource type.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name.
    provisioningState String
    Provisioning state.
    tenantId String
    The hub name.
    type String
    Resource type.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Resource name.
    provisioningState string
    Provisioning state.
    tenantId string
    The hub name.
    type string
    Resource type.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Resource name.
    provisioning_state str
    Provisioning state.
    tenant_id str
    The hub name.
    type str
    Resource type.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name.
    provisioningState String
    Provisioning state.
    tenantId String
    The hub name.
    type String
    Resource type.

    Supporting Types

    AssignmentPrincipal, AssignmentPrincipalArgs

    PrincipalId string
    The principal id being assigned to.
    PrincipalType string
    The Type of the principal ID.
    PrincipalMetadata Dictionary<string, string>
    Other metadata for the principal.
    PrincipalId string
    The principal id being assigned to.
    PrincipalType string
    The Type of the principal ID.
    PrincipalMetadata map[string]string
    Other metadata for the principal.
    principalId String
    The principal id being assigned to.
    principalType String
    The Type of the principal ID.
    principalMetadata Map<String,String>
    Other metadata for the principal.
    principalId string
    The principal id being assigned to.
    principalType string
    The Type of the principal ID.
    principalMetadata {[key: string]: string}
    Other metadata for the principal.
    principal_id str
    The principal id being assigned to.
    principal_type str
    The Type of the principal ID.
    principal_metadata Mapping[str, str]
    Other metadata for the principal.
    principalId String
    The principal id being assigned to.
    principalType String
    The Type of the principal ID.
    principalMetadata Map<String>
    Other metadata for the principal.

    AssignmentPrincipalResponse, AssignmentPrincipalResponseArgs

    PrincipalId string
    The principal id being assigned to.
    PrincipalType string
    The Type of the principal ID.
    PrincipalMetadata Dictionary<string, string>
    Other metadata for the principal.
    PrincipalId string
    The principal id being assigned to.
    PrincipalType string
    The Type of the principal ID.
    PrincipalMetadata map[string]string
    Other metadata for the principal.
    principalId String
    The principal id being assigned to.
    principalType String
    The Type of the principal ID.
    principalMetadata Map<String,String>
    Other metadata for the principal.
    principalId string
    The principal id being assigned to.
    principalType string
    The Type of the principal ID.
    principalMetadata {[key: string]: string}
    Other metadata for the principal.
    principal_id str
    The principal id being assigned to.
    principal_type str
    The Type of the principal ID.
    principal_metadata Mapping[str, str]
    Other metadata for the principal.
    principalId String
    The principal id being assigned to.
    principalType String
    The Type of the principal ID.
    principalMetadata Map<String>
    Other metadata for the principal.

    ResourceSetDescription, ResourceSetDescriptionArgs

    Elements List<string>
    The elements included in the set.
    Exceptions List<string>
    The elements that are not included in the set, in case elements contains '*' indicating 'all'.
    Elements []string
    The elements included in the set.
    Exceptions []string
    The elements that are not included in the set, in case elements contains '*' indicating 'all'.
    elements List<String>
    The elements included in the set.
    exceptions List<String>
    The elements that are not included in the set, in case elements contains '*' indicating 'all'.
    elements string[]
    The elements included in the set.
    exceptions string[]
    The elements that are not included in the set, in case elements contains '*' indicating 'all'.
    elements Sequence[str]
    The elements included in the set.
    exceptions Sequence[str]
    The elements that are not included in the set, in case elements contains '*' indicating 'all'.
    elements List<String>
    The elements included in the set.
    exceptions List<String>
    The elements that are not included in the set, in case elements contains '*' indicating 'all'.

    ResourceSetDescriptionResponse, ResourceSetDescriptionResponseArgs

    Elements List<string>
    The elements included in the set.
    Exceptions List<string>
    The elements that are not included in the set, in case elements contains '*' indicating 'all'.
    Elements []string
    The elements included in the set.
    Exceptions []string
    The elements that are not included in the set, in case elements contains '*' indicating 'all'.
    elements List<String>
    The elements included in the set.
    exceptions List<String>
    The elements that are not included in the set, in case elements contains '*' indicating 'all'.
    elements string[]
    The elements included in the set.
    exceptions string[]
    The elements that are not included in the set, in case elements contains '*' indicating 'all'.
    elements Sequence[str]
    The elements included in the set.
    exceptions Sequence[str]
    The elements that are not included in the set, in case elements contains '*' indicating 'all'.
    elements List<String>
    The elements included in the set.
    exceptions List<String>
    The elements that are not included in the set, in case elements contains '*' indicating 'all'.

    RoleTypes, RoleTypesArgs

    Admin
    Admin
    Reader
    Reader
    ManageAdmin
    ManageAdmin
    ManageReader
    ManageReader
    DataAdmin
    DataAdmin
    DataReader
    DataReader
    RoleTypesAdmin
    Admin
    RoleTypesReader
    Reader
    RoleTypesManageAdmin
    ManageAdmin
    RoleTypesManageReader
    ManageReader
    RoleTypesDataAdmin
    DataAdmin
    RoleTypesDataReader
    DataReader
    Admin
    Admin
    Reader
    Reader
    ManageAdmin
    ManageAdmin
    ManageReader
    ManageReader
    DataAdmin
    DataAdmin
    DataReader
    DataReader
    Admin
    Admin
    Reader
    Reader
    ManageAdmin
    ManageAdmin
    ManageReader
    ManageReader
    DataAdmin
    DataAdmin
    DataReader
    DataReader
    ADMIN
    Admin
    READER
    Reader
    MANAGE_ADMIN
    ManageAdmin
    MANAGE_READER
    ManageReader
    DATA_ADMIN
    DataAdmin
    DATA_READER
    DataReader
    "Admin"
    Admin
    "Reader"
    Reader
    "ManageAdmin"
    ManageAdmin
    "ManageReader"
    ManageReader
    "DataAdmin"
    DataAdmin
    "DataReader"
    DataReader

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:customerinsights:RoleAssignment azSdkTestHub/assignmentName8976 /subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/azSdkTestHub/RoleAssignments/assignmentName8976 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi