Profile

class Profile : KotlinCustomResource

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

Profiles_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var profile = new AzureNative.CustomerInsights.Profile("profile", new()
{
ApiEntitySetName = "TestProfileType396",
Fields = new[]
{
new AzureNative.CustomerInsights.Inputs.PropertyDefinitionArgs
{
FieldName = "Id",
FieldType = "Edm.String",
IsArray = false,
IsRequired = true,
},
new AzureNative.CustomerInsights.Inputs.PropertyDefinitionArgs
{
FieldName = "ProfileId",
FieldType = "Edm.String",
IsArray = false,
IsRequired = true,
},
new AzureNative.CustomerInsights.Inputs.PropertyDefinitionArgs
{
FieldName = "LastName",
FieldType = "Edm.String",
IsArray = false,
IsRequired = true,
},
new AzureNative.CustomerInsights.Inputs.PropertyDefinitionArgs
{
FieldName = "TestProfileType396",
FieldType = "Edm.String",
IsArray = false,
IsRequired = true,
},
new AzureNative.CustomerInsights.Inputs.PropertyDefinitionArgs
{
FieldName = "SavingAccountBalance",
FieldType = "Edm.Int32",
IsArray = false,
IsRequired = true,
},
},
HubName = "sdkTestHub",
LargeImage = "\\\\Images\\\\LargeImage",
MediumImage = "\\\\Images\\\\MediumImage",
ProfileName = "TestProfileType396",
ResourceGroupName = "TestHubRG",
SchemaItemTypeLink = "SchemaItemTypeLink",
SmallImage = "\\\\Images\\\\smallImage",
StrongIds = new[]
{
new AzureNative.CustomerInsights.Inputs.StrongIdArgs
{
KeyPropertyNames = new[]
{
"Id",
"SavingAccountBalance",
},
StrongIdName = "Id",
},
new AzureNative.CustomerInsights.Inputs.StrongIdArgs
{
KeyPropertyNames = new[]
{
"ProfileId",
"LastName",
},
StrongIdName = "ProfileId",
},
},
});
});
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.NewProfile(ctx, "profile", &customerinsights.ProfileArgs{
ApiEntitySetName: pulumi.String("TestProfileType396"),
Fields: customerinsights.PropertyDefinitionArray{
&customerinsights.PropertyDefinitionArgs{
FieldName: pulumi.String("Id"),
FieldType: pulumi.String("Edm.String"),
IsArray: pulumi.Bool(false),
IsRequired: pulumi.Bool(true),
},
&customerinsights.PropertyDefinitionArgs{
FieldName: pulumi.String("ProfileId"),
FieldType: pulumi.String("Edm.String"),
IsArray: pulumi.Bool(false),
IsRequired: pulumi.Bool(true),
},
&customerinsights.PropertyDefinitionArgs{
FieldName: pulumi.String("LastName"),
FieldType: pulumi.String("Edm.String"),
IsArray: pulumi.Bool(false),
IsRequired: pulumi.Bool(true),
},
&customerinsights.PropertyDefinitionArgs{
FieldName: pulumi.String("TestProfileType396"),
FieldType: pulumi.String("Edm.String"),
IsArray: pulumi.Bool(false),
IsRequired: pulumi.Bool(true),
},
&customerinsights.PropertyDefinitionArgs{
FieldName: pulumi.String("SavingAccountBalance"),
FieldType: pulumi.String("Edm.Int32"),
IsArray: pulumi.Bool(false),
IsRequired: pulumi.Bool(true),
},
},
HubName: pulumi.String("sdkTestHub"),
LargeImage: pulumi.String("\\\\Images\\\\LargeImage"),
MediumImage: pulumi.String("\\\\Images\\\\MediumImage"),
ProfileName: pulumi.String("TestProfileType396"),
ResourceGroupName: pulumi.String("TestHubRG"),
SchemaItemTypeLink: pulumi.String("SchemaItemTypeLink"),
SmallImage: pulumi.String("\\\\Images\\\\smallImage"),
StrongIds: customerinsights.StrongIdArray{
&customerinsights.StrongIdArgs{
KeyPropertyNames: pulumi.StringArray{
pulumi.String("Id"),
pulumi.String("SavingAccountBalance"),
},
StrongIdName: pulumi.String("Id"),
},
&customerinsights.StrongIdArgs{
KeyPropertyNames: pulumi.StringArray{
pulumi.String("ProfileId"),
pulumi.String("LastName"),
},
StrongIdName: pulumi.String("ProfileId"),
},
},
})
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.Profile;
import com.pulumi.azurenative.customerinsights.ProfileArgs;
import com.pulumi.azurenative.customerinsights.inputs.PropertyDefinitionArgs;
import com.pulumi.azurenative.customerinsights.inputs.StrongIdArgs;
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 profile = new Profile("profile", ProfileArgs.builder()
.apiEntitySetName("TestProfileType396")
.fields(
PropertyDefinitionArgs.builder()
.fieldName("Id")
.fieldType("Edm.String")
.isArray(false)
.isRequired(true)
.build(),
PropertyDefinitionArgs.builder()
.fieldName("ProfileId")
.fieldType("Edm.String")
.isArray(false)
.isRequired(true)
.build(),
PropertyDefinitionArgs.builder()
.fieldName("LastName")
.fieldType("Edm.String")
.isArray(false)
.isRequired(true)
.build(),
PropertyDefinitionArgs.builder()
.fieldName("TestProfileType396")
.fieldType("Edm.String")
.isArray(false)
.isRequired(true)
.build(),
PropertyDefinitionArgs.builder()
.fieldName("SavingAccountBalance")
.fieldType("Edm.Int32")
.isArray(false)
.isRequired(true)
.build())
.hubName("sdkTestHub")
.largeImage("\\\\Images\\\\LargeImage")
.mediumImage("\\\\Images\\\\MediumImage")
.profileName("TestProfileType396")
.resourceGroupName("TestHubRG")
.schemaItemTypeLink("SchemaItemTypeLink")
.smallImage("\\\\Images\\\\smallImage")
.strongIds(
StrongIdArgs.builder()
.keyPropertyNames(
"Id",
"SavingAccountBalance")
.strongIdName("Id")
.build(),
StrongIdArgs.builder()
.keyPropertyNames(
"ProfileId",
"LastName")
.strongIdName("ProfileId")
.build())
.build());
}
}

Import

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

$ pulumi import azure-native:customerinsights:Profile azSdkTestHub/TestProfileType396 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/profiles/{profileName}

Properties

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

The api entity set name. This becomes the odata entity set name for the entity Type being referred in this object.

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

The attributes for the Type.

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

Localized descriptions for the property.

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

Localized display names for the property.

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

Type of entity.

Link copied to clipboard

The properties of the Profile.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val instancesCount: Output<Int>?

The instance count.

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

Large Image associated with the Property or EntityType.

Link copied to clipboard
val lastChangedUtc: Output<String>

The last changed time for the type definition.

Link copied to clipboard

Any custom localized attributes for the Type.

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

Medium Image associated with the Property or EntityType.

Link copied to clipboard
val name: Output<String>

Resource name.

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

The schema org link. This helps ACI identify and suggest semantic models.

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

Small Image associated with the Property or EntityType.

Link copied to clipboard

The strong IDs.

Link copied to clipboard
val tenantId: Output<String>

The hub name.

Link copied to clipboard

The timestamp property name. Represents the time when the interaction or profile update happened.

Link copied to clipboard
val type: Output<String>

Resource type.

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

The name of the entity.

Link copied to clipboard
val urn: Output<String>