Link Args
The link resource format. Uses Azure REST API version 2017-04-26. In version 2.x of the Azure Native provider, it used API version 2017-04-26.
Example Usage
Links_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var link = new AzureNative.CustomerInsights.Link("link", new()
{
Description =
{
{ "en-us", "Link Description" },
},
DisplayName =
{
{ "en-us", "Link DisplayName" },
},
HubName = "sdkTestHub",
LinkName = "linkTest4806",
Mappings = new[]
{
new AzureNative.CustomerInsights.Inputs.TypePropertiesMappingArgs
{
LinkType = AzureNative.CustomerInsights.LinkTypes.UpdateAlways,
SourcePropertyName = "testInteraction1949",
TargetPropertyName = "testProfile1446",
},
},
ParticipantPropertyReferences = new[]
{
new AzureNative.CustomerInsights.Inputs.ParticipantPropertyReferenceArgs
{
SourcePropertyName = "testInteraction1949",
TargetPropertyName = "ProfileId",
},
},
ResourceGroupName = "TestHubRG",
SourceEntityType = AzureNative.CustomerInsights.EntityType.Interaction,
SourceEntityTypeName = "testInteraction1949",
TargetEntityType = AzureNative.CustomerInsights.EntityType.Profile,
TargetEntityTypeName = "testProfile1446",
});
});
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.NewLink(ctx, "link", &customerinsights.LinkArgs{
Description: pulumi.StringMap{
"en-us": pulumi.String("Link Description"),
},
DisplayName: pulumi.StringMap{
"en-us": pulumi.String("Link DisplayName"),
},
HubName: pulumi.String("sdkTestHub"),
LinkName: pulumi.String("linkTest4806"),
Mappings: customerinsights.TypePropertiesMappingArray{
&customerinsights.TypePropertiesMappingArgs{
LinkType: customerinsights.LinkTypesUpdateAlways,
SourcePropertyName: pulumi.String("testInteraction1949"),
TargetPropertyName: pulumi.String("testProfile1446"),
},
},
ParticipantPropertyReferences: customerinsights.ParticipantPropertyReferenceArray{
&customerinsights.ParticipantPropertyReferenceArgs{
SourcePropertyName: pulumi.String("testInteraction1949"),
TargetPropertyName: pulumi.String("ProfileId"),
},
},
ResourceGroupName: pulumi.String("TestHubRG"),
SourceEntityType: customerinsights.EntityTypeInteraction,
SourceEntityTypeName: pulumi.String("testInteraction1949"),
TargetEntityType: customerinsights.EntityTypeProfile,
TargetEntityTypeName: pulumi.String("testProfile1446"),
})
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.Link;
import com.pulumi.azurenative.customerinsights.LinkArgs;
import com.pulumi.azurenative.customerinsights.inputs.TypePropertiesMappingArgs;
import com.pulumi.azurenative.customerinsights.inputs.ParticipantPropertyReferenceArgs;
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 link = new Link("link", LinkArgs.builder()
.description(Map.of("en-us", "Link Description"))
.displayName(Map.of("en-us", "Link DisplayName"))
.hubName("sdkTestHub")
.linkName("linkTest4806")
.mappings(TypePropertiesMappingArgs.builder()
.linkType("UpdateAlways")
.sourcePropertyName("testInteraction1949")
.targetPropertyName("testProfile1446")
.build())
.participantPropertyReferences(ParticipantPropertyReferenceArgs.builder()
.sourcePropertyName("testInteraction1949")
.targetPropertyName("ProfileId")
.build())
.resourceGroupName("TestHubRG")
.sourceEntityType("Interaction")
.sourceEntityTypeName("testInteraction1949")
.targetEntityType("Profile")
.targetEntityTypeName("testProfile1446")
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:customerinsights:Link azSdkTestHub/linkTest4806 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/links/{linkName}
Constructors
Properties
Localized descriptions for the Link.
Localized display name for the Link.
The set of properties mappings between the source and target Types.
Determines whether this link is supposed to create or delete instances if Link is NOT Reference Only.
The properties that represent the participating profile.
Indicating whether the link is reference only link. This flag is ignored if the Mappings are defined. If the mappings are not defined and it is set to true, links processing will not create or update profiles.
The name of the resource group.
Type of source entity.
Name of the source Entity Type.
Type of target entity.
Name of the target Entity Type.