![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.iot.kotlin.EndpointCosmosdbAccountArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.iot.kotlin
import com.pulumi.azure.iot.EndpointCosmosdbAccountArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Manages an IotHub Cosmos DB Account Endpoint
* > **NOTE:** Endpoints can be defined either directly on the `azure.iot.IoTHub` resource, or using the `azurerm_iothub_endpoint_*` resources - but the two ways of defining the endpoints cannot be used together. If both are used against the same IoTHub, spurious changes will occur. Also, defining a `azurerm_iothub_endpoint_*` resource and another endpoint of a different type directly on the `azure.iot.IoTHub` resource is not supported.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = new azure.core.ResourceGroup("example", {
* name: "example-resources",
* location: "West Europe",
* });
* const exampleIoTHub = new azure.iot.IoTHub("example", {
* name: "exampleIothub",
* resourceGroupName: example.name,
* location: example.location,
* sku: {
* name: "B1",
* capacity: 1,
* },
* tags: {
* purpose: "example",
* },
* });
* const exampleAccount = new azure.cosmosdb.Account("example", {
* name: "cosmosdb-account",
* location: example.location,
* resourceGroupName: example.name,
* offerType: "Standard",
* kind: "GlobalDocumentDB",
* consistencyPolicy: {
* consistencyLevel: "Strong",
* },
* geoLocations: [{
* location: example.location,
* failoverPriority: 0,
* }],
* });
* const exampleSqlDatabase = new azure.cosmosdb.SqlDatabase("example", {
* name: "cosmos-sql-db",
* resourceGroupName: exampleAccount.resourceGroupName,
* accountName: exampleAccount.name,
* });
* const exampleSqlContainer = new azure.cosmosdb.SqlContainer("example", {
* name: "example-container",
* resourceGroupName: exampleAccount.resourceGroupName,
* accountName: exampleAccount.name,
* databaseName: exampleSqlDatabase.name,
* partitionKeyPath: "/definition/id",
* });
* const exampleEndpointCosmosdbAccount = new azure.iot.EndpointCosmosdbAccount("example", {
* name: "example",
* resourceGroupName: example.name,
* iothubId: exampleIoTHub.id,
* containerName: exampleSqlContainer.name,
* databaseName: exampleSqlDatabase.name,
* endpointUri: exampleAccount.endpoint,
* primaryKey: exampleAccount.primaryKey,
* secondaryKey: exampleAccount.secondaryKey,
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.core.ResourceGroup("example",
* name="example-resources",
* location="West Europe")
* example_io_t_hub = azure.iot.IoTHub("example",
* name="exampleIothub",
* resource_group_name=example.name,
* location=example.location,
* sku={
* "name": "B1",
* "capacity": 1,
* },
* tags={
* "purpose": "example",
* })
* example_account = azure.cosmosdb.Account("example",
* name="cosmosdb-account",
* location=example.location,
* resource_group_name=example.name,
* offer_type="Standard",
* kind="GlobalDocumentDB",
* consistency_policy={
* "consistency_level": "Strong",
* },
* geo_locations=[{
* "location": example.location,
* "failover_priority": 0,
* }])
* example_sql_database = azure.cosmosdb.SqlDatabase("example",
* name="cosmos-sql-db",
* resource_group_name=example_account.resource_group_name,
* account_name=example_account.name)
* example_sql_container = azure.cosmosdb.SqlContainer("example",
* name="example-container",
* resource_group_name=example_account.resource_group_name,
* account_name=example_account.name,
* database_name=example_sql_database.name,
* partition_key_path="/definition/id")
* example_endpoint_cosmosdb_account = azure.iot.EndpointCosmosdbAccount("example",
* name="example",
* resource_group_name=example.name,
* iothub_id=example_io_t_hub.id,
* container_name=example_sql_container.name,
* database_name=example_sql_database.name,
* endpoint_uri=example_account.endpoint,
* primary_key=example_account.primary_key,
* secondary_key=example_account.secondary_key)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = new Azure.Core.ResourceGroup("example", new()
* {
* Name = "example-resources",
* Location = "West Europe",
* });
* var exampleIoTHub = new Azure.Iot.IoTHub("example", new()
* {
* Name = "exampleIothub",
* ResourceGroupName = example.Name,
* Location = example.Location,
* Sku = new Azure.Iot.Inputs.IoTHubSkuArgs
* {
* Name = "B1",
* Capacity = 1,
* },
* Tags =
* {
* { "purpose", "example" },
* },
* });
* var exampleAccount = new Azure.CosmosDB.Account("example", new()
* {
* Name = "cosmosdb-account",
* Location = example.Location,
* ResourceGroupName = example.Name,
* OfferType = "Standard",
* Kind = "GlobalDocumentDB",
* ConsistencyPolicy = new Azure.CosmosDB.Inputs.AccountConsistencyPolicyArgs
* {
* ConsistencyLevel = "Strong",
* },
* GeoLocations = new[]
* {
* new Azure.CosmosDB.Inputs.AccountGeoLocationArgs
* {
* Location = example.Location,
* FailoverPriority = 0,
* },
* },
* });
* var exampleSqlDatabase = new Azure.CosmosDB.SqlDatabase("example", new()
* {
* Name = "cosmos-sql-db",
* ResourceGroupName = exampleAccount.ResourceGroupName,
* AccountName = exampleAccount.Name,
* });
* var exampleSqlContainer = new Azure.CosmosDB.SqlContainer("example", new()
* {
* Name = "example-container",
* ResourceGroupName = exampleAccount.ResourceGroupName,
* AccountName = exampleAccount.Name,
* DatabaseName = exampleSqlDatabase.Name,
* PartitionKeyPath = "/definition/id",
* });
* var exampleEndpointCosmosdbAccount = new Azure.Iot.EndpointCosmosdbAccount("example", new()
* {
* Name = "example",
* ResourceGroupName = example.Name,
* IothubId = exampleIoTHub.Id,
* ContainerName = exampleSqlContainer.Name,
* DatabaseName = exampleSqlDatabase.Name,
* EndpointUri = exampleAccount.Endpoint,
* PrimaryKey = exampleAccount.PrimaryKey,
* SecondaryKey = exampleAccount.SecondaryKey,
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/cosmosdb"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/iot"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
* Name: pulumi.String("example-resources"),
* Location: pulumi.String("West Europe"),
* })
* if err != nil {
* return err
* }
* exampleIoTHub, err := iot.NewIoTHub(ctx, "example", &iot.IoTHubArgs{
* Name: pulumi.String("exampleIothub"),
* ResourceGroupName: example.Name,
* Location: example.Location,
* Sku: &iot.IoTHubSkuArgs{
* Name: pulumi.String("B1"),
* Capacity: pulumi.Int(1),
* },
* Tags: pulumi.StringMap{
* "purpose": pulumi.String("example"),
* },
* })
* if err != nil {
* return err
* }
* exampleAccount, err := cosmosdb.NewAccount(ctx, "example", &cosmosdb.AccountArgs{
* Name: pulumi.String("cosmosdb-account"),
* Location: example.Location,
* ResourceGroupName: example.Name,
* OfferType: pulumi.String("Standard"),
* Kind: pulumi.String("GlobalDocumentDB"),
* ConsistencyPolicy: &cosmosdb.AccountConsistencyPolicyArgs{
* ConsistencyLevel: pulumi.String("Strong"),
* },
* GeoLocations: cosmosdb.AccountGeoLocationArray{
* &cosmosdb.AccountGeoLocationArgs{
* Location: example.Location,
* FailoverPriority: pulumi.Int(0),
* },
* },
* })
* if err != nil {
* return err
* }
* exampleSqlDatabase, err := cosmosdb.NewSqlDatabase(ctx, "example", &cosmosdb.SqlDatabaseArgs{
* Name: pulumi.String("cosmos-sql-db"),
* ResourceGroupName: exampleAccount.ResourceGroupName,
* AccountName: exampleAccount.Name,
* })
* if err != nil {
* return err
* }
* exampleSqlContainer, err := cosmosdb.NewSqlContainer(ctx, "example", &cosmosdb.SqlContainerArgs{
* Name: pulumi.String("example-container"),
* ResourceGroupName: exampleAccount.ResourceGroupName,
* AccountName: exampleAccount.Name,
* DatabaseName: exampleSqlDatabase.Name,
* PartitionKeyPath: pulumi.String("/definition/id"),
* })
* if err != nil {
* return err
* }
* _, err = iot.NewEndpointCosmosdbAccount(ctx, "example", &iot.EndpointCosmosdbAccountArgs{
* Name: pulumi.String("example"),
* ResourceGroupName: example.Name,
* IothubId: exampleIoTHub.ID(),
* ContainerName: exampleSqlContainer.Name,
* DatabaseName: exampleSqlDatabase.Name,
* EndpointUri: exampleAccount.Endpoint,
* PrimaryKey: exampleAccount.PrimaryKey,
* SecondaryKey: exampleAccount.SecondaryKey,
* })
* 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.azure.core.ResourceGroup;
* import com.pulumi.azure.core.ResourceGroupArgs;
* import com.pulumi.azure.iot.IoTHub;
* import com.pulumi.azure.iot.IoTHubArgs;
* import com.pulumi.azure.iot.inputs.IoTHubSkuArgs;
* import com.pulumi.azure.cosmosdb.Account;
* import com.pulumi.azure.cosmosdb.AccountArgs;
* import com.pulumi.azure.cosmosdb.inputs.AccountConsistencyPolicyArgs;
* import com.pulumi.azure.cosmosdb.inputs.AccountGeoLocationArgs;
* import com.pulumi.azure.cosmosdb.SqlDatabase;
* import com.pulumi.azure.cosmosdb.SqlDatabaseArgs;
* import com.pulumi.azure.cosmosdb.SqlContainer;
* import com.pulumi.azure.cosmosdb.SqlContainerArgs;
* import com.pulumi.azure.iot.EndpointCosmosdbAccount;
* import com.pulumi.azure.iot.EndpointCosmosdbAccountArgs;
* 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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
* .name("example-resources")
* .location("West Europe")
* .build());
* var exampleIoTHub = new IoTHub("exampleIoTHub", IoTHubArgs.builder()
* .name("exampleIothub")
* .resourceGroupName(example.name())
* .location(example.location())
* .sku(IoTHubSkuArgs.builder()
* .name("B1")
* .capacity("1")
* .build())
* .tags(Map.of("purpose", "example"))
* .build());
* var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
* .name("cosmosdb-account")
* .location(example.location())
* .resourceGroupName(example.name())
* .offerType("Standard")
* .kind("GlobalDocumentDB")
* .consistencyPolicy(AccountConsistencyPolicyArgs.builder()
* .consistencyLevel("Strong")
* .build())
* .geoLocations(AccountGeoLocationArgs.builder()
* .location(example.location())
* .failoverPriority(0)
* .build())
* .build());
* var exampleSqlDatabase = new SqlDatabase("exampleSqlDatabase", SqlDatabaseArgs.builder()
* .name("cosmos-sql-db")
* .resourceGroupName(exampleAccount.resourceGroupName())
* .accountName(exampleAccount.name())
* .build());
* var exampleSqlContainer = new SqlContainer("exampleSqlContainer", SqlContainerArgs.builder()
* .name("example-container")
* .resourceGroupName(exampleAccount.resourceGroupName())
* .accountName(exampleAccount.name())
* .databaseName(exampleSqlDatabase.name())
* .partitionKeyPath("/definition/id")
* .build());
* var exampleEndpointCosmosdbAccount = new EndpointCosmosdbAccount("exampleEndpointCosmosdbAccount", EndpointCosmosdbAccountArgs.builder()
* .name("example")
* .resourceGroupName(example.name())
* .iothubId(exampleIoTHub.id())
* .containerName(exampleSqlContainer.name())
* .databaseName(exampleSqlDatabase.name())
* .endpointUri(exampleAccount.endpoint())
* .primaryKey(exampleAccount.primaryKey())
* .secondaryKey(exampleAccount.secondaryKey())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: azure:core:ResourceGroup
* properties:
* name: example-resources
* location: West Europe
* exampleIoTHub:
* type: azure:iot:IoTHub
* name: example
* properties:
* name: exampleIothub
* resourceGroupName: ${example.name}
* location: ${example.location}
* sku:
* name: B1
* capacity: '1'
* tags:
* purpose: example
* exampleAccount:
* type: azure:cosmosdb:Account
* name: example
* properties:
* name: cosmosdb-account
* location: ${example.location}
* resourceGroupName: ${example.name}
* offerType: Standard
* kind: GlobalDocumentDB
* consistencyPolicy:
* consistencyLevel: Strong
* geoLocations:
* - location: ${example.location}
* failoverPriority: 0
* exampleSqlDatabase:
* type: azure:cosmosdb:SqlDatabase
* name: example
* properties:
* name: cosmos-sql-db
* resourceGroupName: ${exampleAccount.resourceGroupName}
* accountName: ${exampleAccount.name}
* exampleSqlContainer:
* type: azure:cosmosdb:SqlContainer
* name: example
* properties:
* name: example-container
* resourceGroupName: ${exampleAccount.resourceGroupName}
* accountName: ${exampleAccount.name}
* databaseName: ${exampleSqlDatabase.name}
* partitionKeyPath: /definition/id
* exampleEndpointCosmosdbAccount:
* type: azure:iot:EndpointCosmosdbAccount
* name: example
* properties:
* name: example
* resourceGroupName: ${example.name}
* iothubId: ${exampleIoTHub.id}
* containerName: ${exampleSqlContainer.name}
* databaseName: ${exampleSqlDatabase.name}
* endpointUri: ${exampleAccount.endpoint}
* primaryKey: ${exampleAccount.primaryKey}
* secondaryKey: ${exampleAccount.secondaryKey}
* ```
*
* ## Import
* IoTHub Cosmos DB Account Endpoint can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:iot/endpointCosmosdbAccount:EndpointCosmosdbAccount endpoint1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Devices/iotHubs/hub1/endpoints/cosmosDBAccountEndpoint1
* ```
* @property authenticationType The type used to authenticate against the Cosmos DB Account endpoint. Possible values are `keyBased` and `identityBased`. Defaults to `keyBased`.
* @property containerName The name of the Cosmos DB Container in the Cosmos DB Database. Changing this forces a new resource to be created.
* @property databaseName The name of the Cosmos DB Database in the Cosmos DB Account. Changing this forces a new resource to be created.
* @property endpointUri The URI of the Cosmos DB Account. Changing this forces a new resource to be created.
* @property identityId The ID of the User Managed Identity used to authenticate against the Cosmos DB Account endpoint.
* > **NOTE:** `identity_id` can only be specified when `authentication_type` is `identityBased`. It must be one of the `identity_ids` of the Iot Hub. If not specified when `authentication_type` is `identityBased`, System Assigned Managed Identity of the Iot Hub will be used.
* @property iothubId The ID of the IoT Hub to create the endpoint. Changing this forces a new resource to be created.
* @property name The name of the endpoint. The name must be unique across endpoint types. The following names are reserved: `events`, `operationsMonitoringEvents`, `fileNotifications` and `$default`. Changing this forces a new resource to be created.
* @property partitionKeyName The name of the partition key associated with the Cosmos DB Container.
* @property partitionKeyTemplate The template for generating a synthetic partition key value for use within the Cosmos DB Container.
* @property primaryKey The primary key of the Cosmos DB Account.
* > **NOTE:** `primary_key` must and can only be specified when `authentication_type` is `keyBased`.
* @property resourceGroupName The name of the resource group under which the Cosmos DB Account has been created. Changing this forces a new resource to be created.
* @property secondaryKey The secondary key of the Cosmos DB Account.
* > **NOTE:** `secondary_key` must and can only be specified when `authentication_type` is `keyBased`.
*/
public data class EndpointCosmosdbAccountArgs(
public val authenticationType: Output? = null,
public val containerName: Output? = null,
public val databaseName: Output? = null,
public val endpointUri: Output? = null,
public val identityId: Output? = null,
public val iothubId: Output? = null,
public val name: Output? = null,
public val partitionKeyName: Output? = null,
public val partitionKeyTemplate: Output? = null,
public val primaryKey: Output? = null,
public val resourceGroupName: Output? = null,
public val secondaryKey: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.iot.EndpointCosmosdbAccountArgs =
com.pulumi.azure.iot.EndpointCosmosdbAccountArgs.builder()
.authenticationType(authenticationType?.applyValue({ args0 -> args0 }))
.containerName(containerName?.applyValue({ args0 -> args0 }))
.databaseName(databaseName?.applyValue({ args0 -> args0 }))
.endpointUri(endpointUri?.applyValue({ args0 -> args0 }))
.identityId(identityId?.applyValue({ args0 -> args0 }))
.iothubId(iothubId?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.partitionKeyName(partitionKeyName?.applyValue({ args0 -> args0 }))
.partitionKeyTemplate(partitionKeyTemplate?.applyValue({ args0 -> args0 }))
.primaryKey(primaryKey?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.secondaryKey(secondaryKey?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [EndpointCosmosdbAccountArgs].
*/
@PulumiTagMarker
public class EndpointCosmosdbAccountArgsBuilder internal constructor() {
private var authenticationType: Output? = null
private var containerName: Output? = null
private var databaseName: Output? = null
private var endpointUri: Output? = null
private var identityId: Output? = null
private var iothubId: Output? = null
private var name: Output? = null
private var partitionKeyName: Output? = null
private var partitionKeyTemplate: Output? = null
private var primaryKey: Output? = null
private var resourceGroupName: Output? = null
private var secondaryKey: Output? = null
/**
* @param value The type used to authenticate against the Cosmos DB Account endpoint. Possible values are `keyBased` and `identityBased`. Defaults to `keyBased`.
*/
@JvmName("ydjjxtxhfyrymgvn")
public suspend fun authenticationType(`value`: Output) {
this.authenticationType = value
}
/**
* @param value The name of the Cosmos DB Container in the Cosmos DB Database. Changing this forces a new resource to be created.
*/
@JvmName("vfrtocqbybkrcmwf")
public suspend fun containerName(`value`: Output) {
this.containerName = value
}
/**
* @param value The name of the Cosmos DB Database in the Cosmos DB Account. Changing this forces a new resource to be created.
*/
@JvmName("cabqjiwjfoydllty")
public suspend fun databaseName(`value`: Output) {
this.databaseName = value
}
/**
* @param value The URI of the Cosmos DB Account. Changing this forces a new resource to be created.
*/
@JvmName("ocxrsmcbrmrcqnis")
public suspend fun endpointUri(`value`: Output) {
this.endpointUri = value
}
/**
* @param value The ID of the User Managed Identity used to authenticate against the Cosmos DB Account endpoint.
* > **NOTE:** `identity_id` can only be specified when `authentication_type` is `identityBased`. It must be one of the `identity_ids` of the Iot Hub. If not specified when `authentication_type` is `identityBased`, System Assigned Managed Identity of the Iot Hub will be used.
*/
@JvmName("yjodoattydnilbws")
public suspend fun identityId(`value`: Output) {
this.identityId = value
}
/**
* @param value The ID of the IoT Hub to create the endpoint. Changing this forces a new resource to be created.
*/
@JvmName("htptjyscdlqhbpqv")
public suspend fun iothubId(`value`: Output) {
this.iothubId = value
}
/**
* @param value The name of the endpoint. The name must be unique across endpoint types. The following names are reserved: `events`, `operationsMonitoringEvents`, `fileNotifications` and `$default`. Changing this forces a new resource to be created.
*/
@JvmName("kcchwahlstrpuanl")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The name of the partition key associated with the Cosmos DB Container.
*/
@JvmName("mtuqmdpeblmnkoli")
public suspend fun partitionKeyName(`value`: Output) {
this.partitionKeyName = value
}
/**
* @param value The template for generating a synthetic partition key value for use within the Cosmos DB Container.
*/
@JvmName("nkdebxqxplracpvi")
public suspend fun partitionKeyTemplate(`value`: Output) {
this.partitionKeyTemplate = value
}
/**
* @param value The primary key of the Cosmos DB Account.
* > **NOTE:** `primary_key` must and can only be specified when `authentication_type` is `keyBased`.
*/
@JvmName("mjuicqgnmpodqidk")
public suspend fun primaryKey(`value`: Output) {
this.primaryKey = value
}
/**
* @param value The name of the resource group under which the Cosmos DB Account has been created. Changing this forces a new resource to be created.
*/
@JvmName("koepscatnycniqvl")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The secondary key of the Cosmos DB Account.
* > **NOTE:** `secondary_key` must and can only be specified when `authentication_type` is `keyBased`.
*/
@JvmName("lmsbrbskltfxkpve")
public suspend fun secondaryKey(`value`: Output) {
this.secondaryKey = value
}
/**
* @param value The type used to authenticate against the Cosmos DB Account endpoint. Possible values are `keyBased` and `identityBased`. Defaults to `keyBased`.
*/
@JvmName("pbudrkomiocgrggb")
public suspend fun authenticationType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.authenticationType = mapped
}
/**
* @param value The name of the Cosmos DB Container in the Cosmos DB Database. Changing this forces a new resource to be created.
*/
@JvmName("pwephllpwqkvuirk")
public suspend fun containerName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.containerName = mapped
}
/**
* @param value The name of the Cosmos DB Database in the Cosmos DB Account. Changing this forces a new resource to be created.
*/
@JvmName("mhrtwwamkxnamebr")
public suspend fun databaseName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.databaseName = mapped
}
/**
* @param value The URI of the Cosmos DB Account. Changing this forces a new resource to be created.
*/
@JvmName("chryjarrqfavmplg")
public suspend fun endpointUri(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.endpointUri = mapped
}
/**
* @param value The ID of the User Managed Identity used to authenticate against the Cosmos DB Account endpoint.
* > **NOTE:** `identity_id` can only be specified when `authentication_type` is `identityBased`. It must be one of the `identity_ids` of the Iot Hub. If not specified when `authentication_type` is `identityBased`, System Assigned Managed Identity of the Iot Hub will be used.
*/
@JvmName("njokvosjluvarojo")
public suspend fun identityId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.identityId = mapped
}
/**
* @param value The ID of the IoT Hub to create the endpoint. Changing this forces a new resource to be created.
*/
@JvmName("dvkvmdbgcayflije")
public suspend fun iothubId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.iothubId = mapped
}
/**
* @param value The name of the endpoint. The name must be unique across endpoint types. The following names are reserved: `events`, `operationsMonitoringEvents`, `fileNotifications` and `$default`. Changing this forces a new resource to be created.
*/
@JvmName("sfiafajgtkyisjnp")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The name of the partition key associated with the Cosmos DB Container.
*/
@JvmName("yejxcbgtjhnvluis")
public suspend fun partitionKeyName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.partitionKeyName = mapped
}
/**
* @param value The template for generating a synthetic partition key value for use within the Cosmos DB Container.
*/
@JvmName("ptdgbkxagklramrt")
public suspend fun partitionKeyTemplate(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.partitionKeyTemplate = mapped
}
/**
* @param value The primary key of the Cosmos DB Account.
* > **NOTE:** `primary_key` must and can only be specified when `authentication_type` is `keyBased`.
*/
@JvmName("qcbujycvhiagebeq")
public suspend fun primaryKey(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.primaryKey = mapped
}
/**
* @param value The name of the resource group under which the Cosmos DB Account has been created. Changing this forces a new resource to be created.
*/
@JvmName("yytfugvppjrwhexp")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value The secondary key of the Cosmos DB Account.
* > **NOTE:** `secondary_key` must and can only be specified when `authentication_type` is `keyBased`.
*/
@JvmName("edjywacqgrhhkrpx")
public suspend fun secondaryKey(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.secondaryKey = mapped
}
internal fun build(): EndpointCosmosdbAccountArgs = EndpointCosmosdbAccountArgs(
authenticationType = authenticationType,
containerName = containerName,
databaseName = databaseName,
endpointUri = endpointUri,
identityId = identityId,
iothubId = iothubId,
name = name,
partitionKeyName = partitionKeyName,
partitionKeyTemplate = partitionKeyTemplate,
primaryKey = primaryKey,
resourceGroupName = resourceGroupName,
secondaryKey = secondaryKey,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy