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.automation.kotlin.AutomationAccountArgs.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.automation.kotlin
import com.pulumi.azurenative.automation.AutomationAccountArgs.builder
import com.pulumi.azurenative.automation.kotlin.inputs.EncryptionPropertiesArgs
import com.pulumi.azurenative.automation.kotlin.inputs.EncryptionPropertiesArgsBuilder
import com.pulumi.azurenative.automation.kotlin.inputs.IdentityArgs
import com.pulumi.azurenative.automation.kotlin.inputs.IdentityArgsBuilder
import com.pulumi.azurenative.automation.kotlin.inputs.SkuArgs
import com.pulumi.azurenative.automation.kotlin.inputs.SkuArgsBuilder
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Definition of the automation account type.
* Azure REST API version: 2022-08-08. Prior API version in Azure Native 1.x: 2021-06-22.
* Other available API versions: 2023-05-15-preview, 2023-11-01.
* ## Example Usage
* ### Create or update automation account
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var automationAccount = new AzureNative.Automation.AutomationAccount("automationAccount", new()
* {
* AutomationAccountName = "myAutomationAccount9",
* Location = "East US 2",
* Name = "myAutomationAccount9",
* ResourceGroupName = "rg",
* Sku = new AzureNative.Automation.Inputs.SkuArgs
* {
* Name = AzureNative.Automation.SkuNameEnum.Free,
* },
* });
* });
* ```
* ```go
* package main
* import (
* automation "github.com/pulumi/pulumi-azure-native-sdk/automation/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := automation.NewAutomationAccount(ctx, "automationAccount", &automation.AutomationAccountArgs{
* AutomationAccountName: pulumi.String("myAutomationAccount9"),
* Location: pulumi.String("East US 2"),
* Name: pulumi.String("myAutomationAccount9"),
* ResourceGroupName: pulumi.String("rg"),
* Sku: &automation.SkuArgs{
* Name: pulumi.String(automation.SkuNameEnumFree),
* },
* })
* 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.automation.AutomationAccount;
* import com.pulumi.azurenative.automation.AutomationAccountArgs;
* import com.pulumi.azurenative.automation.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 automationAccount = new AutomationAccount("automationAccount", AutomationAccountArgs.builder()
* .automationAccountName("myAutomationAccount9")
* .location("East US 2")
* .name("myAutomationAccount9")
* .resourceGroupName("rg")
* .sku(SkuArgs.builder()
* .name("Free")
* .build())
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:automation:AutomationAccount ContoseAutomationAccount /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}
* ```
* @property automationAccountName The name of the automation account.
* @property disableLocalAuth Indicates whether requests using non-AAD authentication are blocked
* @property encryption Set the encryption properties for the automation account
* @property identity Sets the identity property for automation account
* @property location Gets or sets the location of the resource.
* @property name Gets or sets name of the resource.
* @property publicNetworkAccess Indicates whether traffic on the non-ARM endpoint (Webhook/Agent) is allowed from the public internet
* @property resourceGroupName Name of an Azure Resource group.
* @property sku Gets or sets account SKU.
* @property tags Gets or sets the tags attached to the resource.
*/
public data class AutomationAccountArgs(
public val automationAccountName: Output? = null,
public val disableLocalAuth: Output? = null,
public val encryption: Output? = null,
public val identity: Output? = null,
public val location: Output? = null,
public val name: Output? = null,
public val publicNetworkAccess: Output? = null,
public val resourceGroupName: Output? = null,
public val sku: Output? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.automation.AutomationAccountArgs =
com.pulumi.azurenative.automation.AutomationAccountArgs.builder()
.automationAccountName(automationAccountName?.applyValue({ args0 -> args0 }))
.disableLocalAuth(disableLocalAuth?.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 }))
.name(name?.applyValue({ args0 -> args0 }))
.publicNetworkAccess(publicNetworkAccess?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.sku(sku?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}),
).build()
}
/**
* Builder for [AutomationAccountArgs].
*/
@PulumiTagMarker
public class AutomationAccountArgsBuilder internal constructor() {
private var automationAccountName: Output? = null
private var disableLocalAuth: Output? = null
private var encryption: Output? = null
private var identity: Output? = null
private var location: Output? = null
private var name: Output? = null
private var publicNetworkAccess: Output? = null
private var resourceGroupName: Output? = null
private var sku: Output? = null
private var tags: Output>? = null
/**
* @param value The name of the automation account.
*/
@JvmName("gqhpjathjjpfhhjq")
public suspend fun automationAccountName(`value`: Output) {
this.automationAccountName = value
}
/**
* @param value Indicates whether requests using non-AAD authentication are blocked
*/
@JvmName("dqgxwvdxhhemyaey")
public suspend fun disableLocalAuth(`value`: Output) {
this.disableLocalAuth = value
}
/**
* @param value Set the encryption properties for the automation account
*/
@JvmName("ibqearwtqsgqpsxp")
public suspend fun encryption(`value`: Output) {
this.encryption = value
}
/**
* @param value Sets the identity property for automation account
*/
@JvmName("hoojgwrtulfsitbh")
public suspend fun identity(`value`: Output) {
this.identity = value
}
/**
* @param value Gets or sets the location of the resource.
*/
@JvmName("qvwksljvnqygptki")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value Gets or sets name of the resource.
*/
@JvmName("iqnqiplwcssiqmry")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Indicates whether traffic on the non-ARM endpoint (Webhook/Agent) is allowed from the public internet
*/
@JvmName("wjhipueevsgrbogk")
public suspend fun publicNetworkAccess(`value`: Output) {
this.publicNetworkAccess = value
}
/**
* @param value Name of an Azure Resource group.
*/
@JvmName("cqskfvfdwqqgadxo")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value Gets or sets account SKU.
*/
@JvmName("sebeognofrlnvybl")
public suspend fun sku(`value`: Output) {
this.sku = value
}
/**
* @param value Gets or sets the tags attached to the resource.
*/
@JvmName("hdxxnhygldcbokbg")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value The name of the automation account.
*/
@JvmName("vnpuyrkhntjrdylf")
public suspend fun automationAccountName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.automationAccountName = mapped
}
/**
* @param value Indicates whether requests using non-AAD authentication are blocked
*/
@JvmName("ajortdkmslefdttd")
public suspend fun disableLocalAuth(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.disableLocalAuth = mapped
}
/**
* @param value Set the encryption properties for the automation account
*/
@JvmName("aomqnpomphwgyopp")
public suspend fun encryption(`value`: EncryptionPropertiesArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.encryption = mapped
}
/**
* @param argument Set the encryption properties for the automation account
*/
@JvmName("ydmpwrjgryejnobn")
public suspend fun encryption(argument: suspend EncryptionPropertiesArgsBuilder.() -> Unit) {
val toBeMapped = EncryptionPropertiesArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.encryption = mapped
}
/**
* @param value Sets the identity property for automation account
*/
@JvmName("yulqavlgscefvtmc")
public suspend fun identity(`value`: IdentityArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.identity = mapped
}
/**
* @param argument Sets the identity property for automation account
*/
@JvmName("xonhciirusxgbmmu")
public suspend fun identity(argument: suspend IdentityArgsBuilder.() -> Unit) {
val toBeMapped = IdentityArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.identity = mapped
}
/**
* @param value Gets or sets the location of the resource.
*/
@JvmName("bvpviijlqcwjsmhx")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value Gets or sets name of the resource.
*/
@JvmName("vndydwoeiicjxnlj")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Indicates whether traffic on the non-ARM endpoint (Webhook/Agent) is allowed from the public internet
*/
@JvmName("osoyqtqjwshnbbfa")
public suspend fun publicNetworkAccess(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.publicNetworkAccess = mapped
}
/**
* @param value Name of an Azure Resource group.
*/
@JvmName("exykwxxpmwbderrg")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value Gets or sets account SKU.
*/
@JvmName("athgulnycxwecrsq")
public suspend fun sku(`value`: SkuArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sku = mapped
}
/**
* @param argument Gets or sets account SKU.
*/
@JvmName("mpqlpceahijkbdbp")
public suspend fun sku(argument: suspend SkuArgsBuilder.() -> Unit) {
val toBeMapped = SkuArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.sku = mapped
}
/**
* @param value Gets or sets the tags attached to the resource.
*/
@JvmName("kvvqfybuyrpnjnvh")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param values Gets or sets the tags attached to the resource.
*/
@JvmName("fqvxhsalbyqksotb")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
internal fun build(): AutomationAccountArgs = AutomationAccountArgs(
automationAccountName = automationAccountName,
disableLocalAuth = disableLocalAuth,
encryption = encryption,
identity = identity,
location = location,
name = name,
publicNetworkAccess = publicNetworkAccess,
resourceGroupName = resourceGroupName,
sku = sku,
tags = tags,
)
}