Class EventTargetEcsTarget


  • public final class EventTargetEcsTarget
    extends java.lang.Object
    • Method Detail

      • capacityProviderStrategies

        public java.util.List<EventTargetEcsTargetCapacityProviderStrategy> capacityProviderStrategies()
        Returns:
        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

        public java.util.Optional<java.lang.Boolean> enableEcsManagedTags()
        Returns:
        Specifies whether to enable Amazon ECS managed tags for the task.
      • enableExecuteCommand

        public java.util.Optional<java.lang.Boolean> enableExecuteCommand()
        Returns:
        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

        public java.util.Optional<java.lang.String> group()
        Returns:
        Specifies an ECS task group for the task. The maximum length is 255 characters.
      • launchType

        public java.util.Optional<java.lang.String> launchType()
        Returns:
        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

        public java.util.Optional<EventTargetEcsTargetNetworkConfiguration> networkConfiguration()
        Returns:
        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

        public java.util.List<EventTargetEcsTargetOrderedPlacementStrategy> orderedPlacementStrategies()
        Returns:
        An array of placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task.
      • placementConstraints

        public java.util.List<EventTargetEcsTargetPlacementConstraint> placementConstraints()
        Returns:
        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

        public java.util.Optional<java.lang.String> platformVersion()
        Returns:
        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).
      • propagateTags

        public java.util.Optional<java.lang.String> propagateTags()
        Returns:
        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

        public java.util.Map<java.lang.String,​java.lang.String> tags()
        Returns:
        A map of tags to assign to ECS resources.
      • taskCount

        public java.util.Optional<java.lang.Integer> taskCount()
        Returns:
        The number of tasks to create based on the TaskDefinition. Defaults to `1`.
      • taskDefinitionArn

        public java.lang.String taskDefinitionArn()
        Returns:
        The ARN of the task definition to use if the event target is an Amazon ECS cluster.