LinkArgs

data class LinkArgs(val description: Output<Map<String, String>>? = null, val displayName: Output<Map<String, String>>? = null, val hubName: Output<String>? = null, val linkName: Output<String>? = null, val mappings: Output<List<TypePropertiesMappingArgs>>? = null, val operationType: Output<InstanceOperationType>? = null, val participantPropertyReferences: Output<List<ParticipantPropertyReferenceArgs>>? = null, val referenceOnly: Output<Boolean>? = null, val resourceGroupName: Output<String>? = null, val sourceEntityType: Output<EntityType>? = null, val sourceEntityTypeName: Output<String>? = null, val targetEntityType: Output<EntityType>? = null, val targetEntityTypeName: Output<String>? = null) : ConvertibleToJava<LinkArgs>

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

Link copied to clipboard
constructor(description: Output<Map<String, String>>? = null, displayName: Output<Map<String, String>>? = null, hubName: Output<String>? = null, linkName: Output<String>? = null, mappings: Output<List<TypePropertiesMappingArgs>>? = null, operationType: Output<InstanceOperationType>? = null, participantPropertyReferences: Output<List<ParticipantPropertyReferenceArgs>>? = null, referenceOnly: Output<Boolean>? = null, resourceGroupName: Output<String>? = null, sourceEntityType: Output<EntityType>? = null, sourceEntityTypeName: Output<String>? = null, targetEntityType: Output<EntityType>? = null, targetEntityTypeName: Output<String>? = null)

Properties

Link copied to clipboard
val description: Output<Map<String, String>>? = null

Localized descriptions for the Link.

Link copied to clipboard
val displayName: Output<Map<String, String>>? = null

Localized display name for the Link.

Link copied to clipboard
val hubName: Output<String>? = null

The name of the hub.

Link copied to clipboard
val linkName: Output<String>? = null

The name of the link.

Link copied to clipboard

The set of properties mappings between the source and target Types.

Link copied to clipboard

Determines whether this link is supposed to create or delete instances if Link is NOT Reference Only.

Link copied to clipboard

The properties that represent the participating profile.

Link copied to clipboard
val referenceOnly: Output<Boolean>? = null

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.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group.

Link copied to clipboard
val sourceEntityType: Output<EntityType>? = null

Type of source entity.

Link copied to clipboard
val sourceEntityTypeName: Output<String>? = null

Name of the source Entity Type.

Link copied to clipboard
val targetEntityType: Output<EntityType>? = null

Type of target entity.

Link copied to clipboard
val targetEntityTypeName: Output<String>? = null

Name of the target Entity Type.

Functions

Link copied to clipboard
open override fun toJava(): LinkArgs