EventTargetEcsTarget class
Constructors
-
EventTargetEcsTarget({Input<List<EventTargetEcsTargetCapacityProviderStrategy>?>? capacityProviderStrategies, Input<bool?>? enableEcsManagedTags, Input<bool?>? enableExecuteCommand, Input<String?>? group, Input<String?>? launchType, Input<EventTargetEcsTargetNetworkConfiguration?>? networkConfiguration, Input<List<EventTargetEcsTargetOrderedPlacementStrategy>?>? orderedPlacementStrategies, Input<List<EventTargetEcsTargetPlacementConstraint>?>? placementConstraints, Input<String?>? platformVersion, Input<String?>? propagateTags, Input<Map<String, String>?>? tags, Input<int?>? taskCount, required Input<String> taskDefinitionArn})
-
Creates a new EventTargetEcsTarget.
capacityProviderStrategies The capacity provider strategy to use for the task. If a capacityProviderStrategy specified, the launchType parameter must be omitted. If no capacityProviderStrategy or launchType is specified, the default capacity provider strategy for the cluster is used. Can be one or more. See below.
enableEcsManagedTags Specifies whether to enable Amazon ECS managed tags for the task.
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.
group Specifies an ECS task group for the task. The maximum length is 255 characters.
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.
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 launchType is FARGATE because the awsvpc mode is required for Fargate tasks.
orderedPlacementStrategies An array of placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task.
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.
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.
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.
tags A map of tags to assign to ecs resources.
taskCount The number of tasks to create based on the TaskDefinition. Defaults to 1.
taskDefinitionArn The ARN of the task definition to use if the event target is an Amazon ECS cluster.
const
-
EventTargetEcsTarget.fromMap(Map<String, dynamic> map)
-
factory
Properties
-
capacityProviderStrategies
→ Input<List<EventTargetEcsTargetCapacityProviderStrategy>?>?
-
The capacity provider strategy to use for the task. If a
capacityProviderStrategy specified, the launchType parameter must be omitted. If no capacityProviderStrategy or launchType is specified, the default capacity provider strategy for the cluster is used. Can be one or more. See below.
final
-
enableEcsManagedTags
→ Input<bool?>?
-
Specifies whether to enable Amazon ECS managed tags for the task.
final
-
enableExecuteCommand
→ Input<bool?>?
-
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.
final
-
group
→ Input<String?>?
-
Specifies an ECS task group for the task. The maximum length is 255 characters.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
launchType
→ Input<String?>?
-
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.
final
-
networkConfiguration
→ Input<EventTargetEcsTargetNetworkConfiguration?>?
-
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
launchType is FARGATE because the awsvpc mode is required for Fargate tasks.
final
-
orderedPlacementStrategies
→ Input<List<EventTargetEcsTargetOrderedPlacementStrategy>?>?
-
An array of placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task.
final
-
placementConstraints
→ Input<List<EventTargetEcsTargetPlacementConstraint>?>?
-
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.
final
-
platformVersion
→ Input<String?>?
-
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.
final
-
propagateTags
→ Input<String?>?
-
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.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
tags
→ Input<Map<String, String>?>?
-
A map of tags to assign to ecs resources.
final
-
taskCount
→ Input<int?>?
-
The number of tasks to create based on the TaskDefinition. Defaults to
1.
final
-
taskDefinitionArn
→ Input<String>
-
The ARN of the task definition to use if the event target is an Amazon ECS cluster.
final