Link
The link resource format. Azure REST API version: 2017-04-26. Prior API version in Azure Native 1.x: 2017-04-26. Other available API versions: 2017-01-01.
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",
});
});
Content copied to clipboard
package main
import (
"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.TypePropertiesMappingArgs{
{
LinkType: customerinsights.LinkTypesUpdateAlways,
SourcePropertyName: pulumi.String("testInteraction1949"),
TargetPropertyName: pulumi.String("testProfile1446"),
},
},
ParticipantPropertyReferences: []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
})
}
Content copied to clipboard
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 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(Map.ofEntries(
Map.entry("linkType", "UpdateAlways"),
Map.entry("sourcePropertyName", "testInteraction1949"),
Map.entry("targetPropertyName", "testProfile1446")
))
.participantPropertyReferences(Map.ofEntries(
Map.entry("sourcePropertyName", "testInteraction1949"),
Map.entry("targetPropertyName", "ProfileId")
))
.resourceGroupName("TestHubRG")
.sourceEntityType("Interaction")
.sourceEntityTypeName("testInteraction1949")
.targetEntityType("Profile")
.targetEntityTypeName("testProfile1446")
.build());
}
}
Content copied to clipboard
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}
Content copied to clipboard
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard