Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azurenative.appconfiguration.kotlin.ConfigurationStoreArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.appconfiguration.kotlin
import com.pulumi.azurenative.appconfiguration.ConfigurationStoreArgs.builder
import com.pulumi.azurenative.appconfiguration.kotlin.enums.CreateMode
import com.pulumi.azurenative.appconfiguration.kotlin.enums.PublicNetworkAccess
import com.pulumi.azurenative.appconfiguration.kotlin.inputs.EncryptionPropertiesArgs
import com.pulumi.azurenative.appconfiguration.kotlin.inputs.EncryptionPropertiesArgsBuilder
import com.pulumi.azurenative.appconfiguration.kotlin.inputs.ResourceIdentityArgs
import com.pulumi.azurenative.appconfiguration.kotlin.inputs.ResourceIdentityArgsBuilder
import com.pulumi.azurenative.appconfiguration.kotlin.inputs.SkuArgs
import com.pulumi.azurenative.appconfiguration.kotlin.inputs.SkuArgsBuilder
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* The configuration store along with all resource properties. The Configuration Store will have all information to begin utilizing it.
* Azure REST API version: 2023-03-01. Prior API version in Azure Native 1.x: 2020-06-01.
* Other available API versions: 2019-02-01-preview, 2023-08-01-preview, 2023-09-01-preview.
* ## Example Usage
* ### ConfigurationStores_Create
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var configurationStore = new AzureNative.AppConfiguration.ConfigurationStore("configurationStore", new()
* {
* ConfigStoreName = "contoso",
* Location = "westus",
* ResourceGroupName = "myResourceGroup",
* Sku = new AzureNative.AppConfiguration.Inputs.SkuArgs
* {
* Name = "Standard",
* },
* Tags =
* {
* { "myTag", "myTagValue" },
* },
* });
* });
* ```
* ```go
* package main
* import (
* appconfiguration "github.com/pulumi/pulumi-azure-native-sdk/appconfiguration/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := appconfiguration.NewConfigurationStore(ctx, "configurationStore", &appconfiguration.ConfigurationStoreArgs{
* ConfigStoreName: pulumi.String("contoso"),
* Location: pulumi.String("westus"),
* ResourceGroupName: pulumi.String("myResourceGroup"),
* Sku: &appconfiguration.SkuArgs{
* Name: pulumi.String("Standard"),
* },
* Tags: pulumi.StringMap{
* "myTag": pulumi.String("myTagValue"),
* },
* })
* 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.appconfiguration.ConfigurationStore;
* import com.pulumi.azurenative.appconfiguration.ConfigurationStoreArgs;
* import com.pulumi.azurenative.appconfiguration.inputs.SkuArgs;
* 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 configurationStore = new ConfigurationStore("configurationStore", ConfigurationStoreArgs.builder()
* .configStoreName("contoso")
* .location("westus")
* .resourceGroupName("myResourceGroup")
* .sku(SkuArgs.builder()
* .name("Standard")
* .build())
* .tags(Map.of("myTag", "myTagValue"))
* .build());
* }
* }
* ```
* ### ConfigurationStores_Create_With_Local_Auth_Disabled
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var configurationStore = new AzureNative.AppConfiguration.ConfigurationStore("configurationStore", new()
* {
* ConfigStoreName = "contoso",
* DisableLocalAuth = true,
* Location = "westus",
* ResourceGroupName = "myResourceGroup",
* Sku = new AzureNative.AppConfiguration.Inputs.SkuArgs
* {
* Name = "Standard",
* },
* });
* });
* ```
* ```go
* package main
* import (
* appconfiguration "github.com/pulumi/pulumi-azure-native-sdk/appconfiguration/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := appconfiguration.NewConfigurationStore(ctx, "configurationStore", &appconfiguration.ConfigurationStoreArgs{
* ConfigStoreName: pulumi.String("contoso"),
* DisableLocalAuth: pulumi.Bool(true),
* Location: pulumi.String("westus"),
* ResourceGroupName: pulumi.String("myResourceGroup"),
* Sku: &appconfiguration.SkuArgs{
* Name: pulumi.String("Standard"),
* },
* })
* 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.appconfiguration.ConfigurationStore;
* import com.pulumi.azurenative.appconfiguration.ConfigurationStoreArgs;
* import com.pulumi.azurenative.appconfiguration.inputs.SkuArgs;
* 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 configurationStore = new ConfigurationStore("configurationStore", ConfigurationStoreArgs.builder()
* .configStoreName("contoso")
* .disableLocalAuth(true)
* .location("westus")
* .resourceGroupName("myResourceGroup")
* .sku(SkuArgs.builder()
* .name("Standard")
* .build())
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:appconfiguration:ConfigurationStore contoso /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}
* ```
* @property configStoreName The name of the configuration store.
* @property createMode Indicates whether the configuration store need to be recovered.
* @property disableLocalAuth Disables all authentication methods other than AAD authentication.
* @property enablePurgeProtection Property specifying whether protection against purge is enabled for this configuration store.
* @property encryption The encryption settings of the configuration store.
* @property identity The managed identity information, if configured.
* @property location The geo-location where the resource lives
* @property publicNetworkAccess Control permission for data plane traffic coming from public networks while private endpoint is enabled.
* @property resourceGroupName The name of the resource group to which the container registry belongs.
* @property sku The sku of the configuration store.
* @property softDeleteRetentionInDays The amount of time in days that the configuration store will be retained when it is soft deleted.
* @property tags Resource tags.
*/
public data class ConfigurationStoreArgs(
public val configStoreName: Output? = null,
public val createMode: Output? = null,
public val disableLocalAuth: Output? = null,
public val enablePurgeProtection: Output? = null,
public val encryption: Output? = null,
public val identity: Output? = null,
public val location: Output? = null,
public val publicNetworkAccess: Output>? = null,
public val resourceGroupName: Output? = null,
public val sku: Output? = null,
public val softDeleteRetentionInDays: Output? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.appconfiguration.ConfigurationStoreArgs =
com.pulumi.azurenative.appconfiguration.ConfigurationStoreArgs.builder()
.configStoreName(configStoreName?.applyValue({ args0 -> args0 }))
.createMode(createMode?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.disableLocalAuth(disableLocalAuth?.applyValue({ args0 -> args0 }))
.enablePurgeProtection(enablePurgeProtection?.applyValue({ args0 -> args0 }))
.encryption(encryption?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.location(location?.applyValue({ args0 -> args0 }))
.publicNetworkAccess(
publicNetworkAccess?.applyValue({ args0 ->
args0.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
}),
)
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.sku(sku?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.softDeleteRetentionInDays(softDeleteRetentionInDays?.applyValue({ args0 -> args0 }))
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}),
).build()
}
/**
* Builder for [ConfigurationStoreArgs].
*/
@PulumiTagMarker
public class ConfigurationStoreArgsBuilder internal constructor() {
private var configStoreName: Output? = null
private var createMode: Output? = null
private var disableLocalAuth: Output? = null
private var enablePurgeProtection: Output? = null
private var encryption: Output? = null
private var identity: Output? = null
private var location: Output? = null
private var publicNetworkAccess: Output>? = null
private var resourceGroupName: Output? = null
private var sku: Output? = null
private var softDeleteRetentionInDays: Output? = null
private var tags: Output>? = null
/**
* @param value The name of the configuration store.
*/
@JvmName("yxxdwmucevlketgf")
public suspend fun configStoreName(`value`: Output) {
this.configStoreName = value
}
/**
* @param value Indicates whether the configuration store need to be recovered.
*/
@JvmName("crvcdjaxwobhnlnh")
public suspend fun createMode(`value`: Output) {
this.createMode = value
}
/**
* @param value Disables all authentication methods other than AAD authentication.
*/
@JvmName("vatjyddiuvhexwpm")
public suspend fun disableLocalAuth(`value`: Output) {
this.disableLocalAuth = value
}
/**
* @param value Property specifying whether protection against purge is enabled for this configuration store.
*/
@JvmName("gkcjkibchlakfgcc")
public suspend fun enablePurgeProtection(`value`: Output) {
this.enablePurgeProtection = value
}
/**
* @param value The encryption settings of the configuration store.
*/
@JvmName("jtikdyppxjhijmvx")
public suspend fun encryption(`value`: Output) {
this.encryption = value
}
/**
* @param value The managed identity information, if configured.
*/
@JvmName("rdeokajwuenhjaqf")
public suspend fun identity(`value`: Output) {
this.identity = value
}
/**
* @param value The geo-location where the resource lives
*/
@JvmName("sypscxfkshenyjuv")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value Control permission for data plane traffic coming from public networks while private endpoint is enabled.
*/
@JvmName("qcuyyaspwxkemxlm")
public suspend fun publicNetworkAccess(`value`: Output>) {
this.publicNetworkAccess = value
}
/**
* @param value The name of the resource group to which the container registry belongs.
*/
@JvmName("nglljxnxrkexuipp")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The sku of the configuration store.
*/
@JvmName("miojdgbctdigmqxg")
public suspend fun sku(`value`: Output) {
this.sku = value
}
/**
* @param value The amount of time in days that the configuration store will be retained when it is soft deleted.
*/
@JvmName("jorxethsqhbmtrjn")
public suspend fun softDeleteRetentionInDays(`value`: Output) {
this.softDeleteRetentionInDays = value
}
/**
* @param value Resource tags.
*/
@JvmName("xsmeeuumqmrqabhg")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value The name of the configuration store.
*/
@JvmName("eclaiydifjpbyegh")
public suspend fun configStoreName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.configStoreName = mapped
}
/**
* @param value Indicates whether the configuration store need to be recovered.
*/
@JvmName("mxmnrqvdgqynyqcj")
public suspend fun createMode(`value`: CreateMode?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.createMode = mapped
}
/**
* @param value Disables all authentication methods other than AAD authentication.
*/
@JvmName("bordwwnjiuouxwha")
public suspend fun disableLocalAuth(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.disableLocalAuth = mapped
}
/**
* @param value Property specifying whether protection against purge is enabled for this configuration store.
*/
@JvmName("jaramawdsskcwubr")
public suspend fun enablePurgeProtection(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enablePurgeProtection = mapped
}
/**
* @param value The encryption settings of the configuration store.
*/
@JvmName("gmqcbvgtttqilwgx")
public suspend fun encryption(`value`: EncryptionPropertiesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.encryption = mapped
}
/**
* @param argument The encryption settings of the configuration store.
*/
@JvmName("rxpwmiekowgvfdfv")
public suspend fun encryption(argument: suspend EncryptionPropertiesArgsBuilder.() -> Unit) {
val toBeMapped = EncryptionPropertiesArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.encryption = mapped
}
/**
* @param value The managed identity information, if configured.
*/
@JvmName("xwwqcwlneirjqlix")
public suspend fun identity(`value`: ResourceIdentityArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.identity = mapped
}
/**
* @param argument The managed identity information, if configured.
*/
@JvmName("gllexccaddkmvwxp")
public suspend fun identity(argument: suspend ResourceIdentityArgsBuilder.() -> Unit) {
val toBeMapped = ResourceIdentityArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.identity = mapped
}
/**
* @param value The geo-location where the resource lives
*/
@JvmName("aeagndwibautqaxy")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value Control permission for data plane traffic coming from public networks while private endpoint is enabled.
*/
@JvmName("kmaqvwqaofsiqhkk")
public suspend fun publicNetworkAccess(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.publicNetworkAccess = mapped
}
/**
* @param value Control permission for data plane traffic coming from public networks while private endpoint is enabled.
*/
@JvmName("nodeyaasgjcshauw")
public fun publicNetworkAccess(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.publicNetworkAccess = mapped
}
/**
* @param value Control permission for data plane traffic coming from public networks while private endpoint is enabled.
*/
@JvmName("iqoooijirujbaoqi")
public fun publicNetworkAccess(`value`: PublicNetworkAccess) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.publicNetworkAccess = mapped
}
/**
* @param value The name of the resource group to which the container registry belongs.
*/
@JvmName("phfghuhcedrgtopy")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value The sku of the configuration store.
*/
@JvmName("wneytwjegvfvgqsl")
public suspend fun sku(`value`: SkuArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sku = mapped
}
/**
* @param argument The sku of the configuration store.
*/
@JvmName("wrsdjbnogelfomav")
public suspend fun sku(argument: suspend SkuArgsBuilder.() -> Unit) {
val toBeMapped = SkuArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.sku = mapped
}
/**
* @param value The amount of time in days that the configuration store will be retained when it is soft deleted.
*/
@JvmName("vwkdiunnwwjuqqhl")
public suspend fun softDeleteRetentionInDays(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.softDeleteRetentionInDays = mapped
}
/**
* @param value Resource tags.
*/
@JvmName("fptaflauaseklusl")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param values Resource tags.
*/
@JvmName("tjrvrtmsvolbwvsx")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
internal fun build(): ConfigurationStoreArgs = ConfigurationStoreArgs(
configStoreName = configStoreName,
createMode = createMode,
disableLocalAuth = disableLocalAuth,
enablePurgeProtection = enablePurgeProtection,
encryption = encryption,
identity = identity,
location = location,
publicNetworkAccess = publicNetworkAccess,
resourceGroupName = resourceGroupName,
sku = sku,
softDeleteRetentionInDays = softDeleteRetentionInDays,
tags = tags,
)
}