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

com.pulumi.awsnative.m2.kotlin.ApplicationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.m2.kotlin

import com.pulumi.awsnative.m2.ApplicationArgs.builder
import com.pulumi.awsnative.m2.kotlin.enums.ApplicationEngineType
import com.pulumi.awsnative.m2.kotlin.inputs.ApplicationDefinition0PropertiesArgs
import com.pulumi.awsnative.m2.kotlin.inputs.ApplicationDefinition1PropertiesArgs
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 kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Represents an application that runs on an AWS Mainframe Modernization Environment
 * @property definition The application definition for a particular application. You can specify either inline JSON or an Amazon S3 bucket location.
 * For information about application definitions, see the [AWS Mainframe Modernization User Guide](https://docs.aws.amazon.com/m2/latest/userguide/applications-m2-definition.html) .
 * @property description The description of the application.
 * @property engineType The type of the target platform for this application.
 * @property kmsKeyId The ID or the Amazon Resource Name (ARN) of the customer managed KMS Key used for encrypting application-related resources.
 * @property name The name of the application.
 * @property roleArn The Amazon Resource Name (ARN) of the role associated with the application.
 * @property tags An array of key-value pairs to apply to this resource.
 * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
 */
public data class ApplicationArgs(
    public val definition: Output>? =
        null,
    public val description: Output? = null,
    public val engineType: Output? = null,
    public val kmsKeyId: Output? = null,
    public val name: Output? = null,
    public val roleArn: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.m2.ApplicationArgs =
        com.pulumi.awsnative.m2.ApplicationArgs.builder()
            .definition(
                definition?.applyValue({ args0 ->
                    args0.transform({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .description(description?.applyValue({ args0 -> args0 }))
            .engineType(engineType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .kmsKeyId(kmsKeyId?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .roleArn(roleArn?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

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

    private var description: Output? = null

    private var engineType: Output? = null

    private var kmsKeyId: Output? = null

    private var name: Output? = null

    private var roleArn: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The application definition for a particular application. You can specify either inline JSON or an Amazon S3 bucket location.
     * For information about application definitions, see the [AWS Mainframe Modernization User Guide](https://docs.aws.amazon.com/m2/latest/userguide/applications-m2-definition.html) .
     */
    @JvmName("milwlrniqiqlncxi")
    public suspend fun definition(`value`: Output>) {
        this.definition = value
    }

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

    /**
     * @param value The type of the target platform for this application.
     */
    @JvmName("akwqgacndcgqushj")
    public suspend fun engineType(`value`: Output) {
        this.engineType = value
    }

    /**
     * @param value The ID or the Amazon Resource Name (ARN) of the customer managed KMS Key used for encrypting application-related resources.
     */
    @JvmName("arokogekcosvjgdg")
    public suspend fun kmsKeyId(`value`: Output) {
        this.kmsKeyId = value
    }

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

    /**
     * @param value The Amazon Resource Name (ARN) of the role associated with the application.
     */
    @JvmName("epgorolqjpvwweve")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("sxgmdiwhjougyspo")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The application definition for a particular application. You can specify either inline JSON or an Amazon S3 bucket location.
     * For information about application definitions, see the [AWS Mainframe Modernization User Guide](https://docs.aws.amazon.com/m2/latest/userguide/applications-m2-definition.html) .
     */
    @JvmName("iuoshbietjpfwlxt")
    public suspend fun definition(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.definition = mapped
    }

    /**
     * @param value The application definition for a particular application. You can specify either inline JSON or an Amazon S3 bucket location.
     * For information about application definitions, see the [AWS Mainframe Modernization User Guide](https://docs.aws.amazon.com/m2/latest/userguide/applications-m2-definition.html) .
     */
    @JvmName("tfqvrkmiknfodygs")
    public fun definition(`value`: ApplicationDefinition0PropertiesArgs) {
        val toBeMapped = Either.ofLeft<
            ApplicationDefinition0PropertiesArgs,
            ApplicationDefinition1PropertiesArgs,
            >(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.definition = mapped
    }

    /**
     * @param value The application definition for a particular application. You can specify either inline JSON or an Amazon S3 bucket location.
     * For information about application definitions, see the [AWS Mainframe Modernization User Guide](https://docs.aws.amazon.com/m2/latest/userguide/applications-m2-definition.html) .
     */
    @JvmName("xoqhijigjknnmoxr")
    public fun definition(`value`: ApplicationDefinition1PropertiesArgs) {
        val toBeMapped = Either.ofRight<
            ApplicationDefinition0PropertiesArgs,
            ApplicationDefinition1PropertiesArgs,
            >(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.definition = mapped
    }

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

    /**
     * @param value The type of the target platform for this application.
     */
    @JvmName("vysnxhgyllkgbboh")
    public suspend fun engineType(`value`: ApplicationEngineType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.engineType = mapped
    }

    /**
     * @param value The ID or the Amazon Resource Name (ARN) of the customer managed KMS Key used for encrypting application-related resources.
     */
    @JvmName("nhbeiodvmqsppgry")
    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 application.
     */
    @JvmName("hiokoogbmdpoevxt")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the role associated with the application.
     */
    @JvmName("ijqgvoihngvnynwe")
    public suspend fun roleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("kmujgeduybwhadwy")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     * For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
     */
    @JvmName("thltxeoqglombdnd")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ApplicationArgs = ApplicationArgs(
        definition = definition,
        description = description,
        engineType = engineType,
        kmsKeyId = kmsKeyId,
        name = name,
        roleArn = roleArn,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy