azure-native.customerinsights.RelationshipLink
Explore with Pulumi AI
The relationship link resource format. API Version: 2017-04-26.
Example Usage
RelationshipLinks_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var relationshipLink = new AzureNative.CustomerInsights.RelationshipLink("relationshipLink", new()
{
Description =
{
{ "en-us", "Link Description" },
},
DisplayName =
{
{ "en-us", "Link DisplayName" },
},
HubName = "sdkTestHub",
InteractionType = "testInteraction4332",
ProfilePropertyReferences = new[]
{
new AzureNative.CustomerInsights.Inputs.ParticipantProfilePropertyReferenceArgs
{
InteractionPropertyName = "profile1",
ProfilePropertyName = "ProfileId",
},
},
RelatedProfilePropertyReferences = new[]
{
new AzureNative.CustomerInsights.Inputs.ParticipantProfilePropertyReferenceArgs
{
InteractionPropertyName = "profile1",
ProfilePropertyName = "ProfileId",
},
},
RelationshipLinkName = "Somelink",
RelationshipName = "testProfile2326994",
ResourceGroupName = "TestHubRG",
});
});
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.NewRelationshipLink(ctx, "relationshipLink", &customerinsights.RelationshipLinkArgs{
Description: pulumi.StringMap{
"en-us": pulumi.String("Link Description"),
},
DisplayName: pulumi.StringMap{
"en-us": pulumi.String("Link DisplayName"),
},
HubName: pulumi.String("sdkTestHub"),
InteractionType: pulumi.String("testInteraction4332"),
ProfilePropertyReferences: []customerinsights.ParticipantProfilePropertyReferenceArgs{
{
InteractionPropertyName: pulumi.String("profile1"),
ProfilePropertyName: pulumi.String("ProfileId"),
},
},
RelatedProfilePropertyReferences: []customerinsights.ParticipantProfilePropertyReferenceArgs{
{
InteractionPropertyName: pulumi.String("profile1"),
ProfilePropertyName: pulumi.String("ProfileId"),
},
},
RelationshipLinkName: pulumi.String("Somelink"),
RelationshipName: pulumi.String("testProfile2326994"),
ResourceGroupName: pulumi.String("TestHubRG"),
})
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.RelationshipLink;
import com.pulumi.azurenative.customerinsights.RelationshipLinkArgs;
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 relationshipLink = new RelationshipLink("relationshipLink", RelationshipLinkArgs.builder()
.description(Map.of("en-us", "Link Description"))
.displayName(Map.of("en-us", "Link DisplayName"))
.hubName("sdkTestHub")
.interactionType("testInteraction4332")
.profilePropertyReferences(Map.ofEntries(
Map.entry("interactionPropertyName", "profile1"),
Map.entry("profilePropertyName", "ProfileId")
))
.relatedProfilePropertyReferences(Map.ofEntries(
Map.entry("interactionPropertyName", "profile1"),
Map.entry("profilePropertyName", "ProfileId")
))
.relationshipLinkName("Somelink")
.relationshipName("testProfile2326994")
.resourceGroupName("TestHubRG")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
relationship_link = azure_native.customerinsights.RelationshipLink("relationshipLink",
description={
"en-us": "Link Description",
},
display_name={
"en-us": "Link DisplayName",
},
hub_name="sdkTestHub",
interaction_type="testInteraction4332",
profile_property_references=[azure_native.customerinsights.ParticipantProfilePropertyReferenceArgs(
interaction_property_name="profile1",
profile_property_name="ProfileId",
)],
related_profile_property_references=[azure_native.customerinsights.ParticipantProfilePropertyReferenceArgs(
interaction_property_name="profile1",
profile_property_name="ProfileId",
)],
relationship_link_name="Somelink",
relationship_name="testProfile2326994",
resource_group_name="TestHubRG")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const relationshipLink = new azure_native.customerinsights.RelationshipLink("relationshipLink", {
description: {
"en-us": "Link Description",
},
displayName: {
"en-us": "Link DisplayName",
},
hubName: "sdkTestHub",
interactionType: "testInteraction4332",
profilePropertyReferences: [{
interactionPropertyName: "profile1",
profilePropertyName: "ProfileId",
}],
relatedProfilePropertyReferences: [{
interactionPropertyName: "profile1",
profilePropertyName: "ProfileId",
}],
relationshipLinkName: "Somelink",
relationshipName: "testProfile2326994",
resourceGroupName: "TestHubRG",
});
resources:
relationshipLink:
type: azure-native:customerinsights:RelationshipLink
properties:
description:
en-us: Link Description
displayName:
en-us: Link DisplayName
hubName: sdkTestHub
interactionType: testInteraction4332
profilePropertyReferences:
- interactionPropertyName: profile1
profilePropertyName: ProfileId
relatedProfilePropertyReferences:
- interactionPropertyName: profile1
profilePropertyName: ProfileId
relationshipLinkName: Somelink
relationshipName: testProfile2326994
resourceGroupName: TestHubRG
Create RelationshipLink Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RelationshipLink(name: string, args: RelationshipLinkArgs, opts?: CustomResourceOptions);
@overload
def RelationshipLink(resource_name: str,
args: RelationshipLinkArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RelationshipLink(resource_name: str,
opts: Optional[ResourceOptions] = None,
hub_name: Optional[str] = None,
interaction_type: Optional[str] = None,
profile_property_references: Optional[Sequence[ParticipantProfilePropertyReferenceArgs]] = None,
related_profile_property_references: Optional[Sequence[ParticipantProfilePropertyReferenceArgs]] = None,
relationship_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
description: Optional[Mapping[str, str]] = None,
display_name: Optional[Mapping[str, str]] = None,
mappings: Optional[Sequence[RelationshipLinkFieldMappingArgs]] = None,
relationship_link_name: Optional[str] = None)
func NewRelationshipLink(ctx *Context, name string, args RelationshipLinkArgs, opts ...ResourceOption) (*RelationshipLink, error)
public RelationshipLink(string name, RelationshipLinkArgs args, CustomResourceOptions? opts = null)
public RelationshipLink(String name, RelationshipLinkArgs args)
public RelationshipLink(String name, RelationshipLinkArgs args, CustomResourceOptions options)
type: azure-native:customerinsights:RelationshipLink
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 RelationshipLinkArgs
- 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 RelationshipLinkArgs
- 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 RelationshipLinkArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RelationshipLinkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RelationshipLinkArgs
- 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 relationshipLinkResource = new AzureNative.Customerinsights.RelationshipLink("relationshipLinkResource", new()
{
HubName = "string",
InteractionType = "string",
ProfilePropertyReferences = new[]
{
{
{ "interactionPropertyName", "string" },
{ "profilePropertyName", "string" },
},
},
RelatedProfilePropertyReferences = new[]
{
{
{ "interactionPropertyName", "string" },
{ "profilePropertyName", "string" },
},
},
RelationshipName = "string",
ResourceGroupName = "string",
Description =
{
{ "string", "string" },
},
DisplayName =
{
{ "string", "string" },
},
Mappings = new[]
{
{
{ "interactionFieldName", "string" },
{ "relationshipFieldName", "string" },
{ "linkType", "UpdateAlways" },
},
},
RelationshipLinkName = "string",
});
example, err := customerinsights.NewRelationshipLink(ctx, "relationshipLinkResource", &customerinsights.RelationshipLinkArgs{
HubName: "string",
InteractionType: "string",
ProfilePropertyReferences: []map[string]interface{}{
map[string]interface{}{
"interactionPropertyName": "string",
"profilePropertyName": "string",
},
},
RelatedProfilePropertyReferences: []map[string]interface{}{
map[string]interface{}{
"interactionPropertyName": "string",
"profilePropertyName": "string",
},
},
RelationshipName: "string",
ResourceGroupName: "string",
Description: map[string]interface{}{
"string": "string",
},
DisplayName: map[string]interface{}{
"string": "string",
},
Mappings: []map[string]interface{}{
map[string]interface{}{
"interactionFieldName": "string",
"relationshipFieldName": "string",
"linkType": "UpdateAlways",
},
},
RelationshipLinkName: "string",
})
var relationshipLinkResource = new RelationshipLink("relationshipLinkResource", RelationshipLinkArgs.builder()
.hubName("string")
.interactionType("string")
.profilePropertyReferences(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.relatedProfilePropertyReferences(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.relationshipName("string")
.resourceGroupName("string")
.description(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.displayName(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.mappings(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.relationshipLinkName("string")
.build());
relationship_link_resource = azure_native.customerinsights.RelationshipLink("relationshipLinkResource",
hub_name=string,
interaction_type=string,
profile_property_references=[{
interactionPropertyName: string,
profilePropertyName: string,
}],
related_profile_property_references=[{
interactionPropertyName: string,
profilePropertyName: string,
}],
relationship_name=string,
resource_group_name=string,
description={
string: string,
},
display_name={
string: string,
},
mappings=[{
interactionFieldName: string,
relationshipFieldName: string,
linkType: UpdateAlways,
}],
relationship_link_name=string)
const relationshipLinkResource = new azure_native.customerinsights.RelationshipLink("relationshipLinkResource", {
hubName: "string",
interactionType: "string",
profilePropertyReferences: [{
interactionPropertyName: "string",
profilePropertyName: "string",
}],
relatedProfilePropertyReferences: [{
interactionPropertyName: "string",
profilePropertyName: "string",
}],
relationshipName: "string",
resourceGroupName: "string",
description: {
string: "string",
},
displayName: {
string: "string",
},
mappings: [{
interactionFieldName: "string",
relationshipFieldName: "string",
linkType: "UpdateAlways",
}],
relationshipLinkName: "string",
});
type: azure-native:customerinsights:RelationshipLink
properties:
description:
string: string
displayName:
string: string
hubName: string
interactionType: string
mappings:
- interactionFieldName: string
linkType: UpdateAlways
relationshipFieldName: string
profilePropertyReferences:
- interactionPropertyName: string
profilePropertyName: string
relatedProfilePropertyReferences:
- interactionPropertyName: string
profilePropertyName: string
relationshipLinkName: string
relationshipName: string
resourceGroupName: string
RelationshipLink 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 RelationshipLink resource accepts the following input properties:
- Hub
Name string - The name of the hub.
- Interaction
Type string - The InteractionType associated with the Relationship Link.
- Profile
Property List<Pulumi.References Azure Native. Customer Insights. Inputs. Participant Profile Property Reference> - The property references for the Profile of the Relationship.
- List<Pulumi.
Azure Native. Customer Insights. Inputs. Participant Profile Property Reference> - The property references for the Related Profile of the Relationship.
- Relationship
Name string - The Relationship associated with the Link.
- Resource
Group stringName - The name of the resource group.
- Description Dictionary<string, string>
- Localized descriptions for the Relationship Link.
- Display
Name Dictionary<string, string> - Localized display name for the Relationship Link.
- Mappings
List<Pulumi.
Azure Native. Customer Insights. Inputs. Relationship Link Field Mapping> - The mappings between Interaction and Relationship fields.
- Relationship
Link stringName - The name of the relationship link.
- Hub
Name string - The name of the hub.
- Interaction
Type string - The InteractionType associated with the Relationship Link.
- Profile
Property []ParticipantReferences Profile Property Reference Args - The property references for the Profile of the Relationship.
- []Participant
Profile Property Reference Args - The property references for the Related Profile of the Relationship.
- Relationship
Name string - The Relationship associated with the Link.
- Resource
Group stringName - The name of the resource group.
- Description map[string]string
- Localized descriptions for the Relationship Link.
- Display
Name map[string]string - Localized display name for the Relationship Link.
- Mappings
[]Relationship
Link Field Mapping Args - The mappings between Interaction and Relationship fields.
- Relationship
Link stringName - The name of the relationship link.
- hub
Name String - The name of the hub.
- interaction
Type String - The InteractionType associated with the Relationship Link.
- profile
Property List<ParticipantReferences Profile Property Reference> - The property references for the Profile of the Relationship.
- List<Participant
Profile Property Reference> - The property references for the Related Profile of the Relationship.
- relationship
Name String - The Relationship associated with the Link.
- resource
Group StringName - The name of the resource group.
- description Map<String,String>
- Localized descriptions for the Relationship Link.
- display
Name Map<String,String> - Localized display name for the Relationship Link.
- mappings
List<Relationship
Link Field Mapping> - The mappings between Interaction and Relationship fields.
- relationship
Link StringName - The name of the relationship link.
- hub
Name string - The name of the hub.
- interaction
Type string - The InteractionType associated with the Relationship Link.
- profile
Property ParticipantReferences Profile Property Reference[] - The property references for the Profile of the Relationship.
- Participant
Profile Property Reference[] - The property references for the Related Profile of the Relationship.
- relationship
Name string - The Relationship associated with the Link.
- resource
Group stringName - The name of the resource group.
- description {[key: string]: string}
- Localized descriptions for the Relationship Link.
- display
Name {[key: string]: string} - Localized display name for the Relationship Link.
- mappings
Relationship
Link Field Mapping[] - The mappings between Interaction and Relationship fields.
- relationship
Link stringName - The name of the relationship link.
- hub_
name str - The name of the hub.
- interaction_
type str - The InteractionType associated with the Relationship Link.
- profile_
property_ Sequence[Participantreferences Profile Property Reference Args] - The property references for the Profile of the Relationship.
- Sequence[Participant
Profile Property Reference Args] - The property references for the Related Profile of the Relationship.
- relationship_
name str - The Relationship associated with the Link.
- resource_
group_ strname - The name of the resource group.
- description Mapping[str, str]
- Localized descriptions for the Relationship Link.
- display_
name Mapping[str, str] - Localized display name for the Relationship Link.
- mappings
Sequence[Relationship
Link Field Mapping Args] - The mappings between Interaction and Relationship fields.
- relationship_
link_ strname - The name of the relationship link.
- hub
Name String - The name of the hub.
- interaction
Type String - The InteractionType associated with the Relationship Link.
- profile
Property List<Property Map>References - The property references for the Profile of the Relationship.
- List<Property Map>
- The property references for the Related Profile of the Relationship.
- relationship
Name String - The Relationship associated with the Link.
- resource
Group StringName - The name of the resource group.
- description Map<String>
- Localized descriptions for the Relationship Link.
- display
Name Map<String> - Localized display name for the Relationship Link.
- mappings List<Property Map>
- The mappings between Interaction and Relationship fields.
- relationship
Link StringName - The name of the relationship link.
Outputs
All input properties are implicitly available as output properties. Additionally, the RelationshipLink resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Link
Name string - The name of the Relationship Link.
- Name string
- Resource name.
- Provisioning
State string - Provisioning state.
- Relationship
Guid stringId - The relationship guid id.
- Tenant
Id string - The hub name.
- Type string
- Resource type.
- Id string
- The provider-assigned unique ID for this managed resource.
- Link
Name string - The name of the Relationship Link.
- Name string
- Resource name.
- Provisioning
State string - Provisioning state.
- Relationship
Guid stringId - The relationship guid id.
- Tenant
Id string - The hub name.
- Type string
- Resource type.
- id String
- The provider-assigned unique ID for this managed resource.
- link
Name String - The name of the Relationship Link.
- name String
- Resource name.
- provisioning
State String - Provisioning state.
- relationship
Guid StringId - The relationship guid id.
- tenant
Id String - The hub name.
- type String
- Resource type.
- id string
- The provider-assigned unique ID for this managed resource.
- link
Name string - The name of the Relationship Link.
- name string
- Resource name.
- provisioning
State string - Provisioning state.
- relationship
Guid stringId - The relationship guid id.
- tenant
Id string - The hub name.
- type string
- Resource type.
- id str
- The provider-assigned unique ID for this managed resource.
- link_
name str - The name of the Relationship Link.
- name str
- Resource name.
- provisioning_
state str - Provisioning state.
- relationship_
guid_ strid - The relationship guid id.
- tenant_
id str - The hub name.
- type str
- Resource type.
- id String
- The provider-assigned unique ID for this managed resource.
- link
Name String - The name of the Relationship Link.
- name String
- Resource name.
- provisioning
State String - Provisioning state.
- relationship
Guid StringId - The relationship guid id.
- tenant
Id String - The hub name.
- type String
- Resource type.
Supporting Types
LinkTypes, LinkTypesArgs
- Update
Always - UpdateAlways
- Copy
If Null - CopyIfNull
- Link
Types Update Always - UpdateAlways
- Link
Types Copy If Null - CopyIfNull
- Update
Always - UpdateAlways
- Copy
If Null - CopyIfNull
- Update
Always - UpdateAlways
- Copy
If Null - CopyIfNull
- UPDATE_ALWAYS
- UpdateAlways
- COPY_IF_NULL
- CopyIfNull
- "Update
Always" - UpdateAlways
- "Copy
If Null" - CopyIfNull
ParticipantProfilePropertyReference, ParticipantProfilePropertyReferenceArgs
- Interaction
Property stringName - The source interaction property that maps to the target profile property.
- Profile
Property stringName - The target profile property that maps to the source interaction property.
- Interaction
Property stringName - The source interaction property that maps to the target profile property.
- Profile
Property stringName - The target profile property that maps to the source interaction property.
- interaction
Property StringName - The source interaction property that maps to the target profile property.
- profile
Property StringName - The target profile property that maps to the source interaction property.
- interaction
Property stringName - The source interaction property that maps to the target profile property.
- profile
Property stringName - The target profile property that maps to the source interaction property.
- interaction_
property_ strname - The source interaction property that maps to the target profile property.
- profile_
property_ strname - The target profile property that maps to the source interaction property.
- interaction
Property StringName - The source interaction property that maps to the target profile property.
- profile
Property StringName - The target profile property that maps to the source interaction property.
ParticipantProfilePropertyReferenceResponse, ParticipantProfilePropertyReferenceResponseArgs
- Interaction
Property stringName - The source interaction property that maps to the target profile property.
- Profile
Property stringName - The target profile property that maps to the source interaction property.
- Interaction
Property stringName - The source interaction property that maps to the target profile property.
- Profile
Property stringName - The target profile property that maps to the source interaction property.
- interaction
Property StringName - The source interaction property that maps to the target profile property.
- profile
Property StringName - The target profile property that maps to the source interaction property.
- interaction
Property stringName - The source interaction property that maps to the target profile property.
- profile
Property stringName - The target profile property that maps to the source interaction property.
- interaction_
property_ strname - The source interaction property that maps to the target profile property.
- profile_
property_ strname - The target profile property that maps to the source interaction property.
- interaction
Property StringName - The source interaction property that maps to the target profile property.
- profile
Property StringName - The target profile property that maps to the source interaction property.
RelationshipLinkFieldMapping, RelationshipLinkFieldMappingArgs
- Interaction
Field stringName - The field name on the Interaction Type.
- Relationship
Field stringName - The field name on the Relationship metadata.
- Link
Type Pulumi.Azure Native. Customer Insights. Link Types - Link type.
- Interaction
Field stringName - The field name on the Interaction Type.
- Relationship
Field stringName - The field name on the Relationship metadata.
- Link
Type LinkTypes - Link type.
- interaction
Field StringName - The field name on the Interaction Type.
- relationship
Field StringName - The field name on the Relationship metadata.
- link
Type LinkTypes - Link type.
- interaction
Field stringName - The field name on the Interaction Type.
- relationship
Field stringName - The field name on the Relationship metadata.
- link
Type LinkTypes - Link type.
- interaction_
field_ strname - The field name on the Interaction Type.
- relationship_
field_ strname - The field name on the Relationship metadata.
- link_
type LinkTypes - Link type.
- interaction
Field StringName - The field name on the Interaction Type.
- relationship
Field StringName - The field name on the Relationship metadata.
- link
Type "UpdateAlways" | "Copy If Null" - Link type.
RelationshipLinkFieldMappingResponse, RelationshipLinkFieldMappingResponseArgs
- Interaction
Field stringName - The field name on the Interaction Type.
- Relationship
Field stringName - The field name on the Relationship metadata.
- Link
Type string - Link type.
- Interaction
Field stringName - The field name on the Interaction Type.
- Relationship
Field stringName - The field name on the Relationship metadata.
- Link
Type string - Link type.
- interaction
Field StringName - The field name on the Interaction Type.
- relationship
Field StringName - The field name on the Relationship metadata.
- link
Type String - Link type.
- interaction
Field stringName - The field name on the Interaction Type.
- relationship
Field stringName - The field name on the Relationship metadata.
- link
Type string - Link type.
- interaction_
field_ strname - The field name on the Interaction Type.
- relationship_
field_ strname - The field name on the Relationship metadata.
- link_
type str - Link type.
- interaction
Field StringName - The field name on the Interaction Type.
- relationship
Field StringName - The field name on the Relationship metadata.
- link
Type String - Link type.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:customerinsights:RelationshipLink sdkTestHub/Somelink /subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/sdkTestHub/relationshipLinks/Somelink
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