Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.scheduler.kotlin.inputs
import com.pulumi.awsnative.scheduler.inputs.ScheduleEcsParametersArgs.builder
import com.pulumi.awsnative.scheduler.kotlin.enums.ScheduleLaunchType
import com.pulumi.awsnative.scheduler.kotlin.enums.SchedulePropagateTags
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.Double
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* The custom parameters to be used when the target is an Amazon ECS task.
* @property capacityProviderStrategy The capacity provider strategy to use for the task.
* @property enableEcsManagedTags Specifies whether to enable Amazon ECS managed tags for the task. For more information, see Tagging Your Amazon ECS Resources in the Amazon Elastic Container Service Developer Guide.
* @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. The `FARGATE` value is supported only in the Regions where Fargate with Amazon ECS is supported. For more information, see [AWS Fargate on Amazon ECS](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS_Fargate.html) in the *Amazon ECS Developer Guide* .
* @property networkConfiguration This structure specifies the network configuration for an ECS 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).
* @property placementStrategy The placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task.
* @property platformVersion Specifies the platform version for the task. Specify only the numeric portion of the platform version, such as 1.1.0.
* @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. To add tags to a task after task creation, use the Amazon ECS [`TagResource`](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_TagResource.html) API action.
* @property referenceId The reference ID to use for the task.
* @property tags The metadata that you apply to the task to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. To learn more, see RunTask in the Amazon ECS API Reference.
* @property taskCount The number of tasks to create based on TaskDefinition. The default is 1.
* @property taskDefinitionArn The ARN of the task definition to use if the event target is an Amazon ECS task.
*/
public data class ScheduleEcsParametersArgs(
public val capacityProviderStrategy: 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 placementConstraints: Output>? = null,
public val placementStrategy: Output>? = null,
public val platformVersion: Output? = null,
public val propagateTags: Output? = null,
public val referenceId: Output? = null,
public val tags: Output>>? = null,
public val taskCount: Output? = null,
public val taskDefinitionArn: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.scheduler.inputs.ScheduleEcsParametersArgs =
com.pulumi.awsnative.scheduler.inputs.ScheduleEcsParametersArgs.builder()
.capacityProviderStrategy(
capacityProviderStrategy?.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.let({ args0 -> args0.toJava() }) }))
.networkConfiguration(
networkConfiguration?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.placementConstraints(
placementConstraints?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.placementStrategy(
placementStrategy?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.platformVersion(platformVersion?.applyValue({ args0 -> args0 }))
.propagateTags(propagateTags?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.referenceId(referenceId?.applyValue({ args0 -> args0 }))
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
})
}),
)
.taskCount(taskCount?.applyValue({ args0 -> args0 }))
.taskDefinitionArn(taskDefinitionArn.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ScheduleEcsParametersArgs].
*/
@PulumiTagMarker
public class ScheduleEcsParametersArgsBuilder internal constructor() {
private var capacityProviderStrategy: 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 placementConstraints: Output>? = null
private var placementStrategy: Output>? = null
private var platformVersion: Output? = null
private var propagateTags: Output? = null
private var referenceId: 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.
*/
@JvmName("cgdxlxvpkoibiuvg")
public suspend fun capacityProviderStrategy(`value`: Output>) {
this.capacityProviderStrategy = value
}
@JvmName("ntsojtaoavaurhct")
public suspend fun capacityProviderStrategy(vararg values: Output) {
this.capacityProviderStrategy = Output.all(values.asList())
}
/**
* @param values The capacity provider strategy to use for the task.
*/
@JvmName("ofnxrenavgkfnutd")
public suspend fun capacityProviderStrategy(values: List