Link

class Link : KotlinCustomResource

The link resource format. Uses Azure REST API version 2017-04-26. In version 1.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}

Properties

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

Localized descriptions for the Link.

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

Localized display name for the Link.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val linkName: Output<String>

The link name.

Link copied to clipboard

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

Link copied to clipboard
val name: Output<String>

Resource name.

Link copied to clipboard
val operationType: Output<String>?

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

Provisioning state.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val referenceOnly: Output<Boolean>?

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

Type of source entity.

Link copied to clipboard

Name of the source Entity Type.

Link copied to clipboard

Type of target entity.

Link copied to clipboard

Name of the target Entity Type.

Link copied to clipboard
val tenantId: Output<String>

The hub name.

Link copied to clipboard
val type: Output<String>

Resource type.

Link copied to clipboard
val urn: Output<String>