All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.app.kotlin.JobArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.app.kotlin

import com.pulumi.azurenative.app.JobArgs.builder
import com.pulumi.azurenative.app.kotlin.inputs.JobConfigurationArgs
import com.pulumi.azurenative.app.kotlin.inputs.JobConfigurationArgsBuilder
import com.pulumi.azurenative.app.kotlin.inputs.JobTemplateArgs
import com.pulumi.azurenative.app.kotlin.inputs.JobTemplateArgsBuilder
import com.pulumi.azurenative.app.kotlin.inputs.ManagedServiceIdentityArgs
import com.pulumi.azurenative.app.kotlin.inputs.ManagedServiceIdentityArgsBuilder
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

/**
 * Container App Job
 * Azure REST API version: 2023-04-01-preview.
 * Other available API versions: 2023-05-01, 2023-05-02-preview, 2023-08-01-preview, 2023-11-02-preview, 2024-02-02-preview, 2024-03-01.
 * ## Example Usage
 * ### Create or Update Container Apps Job
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var job = new AzureNative.App.Job("job", new()
 *     {
 *         Configuration = new AzureNative.App.Inputs.JobConfigurationArgs
 *         {
 *             ManualTriggerConfig = new AzureNative.App.Inputs.JobConfigurationManualTriggerConfigArgs
 *             {
 *                 Parallelism = 4,
 *                 ReplicaCompletionCount = 1,
 *             },
 *             ReplicaRetryLimit = 10,
 *             ReplicaTimeout = 10,
 *             TriggerType = AzureNative.App.TriggerType.Manual,
 *         },
 *         EnvironmentId = "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
 *         JobName = "testcontainerappsjob0",
 *         Location = "East US",
 *         ResourceGroupName = "rg",
 *         Template = new AzureNative.App.Inputs.JobTemplateArgs
 *         {
 *             Containers = new[]
 *             {
 *                 new AzureNative.App.Inputs.ContainerArgs
 *                 {
 *                     Image = "repo/testcontainerappsjob0:v1",
 *                     Name = "testcontainerappsjob0",
 *                     Probes = new[]
 *                     {
 *                         new AzureNative.App.Inputs.ContainerAppProbeArgs
 *                         {
 *                             HttpGet = new AzureNative.App.Inputs.ContainerAppProbeHttpGetArgs
 *                             {
 *                                 HttpHeaders = new[]
 *                                 {
 *                                     new AzureNative.App.Inputs.ContainerAppProbeHttpHeadersArgs
 *                                     {
 *                                         Name = "Custom-Header",
 *                                         Value = "Awesome",
 *                                     },
 *                                 },
 *                                 Path = "/health",
 *                                 Port = 8080,
 *                             },
 *                             InitialDelaySeconds = 5,
 *                             PeriodSeconds = 3,
 *                             Type = AzureNative.App.Type.Liveness,
 *                         },
 *                     },
 *                 },
 *             },
 *             InitContainers = new[]
 *             {
 *                 new AzureNative.App.Inputs.InitContainerArgs
 *                 {
 *                     Args = new[]
 *                     {
 *                         "-c",
 *                         "while true; do echo hello; sleep 10;done",
 *                     },
 *                     Command = new[]
 *                     {
 *                         "/bin/sh",
 *                     },
 *                     Image = "repo/testcontainerappsjob0:v4",
 *                     Name = "testinitcontainerAppsJob0",
 *                     Resources = new AzureNative.App.Inputs.ContainerResourcesArgs
 *                     {
 *                         Cpu = 0.5,
 *                         Memory = "1Gi",
 *                     },
 *                 },
 *             },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	app "github.com/pulumi/pulumi-azure-native-sdk/app/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := app.NewJob(ctx, "job", &app.JobArgs{
 * 			Configuration: &app.JobConfigurationArgs{
 * 				ManualTriggerConfig: &app.JobConfigurationManualTriggerConfigArgs{
 * 					Parallelism:            pulumi.Int(4),
 * 					ReplicaCompletionCount: pulumi.Int(1),
 * 				},
 * 				ReplicaRetryLimit: pulumi.Int(10),
 * 				ReplicaTimeout:    pulumi.Int(10),
 * 				TriggerType:       pulumi.String(app.TriggerTypeManual),
 * 			},
 * 			EnvironmentId:     pulumi.String("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube"),
 * 			JobName:           pulumi.String("testcontainerappsjob0"),
 * 			Location:          pulumi.String("East US"),
 * 			ResourceGroupName: pulumi.String("rg"),
 * 			Template: &app.JobTemplateArgs{
 * 				Containers: app.ContainerArray{
 * 					&app.ContainerArgs{
 * 						Image: pulumi.String("repo/testcontainerappsjob0:v1"),
 * 						Name:  pulumi.String("testcontainerappsjob0"),
 * 						Probes: app.ContainerAppProbeArray{
 * 							&app.ContainerAppProbeArgs{
 * 								HttpGet: &app.ContainerAppProbeHttpGetArgs{
 * 									HttpHeaders: app.ContainerAppProbeHttpHeadersArray{
 * 										&app.ContainerAppProbeHttpHeadersArgs{
 * 											Name:  pulumi.String("Custom-Header"),
 * 											Value: pulumi.String("Awesome"),
 * 										},
 * 									},
 * 									Path: pulumi.String("/health"),
 * 									Port: pulumi.Int(8080),
 * 								},
 * 								InitialDelaySeconds: pulumi.Int(5),
 * 								PeriodSeconds:       pulumi.Int(3),
 * 								Type:                pulumi.String(app.TypeLiveness),
 * 							},
 * 						},
 * 					},
 * 				},
 * 				InitContainers: app.InitContainerArray{
 * 					&app.InitContainerArgs{
 * 						Args: pulumi.StringArray{
 * 							pulumi.String("-c"),
 * 							pulumi.String("while true; do echo hello; sleep 10;done"),
 * 						},
 * 						Command: pulumi.StringArray{
 * 							pulumi.String("/bin/sh"),
 * 						},
 * 						Image: pulumi.String("repo/testcontainerappsjob0:v4"),
 * 						Name:  pulumi.String("testinitcontainerAppsJob0"),
 * 						Resources: &app.ContainerResourcesArgs{
 * 							Cpu:    pulumi.Float64(0.5),
 * 							Memory: pulumi.String("1Gi"),
 * 						},
 * 					},
 * 				},
 * 			},
 * 		})
 * 		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.app.Job;
 * import com.pulumi.azurenative.app.JobArgs;
 * import com.pulumi.azurenative.app.inputs.JobConfigurationArgs;
 * import com.pulumi.azurenative.app.inputs.JobConfigurationManualTriggerConfigArgs;
 * import com.pulumi.azurenative.app.inputs.JobTemplateArgs;
 * 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 job = new Job("job", JobArgs.builder()
 *             .configuration(JobConfigurationArgs.builder()
 *                 .manualTriggerConfig(JobConfigurationManualTriggerConfigArgs.builder()
 *                     .parallelism(4)
 *                     .replicaCompletionCount(1)
 *                     .build())
 *                 .replicaRetryLimit(10)
 *                 .replicaTimeout(10)
 *                 .triggerType("Manual")
 *                 .build())
 *             .environmentId("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube")
 *             .jobName("testcontainerappsjob0")
 *             .location("East US")
 *             .resourceGroupName("rg")
 *             .template(JobTemplateArgs.builder()
 *                 .containers(ContainerArgs.builder()
 *                     .image("repo/testcontainerappsjob0:v1")
 *                     .name("testcontainerappsjob0")
 *                     .probes(ContainerAppProbeArgs.builder()
 *                         .httpGet(ContainerAppProbeHttpGetArgs.builder()
 *                             .httpHeaders(ContainerAppProbeHttpHeadersArgs.builder()
 *                                 .name("Custom-Header")
 *                                 .value("Awesome")
 *                                 .build())
 *                             .path("/health")
 *                             .port(8080)
 *                             .build())
 *                         .initialDelaySeconds(5)
 *                         .periodSeconds(3)
 *                         .type("Liveness")
 *                         .build())
 *                     .build())
 *                 .initContainers(InitContainerArgs.builder()
 *                     .args(
 *                         "-c",
 *                         "while true; do echo hello; sleep 10;done")
 *                     .command("/bin/sh")
 *                     .image("repo/testcontainerappsjob0:v4")
 *                     .name("testinitcontainerAppsJob0")
 *                     .resources(ContainerResourcesArgs.builder()
 *                         .cpu(0.5)
 *                         .memory("1Gi")
 *                         .build())
 *                     .build())
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ### Create or Update Container Apps Job With Event Driven Trigger
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var job = new AzureNative.App.Job("job", new()
 *     {
 *         Configuration = new AzureNative.App.Inputs.JobConfigurationArgs
 *         {
 *             EventTriggerConfig = new AzureNative.App.Inputs.JobConfigurationEventTriggerConfigArgs
 *             {
 *                 Parallelism = 4,
 *                 ReplicaCompletionCount = 1,
 *                 Scale = new AzureNative.App.Inputs.JobScaleArgs
 *                 {
 *                     MaxExecutions = 5,
 *                     MinExecutions = 1,
 *                     PollingInterval = 40,
 *                     Rules = new[]
 *                     {
 *                         new AzureNative.App.Inputs.JobScaleRuleArgs
 *                         {
 *                             Metadata = new Dictionary
 *                             {
 *                                 ["topicName"] = "my-topic",
 *                             },
 *                             Name = "servicebuscalingrule",
 *                             Type = "azure-servicebus",
 *                         },
 *                     },
 *                 },
 *             },
 *             ReplicaRetryLimit = 10,
 *             ReplicaTimeout = 10,
 *             TriggerType = AzureNative.App.TriggerType.Event,
 *         },
 *         EnvironmentId = "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
 *         JobName = "testcontainerappsjob0",
 *         Location = "East US",
 *         ResourceGroupName = "rg",
 *         Template = new AzureNative.App.Inputs.JobTemplateArgs
 *         {
 *             Containers = new[]
 *             {
 *                 new AzureNative.App.Inputs.ContainerArgs
 *                 {
 *                     Image = "repo/testcontainerappsjob0:v1",
 *                     Name = "testcontainerappsjob0",
 *                 },
 *             },
 *             InitContainers = new[]
 *             {
 *                 new AzureNative.App.Inputs.InitContainerArgs
 *                 {
 *                     Args = new[]
 *                     {
 *                         "-c",
 *                         "while true; do echo hello; sleep 10;done",
 *                     },
 *                     Command = new[]
 *                     {
 *                         "/bin/sh",
 *                     },
 *                     Image = "repo/testcontainerappsjob0:v4",
 *                     Name = "testinitcontainerAppsJob0",
 *                     Resources = new AzureNative.App.Inputs.ContainerResourcesArgs
 *                     {
 *                         Cpu = 0.5,
 *                         Memory = "1Gi",
 *                     },
 *                 },
 *             },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	app "github.com/pulumi/pulumi-azure-native-sdk/app/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := app.NewJob(ctx, "job", &app.JobArgs{
 * 			Configuration: &app.JobConfigurationArgs{
 * 				EventTriggerConfig: &app.JobConfigurationEventTriggerConfigArgs{
 * 					Parallelism:            pulumi.Int(4),
 * 					ReplicaCompletionCount: pulumi.Int(1),
 * 					Scale: &app.JobScaleArgs{
 * 						MaxExecutions:   pulumi.Int(5),
 * 						MinExecutions:   pulumi.Int(1),
 * 						PollingInterval: pulumi.Int(40),
 * 						Rules: app.JobScaleRuleArray{
 * 							&app.JobScaleRuleArgs{
 * 								Metadata: pulumi.Any(map[string]interface{}{
 * 									"topicName": "my-topic",
 * 								}),
 * 								Name: pulumi.String("servicebuscalingrule"),
 * 								Type: pulumi.String("azure-servicebus"),
 * 							},
 * 						},
 * 					},
 * 				},
 * 				ReplicaRetryLimit: pulumi.Int(10),
 * 				ReplicaTimeout:    pulumi.Int(10),
 * 				TriggerType:       pulumi.String(app.TriggerTypeEvent),
 * 			},
 * 			EnvironmentId:     pulumi.String("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube"),
 * 			JobName:           pulumi.String("testcontainerappsjob0"),
 * 			Location:          pulumi.String("East US"),
 * 			ResourceGroupName: pulumi.String("rg"),
 * 			Template: &app.JobTemplateArgs{
 * 				Containers: app.ContainerArray{
 * 					&app.ContainerArgs{
 * 						Image: pulumi.String("repo/testcontainerappsjob0:v1"),
 * 						Name:  pulumi.String("testcontainerappsjob0"),
 * 					},
 * 				},
 * 				InitContainers: app.InitContainerArray{
 * 					&app.InitContainerArgs{
 * 						Args: pulumi.StringArray{
 * 							pulumi.String("-c"),
 * 							pulumi.String("while true; do echo hello; sleep 10;done"),
 * 						},
 * 						Command: pulumi.StringArray{
 * 							pulumi.String("/bin/sh"),
 * 						},
 * 						Image: pulumi.String("repo/testcontainerappsjob0:v4"),
 * 						Name:  pulumi.String("testinitcontainerAppsJob0"),
 * 						Resources: &app.ContainerResourcesArgs{
 * 							Cpu:    pulumi.Float64(0.5),
 * 							Memory: pulumi.String("1Gi"),
 * 						},
 * 					},
 * 				},
 * 			},
 * 		})
 * 		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.app.Job;
 * import com.pulumi.azurenative.app.JobArgs;
 * import com.pulumi.azurenative.app.inputs.JobConfigurationArgs;
 * import com.pulumi.azurenative.app.inputs.JobConfigurationEventTriggerConfigArgs;
 * import com.pulumi.azurenative.app.inputs.JobScaleArgs;
 * import com.pulumi.azurenative.app.inputs.JobTemplateArgs;
 * 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 job = new Job("job", JobArgs.builder()
 *             .configuration(JobConfigurationArgs.builder()
 *                 .eventTriggerConfig(JobConfigurationEventTriggerConfigArgs.builder()
 *                     .parallelism(4)
 *                     .replicaCompletionCount(1)
 *                     .scale(JobScaleArgs.builder()
 *                         .maxExecutions(5)
 *                         .minExecutions(1)
 *                         .pollingInterval(40)
 *                         .rules(JobScaleRuleArgs.builder()
 *                             .metadata(Map.of("topicName", "my-topic"))
 *                             .name("servicebuscalingrule")
 *                             .type("azure-servicebus")
 *                             .build())
 *                         .build())
 *                     .build())
 *                 .replicaRetryLimit(10)
 *                 .replicaTimeout(10)
 *                 .triggerType("Event")
 *                 .build())
 *             .environmentId("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube")
 *             .jobName("testcontainerappsjob0")
 *             .location("East US")
 *             .resourceGroupName("rg")
 *             .template(JobTemplateArgs.builder()
 *                 .containers(ContainerArgs.builder()
 *                     .image("repo/testcontainerappsjob0:v1")
 *                     .name("testcontainerappsjob0")
 *                     .build())
 *                 .initContainers(InitContainerArgs.builder()
 *                     .args(
 *                         "-c",
 *                         "while true; do echo hello; sleep 10;done")
 *                     .command("/bin/sh")
 *                     .image("repo/testcontainerappsjob0:v4")
 *                     .name("testinitcontainerAppsJob0")
 *                     .resources(ContainerResourcesArgs.builder()
 *                         .cpu(0.5)
 *                         .memory("1Gi")
 *                         .build())
 *                     .build())
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:app:Job testcontainerappsjob0 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/jobs/{jobName}
 * ```
 * @property configuration Container Apps Job configuration properties.
 * @property environmentId Resource ID of environment.
 * @property identity Managed identities needed by a container app job to interact with other Azure services to not maintain any secrets or credentials in code.
 * @property jobName Job Name
 * @property location The geo-location where the resource lives
 * @property resourceGroupName The name of the resource group. The name is case insensitive.
 * @property tags Resource tags.
 * @property template Container Apps job definition.
 * @property workloadProfileName Workload profile name to pin for container apps job execution.
 */
public data class JobArgs(
    public val configuration: Output? = null,
    public val environmentId: Output? = null,
    public val identity: Output? = null,
    public val jobName: Output? = null,
    public val location: Output? = null,
    public val resourceGroupName: Output? = null,
    public val tags: Output>? = null,
    public val template: Output? = null,
    public val workloadProfileName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.app.JobArgs =
        com.pulumi.azurenative.app.JobArgs.builder()
            .configuration(configuration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .environmentId(environmentId?.applyValue({ args0 -> args0 }))
            .identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .jobName(jobName?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .template(template?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .workloadProfileName(workloadProfileName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [JobArgs].
 */
@PulumiTagMarker
public class JobArgsBuilder internal constructor() {
    private var configuration: Output? = null

    private var environmentId: Output? = null

    private var identity: Output? = null

    private var jobName: Output? = null

    private var location: Output? = null

    private var resourceGroupName: Output? = null

    private var tags: Output>? = null

    private var template: Output? = null

    private var workloadProfileName: Output? = null

    /**
     * @param value Container Apps Job configuration properties.
     */
    @JvmName("gtmtvbubsomdaekf")
    public suspend fun configuration(`value`: Output) {
        this.configuration = value
    }

    /**
     * @param value Resource ID of environment.
     */
    @JvmName("nderjverrxfasysj")
    public suspend fun environmentId(`value`: Output) {
        this.environmentId = value
    }

    /**
     * @param value Managed identities needed by a container app job to interact with other Azure services to not maintain any secrets or credentials in code.
     */
    @JvmName("odfclwcdjaasoxww")
    public suspend fun identity(`value`: Output) {
        this.identity = value
    }

    /**
     * @param value Job Name
     */
    @JvmName("ngffavpnthuuacdf")
    public suspend fun jobName(`value`: Output) {
        this.jobName = value
    }

    /**
     * @param value The geo-location where the resource lives
     */
    @JvmName("bjjvefukykvgkyen")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("cfaaveuevdlroiur")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value Resource tags.
     */
    @JvmName("kamoxfabwydibbhj")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Container Apps job definition.
     */
    @JvmName("dlakllgxnnwfeqxm")
    public suspend fun template(`value`: Output) {
        this.template = value
    }

    /**
     * @param value Workload profile name to pin for container apps job execution.
     */
    @JvmName("foemfikxitveuewl")
    public suspend fun workloadProfileName(`value`: Output) {
        this.workloadProfileName = value
    }

    /**
     * @param value Container Apps Job configuration properties.
     */
    @JvmName("divpriakkojvathr")
    public suspend fun configuration(`value`: JobConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.configuration = mapped
    }

    /**
     * @param argument Container Apps Job configuration properties.
     */
    @JvmName("jnqdeinvyxqcuedx")
    public suspend fun configuration(argument: suspend JobConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = JobConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.configuration = mapped
    }

    /**
     * @param value Resource ID of environment.
     */
    @JvmName("xvbovvlrwpsaimfj")
    public suspend fun environmentId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.environmentId = mapped
    }

    /**
     * @param value Managed identities needed by a container app job to interact with other Azure services to not maintain any secrets or credentials in code.
     */
    @JvmName("nmwroymtfddbrqah")
    public suspend fun identity(`value`: ManagedServiceIdentityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identity = mapped
    }

    /**
     * @param argument Managed identities needed by a container app job to interact with other Azure services to not maintain any secrets or credentials in code.
     */
    @JvmName("vjsxptrcewxrytru")
    public suspend fun identity(argument: suspend ManagedServiceIdentityArgsBuilder.() -> Unit) {
        val toBeMapped = ManagedServiceIdentityArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.identity = mapped
    }

    /**
     * @param value Job Name
     */
    @JvmName("saypidguhungvnqv")
    public suspend fun jobName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.jobName = mapped
    }

    /**
     * @param value The geo-location where the resource lives
     */
    @JvmName("epumaakggtcvwsbc")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("lyaydkulivddmmos")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value Resource tags.
     */
    @JvmName("ssvfdpmgnxnfavip")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Resource tags.
     */
    @JvmName("mstavunkxqbxbolh")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Container Apps job definition.
     */
    @JvmName("guscrknmkslcmduc")
    public suspend fun template(`value`: JobTemplateArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.template = mapped
    }

    /**
     * @param argument Container Apps job definition.
     */
    @JvmName("ivqgyeuybmujmchr")
    public suspend fun template(argument: suspend JobTemplateArgsBuilder.() -> Unit) {
        val toBeMapped = JobTemplateArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.template = mapped
    }

    /**
     * @param value Workload profile name to pin for container apps job execution.
     */
    @JvmName("ruehudrlfgavgtjf")
    public suspend fun workloadProfileName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.workloadProfileName = mapped
    }

    internal fun build(): JobArgs = JobArgs(
        configuration = configuration,
        environmentId = environmentId,
        identity = identity,
        jobName = jobName,
        location = location,
        resourceGroupName = resourceGroupName,
        tags = tags,
        template = template,
        workloadProfileName = workloadProfileName,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy