Relationship

class Relationship : KotlinCustomResource

The relationship 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

Relationships_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var relationship = new AzureNative.CustomerInsights.Relationship("relationship", new()
{
Cardinality = AzureNative.CustomerInsights.CardinalityTypes.OneToOne,
Description =
{
{ "en-us", "Relationship Description" },
},
DisplayName =
{
{ "en-us", "Relationship DisplayName" },
},
Fields = new[] {},
HubName = "sdkTestHub",
ProfileType = "testProfile2326994",
RelatedProfileType = "testProfile2326994",
RelationshipName = "SomeRelationship",
ResourceGroupName = "TestHubRG",
});
});
package main
import (
customerinsights "github.com/pulumi/pulumi-azure-native-sdk/customerinsights/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := customerinsights.NewRelationship(ctx, "relationship", &customerinsights.RelationshipArgs{
Cardinality: customerinsights.CardinalityTypesOneToOne,
Description: pulumi.StringMap{
"en-us": pulumi.String("Relationship Description"),
},
DisplayName: pulumi.StringMap{
"en-us": pulumi.String("Relationship DisplayName"),
},
Fields: customerinsights.PropertyDefinitionArray{},
HubName: pulumi.String("sdkTestHub"),
ProfileType: pulumi.String("testProfile2326994"),
RelatedProfileType: pulumi.String("testProfile2326994"),
RelationshipName: pulumi.String("SomeRelationship"),
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.Relationship;
import com.pulumi.azurenative.customerinsights.RelationshipArgs;
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 relationship = new Relationship("relationship", RelationshipArgs.builder()
.cardinality("OneToOne")
.description(Map.of("en-us", "Relationship Description"))
.displayName(Map.of("en-us", "Relationship DisplayName"))
.fields()
.hubName("sdkTestHub")
.profileType("testProfile2326994")
.relatedProfileType("testProfile2326994")
.relationshipName("SomeRelationship")
.resourceGroupName("TestHubRG")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:customerinsights:Relationship sdkTestHub/testProfile2326994 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/relationships/{relationshipName}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

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

The Relationship Cardinality.

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

Localized descriptions for the Relationship.

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

Localized display name for the Relationship.

Link copied to clipboard

The expiry date time in UTC.

Link copied to clipboard

The properties of the Relationship.

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

Optional property to be used to map fields in profile to their strong ids in related profile.

Link copied to clipboard
val name: Output<String>

Resource name.

Link copied to clipboard
val profileType: Output<String>

Profile type.

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

Related profile being referenced.

Link copied to clipboard

The relationship guid id.

Link copied to clipboard

The Relationship name.

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>