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

com.pulumi.aws.imagebuilder.kotlin.ContainerRecipeArgs.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.

There is a newer version: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.imagebuilder.kotlin

import com.pulumi.aws.imagebuilder.ContainerRecipeArgs.builder
import com.pulumi.aws.imagebuilder.kotlin.inputs.ContainerRecipeComponentArgs
import com.pulumi.aws.imagebuilder.kotlin.inputs.ContainerRecipeComponentArgsBuilder
import com.pulumi.aws.imagebuilder.kotlin.inputs.ContainerRecipeInstanceConfigurationArgs
import com.pulumi.aws.imagebuilder.kotlin.inputs.ContainerRecipeInstanceConfigurationArgsBuilder
import com.pulumi.aws.imagebuilder.kotlin.inputs.ContainerRecipeTargetRepositoryArgs
import com.pulumi.aws.imagebuilder.kotlin.inputs.ContainerRecipeTargetRepositoryArgsBuilder
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.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages an Image Builder Container Recipe.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as aws from "@pulumi/aws";
 * const example = new aws.imagebuilder.ContainerRecipe("example", {
 *     name: "example",
 *     version: "1.0.0",
 *     containerType: "DOCKER",
 *     parentImage: "arn:aws:imagebuilder:eu-central-1:aws:image/amazon-linux-x86-latest/x.x.x",
 *     targetRepository: {
 *         repositoryName: exampleAwsEcrRepository.name,
 *         service: "ECR",
 *     },
 *     components: [{
 *         componentArn: exampleAwsImagebuilderComponent.arn,
 *         parameters: [
 *             {
 *                 name: "Parameter1",
 *                 value: "Value1",
 *             },
 *             {
 *                 name: "Parameter2",
 *                 value: "Value2",
 *             },
 *         ],
 *     }],
 *     dockerfileTemplateData: `FROM {{{ imagebuilder:parentImage }}}
 * {{{ imagebuilder:environments }}}
 * {{{ imagebuilder:components }}}
 * `,
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_aws as aws
 * example = aws.imagebuilder.ContainerRecipe("example",
 *     name="example",
 *     version="1.0.0",
 *     container_type="DOCKER",
 *     parent_image="arn:aws:imagebuilder:eu-central-1:aws:image/amazon-linux-x86-latest/x.x.x",
 *     target_repository={
 *         "repository_name": example_aws_ecr_repository["name"],
 *         "service": "ECR",
 *     },
 *     components=[{
 *         "component_arn": example_aws_imagebuilder_component["arn"],
 *         "parameters": [
 *             {
 *                 "name": "Parameter1",
 *                 "value": "Value1",
 *             },
 *             {
 *                 "name": "Parameter2",
 *                 "value": "Value2",
 *             },
 *         ],
 *     }],
 *     dockerfile_template_data="""FROM {{{ imagebuilder:parentImage }}}
 * {{{ imagebuilder:environments }}}
 * {{{ imagebuilder:components }}}
 * """)
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Aws = Pulumi.Aws;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Aws.ImageBuilder.ContainerRecipe("example", new()
 *     {
 *         Name = "example",
 *         Version = "1.0.0",
 *         ContainerType = "DOCKER",
 *         ParentImage = "arn:aws:imagebuilder:eu-central-1:aws:image/amazon-linux-x86-latest/x.x.x",
 *         TargetRepository = new Aws.ImageBuilder.Inputs.ContainerRecipeTargetRepositoryArgs
 *         {
 *             RepositoryName = exampleAwsEcrRepository.Name,
 *             Service = "ECR",
 *         },
 *         Components = new[]
 *         {
 *             new Aws.ImageBuilder.Inputs.ContainerRecipeComponentArgs
 *             {
 *                 ComponentArn = exampleAwsImagebuilderComponent.Arn,
 *                 Parameters = new[]
 *                 {
 *                     new Aws.ImageBuilder.Inputs.ContainerRecipeComponentParameterArgs
 *                     {
 *                         Name = "Parameter1",
 *                         Value = "Value1",
 *                     },
 *                     new Aws.ImageBuilder.Inputs.ContainerRecipeComponentParameterArgs
 *                     {
 *                         Name = "Parameter2",
 *                         Value = "Value2",
 *                     },
 *                 },
 *             },
 *         },
 *         DockerfileTemplateData = @"FROM {{{ imagebuilder:parentImage }}}
 * {{{ imagebuilder:environments }}}
 * {{{ imagebuilder:components }}}
 * ",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/imagebuilder"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := imagebuilder.NewContainerRecipe(ctx, "example", &imagebuilder.ContainerRecipeArgs{
 * 			Name:          pulumi.String("example"),
 * 			Version:       pulumi.String("1.0.0"),
 * 			ContainerType: pulumi.String("DOCKER"),
 * 			ParentImage:   pulumi.String("arn:aws:imagebuilder:eu-central-1:aws:image/amazon-linux-x86-latest/x.x.x"),
 * 			TargetRepository: &imagebuilder.ContainerRecipeTargetRepositoryArgs{
 * 				RepositoryName: pulumi.Any(exampleAwsEcrRepository.Name),
 * 				Service:        pulumi.String("ECR"),
 * 			},
 * 			Components: imagebuilder.ContainerRecipeComponentArray{
 * 				&imagebuilder.ContainerRecipeComponentArgs{
 * 					ComponentArn: pulumi.Any(exampleAwsImagebuilderComponent.Arn),
 * 					Parameters: imagebuilder.ContainerRecipeComponentParameterArray{
 * 						&imagebuilder.ContainerRecipeComponentParameterArgs{
 * 							Name:  pulumi.String("Parameter1"),
 * 							Value: pulumi.String("Value1"),
 * 						},
 * 						&imagebuilder.ContainerRecipeComponentParameterArgs{
 * 							Name:  pulumi.String("Parameter2"),
 * 							Value: pulumi.String("Value2"),
 * 						},
 * 					},
 * 				},
 * 			},
 * 			DockerfileTemplateData: pulumi.String("FROM {{{ imagebuilder:parentImage }}}\n{{{ imagebuilder:environments }}}\n{{{ imagebuilder:components }}}\n"),
 * 		})
 * 		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.aws.imagebuilder.ContainerRecipe;
 * import com.pulumi.aws.imagebuilder.ContainerRecipeArgs;
 * import com.pulumi.aws.imagebuilder.inputs.ContainerRecipeTargetRepositoryArgs;
 * import com.pulumi.aws.imagebuilder.inputs.ContainerRecipeComponentArgs;
 * 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 ContainerRecipe("example", ContainerRecipeArgs.builder()
 *             .name("example")
 *             .version("1.0.0")
 *             .containerType("DOCKER")
 *             .parentImage("arn:aws:imagebuilder:eu-central-1:aws:image/amazon-linux-x86-latest/x.x.x")
 *             .targetRepository(ContainerRecipeTargetRepositoryArgs.builder()
 *                 .repositoryName(exampleAwsEcrRepository.name())
 *                 .service("ECR")
 *                 .build())
 *             .components(ContainerRecipeComponentArgs.builder()
 *                 .componentArn(exampleAwsImagebuilderComponent.arn())
 *                 .parameters(
 *                     ContainerRecipeComponentParameterArgs.builder()
 *                         .name("Parameter1")
 *                         .value("Value1")
 *                         .build(),
 *                     ContainerRecipeComponentParameterArgs.builder()
 *                         .name("Parameter2")
 *                         .value("Value2")
 *                         .build())
 *                 .build())
 *             .dockerfileTemplateData("""
 * FROM {{{ imagebuilder:parentImage }}}
 * {{{ imagebuilder:environments }}}
 * {{{ imagebuilder:components }}}
 *             """)
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: aws:imagebuilder:ContainerRecipe
 *     properties:
 *       name: example
 *       version: 1.0.0
 *       containerType: DOCKER
 *       parentImage: arn:aws:imagebuilder:eu-central-1:aws:image/amazon-linux-x86-latest/x.x.x
 *       targetRepository:
 *         repositoryName: ${exampleAwsEcrRepository.name}
 *         service: ECR
 *       components:
 *         - componentArn: ${exampleAwsImagebuilderComponent.arn}
 *           parameters:
 *             - name: Parameter1
 *               value: Value1
 *             - name: Parameter2
 *               value: Value2
 *       dockerfileTemplateData: |
 *         FROM {{{ imagebuilder:parentImage }}}
 *         {{{ imagebuilder:environments }}}
 *         {{{ imagebuilder:components }}}
 * ```
 * 
 * ## Import
 * Using `pulumi import`, import `aws_imagebuilder_container_recipe` resources using the Amazon Resource Name (ARN). For example:
 * ```sh
 * $ pulumi import aws:imagebuilder/containerRecipe:ContainerRecipe example arn:aws:imagebuilder:us-east-1:123456789012:container-recipe/example/1.0.0
 * ```
 * @property components Ordered configuration block(s) with components for the container recipe. Detailed below.
 * @property containerType The type of the container to create. Valid values: `DOCKER`.
 * @property description The description of the container recipe.
 * @property dockerfileTemplateData The Dockerfile template used to build the image as an inline data blob.
 * @property dockerfileTemplateUri The Amazon S3 URI for the Dockerfile that will be used to build the container image.
 * @property instanceConfiguration Configuration block used to configure an instance for building and testing container images. Detailed below.
 * @property kmsKeyId The KMS key used to encrypt the container image.
 * @property name The name of the container recipe.
 * @property parentImage The base image for the container recipe.
 * @property platformOverride Specifies the operating system platform when you use a custom base image.
 * @property tags Key-value map of resource tags for the container recipe. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
 * @property targetRepository The destination repository for the container image. Detailed below.
 * @property version Version of the container recipe.
 * The following attributes are optional:
 * @property workingDirectory The working directory to be used during build and test workflows.
 */
public data class ContainerRecipeArgs(
    public val components: Output>? = null,
    public val containerType: Output? = null,
    public val description: Output? = null,
    public val dockerfileTemplateData: Output? = null,
    public val dockerfileTemplateUri: Output? = null,
    public val instanceConfiguration: Output? = null,
    public val kmsKeyId: Output? = null,
    public val name: Output? = null,
    public val parentImage: Output? = null,
    public val platformOverride: Output? = null,
    public val tags: Output>? = null,
    public val targetRepository: Output? = null,
    public val version: Output? = null,
    public val workingDirectory: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.imagebuilder.ContainerRecipeArgs =
        com.pulumi.aws.imagebuilder.ContainerRecipeArgs.builder()
            .components(
                components?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .containerType(containerType?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .dockerfileTemplateData(dockerfileTemplateData?.applyValue({ args0 -> args0 }))
            .dockerfileTemplateUri(dockerfileTemplateUri?.applyValue({ args0 -> args0 }))
            .instanceConfiguration(
                instanceConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .kmsKeyId(kmsKeyId?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .parentImage(parentImage?.applyValue({ args0 -> args0 }))
            .platformOverride(platformOverride?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .targetRepository(targetRepository?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .version(version?.applyValue({ args0 -> args0 }))
            .workingDirectory(workingDirectory?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ContainerRecipeArgs].
 */
@PulumiTagMarker
public class ContainerRecipeArgsBuilder internal constructor() {
    private var components: Output>? = null

    private var containerType: Output? = null

    private var description: Output? = null

    private var dockerfileTemplateData: Output? = null

    private var dockerfileTemplateUri: Output? = null

    private var instanceConfiguration: Output? = null

    private var kmsKeyId: Output? = null

    private var name: Output? = null

    private var parentImage: Output? = null

    private var platformOverride: Output? = null

    private var tags: Output>? = null

    private var targetRepository: Output? = null

    private var version: Output? = null

    private var workingDirectory: Output? = null

    /**
     * @param value Ordered configuration block(s) with components for the container recipe. Detailed below.
     */
    @JvmName("vlmkqjnjqmtwiepg")
    public suspend fun components(`value`: Output>) {
        this.components = value
    }

    @JvmName("vstkxgbwvkdeytjc")
    public suspend fun components(vararg values: Output) {
        this.components = Output.all(values.asList())
    }

    /**
     * @param values Ordered configuration block(s) with components for the container recipe. Detailed below.
     */
    @JvmName("vweasgntpnbncyvb")
    public suspend fun components(values: List>) {
        this.components = Output.all(values)
    }

    /**
     * @param value The type of the container to create. Valid values: `DOCKER`.
     */
    @JvmName("jkapujtlafsitxjs")
    public suspend fun containerType(`value`: Output) {
        this.containerType = value
    }

    /**
     * @param value The description of the container recipe.
     */
    @JvmName("pvnduwikaemrbvfb")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The Dockerfile template used to build the image as an inline data blob.
     */
    @JvmName("mkbrgfvyotrtfuvg")
    public suspend fun dockerfileTemplateData(`value`: Output) {
        this.dockerfileTemplateData = value
    }

    /**
     * @param value The Amazon S3 URI for the Dockerfile that will be used to build the container image.
     */
    @JvmName("vhkshwduigaktkaj")
    public suspend fun dockerfileTemplateUri(`value`: Output) {
        this.dockerfileTemplateUri = value
    }

    /**
     * @param value Configuration block used to configure an instance for building and testing container images. Detailed below.
     */
    @JvmName("vnlytigajuckfxwy")
    public suspend fun instanceConfiguration(`value`: Output) {
        this.instanceConfiguration = value
    }

    /**
     * @param value The KMS key used to encrypt the container image.
     */
    @JvmName("qomylqrxxdhlcrlo")
    public suspend fun kmsKeyId(`value`: Output) {
        this.kmsKeyId = value
    }

    /**
     * @param value The name of the container recipe.
     */
    @JvmName("wrhxpnqgmlsgpdsa")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The base image for the container recipe.
     */
    @JvmName("wradsjyhaywdjahq")
    public suspend fun parentImage(`value`: Output) {
        this.parentImage = value
    }

    /**
     * @param value Specifies the operating system platform when you use a custom base image.
     */
    @JvmName("ujvgccwgxwjcdyym")
    public suspend fun platformOverride(`value`: Output) {
        this.platformOverride = value
    }

    /**
     * @param value Key-value map of resource tags for the container recipe. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     */
    @JvmName("uppkwrualxstfoan")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The destination repository for the container image. Detailed below.
     */
    @JvmName("bbrvbtvbnewkajyb")
    public suspend fun targetRepository(`value`: Output) {
        this.targetRepository = value
    }

    /**
     * @param value Version of the container recipe.
     * The following attributes are optional:
     */
    @JvmName("hqjqavfusncskgvy")
    public suspend fun version(`value`: Output) {
        this.version = value
    }

    /**
     * @param value The working directory to be used during build and test workflows.
     */
    @JvmName("gbigttpkwywivobc")
    public suspend fun workingDirectory(`value`: Output) {
        this.workingDirectory = value
    }

    /**
     * @param value Ordered configuration block(s) with components for the container recipe. Detailed below.
     */
    @JvmName("xlbmjyiwpsenvwkb")
    public suspend fun components(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.components = mapped
    }

    /**
     * @param argument Ordered configuration block(s) with components for the container recipe. Detailed below.
     */
    @JvmName("xbgrsnporhgivupc")
    public suspend fun components(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ContainerRecipeComponentArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.components = mapped
    }

    /**
     * @param argument Ordered configuration block(s) with components for the container recipe. Detailed below.
     */
    @JvmName("okpjhvuxlkgmqkvw")
    public suspend fun components(vararg argument: suspend ContainerRecipeComponentArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ContainerRecipeComponentArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.components = mapped
    }

    /**
     * @param argument Ordered configuration block(s) with components for the container recipe. Detailed below.
     */
    @JvmName("dyvjmlbdaugdmgjk")
    public suspend fun components(argument: suspend ContainerRecipeComponentArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ContainerRecipeComponentArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.components = mapped
    }

    /**
     * @param values Ordered configuration block(s) with components for the container recipe. Detailed below.
     */
    @JvmName("udqyliwfsxiujucq")
    public suspend fun components(vararg values: ContainerRecipeComponentArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.components = mapped
    }

    /**
     * @param value The type of the container to create. Valid values: `DOCKER`.
     */
    @JvmName("gnhibetutisqtkwu")
    public suspend fun containerType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.containerType = mapped
    }

    /**
     * @param value The description of the container recipe.
     */
    @JvmName("efvvuosquhdjlfrr")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The Dockerfile template used to build the image as an inline data blob.
     */
    @JvmName("oiiphrpwetwaaudv")
    public suspend fun dockerfileTemplateData(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dockerfileTemplateData = mapped
    }

    /**
     * @param value The Amazon S3 URI for the Dockerfile that will be used to build the container image.
     */
    @JvmName("vkfcwgrpyaeqbxsw")
    public suspend fun dockerfileTemplateUri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dockerfileTemplateUri = mapped
    }

    /**
     * @param value Configuration block used to configure an instance for building and testing container images. Detailed below.
     */
    @JvmName("iamfnpammeitawyq")
    public suspend fun instanceConfiguration(`value`: ContainerRecipeInstanceConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceConfiguration = mapped
    }

    /**
     * @param argument Configuration block used to configure an instance for building and testing container images. Detailed below.
     */
    @JvmName("jtdhgqropqtunyis")
    public suspend fun instanceConfiguration(argument: suspend ContainerRecipeInstanceConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = ContainerRecipeInstanceConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.instanceConfiguration = mapped
    }

    /**
     * @param value The KMS key used to encrypt the container image.
     */
    @JvmName("yrnrgwdhrlujwnfj")
    public suspend fun kmsKeyId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kmsKeyId = mapped
    }

    /**
     * @param value The name of the container recipe.
     */
    @JvmName("skmlxgtsoexnhkrk")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The base image for the container recipe.
     */
    @JvmName("ixgoyuvgbvxedhrf")
    public suspend fun parentImage(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parentImage = mapped
    }

    /**
     * @param value Specifies the operating system platform when you use a custom base image.
     */
    @JvmName("gkpnwukppxoxfmey")
    public suspend fun platformOverride(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.platformOverride = mapped
    }

    /**
     * @param value Key-value map of resource tags for the container recipe. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     */
    @JvmName("smjopdqvfskrxvpc")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Key-value map of resource tags for the container recipe. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     */
    @JvmName("qbaqbcesjumlfgua")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The destination repository for the container image. Detailed below.
     */
    @JvmName("bnwmwlayimdycmxf")
    public suspend fun targetRepository(`value`: ContainerRecipeTargetRepositoryArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetRepository = mapped
    }

    /**
     * @param argument The destination repository for the container image. Detailed below.
     */
    @JvmName("btvwnpqefbgkmygm")
    public suspend fun targetRepository(argument: suspend ContainerRecipeTargetRepositoryArgsBuilder.() -> Unit) {
        val toBeMapped = ContainerRecipeTargetRepositoryArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.targetRepository = mapped
    }

    /**
     * @param value Version of the container recipe.
     * The following attributes are optional:
     */
    @JvmName("wxxistevmfqmtxmw")
    public suspend fun version(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.version = mapped
    }

    /**
     * @param value The working directory to be used during build and test workflows.
     */
    @JvmName("axgwtfocerctaufs")
    public suspend fun workingDirectory(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.workingDirectory = mapped
    }

    internal fun build(): ContainerRecipeArgs = ContainerRecipeArgs(
        components = components,
        containerType = containerType,
        description = description,
        dockerfileTemplateData = dockerfileTemplateData,
        dockerfileTemplateUri = dockerfileTemplateUri,
        instanceConfiguration = instanceConfiguration,
        kmsKeyId = kmsKeyId,
        name = name,
        parentImage = parentImage,
        platformOverride = platformOverride,
        tags = tags,
        targetRepository = targetRepository,
        version = version,
        workingDirectory = workingDirectory,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy