![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.customerinsights.kotlin.Profile.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.customerinsights.kotlin
import com.pulumi.azurenative.customerinsights.kotlin.outputs.PropertyDefinitionResponse
import com.pulumi.azurenative.customerinsights.kotlin.outputs.StrongIdResponse
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import com.pulumi.azurenative.customerinsights.kotlin.outputs.PropertyDefinitionResponse.Companion.toKotlin as propertyDefinitionResponseToKotlin
import com.pulumi.azurenative.customerinsights.kotlin.outputs.StrongIdResponse.Companion.toKotlin as strongIdResponseToKotlin
/**
* Builder for [Profile].
*/
@PulumiTagMarker
public class ProfileResourceBuilder internal constructor() {
public var name: String? = null
public var args: ProfileArgs = ProfileArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend ProfileArgsBuilder.() -> Unit) {
val builder = ProfileArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): Profile {
val builtJavaResource = com.pulumi.azurenative.customerinsights.Profile(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Profile(builtJavaResource)
}
}
/**
* The profile resource format.
* Azure REST API version: 2017-04-26. Prior API version in Azure Native 1.x: 2017-04-26.
* ## Example Usage
* ### Profiles_CreateOrUpdate
* ```csharp
* 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",
* },
* },
* });
* });
* ```
* ```go
* 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
* })
* }
* ```
* ```java
* 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.
* ```sh
* $ pulumi import azure-native:customerinsights:Profile azSdkTestHub/TestProfileType396 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/profiles/{profileName}
* ```
*/
public class Profile internal constructor(
override val javaResource: com.pulumi.azurenative.customerinsights.Profile,
) : KotlinCustomResource(javaResource, ProfileMapper) {
/**
* The api entity set name. This becomes the odata entity set name for the entity Type being referred in this object.
*/
public val apiEntitySetName: Output?
get() = javaResource.apiEntitySetName().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The attributes for the Type.
*/
public val attributes: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy