Profile
The profile 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
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/v3"
"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
The api entity set name. This becomes the odata entity set name for the entity Type being referred in this object.
The attributes for the Type.
The Azure API version of the resource.
Localized descriptions for the property.
Localized display names for the property.
Type of entity.
The properties of the Profile.
The instance count.
Large Image associated with the Property or EntityType.
The last changed time for the type definition.
Medium Image associated with the Property or EntityType.
Provisioning state.
The schema org link. This helps ACI identify and suggest semantic models.
Small Image associated with the Property or EntityType.
The strong IDs.
The timestamp property name. Represents the time when the interaction or profile update happened.