EventTargetEcsTargetArgs

data class EventTargetEcsTargetArgs(val capacityProviderStrategies: Output<List<EventTargetEcsTargetCapacityProviderStrategyArgs>>? = null, val enableEcsManagedTags: Output<Boolean>? = null, val enableExecuteCommand: Output<Boolean>? = null, val group: Output<String>? = null, val launchType: Output<String>? = null, val networkConfiguration: Output<EventTargetEcsTargetNetworkConfigurationArgs>? = null, val orderedPlacementStrategies: Output<List<EventTargetEcsTargetOrderedPlacementStrategyArgs>>? = null, val placementConstraints: Output<List<EventTargetEcsTargetPlacementConstraintArgs>>? = null, val platformVersion: Output<String>? = null, val propagateTags: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val taskCount: Output<Int>? = null, val taskDefinitionArn: Output<String>) : ConvertibleToJava<EventTargetEcsTargetArgs>

Constructors

Link copied to clipboard
constructor(capacityProviderStrategies: Output<List<EventTargetEcsTargetCapacityProviderStrategyArgs>>? = null, enableEcsManagedTags: Output<Boolean>? = null, enableExecuteCommand: Output<Boolean>? = null, group: Output<String>? = null, launchType: Output<String>? = null, networkConfiguration: Output<EventTargetEcsTargetNetworkConfigurationArgs>? = null, orderedPlacementStrategies: Output<List<EventTargetEcsTargetOrderedPlacementStrategyArgs>>? = null, placementConstraints: Output<List<EventTargetEcsTargetPlacementConstraintArgs>>? = null, platformVersion: Output<String>? = null, propagateTags: Output<String>? = null, tags: Output<Map<String, String>>? = null, taskCount: Output<Int>? = null, taskDefinitionArn: Output<String>)

Properties

Link copied to clipboard

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.

Link copied to clipboard
val enableEcsManagedTags: Output<Boolean>? = null

Specifies whether to enable Amazon ECS managed tags for the task.

Link copied to clipboard
val enableExecuteCommand: Output<Boolean>? = null

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.

Link copied to clipboard
val group: Output<String>? = null

Specifies an ECS task group for the task. The maximum length is 255 characters.

Link copied to clipboard
val launchType: Output<String>? = null

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.

Link copied to clipboard

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.

Link copied to clipboard

An array of placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task.

Link copied to clipboard

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.

Link copied to clipboard
val platformVersion: Output<String>? = null

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.

Link copied to clipboard
val propagateTags: Output<String>? = null

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.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A map of tags to assign to ecs resources.

Link copied to clipboard
val taskCount: Output<Int>? = null

The number of tasks to create based on the TaskDefinition. Defaults to 1.

Link copied to clipboard

The ARN of the task definition to use if the event target is an Amazon ECS cluster.

Functions

Link copied to clipboard
open override fun toJava(): EventTargetEcsTargetArgs