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.powerplatform.kotlin.EnterprisePolicyArgs.kt Maven / Gradle / Ivy
Go to download
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.powerplatform.kotlin
import com.pulumi.azurenative.powerplatform.EnterprisePolicyArgs.builder
import com.pulumi.azurenative.powerplatform.kotlin.enums.EnterprisePolicyKind
import com.pulumi.azurenative.powerplatform.kotlin.enums.HealthStatus
import com.pulumi.azurenative.powerplatform.kotlin.inputs.EnterprisePolicyIdentityArgs
import com.pulumi.azurenative.powerplatform.kotlin.inputs.EnterprisePolicyIdentityArgsBuilder
import com.pulumi.azurenative.powerplatform.kotlin.inputs.PropertiesEncryptionArgs
import com.pulumi.azurenative.powerplatform.kotlin.inputs.PropertiesEncryptionArgsBuilder
import com.pulumi.azurenative.powerplatform.kotlin.inputs.PropertiesLockboxArgs
import com.pulumi.azurenative.powerplatform.kotlin.inputs.PropertiesLockboxArgsBuilder
import com.pulumi.azurenative.powerplatform.kotlin.inputs.PropertiesNetworkInjectionArgs
import com.pulumi.azurenative.powerplatform.kotlin.inputs.PropertiesNetworkInjectionArgsBuilder
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Definition of the EnterprisePolicy.
* Azure REST API version: 2020-10-30-preview. Prior API version in Azure Native 1.x: 2020-10-30-preview.
* ## Example Usage
* ### Create or update EnterprisePolicy
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var enterprisePolicy = new AzureNative.PowerPlatform.EnterprisePolicy("enterprisePolicy", new()
* {
* EnterprisePolicyName = "enterprisePolicy",
* Identity = new AzureNative.PowerPlatform.Inputs.EnterprisePolicyIdentityArgs
* {
* Type = AzureNative.PowerPlatform.ResourceIdentityType.SystemAssigned,
* },
* Kind = AzureNative.PowerPlatform.EnterprisePolicyKind.Lockbox,
* Location = "East US",
* ResourceGroupName = "resourceGroup",
* Tags =
* {
* { "Organization", "Administration" },
* },
* });
* });
* ```
* ```go
* package main
* import (
* powerplatform "github.com/pulumi/pulumi-azure-native-sdk/powerplatform/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := powerplatform.NewEnterprisePolicy(ctx, "enterprisePolicy", &powerplatform.EnterprisePolicyArgs{
* EnterprisePolicyName: pulumi.String("enterprisePolicy"),
* Identity: &powerplatform.EnterprisePolicyIdentityArgs{
* Type: powerplatform.ResourceIdentityTypeSystemAssigned,
* },
* Kind: pulumi.String(powerplatform.EnterprisePolicyKindLockbox),
* Location: pulumi.String("East US"),
* ResourceGroupName: pulumi.String("resourceGroup"),
* Tags: pulumi.StringMap{
* "Organization": pulumi.String("Administration"),
* },
* })
* 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.powerplatform.EnterprisePolicy;
* import com.pulumi.azurenative.powerplatform.EnterprisePolicyArgs;
* import com.pulumi.azurenative.powerplatform.inputs.EnterprisePolicyIdentityArgs;
* 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 enterprisePolicy = new EnterprisePolicy("enterprisePolicy", EnterprisePolicyArgs.builder()
* .enterprisePolicyName("enterprisePolicy")
* .identity(EnterprisePolicyIdentityArgs.builder()
* .type("SystemAssigned")
* .build())
* .kind("Lockbox")
* .location("East US")
* .resourceGroupName("resourceGroup")
* .tags(Map.of("Organization", "Administration"))
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:powerplatform:EnterprisePolicy enterprisePolicy /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerPlatform/enterprisePolicies/{enterprisePolicyName}
* ```
* @property encryption The encryption settings for a configuration store.
* @property enterprisePolicyName Name of the EnterprisePolicy.
* @property healthStatus The health status of the resource.
* @property identity The identity of the EnterprisePolicy.
* @property kind The kind (type) of Enterprise Policy.
* @property location The geo-location where the resource lives
* @property lockbox Settings concerning lockbox.
* @property networkInjection Settings concerning network injection.
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property tags Resource tags.
*/
public data class EnterprisePolicyArgs(
public val encryption: Output? = null,
public val enterprisePolicyName: Output? = null,
public val healthStatus: Output>? = null,
public val identity: Output? = null,
public val kind: Output>? = null,
public val location: Output? = null,
public val lockbox: Output? = null,
public val networkInjection: Output? = null,
public val resourceGroupName: Output? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.powerplatform.EnterprisePolicyArgs =
com.pulumi.azurenative.powerplatform.EnterprisePolicyArgs.builder()
.encryption(encryption?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.enterprisePolicyName(enterprisePolicyName?.applyValue({ args0 -> args0 }))
.healthStatus(
healthStatus?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.kind(
kind?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.location(location?.applyValue({ args0 -> args0 }))
.lockbox(lockbox?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.networkInjection(networkInjection?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}),
).build()
}
/**
* Builder for [EnterprisePolicyArgs].
*/
@PulumiTagMarker
public class EnterprisePolicyArgsBuilder internal constructor() {
private var encryption: Output? = null
private var enterprisePolicyName: Output? = null
private var healthStatus: Output>? = null
private var identity: Output? = null
private var kind: Output>? = null
private var location: Output? = null
private var lockbox: Output? = null
private var networkInjection: Output? = null
private var resourceGroupName: Output? = null
private var tags: Output>? = null
/**
* @param value The encryption settings for a configuration store.
*/
@JvmName("ogshdcjldwpxwkfm")
public suspend fun encryption(`value`: Output) {
this.encryption = value
}
/**
* @param value Name of the EnterprisePolicy.
*/
@JvmName("uvomeqdglagngjet")
public suspend fun enterprisePolicyName(`value`: Output) {
this.enterprisePolicyName = value
}
/**
* @param value The health status of the resource.
*/
@JvmName("ahbavbqxqvkjkwun")
public suspend fun healthStatus(`value`: Output>) {
this.healthStatus = value
}
/**
* @param value The identity of the EnterprisePolicy.
*/
@JvmName("dnqleordhgiwsudx")
public suspend fun identity(`value`: Output) {
this.identity = value
}
/**
* @param value The kind (type) of Enterprise Policy.
*/
@JvmName("reemgukfmmbeulby")
public suspend fun kind(`value`: Output>) {
this.kind = value
}
/**
* @param value The geo-location where the resource lives
*/
@JvmName("dxitxirxkpkdrnos")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value Settings concerning lockbox.
*/
@JvmName("jqglfqjbtvmqqfwx")
public suspend fun lockbox(`value`: Output) {
this.lockbox = value
}
/**
* @param value Settings concerning network injection.
*/
@JvmName("natsknoagoflqihd")
public suspend fun networkInjection(`value`: Output) {
this.networkInjection = value
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("rrtuuxnopjjjcxlu")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value Resource tags.
*/
@JvmName("kiimmvlmrbhxjxyo")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value The encryption settings for a configuration store.
*/
@JvmName("jtunmjocqudvseio")
public suspend fun encryption(`value`: PropertiesEncryptionArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.encryption = mapped
}
/**
* @param argument The encryption settings for a configuration store.
*/
@JvmName("winfposlebfbkfss")
public suspend fun encryption(argument: suspend PropertiesEncryptionArgsBuilder.() -> Unit) {
val toBeMapped = PropertiesEncryptionArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.encryption = mapped
}
/**
* @param value Name of the EnterprisePolicy.
*/
@JvmName("gvgdrcprhrbwpifw")
public suspend fun enterprisePolicyName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enterprisePolicyName = mapped
}
/**
* @param value The health status of the resource.
*/
@JvmName("exsnaeaunsbvpxox")
public suspend fun healthStatus(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.healthStatus = mapped
}
/**
* @param value The health status of the resource.
*/
@JvmName("hojluflqrcuivlmb")
public fun healthStatus(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.healthStatus = mapped
}
/**
* @param value The health status of the resource.
*/
@JvmName("okdkbgtctbsiywhp")
public fun healthStatus(`value`: HealthStatus) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.healthStatus = mapped
}
/**
* @param value The identity of the EnterprisePolicy.
*/
@JvmName("nmpomllbjglefndi")
public suspend fun identity(`value`: EnterprisePolicyIdentityArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.identity = mapped
}
/**
* @param argument The identity of the EnterprisePolicy.
*/
@JvmName("botlvrwhujctidkb")
public suspend fun identity(argument: suspend EnterprisePolicyIdentityArgsBuilder.() -> Unit) {
val toBeMapped = EnterprisePolicyIdentityArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.identity = mapped
}
/**
* @param value The kind (type) of Enterprise Policy.
*/
@JvmName("hotisbyffnhquvkp")
public suspend fun kind(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.kind = mapped
}
/**
* @param value The kind (type) of Enterprise Policy.
*/
@JvmName("vedkpdoytpeopgkj")
public fun kind(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.kind = mapped
}
/**
* @param value The kind (type) of Enterprise Policy.
*/
@JvmName("sxlihqmahmwkeqyu")
public fun kind(`value`: EnterprisePolicyKind) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.kind = mapped
}
/**
* @param value The geo-location where the resource lives
*/
@JvmName("pairdqrhgarlqbou")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value Settings concerning lockbox.
*/
@JvmName("yfqecemaylvqxlbl")
public suspend fun lockbox(`value`: PropertiesLockboxArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.lockbox = mapped
}
/**
* @param argument Settings concerning lockbox.
*/
@JvmName("dvpjkdyohpguimtb")
public suspend fun lockbox(argument: suspend PropertiesLockboxArgsBuilder.() -> Unit) {
val toBeMapped = PropertiesLockboxArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.lockbox = mapped
}
/**
* @param value Settings concerning network injection.
*/
@JvmName("rerejgyldggkvbxn")
public suspend fun networkInjection(`value`: PropertiesNetworkInjectionArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.networkInjection = mapped
}
/**
* @param argument Settings concerning network injection.
*/
@JvmName("maircqjeitmwmycd")
public suspend fun networkInjection(argument: suspend PropertiesNetworkInjectionArgsBuilder.() -> Unit) {
val toBeMapped = PropertiesNetworkInjectionArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.networkInjection = mapped
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("awcbeqfgomgmwoxo")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value Resource tags.
*/
@JvmName("kbmlilwdfrdjjlqv")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param values Resource tags.
*/
@JvmName("qcvekbncujbslpdw")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
internal fun build(): EnterprisePolicyArgs = EnterprisePolicyArgs(
encryption = encryption,
enterprisePolicyName = enterprisePolicyName,
healthStatus = healthStatus,
identity = identity,
kind = kind,
location = location,
lockbox = lockbox,
networkInjection = networkInjection,
resourceGroupName = resourceGroupName,
tags = tags,
)
}