Profile Args
data class ProfileArgs(val apiEntitySetName: Output<String>? = null, val attributes: Output<Map<String, List<String>>>? = null, val description: Output<Map<String, String>>? = null, val displayName: Output<Map<String, String>>? = null, val entityType: Output<EntityTypes>? = null, val fields: Output<List<PropertyDefinitionArgs>>? = null, val hubName: Output<String>? = null, val instancesCount: Output<Int>? = null, val largeImage: Output<String>? = null, val localizedAttributes: Output<Map<String, Map<String, String>>>? = null, val mediumImage: Output<String>? = null, val profileName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val schemaItemTypeLink: Output<String>? = null, val smallImage: Output<String>? = null, val strongIds: Output<List<StrongIdArgs>>? = null, val timestampFieldName: Output<String>? = null, val typeName: Output<String>? = null) : ConvertibleToJava<ProfileArgs>
The profile resource format. 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",
},
},
});
});
Content copied to clipboard
package main
import (
customerinsights "github.com/pulumi/pulumi-azure-native-sdk/customerinsights"
"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.PropertyDefinitionArgs{
{
FieldName: pulumi.String("Id"),
FieldType: pulumi.String("Edm.String"),
IsArray: pulumi.Bool(false),
IsRequired: pulumi.Bool(true),
},
{
FieldName: pulumi.String("ProfileId"),
FieldType: pulumi.String("Edm.String"),
IsArray: pulumi.Bool(false),
IsRequired: pulumi.Bool(true),
},
{
FieldName: pulumi.String("LastName"),
FieldType: pulumi.String("Edm.String"),
IsArray: pulumi.Bool(false),
IsRequired: pulumi.Bool(true),
},
{
FieldName: pulumi.String("TestProfileType396"),
FieldType: pulumi.String("Edm.String"),
IsArray: pulumi.Bool(false),
IsRequired: pulumi.Bool(true),
},
{
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.StrongIdArgs{
{
KeyPropertyNames: pulumi.StringArray{
pulumi.String("Id"),
pulumi.String("SavingAccountBalance"),
},
StrongIdName: pulumi.String("Id"),
},
{
KeyPropertyNames: pulumi.StringArray{
pulumi.String("ProfileId"),
pulumi.String("LastName"),
},
StrongIdName: pulumi.String("ProfileId"),
},
},
})
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.Profile;
import com.pulumi.azurenative.customerinsights.ProfileArgs;
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(
Map.ofEntries(
Map.entry("fieldName", "Id"),
Map.entry("fieldType", "Edm.String"),
Map.entry("isArray", false),
Map.entry("isRequired", true)
),
Map.ofEntries(
Map.entry("fieldName", "ProfileId"),
Map.entry("fieldType", "Edm.String"),
Map.entry("isArray", false),
Map.entry("isRequired", true)
),
Map.ofEntries(
Map.entry("fieldName", "LastName"),
Map.entry("fieldType", "Edm.String"),
Map.entry("isArray", false),
Map.entry("isRequired", true)
),
Map.ofEntries(
Map.entry("fieldName", "TestProfileType396"),
Map.entry("fieldType", "Edm.String"),
Map.entry("isArray", false),
Map.entry("isRequired", true)
),
Map.ofEntries(
Map.entry("fieldName", "SavingAccountBalance"),
Map.entry("fieldType", "Edm.Int32"),
Map.entry("isArray", false),
Map.entry("isRequired", true)
))
.hubName("sdkTestHub")
.largeImage("\\\\Images\\\\LargeImage")
.mediumImage("\\\\Images\\\\MediumImage")
.profileName("TestProfileType396")
.resourceGroupName("TestHubRG")
.schemaItemTypeLink("SchemaItemTypeLink")
.smallImage("\\\\Images\\\\smallImage")
.strongIds(
Map.ofEntries(
Map.entry("keyPropertyNames",
"Id",
"SavingAccountBalance"),
Map.entry("strongIdName", "Id")
),
Map.ofEntries(
Map.entry("keyPropertyNames",
"ProfileId",
"LastName"),
Map.entry("strongIdName", "ProfileId")
))
.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:Profile azSdkTestHub/TestProfileType396 /subscriptions/c909e979-ef71-4def-a970-bc7c154db8c5/resourceGroups/TestHubRG/providers/Microsoft.CustomerInsights/hubs/azSdkTestHub/profiles/TestProfileType396
Content copied to clipboard
Constructors
Link copied to clipboard
fun ProfileArgs(apiEntitySetName: Output<String>? = null, attributes: Output<Map<String, List<String>>>? = null, description: Output<Map<String, String>>? = null, displayName: Output<Map<String, String>>? = null, entityType: Output<EntityTypes>? = null, fields: Output<List<PropertyDefinitionArgs>>? = null, hubName: Output<String>? = null, instancesCount: Output<Int>? = null, largeImage: Output<String>? = null, localizedAttributes: Output<Map<String, Map<String, String>>>? = null, mediumImage: Output<String>? = null, profileName: Output<String>? = null, resourceGroupName: Output<String>? = null, schemaItemTypeLink: Output<String>? = null, smallImage: Output<String>? = null, strongIds: Output<List<StrongIdArgs>>? = null, timestampFieldName: Output<String>? = null, typeName: Output<String>? = null)
Functions
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard