Interface PipeTargetEcsTaskParameters.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<PipeTargetEcsTaskParameters.Builder,PipeTargetEcsTaskParameters>,SdkBuilder<PipeTargetEcsTaskParameters.Builder,PipeTargetEcsTaskParameters>,SdkPojo
- Enclosing class:
- PipeTargetEcsTaskParameters
public static interface PipeTargetEcsTaskParameters.Builder extends SdkPojo, CopyableBuilder<PipeTargetEcsTaskParameters.Builder,PipeTargetEcsTaskParameters>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PipeTargetEcsTaskParameters.BuildercapacityProviderStrategy(Collection<CapacityProviderStrategyItem> capacityProviderStrategy)The capacity provider strategy to use for the task.PipeTargetEcsTaskParameters.BuildercapacityProviderStrategy(Consumer<CapacityProviderStrategyItem.Builder>... capacityProviderStrategy)The capacity provider strategy to use for the task.PipeTargetEcsTaskParameters.BuildercapacityProviderStrategy(CapacityProviderStrategyItem... capacityProviderStrategy)The capacity provider strategy to use for the task.PipeTargetEcsTaskParameters.BuilderenableECSManagedTags(Boolean enableECSManagedTags)Specifies whether to enable Amazon ECS managed tags for the task.PipeTargetEcsTaskParameters.BuilderenableExecuteCommand(Boolean enableExecuteCommand)Whether or not to enable the execute command functionality for the containers in this task.PipeTargetEcsTaskParameters.Buildergroup(String group)Specifies an Amazon ECS task group for the task.PipeTargetEcsTaskParameters.BuilderlaunchType(String launchType)Specifies the launch type on which your task is running.PipeTargetEcsTaskParameters.BuilderlaunchType(LaunchType launchType)Specifies the launch type on which your task is running.default PipeTargetEcsTaskParameters.BuildernetworkConfiguration(Consumer<NetworkConfiguration.Builder> networkConfiguration)Use this structure if the Amazon ECS task uses theawsvpcnetwork mode.PipeTargetEcsTaskParameters.BuildernetworkConfiguration(NetworkConfiguration networkConfiguration)Use this structure if the Amazon ECS task uses theawsvpcnetwork mode.default PipeTargetEcsTaskParameters.Builderoverrides(Consumer<EcsTaskOverride.Builder> overrides)The overrides that are associated with a task.PipeTargetEcsTaskParameters.Builderoverrides(EcsTaskOverride overrides)The overrides that are associated with a task.PipeTargetEcsTaskParameters.BuilderplacementConstraints(Collection<PlacementConstraint> placementConstraints)An array of placement constraint objects to use for the task.PipeTargetEcsTaskParameters.BuilderplacementConstraints(Consumer<PlacementConstraint.Builder>... placementConstraints)An array of placement constraint objects to use for the task.PipeTargetEcsTaskParameters.BuilderplacementConstraints(PlacementConstraint... placementConstraints)An array of placement constraint objects to use for the task.PipeTargetEcsTaskParameters.BuilderplacementStrategy(Collection<PlacementStrategy> placementStrategy)The placement strategy objects to use for the task.PipeTargetEcsTaskParameters.BuilderplacementStrategy(Consumer<PlacementStrategy.Builder>... placementStrategy)The placement strategy objects to use for the task.PipeTargetEcsTaskParameters.BuilderplacementStrategy(PlacementStrategy... placementStrategy)The placement strategy objects to use for the task.PipeTargetEcsTaskParameters.BuilderplatformVersion(String platformVersion)Specifies the platform version for the task.PipeTargetEcsTaskParameters.BuilderpropagateTags(String propagateTags)Specifies whether to propagate the tags from the task definition to the task.PipeTargetEcsTaskParameters.BuilderpropagateTags(PropagateTags propagateTags)Specifies whether to propagate the tags from the task definition to the task.PipeTargetEcsTaskParameters.BuilderreferenceId(String referenceId)The reference ID to use for the task.PipeTargetEcsTaskParameters.Buildertags(Collection<Tag> tags)The metadata that you apply to the task to help you categorize and organize them.PipeTargetEcsTaskParameters.Buildertags(Consumer<Tag.Builder>... tags)The metadata that you apply to the task to help you categorize and organize them.PipeTargetEcsTaskParameters.Buildertags(Tag... tags)The metadata that you apply to the task to help you categorize and organize them.PipeTargetEcsTaskParameters.BuildertaskCount(Integer taskCount)The number of tasks to create based onTaskDefinition.PipeTargetEcsTaskParameters.BuildertaskDefinitionArn(String taskDefinitionArn)The ARN of the task definition to use if the event target is an Amazon ECS task.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
capacityProviderStrategy
PipeTargetEcsTaskParameters.Builder capacityProviderStrategy(Collection<CapacityProviderStrategyItem> capacityProviderStrategy)
The capacity provider strategy to use for the task.
If a
capacityProviderStrategyis specified, thelaunchTypeparameter must be omitted. If nocapacityProviderStrategyor launchType is specified, thedefaultCapacityProviderStrategyfor the cluster is used.- Parameters:
capacityProviderStrategy- The capacity provider strategy to use for the task.If a
capacityProviderStrategyis specified, thelaunchTypeparameter must be omitted. If nocapacityProviderStrategyor launchType is specified, thedefaultCapacityProviderStrategyfor the cluster is used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityProviderStrategy
PipeTargetEcsTaskParameters.Builder capacityProviderStrategy(CapacityProviderStrategyItem... capacityProviderStrategy)
The capacity provider strategy to use for the task.
If a
capacityProviderStrategyis specified, thelaunchTypeparameter must be omitted. If nocapacityProviderStrategyor launchType is specified, thedefaultCapacityProviderStrategyfor the cluster is used.- Parameters:
capacityProviderStrategy- The capacity provider strategy to use for the task.If a
capacityProviderStrategyis specified, thelaunchTypeparameter must be omitted. If nocapacityProviderStrategyor launchType is specified, thedefaultCapacityProviderStrategyfor the cluster is used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityProviderStrategy
PipeTargetEcsTaskParameters.Builder capacityProviderStrategy(Consumer<CapacityProviderStrategyItem.Builder>... capacityProviderStrategy)
The capacity provider strategy to use for the task.
If a
This is a convenience method that creates an instance of thecapacityProviderStrategyis specified, thelaunchTypeparameter must be omitted. If nocapacityProviderStrategyor launchType is specified, thedefaultCapacityProviderStrategyfor the cluster is used.CapacityProviderStrategyItem.Builderavoiding the need to create one manually viaCapacityProviderStrategyItem.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#capacityProviderStrategy(List.) - Parameters:
capacityProviderStrategy- a consumer that will call methods onCapacityProviderStrategyItem.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#capacityProviderStrategy(java.util.Collection)
-
enableECSManagedTags
PipeTargetEcsTaskParameters.Builder enableECSManagedTags(Boolean 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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enableExecuteCommand
PipeTargetEcsTaskParameters.Builder enableExecuteCommand(Boolean 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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
group
PipeTargetEcsTaskParameters.Builder group(String group)
Specifies an Amazon ECS task group for the task. The maximum length is 255 characters.
- Parameters:
group- Specifies an Amazon ECS task group for the task. The maximum length is 255 characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchType
PipeTargetEcsTaskParameters.Builder launchType(String 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
FARGATEvalue is supported only in the Regions where Fargate with Amazon ECS is supported. For more information, see Fargate on Amazon ECS in the Amazon Elastic Container Service Developer Guide.- Parameters:
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. TheFARGATEvalue is supported only in the Regions where Fargate with Amazon ECS is supported. For more information, see Fargate on Amazon ECS in the Amazon Elastic Container Service Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
LaunchType,LaunchType
-
launchType
PipeTargetEcsTaskParameters.Builder launchType(LaunchType 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
FARGATEvalue is supported only in the Regions where Fargate with Amazon ECS is supported. For more information, see Fargate on Amazon ECS in the Amazon Elastic Container Service Developer Guide.- Parameters:
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. TheFARGATEvalue is supported only in the Regions where Fargate with Amazon ECS is supported. For more information, see Fargate on Amazon ECS in the Amazon Elastic Container Service Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
LaunchType,LaunchType
-
networkConfiguration
PipeTargetEcsTaskParameters.Builder networkConfiguration(NetworkConfiguration networkConfiguration)
Use this structure if the Amazon ECS task uses the
awsvpcnetwork mode. This structure specifies the VPC subnets and security groups associated with the task, and whether a public IP address is to be used. This structure is required ifLaunchTypeisFARGATEbecause theawsvpcmode is required for Fargate tasks.If you specify
NetworkConfigurationwhen the target ECS task does not use theawsvpcnetwork mode, the task fails.- Parameters:
networkConfiguration- Use this structure if the Amazon ECS task uses theawsvpcnetwork mode. This structure specifies the VPC subnets and security groups associated with the task, and whether a public IP address is to be used. This structure is required ifLaunchTypeisFARGATEbecause theawsvpcmode is required for Fargate tasks.If you specify
NetworkConfigurationwhen the target ECS task does not use theawsvpcnetwork mode, the task fails.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkConfiguration
default PipeTargetEcsTaskParameters.Builder networkConfiguration(Consumer<NetworkConfiguration.Builder> networkConfiguration)
Use this structure if the Amazon ECS task uses the
awsvpcnetwork mode. This structure specifies the VPC subnets and security groups associated with the task, and whether a public IP address is to be used. This structure is required ifLaunchTypeisFARGATEbecause theawsvpcmode is required for Fargate tasks.If you specify
This is a convenience method that creates an instance of theNetworkConfigurationwhen the target ECS task does not use theawsvpcnetwork mode, the task fails.NetworkConfiguration.Builderavoiding the need to create one manually viaNetworkConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonetworkConfiguration(NetworkConfiguration).- Parameters:
networkConfiguration- a consumer that will call methods onNetworkConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
networkConfiguration(NetworkConfiguration)
-
overrides
PipeTargetEcsTaskParameters.Builder overrides(EcsTaskOverride overrides)
The overrides that are associated with a task.
- Parameters:
overrides- The overrides that are associated with a task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrides
default PipeTargetEcsTaskParameters.Builder overrides(Consumer<EcsTaskOverride.Builder> overrides)
The overrides that are associated with a task.
This is a convenience method that creates an instance of theEcsTaskOverride.Builderavoiding the need to create one manually viaEcsTaskOverride.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooverrides(EcsTaskOverride).- Parameters:
overrides- a consumer that will call methods onEcsTaskOverride.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
overrides(EcsTaskOverride)
-
placementConstraints
PipeTargetEcsTaskParameters.Builder placementConstraints(Collection<PlacementConstraint> 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).
- Parameters:
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).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
placementConstraints
PipeTargetEcsTaskParameters.Builder placementConstraints(PlacementConstraint... 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).
- Parameters:
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).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
placementConstraints
PipeTargetEcsTaskParameters.Builder placementConstraints(Consumer<PlacementConstraint.Builder>... 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).
This is a convenience method that creates an instance of thePlacementConstraint.Builderavoiding the need to create one manually viaPlacementConstraint.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#placementConstraints(List.) - Parameters:
placementConstraints- a consumer that will call methods onPlacementConstraint.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#placementConstraints(java.util.Collection)
-
placementStrategy
PipeTargetEcsTaskParameters.Builder placementStrategy(Collection<PlacementStrategy> placementStrategy)
The placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task.
- Parameters:
placementStrategy- The placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
placementStrategy
PipeTargetEcsTaskParameters.Builder placementStrategy(PlacementStrategy... placementStrategy)
The placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task.
- Parameters:
placementStrategy- The placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
placementStrategy
PipeTargetEcsTaskParameters.Builder placementStrategy(Consumer<PlacementStrategy.Builder>... placementStrategy)
The placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task.
This is a convenience method that creates an instance of thePlacementStrategy.Builderavoiding the need to create one manually viaPlacementStrategy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#placementStrategy(List.) - Parameters:
placementStrategy- a consumer that will call methods onPlacementStrategy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#placementStrategy(java.util.Collection)
-
platformVersion
PipeTargetEcsTaskParameters.Builder platformVersion(String platformVersion)
Specifies the platform version for the task. Specify only the numeric portion of the platform version, such as
1.1.0.This structure is used only if
LaunchTypeisFARGATE. For more information about valid platform versions, see Fargate Platform Versions in the Amazon Elastic Container Service Developer Guide.- Parameters:
platformVersion- Specifies the platform version for the task. Specify only the numeric portion of the platform version, such as1.1.0.This structure is used only if
LaunchTypeisFARGATE. For more information about valid platform versions, see Fargate Platform Versions in the Amazon Elastic Container Service Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
propagateTags
PipeTargetEcsTaskParameters.Builder propagateTags(String 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
TagResourceAPI action.- Parameters:
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 theTagResourceAPI action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PropagateTags,PropagateTags
-
propagateTags
PipeTargetEcsTaskParameters.Builder propagateTags(PropagateTags 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
TagResourceAPI action.- Parameters:
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 theTagResourceAPI action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PropagateTags,PropagateTags
-
referenceId
PipeTargetEcsTaskParameters.Builder referenceId(String referenceId)
The reference ID to use for the task.
- Parameters:
referenceId- The reference ID to use for the task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
PipeTargetEcsTaskParameters.Builder tags(Collection<Tag> 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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
PipeTargetEcsTaskParameters.Builder tags(Tag... 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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
PipeTargetEcsTaskParameters.Builder tags(Consumer<Tag.Builder>... 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.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
taskCount
PipeTargetEcsTaskParameters.Builder taskCount(Integer taskCount)
The number of tasks to create based on
TaskDefinition. The default is 1.- Parameters:
taskCount- The number of tasks to create based onTaskDefinition. The default is 1.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskDefinitionArn
PipeTargetEcsTaskParameters.Builder taskDefinitionArn(String taskDefinitionArn)
The ARN of the task definition to use if the event target is an Amazon ECS task.
- Parameters:
taskDefinitionArn- The ARN of the task definition to use if the event target is an Amazon ECS task.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-