Relationship Args
data class RelationshipArgs(val cardinality: Output<CardinalityTypes>? = null, val description: Output<Map<String, String>>? = null, val displayName: Output<Map<String, String>>? = null, val expiryDateTimeUtc: Output<String>? = null, val fields: Output<List<PropertyDefinitionArgs>>? = null, val hubName: Output<String>? = null, val lookupMappings: Output<List<RelationshipTypeMappingArgs>>? = null, val profileType: Output<String>? = null, val relatedProfileType: Output<String>? = null, val relationshipName: Output<String>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<RelationshipArgs>
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",
});
});
Content copied to clipboard
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.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
})
}
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.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());
}
}
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:Relationship sdkTestHub/testProfile2326994 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/relationships/{relationshipName}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(cardinality: Output<CardinalityTypes>? = null, description: Output<Map<String, String>>? = null, displayName: Output<Map<String, String>>? = null, expiryDateTimeUtc: Output<String>? = null, fields: Output<List<PropertyDefinitionArgs>>? = null, hubName: Output<String>? = null, lookupMappings: Output<List<RelationshipTypeMappingArgs>>? = null, profileType: Output<String>? = null, relatedProfileType: Output<String>? = null, relationshipName: Output<String>? = null, resourceGroupName: Output<String>? = null)
Properties
Link copied to clipboard
The Relationship Cardinality.
Link copied to clipboard
Localized descriptions for the Relationship.
Link copied to clipboard
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
Optional property to be used to map fields in profile to their strong ids in related profile.
Link copied to clipboard
Profile type.
Link copied to clipboard
Related profile being referenced.
Link copied to clipboard
The name of the Relationship.
Link copied to clipboard
The name of the resource group.