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

com.pulumi.aws.cloudwatch.kotlin.inputs.EventTargetEcsTargetArgs.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.cloudwatch.kotlin.inputs

import com.pulumi.aws.cloudwatch.inputs.EventTargetEcsTargetArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property capacityProviderStrategies The capacity provider strategy to use for the task. If a `capacity_provider_strategy` specified, the `launch_type` parameter must be omitted. If no `capacity_provider_strategy` or `launch_type` is specified, the default capacity provider strategy for the cluster is used. Can be one or more. See below.
 * @property enableEcsManagedTags Specifies whether to enable Amazon ECS managed tags for the task.
 * @property enableExecuteCommand Whether or not to enable the execute command functionality for the containers in this task. If true, this enables execute command functionality on all containers in the task.
 * @property group Specifies an ECS task group for the task. The maximum length is 255 characters.
 * @property launchType Specifies the launch type on which your task is running. The launch type that you specify here must match one of the launch type (compatibilities) of the target task. Valid values include: `EC2`, `EXTERNAL`, or `FARGATE`.
 * @property networkConfiguration Use this if the ECS task uses the awsvpc network mode. This specifies the VPC subnets and security groups associated with the task, and whether a public IP address is to be used. Required if `launch_type` is `FARGATE` because the awsvpc mode is required for Fargate tasks.
 * @property orderedPlacementStrategies An array of placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task.
 * @property placementConstraints An array of placement constraint objects to use for the task. You can specify up to 10 constraints per task (including constraints in the task definition and those specified at runtime). See Below.
 * @property platformVersion Specifies the platform version for the task. Specify only the numeric portion of the platform version, such as `1.1.0`. This is used only if LaunchType is FARGATE. For more information about valid platform versions, see [AWS Fargate Platform Versions](http://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html).
 * @property propagateTags Specifies whether to propagate the tags from the task definition to the task. If no value is specified, the tags are not propagated. Tags can only be propagated to the task during task creation. The only valid value is: `TASK_DEFINITION`.
 * @property tags A map of tags to assign to ecs resources.
 * @property taskCount The number of tasks to create based on the TaskDefinition. Defaults to `1`.
 * @property taskDefinitionArn The ARN of the task definition to use if the event target is an Amazon ECS cluster.
 */
public data class EventTargetEcsTargetArgs(
    public val capacityProviderStrategies: Output>? = null,
    public val enableEcsManagedTags: Output? = null,
    public val enableExecuteCommand: Output? = null,
    public val group: Output? = null,
    public val launchType: Output? = null,
    public val networkConfiguration: Output? = null,
    public val orderedPlacementStrategies: Output>? = null,
    public val placementConstraints: Output>? =
        null,
    public val platformVersion: Output? = null,
    public val propagateTags: Output? = null,
    public val tags: Output>? = null,
    public val taskCount: Output? = null,
    public val taskDefinitionArn: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.cloudwatch.inputs.EventTargetEcsTargetArgs =
        com.pulumi.aws.cloudwatch.inputs.EventTargetEcsTargetArgs.builder()
            .capacityProviderStrategies(
                capacityProviderStrategies?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .enableEcsManagedTags(enableEcsManagedTags?.applyValue({ args0 -> args0 }))
            .enableExecuteCommand(enableExecuteCommand?.applyValue({ args0 -> args0 }))
            .group(group?.applyValue({ args0 -> args0 }))
            .launchType(launchType?.applyValue({ args0 -> args0 }))
            .networkConfiguration(
                networkConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .orderedPlacementStrategies(
                orderedPlacementStrategies?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .placementConstraints(
                placementConstraints?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .platformVersion(platformVersion?.applyValue({ args0 -> args0 }))
            .propagateTags(propagateTags?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .taskCount(taskCount?.applyValue({ args0 -> args0 }))
            .taskDefinitionArn(taskDefinitionArn.applyValue({ args0 -> args0 })).build()
}

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

    private var enableEcsManagedTags: Output? = null

    private var enableExecuteCommand: Output? = null

    private var group: Output? = null

    private var launchType: Output? = null

    private var networkConfiguration: Output? = null

    private var orderedPlacementStrategies:
        Output>? = null

    private var placementConstraints: Output>? =
        null

    private var platformVersion: Output? = null

    private var propagateTags: Output? = null

    private var tags: Output>? = null

    private var taskCount: Output? = null

    private var taskDefinitionArn: Output? = null

    /**
     * @param value The capacity provider strategy to use for the task. If a `capacity_provider_strategy` specified, the `launch_type` parameter must be omitted. If no `capacity_provider_strategy` or `launch_type` is specified, the default capacity provider strategy for the cluster is used. Can be one or more. See below.
     */
    @JvmName("hublctpaldqktlsv")
    public suspend fun capacityProviderStrategies(`value`: Output>) {
        this.capacityProviderStrategies = value
    }

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

    /**
     * @param values The capacity provider strategy to use for the task. If a `capacity_provider_strategy` specified, the `launch_type` parameter must be omitted. If no `capacity_provider_strategy` or `launch_type` is specified, the default capacity provider strategy for the cluster is used. Can be one or more. See below.
     */
    @JvmName("ylqpwvjjawymfgtp")
    public suspend fun capacityProviderStrategies(values: List>) {
        this.capacityProviderStrategies = Output.all(values)
    }

    /**
     * @param value Specifies whether to enable Amazon ECS managed tags for the task.
     */
    @JvmName("eshjqhwnncynfbcw")
    public suspend fun enableEcsManagedTags(`value`: Output) {
        this.enableEcsManagedTags = value
    }

    /**
     * @param value Whether or not to enable the execute command functionality for the containers in this task. If true, this enables execute command functionality on all containers in the task.
     */
    @JvmName("jgejxkjksicnwkmc")
    public suspend fun enableExecuteCommand(`value`: Output) {
        this.enableExecuteCommand = value
    }

    /**
     * @param value Specifies an ECS task group for the task. The maximum length is 255 characters.
     */
    @JvmName("ydxjofgrvhhnvvmd")
    public suspend fun group(`value`: Output) {
        this.group = value
    }

    /**
     * @param value Specifies the launch type on which your task is running. The launch type that you specify here must match one of the launch type (compatibilities) of the target task. Valid values include: `EC2`, `EXTERNAL`, or `FARGATE`.
     */
    @JvmName("rcevxfmfqdqcdynv")
    public suspend fun launchType(`value`: Output) {
        this.launchType = value
    }

    /**
     * @param value Use this if the ECS task uses the awsvpc network mode. This specifies the VPC subnets and security groups associated with the task, and whether a public IP address is to be used. Required if `launch_type` is `FARGATE` because the awsvpc mode is required for Fargate tasks.
     */
    @JvmName("kxmvvkfihemvqqyh")
    public suspend fun networkConfiguration(`value`: Output) {
        this.networkConfiguration = value
    }

    /**
     * @param value An array of placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task.
     */
    @JvmName("xmqrokuxtpinhsoq")
    public suspend fun orderedPlacementStrategies(`value`: Output>) {
        this.orderedPlacementStrategies = value
    }

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

    /**
     * @param values An array of placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task.
     */
    @JvmName("ifrcxqimqpjmgesg")
    public suspend fun orderedPlacementStrategies(values: List>) {
        this.orderedPlacementStrategies = Output.all(values)
    }

    /**
     * @param value An array of placement constraint objects to use for the task. You can specify up to 10 constraints per task (including constraints in the task definition and those specified at runtime). See Below.
     */
    @JvmName("pukuvigwiukehcww")
    public suspend fun placementConstraints(`value`: Output>) {
        this.placementConstraints = value
    }

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

    /**
     * @param values An array of placement constraint objects to use for the task. You can specify up to 10 constraints per task (including constraints in the task definition and those specified at runtime). See Below.
     */
    @JvmName("vlhoswndqvyweibc")
    public suspend fun placementConstraints(values: List>) {
        this.placementConstraints = Output.all(values)
    }

    /**
     * @param value Specifies the platform version for the task. Specify only the numeric portion of the platform version, such as `1.1.0`. This is used only if LaunchType is FARGATE. For more information about valid platform versions, see [AWS Fargate Platform Versions](http://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html).
     */
    @JvmName("baqsitwwwikookyk")
    public suspend fun platformVersion(`value`: Output) {
        this.platformVersion = value
    }

    /**
     * @param value Specifies whether to propagate the tags from the task definition to the task. If no value is specified, the tags are not propagated. Tags can only be propagated to the task during task creation. The only valid value is: `TASK_DEFINITION`.
     */
    @JvmName("rwjsdkfmhgamlitn")
    public suspend fun propagateTags(`value`: Output) {
        this.propagateTags = value
    }

    /**
     * @param value A map of tags to assign to ecs resources.
     */
    @JvmName("oqxhroyelaaonnhg")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The number of tasks to create based on the TaskDefinition. Defaults to `1`.
     */
    @JvmName("ygjphvehccnxhmjr")
    public suspend fun taskCount(`value`: Output) {
        this.taskCount = value
    }

    /**
     * @param value The ARN of the task definition to use if the event target is an Amazon ECS cluster.
     */
    @JvmName("yfannrljjbbwrkxk")
    public suspend fun taskDefinitionArn(`value`: Output) {
        this.taskDefinitionArn = value
    }

    /**
     * @param value The capacity provider strategy to use for the task. If a `capacity_provider_strategy` specified, the `launch_type` parameter must be omitted. If no `capacity_provider_strategy` or `launch_type` is specified, the default capacity provider strategy for the cluster is used. Can be one or more. See below.
     */
    @JvmName("qtntrcgpthwmyyog")
    public suspend fun capacityProviderStrategies(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.capacityProviderStrategies = mapped
    }

    /**
     * @param argument The capacity provider strategy to use for the task. If a `capacity_provider_strategy` specified, the `launch_type` parameter must be omitted. If no `capacity_provider_strategy` or `launch_type` is specified, the default capacity provider strategy for the cluster is used. Can be one or more. See below.
     */
    @JvmName("qkvwmiwavhqxwyfu")
    public suspend fun capacityProviderStrategies(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            EventTargetEcsTargetCapacityProviderStrategyArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.capacityProviderStrategies = mapped
    }

    /**
     * @param argument The capacity provider strategy to use for the task. If a `capacity_provider_strategy` specified, the `launch_type` parameter must be omitted. If no `capacity_provider_strategy` or `launch_type` is specified, the default capacity provider strategy for the cluster is used. Can be one or more. See below.
     */
    @JvmName("cfhibrwesmnnrbny")
    public suspend fun capacityProviderStrategies(vararg argument: suspend EventTargetEcsTargetCapacityProviderStrategyArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            EventTargetEcsTargetCapacityProviderStrategyArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.capacityProviderStrategies = mapped
    }

    /**
     * @param argument The capacity provider strategy to use for the task. If a `capacity_provider_strategy` specified, the `launch_type` parameter must be omitted. If no `capacity_provider_strategy` or `launch_type` is specified, the default capacity provider strategy for the cluster is used. Can be one or more. See below.
     */
    @JvmName("tpoiflwpnwurrmbx")
    public suspend fun capacityProviderStrategies(argument: suspend EventTargetEcsTargetCapacityProviderStrategyArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            EventTargetEcsTargetCapacityProviderStrategyArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.capacityProviderStrategies = mapped
    }

    /**
     * @param values The capacity provider strategy to use for the task. If a `capacity_provider_strategy` specified, the `launch_type` parameter must be omitted. If no `capacity_provider_strategy` or `launch_type` is specified, the default capacity provider strategy for the cluster is used. Can be one or more. See below.
     */
    @JvmName("rmytpeidnokhvlaf")
    public suspend fun capacityProviderStrategies(vararg values: EventTargetEcsTargetCapacityProviderStrategyArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.capacityProviderStrategies = mapped
    }

    /**
     * @param value Specifies whether to enable Amazon ECS managed tags for the task.
     */
    @JvmName("pwehaeadwsyxtmtb")
    public suspend fun enableEcsManagedTags(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableEcsManagedTags = mapped
    }

    /**
     * @param value Whether or not to enable the execute command functionality for the containers in this task. If true, this enables execute command functionality on all containers in the task.
     */
    @JvmName("kurnswwwewkbbcch")
    public suspend fun enableExecuteCommand(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableExecuteCommand = mapped
    }

    /**
     * @param value Specifies an ECS task group for the task. The maximum length is 255 characters.
     */
    @JvmName("oesrppoycdmbhwwj")
    public suspend fun group(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.group = mapped
    }

    /**
     * @param value Specifies the launch type on which your task is running. The launch type that you specify here must match one of the launch type (compatibilities) of the target task. Valid values include: `EC2`, `EXTERNAL`, or `FARGATE`.
     */
    @JvmName("cxccdlfungoirrlp")
    public suspend fun launchType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.launchType = mapped
    }

    /**
     * @param value Use this if the ECS task uses the awsvpc network mode. This specifies the VPC subnets and security groups associated with the task, and whether a public IP address is to be used. Required if `launch_type` is `FARGATE` because the awsvpc mode is required for Fargate tasks.
     */
    @JvmName("qfioaaxndmsoebfx")
    public suspend fun networkConfiguration(`value`: EventTargetEcsTargetNetworkConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.networkConfiguration = mapped
    }

    /**
     * @param argument Use this if the ECS task uses the awsvpc network mode. This specifies the VPC subnets and security groups associated with the task, and whether a public IP address is to be used. Required if `launch_type` is `FARGATE` because the awsvpc mode is required for Fargate tasks.
     */
    @JvmName("fqbuxcaolvqbpxqb")
    public suspend fun networkConfiguration(argument: suspend EventTargetEcsTargetNetworkConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = EventTargetEcsTargetNetworkConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.networkConfiguration = mapped
    }

    /**
     * @param value An array of placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task.
     */
    @JvmName("cvygyesfcbjjqctv")
    public suspend fun orderedPlacementStrategies(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.orderedPlacementStrategies = mapped
    }

    /**
     * @param argument An array of placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task.
     */
    @JvmName("wkjeqfbdkqxduxkk")
    public suspend fun orderedPlacementStrategies(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            EventTargetEcsTargetOrderedPlacementStrategyArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.orderedPlacementStrategies = mapped
    }

    /**
     * @param argument An array of placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task.
     */
    @JvmName("iymnwfacodvavwdy")
    public suspend fun orderedPlacementStrategies(vararg argument: suspend EventTargetEcsTargetOrderedPlacementStrategyArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            EventTargetEcsTargetOrderedPlacementStrategyArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.orderedPlacementStrategies = mapped
    }

    /**
     * @param argument An array of placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task.
     */
    @JvmName("vaoeyaetsqefyswp")
    public suspend fun orderedPlacementStrategies(argument: suspend EventTargetEcsTargetOrderedPlacementStrategyArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            EventTargetEcsTargetOrderedPlacementStrategyArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.orderedPlacementStrategies = mapped
    }

    /**
     * @param values An array of placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task.
     */
    @JvmName("yxjkapyuwpwdfaaq")
    public suspend fun orderedPlacementStrategies(vararg values: EventTargetEcsTargetOrderedPlacementStrategyArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.orderedPlacementStrategies = mapped
    }

    /**
     * @param value An array of placement constraint objects to use for the task. You can specify up to 10 constraints per task (including constraints in the task definition and those specified at runtime). See Below.
     */
    @JvmName("irdqvcondsfgewqv")
    public suspend fun placementConstraints(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.placementConstraints = mapped
    }

    /**
     * @param argument An array of placement constraint objects to use for the task. You can specify up to 10 constraints per task (including constraints in the task definition and those specified at runtime). See Below.
     */
    @JvmName("eigtwxsjfdcwqogs")
    public suspend fun placementConstraints(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            EventTargetEcsTargetPlacementConstraintArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.placementConstraints = mapped
    }

    /**
     * @param argument An array of placement constraint objects to use for the task. You can specify up to 10 constraints per task (including constraints in the task definition and those specified at runtime). See Below.
     */
    @JvmName("aymbarhguwcfrvnf")
    public suspend fun placementConstraints(vararg argument: suspend EventTargetEcsTargetPlacementConstraintArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            EventTargetEcsTargetPlacementConstraintArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.placementConstraints = mapped
    }

    /**
     * @param argument An array of placement constraint objects to use for the task. You can specify up to 10 constraints per task (including constraints in the task definition and those specified at runtime). See Below.
     */
    @JvmName("jxtaliwvifujhgxh")
    public suspend fun placementConstraints(argument: suspend EventTargetEcsTargetPlacementConstraintArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            EventTargetEcsTargetPlacementConstraintArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.placementConstraints = mapped
    }

    /**
     * @param values An array of placement constraint objects to use for the task. You can specify up to 10 constraints per task (including constraints in the task definition and those specified at runtime). See Below.
     */
    @JvmName("rfkvnsyjbbixlmyc")
    public suspend fun placementConstraints(vararg values: EventTargetEcsTargetPlacementConstraintArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.placementConstraints = mapped
    }

    /**
     * @param value Specifies the platform version for the task. Specify only the numeric portion of the platform version, such as `1.1.0`. This is used only if LaunchType is FARGATE. For more information about valid platform versions, see [AWS Fargate Platform Versions](http://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html).
     */
    @JvmName("lchljjncqxhalcyg")
    public suspend fun platformVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.platformVersion = mapped
    }

    /**
     * @param value Specifies whether to propagate the tags from the task definition to the task. If no value is specified, the tags are not propagated. Tags can only be propagated to the task during task creation. The only valid value is: `TASK_DEFINITION`.
     */
    @JvmName("uobumhtsxcgvktrm")
    public suspend fun propagateTags(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.propagateTags = mapped
    }

    /**
     * @param value A map of tags to assign to ecs resources.
     */
    @JvmName("wnylbunecjydbfyk")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A map of tags to assign to ecs resources.
     */
    @JvmName("rjhqlyctdthomino")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The number of tasks to create based on the TaskDefinition. Defaults to `1`.
     */
    @JvmName("qpiuvuvwadkplnjf")
    public suspend fun taskCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.taskCount = mapped
    }

    /**
     * @param value The ARN of the task definition to use if the event target is an Amazon ECS cluster.
     */
    @JvmName("jwiatujldbnnkxcl")
    public suspend fun taskDefinitionArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.taskDefinitionArn = mapped
    }

    internal fun build(): EventTargetEcsTargetArgs = EventTargetEcsTargetArgs(
        capacityProviderStrategies = capacityProviderStrategies,
        enableEcsManagedTags = enableEcsManagedTags,
        enableExecuteCommand = enableExecuteCommand,
        group = group,
        launchType = launchType,
        networkConfiguration = networkConfiguration,
        orderedPlacementStrategies = orderedPlacementStrategies,
        placementConstraints = placementConstraints,
        platformVersion = platformVersion,
        propagateTags = propagateTags,
        tags = tags,
        taskCount = taskCount,
        taskDefinitionArn = taskDefinitionArn ?: throw PulumiNullFieldException("taskDefinitionArn"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy