azure-native.customerinsights.RoleAssignment
Explore with Pulumi AI
The Role Assignment resource format. Azure REST API version: 2017-04-26. Prior API version in Azure Native 1.x: 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/v2"
"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.AssignmentPrincipalArray{
&customerinsights.AssignmentPrincipalArgs{
PrincipalId: pulumi.String("4c54c38ffa9b416ba5a6d6c8a20cbe7e"),
PrincipalType: pulumi.String("User"),
},
&customerinsights.AssignmentPrincipalArgs{
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 com.pulumi.azurenative.customerinsights.inputs.AssignmentPrincipalArgs;
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(
AssignmentPrincipalArgs.builder()
.principalId("4c54c38ffa9b416ba5a6d6c8a20cbe7e")
.principalType("User")
.build(),
AssignmentPrincipalArgs.builder()
.principalId("93061d15a5054f2b9948ae25724cf9d5")
.principalType("User")
.build())
.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 = AzureNative.CustomerInsights.RoleTypes.Admin,
ResourceGroupName = "string",
Principals = new[]
{
new AzureNative.CustomerInsights.Inputs.AssignmentPrincipalArgs
{
PrincipalId = "string",
PrincipalType = "string",
PrincipalMetadata =
{
{ "string", "string" },
},
},
},
Profiles = new AzureNative.CustomerInsights.Inputs.ResourceSetDescriptionArgs
{
Elements = new[]
{
"string",
},
Exceptions = new[]
{
"string",
},
},
RelationshipLinks = new AzureNative.CustomerInsights.Inputs.ResourceSetDescriptionArgs
{
Elements = new[]
{
"string",
},
Exceptions = new[]
{
"string",
},
},
Interactions = new AzureNative.CustomerInsights.Inputs.ResourceSetDescriptionArgs
{
Elements = new[]
{
"string",
},
Exceptions = new[]
{
"string",
},
},
Kpis = new AzureNative.CustomerInsights.Inputs.ResourceSetDescriptionArgs
{
Elements = new[]
{
"string",
},
Exceptions = new[]
{
"string",
},
},
Links = new AzureNative.CustomerInsights.Inputs.ResourceSetDescriptionArgs
{
Elements = new[]
{
"string",
},
Exceptions = new[]
{
"string",
},
},
Description =
{
{ "string", "string" },
},
AssignmentName = "string",
DisplayName =
{
{ "string", "string" },
},
Relationships = new AzureNative.CustomerInsights.Inputs.ResourceSetDescriptionArgs
{
Elements = new[]
{
"string",
},
Exceptions = new[]
{
"string",
},
},
Connectors = new AzureNative.CustomerInsights.Inputs.ResourceSetDescriptionArgs
{
Elements = new[]
{
"string",
},
Exceptions = new[]
{
"string",
},
},
ConflationPolicies = new AzureNative.CustomerInsights.Inputs.ResourceSetDescriptionArgs
{
Elements = new[]
{
"string",
},
Exceptions = new[]
{
"string",
},
},
RoleAssignments = new AzureNative.CustomerInsights.Inputs.ResourceSetDescriptionArgs
{
Elements = new[]
{
"string",
},
Exceptions = new[]
{
"string",
},
},
SasPolicies = new AzureNative.CustomerInsights.Inputs.ResourceSetDescriptionArgs
{
Elements = new[]
{
"string",
},
Exceptions = new[]
{
"string",
},
},
Segments = new AzureNative.CustomerInsights.Inputs.ResourceSetDescriptionArgs
{
Elements = new[]
{
"string",
},
Exceptions = new[]
{
"string",
},
},
Views = new AzureNative.CustomerInsights.Inputs.ResourceSetDescriptionArgs
{
Elements = new[]
{
"string",
},
Exceptions = new[]
{
"string",
},
},
WidgetTypes = new AzureNative.CustomerInsights.Inputs.ResourceSetDescriptionArgs
{
Elements = new[]
{
"string",
},
Exceptions = new[]
{
"string",
},
},
});
example, err := customerinsights.NewRoleAssignment(ctx, "azure-nativeRoleAssignmentResource", &customerinsights.RoleAssignmentArgs{
HubName: pulumi.String("string"),
Role: customerinsights.RoleTypesAdmin,
ResourceGroupName: pulumi.String("string"),
Principals: customerinsights.AssignmentPrincipalArray{
&customerinsights.AssignmentPrincipalArgs{
PrincipalId: pulumi.String("string"),
PrincipalType: pulumi.String("string"),
PrincipalMetadata: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
},
Profiles: &customerinsights.ResourceSetDescriptionArgs{
Elements: pulumi.StringArray{
pulumi.String("string"),
},
Exceptions: pulumi.StringArray{
pulumi.String("string"),
},
},
RelationshipLinks: &customerinsights.ResourceSetDescriptionArgs{
Elements: pulumi.StringArray{
pulumi.String("string"),
},
Exceptions: pulumi.StringArray{
pulumi.String("string"),
},
},
Interactions: &customerinsights.ResourceSetDescriptionArgs{
Elements: pulumi.StringArray{
pulumi.String("string"),
},
Exceptions: pulumi.StringArray{
pulumi.String("string"),
},
},
Kpis: &customerinsights.ResourceSetDescriptionArgs{
Elements: pulumi.StringArray{
pulumi.String("string"),
},
Exceptions: pulumi.StringArray{
pulumi.String("string"),
},
},
Links: &customerinsights.ResourceSetDescriptionArgs{
Elements: pulumi.StringArray{
pulumi.String("string"),
},
Exceptions: pulumi.StringArray{
pulumi.String("string"),
},
},
Description: pulumi.StringMap{
"string": pulumi.String("string"),
},
AssignmentName: pulumi.String("string"),
DisplayName: pulumi.StringMap{
"string": pulumi.String("string"),
},
Relationships: &customerinsights.ResourceSetDescriptionArgs{
Elements: pulumi.StringArray{
pulumi.String("string"),
},
Exceptions: pulumi.StringArray{
pulumi.String("string"),
},
},
Connectors: &customerinsights.ResourceSetDescriptionArgs{
Elements: pulumi.StringArray{
pulumi.String("string"),
},
Exceptions: pulumi.StringArray{
pulumi.String("string"),
},
},
ConflationPolicies: &customerinsights.ResourceSetDescriptionArgs{
Elements: pulumi.StringArray{
pulumi.String("string"),
},
Exceptions: pulumi.StringArray{
pulumi.String("string"),
},
},
RoleAssignments: &customerinsights.ResourceSetDescriptionArgs{
Elements: pulumi.StringArray{
pulumi.String("string"),
},
Exceptions: pulumi.StringArray{
pulumi.String("string"),
},
},
SasPolicies: &customerinsights.ResourceSetDescriptionArgs{
Elements: pulumi.StringArray{
pulumi.String("string"),
},
Exceptions: pulumi.StringArray{
pulumi.String("string"),
},
},
Segments: &customerinsights.ResourceSetDescriptionArgs{
Elements: pulumi.StringArray{
pulumi.String("string"),
},
Exceptions: pulumi.StringArray{
pulumi.String("string"),
},
},
Views: &customerinsights.ResourceSetDescriptionArgs{
Elements: pulumi.StringArray{
pulumi.String("string"),
},
Exceptions: pulumi.StringArray{
pulumi.String("string"),
},
},
WidgetTypes: &customerinsights.ResourceSetDescriptionArgs{
Elements: pulumi.StringArray{
pulumi.String("string"),
},
Exceptions: pulumi.StringArray{
pulumi.String("string"),
},
},
})
var azure_nativeRoleAssignmentResource = new RoleAssignment("azure-nativeRoleAssignmentResource", RoleAssignmentArgs.builder()
.hubName("string")
.role("Admin")
.resourceGroupName("string")
.principals(AssignmentPrincipalArgs.builder()
.principalId("string")
.principalType("string")
.principalMetadata(Map.of("string", "string"))
.build())
.profiles(ResourceSetDescriptionArgs.builder()
.elements("string")
.exceptions("string")
.build())
.relationshipLinks(ResourceSetDescriptionArgs.builder()
.elements("string")
.exceptions("string")
.build())
.interactions(ResourceSetDescriptionArgs.builder()
.elements("string")
.exceptions("string")
.build())
.kpis(ResourceSetDescriptionArgs.builder()
.elements("string")
.exceptions("string")
.build())
.links(ResourceSetDescriptionArgs.builder()
.elements("string")
.exceptions("string")
.build())
.description(Map.of("string", "string"))
.assignmentName("string")
.displayName(Map.of("string", "string"))
.relationships(ResourceSetDescriptionArgs.builder()
.elements("string")
.exceptions("string")
.build())
.connectors(ResourceSetDescriptionArgs.builder()
.elements("string")
.exceptions("string")
.build())
.conflationPolicies(ResourceSetDescriptionArgs.builder()
.elements("string")
.exceptions("string")
.build())
.roleAssignments(ResourceSetDescriptionArgs.builder()
.elements("string")
.exceptions("string")
.build())
.sasPolicies(ResourceSetDescriptionArgs.builder()
.elements("string")
.exceptions("string")
.build())
.segments(ResourceSetDescriptionArgs.builder()
.elements("string")
.exceptions("string")
.build())
.views(ResourceSetDescriptionArgs.builder()
.elements("string")
.exceptions("string")
.build())
.widgetTypes(ResourceSetDescriptionArgs.builder()
.elements("string")
.exceptions("string")
.build())
.build());
azure_native_role_assignment_resource = azure_native.customerinsights.RoleAssignment("azure-nativeRoleAssignmentResource",
hub_name="string",
role=azure_native.customerinsights.RoleTypes.ADMIN,
resource_group_name="string",
principals=[azure_native.customerinsights.AssignmentPrincipalArgs(
principal_id="string",
principal_type="string",
principal_metadata={
"string": "string",
},
)],
profiles=azure_native.customerinsights.ResourceSetDescriptionArgs(
elements=["string"],
exceptions=["string"],
),
relationship_links=azure_native.customerinsights.ResourceSetDescriptionArgs(
elements=["string"],
exceptions=["string"],
),
interactions=azure_native.customerinsights.ResourceSetDescriptionArgs(
elements=["string"],
exceptions=["string"],
),
kpis=azure_native.customerinsights.ResourceSetDescriptionArgs(
elements=["string"],
exceptions=["string"],
),
links=azure_native.customerinsights.ResourceSetDescriptionArgs(
elements=["string"],
exceptions=["string"],
),
description={
"string": "string",
},
assignment_name="string",
display_name={
"string": "string",
},
relationships=azure_native.customerinsights.ResourceSetDescriptionArgs(
elements=["string"],
exceptions=["string"],
),
connectors=azure_native.customerinsights.ResourceSetDescriptionArgs(
elements=["string"],
exceptions=["string"],
),
conflation_policies=azure_native.customerinsights.ResourceSetDescriptionArgs(
elements=["string"],
exceptions=["string"],
),
role_assignments=azure_native.customerinsights.ResourceSetDescriptionArgs(
elements=["string"],
exceptions=["string"],
),
sas_policies=azure_native.customerinsights.ResourceSetDescriptionArgs(
elements=["string"],
exceptions=["string"],
),
segments=azure_native.customerinsights.ResourceSetDescriptionArgs(
elements=["string"],
exceptions=["string"],
),
views=azure_native.customerinsights.ResourceSetDescriptionArgs(
elements=["string"],
exceptions=["string"],
),
widget_types=azure_native.customerinsights.ResourceSetDescriptionArgs(
elements=["string"],
exceptions=["string"],
))
const azure_nativeRoleAssignmentResource = new azure_native.customerinsights.RoleAssignment("azure-nativeRoleAssignmentResource", {
hubName: "string",
role: azure_native.customerinsights.RoleTypes.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:
- Hub
Name string - The name of the hub.
- Principals
List<Pulumi.
Azure Native. Customer Insights. Inputs. Assignment Principal> - The principals being assigned to.
- Resource
Group stringName - The name of the resource group.
- Role
Pulumi.
Azure Native. Customer Insights. Role Types - Type of roles.
- Assignment
Name string - The assignment name
- Conflation
Policies Pulumi.Azure Native. Customer Insights. Inputs. Resource Set Description - Widget types set for the assignment.
- Connectors
Pulumi.
Azure Native. Customer Insights. Inputs. Resource Set Description - Connectors set for the assignment.
- Description Dictionary<string, string>
- Localized description for the metadata.
- Display
Name Dictionary<string, string> - Localized display names for the metadata.
- Interactions
Pulumi.
Azure Native. Customer Insights. Inputs. Resource Set Description - Interactions set for the assignment.
- Kpis
Pulumi.
Azure Native. Customer Insights. Inputs. Resource Set Description - Kpis set for the assignment.
- Links
Pulumi.
Azure Native. Customer Insights. Inputs. Resource Set Description - Links set for the assignment.
- Profiles
Pulumi.
Azure Native. Customer Insights. Inputs. Resource Set Description - Profiles set for the assignment.
- Relationship
Links Pulumi.Azure Native. Customer Insights. Inputs. Resource Set Description - The Role assignments set for the relationship links.
- Relationships
Pulumi.
Azure Native. Customer Insights. Inputs. Resource Set Description - The Role assignments set for the relationships.
- Role
Assignments Pulumi.Azure Native. Customer Insights. Inputs. Resource Set Description - The Role assignments set for the assignment.
- Sas
Policies Pulumi.Azure Native. Customer Insights. Inputs. Resource Set Description - Sas Policies set for the assignment.
- Segments
Pulumi.
Azure Native. Customer Insights. Inputs. Resource Set Description - The Role assignments set for the assignment.
- Views
Pulumi.
Azure Native. Customer Insights. Inputs. Resource Set Description - Views set for the assignment.
- Widget
Types Pulumi.Azure Native. Customer Insights. Inputs. Resource Set Description - Widget types set for the assignment.
- Hub
Name string - The name of the hub.
- Principals
[]Assignment
Principal Args - The principals being assigned to.
- Resource
Group stringName - The name of the resource group.
- Role
Role
Types - Type of roles.
- Assignment
Name string - The assignment name
- Conflation
Policies ResourceSet Description Args - Widget types set for the assignment.
- Connectors
Resource
Set Description Args - Connectors set for the assignment.
- Description map[string]string
- Localized description for the metadata.
- Display
Name map[string]string - Localized display names for the metadata.
- Interactions
Resource
Set Description Args - Interactions set for the assignment.
- Kpis
Resource
Set Description Args - Kpis set for the assignment.
- Links
Resource
Set Description Args - Links set for the assignment.
- Profiles
Resource
Set Description Args - Profiles set for the assignment.
- Relationship
Links ResourceSet Description Args - The Role assignments set for the relationship links.
- Relationships
Resource
Set Description Args - The Role assignments set for the relationships.
- Role
Assignments ResourceSet Description Args - The Role assignments set for the assignment.
- Sas
Policies ResourceSet Description Args - Sas Policies set for the assignment.
- Segments
Resource
Set Description Args - The Role assignments set for the assignment.
- Views
Resource
Set Description Args - Views set for the assignment.
- Widget
Types ResourceSet Description Args - Widget types set for the assignment.
- hub
Name String - The name of the hub.
- principals
List<Assignment
Principal> - The principals being assigned to.
- resource
Group StringName - The name of the resource group.
- role
Role
Types - Type of roles.
- assignment
Name String - The assignment name
- conflation
Policies ResourceSet Description - Widget types set for the assignment.
- connectors
Resource
Set Description - Connectors set for the assignment.
- description Map<String,String>
- Localized description for the metadata.
- display
Name Map<String,String> - Localized display names for the metadata.
- interactions
Resource
Set Description - Interactions set for the assignment.
- kpis
Resource
Set Description - Kpis set for the assignment.
- links
Resource
Set Description - Links set for the assignment.
- profiles
Resource
Set Description - Profiles set for the assignment.
- relationship
Links ResourceSet Description - The Role assignments set for the relationship links.
- relationships
Resource
Set Description - The Role assignments set for the relationships.
- role
Assignments ResourceSet Description - The Role assignments set for the assignment.
- sas
Policies ResourceSet Description - Sas Policies set for the assignment.
- segments
Resource
Set Description - The Role assignments set for the assignment.
- views
Resource
Set Description - Views set for the assignment.
- widget
Types ResourceSet Description - Widget types set for the assignment.
- hub
Name string - The name of the hub.
- principals
Assignment
Principal[] - The principals being assigned to.
- resource
Group stringName - The name of the resource group.
- role
Role
Types - Type of roles.
- assignment
Name string - The assignment name
- conflation
Policies ResourceSet Description - Widget types set for the assignment.
- connectors
Resource
Set Description - Connectors set for the assignment.
- description {[key: string]: string}
- Localized description for the metadata.
- display
Name {[key: string]: string} - Localized display names for the metadata.
- interactions
Resource
Set Description - Interactions set for the assignment.
- kpis
Resource
Set Description - Kpis set for the assignment.
- links
Resource
Set Description - Links set for the assignment.
- profiles
Resource
Set Description - Profiles set for the assignment.
- relationship
Links ResourceSet Description - The Role assignments set for the relationship links.
- relationships
Resource
Set Description - The Role assignments set for the relationships.
- role
Assignments ResourceSet Description - The Role assignments set for the assignment.
- sas
Policies ResourceSet Description - Sas Policies set for the assignment.
- segments
Resource
Set Description - The Role assignments set for the assignment.
- views
Resource
Set Description - Views set for the assignment.
- widget
Types ResourceSet Description - Widget types set for the assignment.
- hub_
name str - The name of the hub.
- principals
Sequence[Assignment
Principal Args] - The principals being assigned to.
- resource_
group_ strname - The name of the resource group.
- role
Role
Types - Type of roles.
- assignment_
name str - The assignment name
- conflation_
policies ResourceSet Description Args - Widget types set for the assignment.
- connectors
Resource
Set Description Args - 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
Resource
Set Description Args - Interactions set for the assignment.
- kpis
Resource
Set Description Args - Kpis set for the assignment.
- links
Resource
Set Description Args - Links set for the assignment.
- profiles
Resource
Set Description Args - Profiles set for the assignment.
- relationship_
links ResourceSet Description Args - The Role assignments set for the relationship links.
- relationships
Resource
Set Description Args - The Role assignments set for the relationships.
- role_
assignments ResourceSet Description Args - The Role assignments set for the assignment.
- sas_
policies ResourceSet Description Args - Sas Policies set for the assignment.
- segments
Resource
Set Description Args - The Role assignments set for the assignment.
- views
Resource
Set Description Args - Views set for the assignment.
- widget_
types ResourceSet Description Args - Widget types set for the assignment.
- hub
Name String - The name of the hub.
- principals List<Property Map>
- The principals being assigned to.
- resource
Group StringName - The name of the resource group.
- role
"Admin" | "Reader" | "Manage
Admin" | "Manage Reader" | "Data Admin" | "Data Reader" - Type of roles.
- assignment
Name String - The assignment name
- conflation
Policies Property Map - Widget types set for the assignment.
- connectors Property Map
- Connectors set for the assignment.
- description Map<String>
- Localized description for the metadata.
- display
Name 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.
- relationship
Links Property Map - The Role assignments set for the relationship links.
- relationships Property Map
- The Role assignments set for the relationships.
- role
Assignments Property Map - The Role assignments set for the assignment.
- sas
Policies 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.
- widget
Types 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.
- Provisioning
State string - Provisioning state.
- Tenant
Id string - The hub name.
- Type string
- Resource type.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Provisioning
State string - Provisioning state.
- Tenant
Id string - The hub name.
- Type string
- Resource type.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- provisioning
State String - Provisioning state.
- tenant
Id String - The hub name.
- type String
- Resource type.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Resource name.
- provisioning
State string - Provisioning state.
- tenant
Id 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.
- provisioning
State String - Provisioning state.
- tenant
Id String - The hub name.
- type String
- Resource type.
Supporting Types
AssignmentPrincipal, AssignmentPrincipalArgs
- Principal
Id string - The principal id being assigned to.
- Principal
Type string - The Type of the principal ID.
- Principal
Metadata Dictionary<string, string> - Other metadata for the principal.
- Principal
Id string - The principal id being assigned to.
- Principal
Type string - The Type of the principal ID.
- Principal
Metadata map[string]string - Other metadata for the principal.
- principal
Id String - The principal id being assigned to.
- principal
Type String - The Type of the principal ID.
- principal
Metadata Map<String,String> - Other metadata for the principal.
- principal
Id string - The principal id being assigned to.
- principal
Type string - The Type of the principal ID.
- principal
Metadata {[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.
- principal
Id String - The principal id being assigned to.
- principal
Type String - The Type of the principal ID.
- principal
Metadata Map<String> - Other metadata for the principal.
AssignmentPrincipalResponse, AssignmentPrincipalResponseArgs
- Principal
Id string - The principal id being assigned to.
- Principal
Type string - The Type of the principal ID.
- Principal
Metadata Dictionary<string, string> - Other metadata for the principal.
- Principal
Id string - The principal id being assigned to.
- Principal
Type string - The Type of the principal ID.
- Principal
Metadata map[string]string - Other metadata for the principal.
- principal
Id String - The principal id being assigned to.
- principal
Type String - The Type of the principal ID.
- principal
Metadata Map<String,String> - Other metadata for the principal.
- principal
Id string - The principal id being assigned to.
- principal
Type string - The Type of the principal ID.
- principal
Metadata {[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.
- principal
Id String - The principal id being assigned to.
- principal
Type String - The Type of the principal ID.
- principal
Metadata 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
- Manage
Admin - ManageAdmin
- Manage
Reader - ManageReader
- Data
Admin - DataAdmin
- Data
Reader - DataReader
- Role
Types Admin - Admin
- Role
Types Reader - Reader
- Role
Types Manage Admin - ManageAdmin
- Role
Types Manage Reader - ManageReader
- Role
Types Data Admin - DataAdmin
- Role
Types Data Reader - DataReader
- Admin
- Admin
- Reader
- Reader
- Manage
Admin - ManageAdmin
- Manage
Reader - ManageReader
- Data
Admin - DataAdmin
- Data
Reader - DataReader
- Admin
- Admin
- Reader
- Reader
- Manage
Admin - ManageAdmin
- Manage
Reader - ManageReader
- Data
Admin - DataAdmin
- Data
Reader - DataReader
- ADMIN
- Admin
- READER
- Reader
- MANAGE_ADMIN
- ManageAdmin
- MANAGE_READER
- ManageReader
- DATA_ADMIN
- DataAdmin
- DATA_READER
- DataReader
- "Admin"
- Admin
- "Reader"
- Reader
- "Manage
Admin" - ManageAdmin
- "Manage
Reader" - ManageReader
- "Data
Admin" - DataAdmin
- "Data
Reader" - 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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/roleAssignments/{assignmentName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0