Class CfnSchedule.EcsParametersProperty.Builder
java.lang.Object
software.amazon.awscdk.services.scheduler.CfnSchedule.EcsParametersProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSchedule.EcsParametersProperty>
- Enclosing interface:
CfnSchedule.EcsParametersProperty
@Stability(Stable)
public static final class CfnSchedule.EcsParametersProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSchedule.EcsParametersProperty>
A builder for
CfnSchedule.EcsParametersProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.capacityProviderStrategy
(List<? extends Object> capacityProviderStrategy) Sets the value ofCfnSchedule.EcsParametersProperty.getCapacityProviderStrategy()
capacityProviderStrategy
(IResolvable capacityProviderStrategy) Sets the value ofCfnSchedule.EcsParametersProperty.getCapacityProviderStrategy()
enableEcsManagedTags
(Boolean enableEcsManagedTags) Sets the value ofCfnSchedule.EcsParametersProperty.getEnableEcsManagedTags()
enableEcsManagedTags
(IResolvable enableEcsManagedTags) Sets the value ofCfnSchedule.EcsParametersProperty.getEnableEcsManagedTags()
enableExecuteCommand
(Boolean enableExecuteCommand) Sets the value ofCfnSchedule.EcsParametersProperty.getEnableExecuteCommand()
enableExecuteCommand
(IResolvable enableExecuteCommand) Sets the value ofCfnSchedule.EcsParametersProperty.getEnableExecuteCommand()
Sets the value ofCfnSchedule.EcsParametersProperty.getGroup()
launchType
(String launchType) Sets the value ofCfnSchedule.EcsParametersProperty.getLaunchType()
networkConfiguration
(IResolvable networkConfiguration) Sets the value ofCfnSchedule.EcsParametersProperty.getNetworkConfiguration()
networkConfiguration
(CfnSchedule.NetworkConfigurationProperty networkConfiguration) Sets the value ofCfnSchedule.EcsParametersProperty.getNetworkConfiguration()
placementConstraints
(List<? extends Object> placementConstraints) Sets the value ofCfnSchedule.EcsParametersProperty.getPlacementConstraints()
placementConstraints
(IResolvable placementConstraints) Sets the value ofCfnSchedule.EcsParametersProperty.getPlacementConstraints()
placementStrategy
(List<? extends Object> placementStrategy) Sets the value ofCfnSchedule.EcsParametersProperty.getPlacementStrategy()
placementStrategy
(IResolvable placementStrategy) Sets the value ofCfnSchedule.EcsParametersProperty.getPlacementStrategy()
platformVersion
(String platformVersion) Sets the value ofCfnSchedule.EcsParametersProperty.getPlatformVersion()
propagateTags
(String propagateTags) Sets the value ofCfnSchedule.EcsParametersProperty.getPropagateTags()
referenceId
(String referenceId) Sets the value ofCfnSchedule.EcsParametersProperty.getReferenceId()
Sets the value ofCfnSchedule.EcsParametersProperty.getTags()
Sets the value ofCfnSchedule.EcsParametersProperty.getTaskCount()
taskDefinitionArn
(String taskDefinitionArn) Sets the value ofCfnSchedule.EcsParametersProperty.getTaskDefinitionArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
taskDefinitionArn
@Stability(Stable) public CfnSchedule.EcsParametersProperty.Builder taskDefinitionArn(String taskDefinitionArn) Sets the value ofCfnSchedule.EcsParametersProperty.getTaskDefinitionArn()
- Parameters:
taskDefinitionArn
- The Amazon Resource Name (ARN) of the task definition to use if the event target is an Amazon ECS task. This parameter is required.- Returns:
this
-
capacityProviderStrategy
@Stability(Stable) public CfnSchedule.EcsParametersProperty.Builder capacityProviderStrategy(IResolvable capacityProviderStrategy) Sets the value ofCfnSchedule.EcsParametersProperty.getCapacityProviderStrategy()
- Parameters:
capacityProviderStrategy
- The capacity provider strategy to use for the task.- Returns:
this
-
capacityProviderStrategy
@Stability(Stable) public CfnSchedule.EcsParametersProperty.Builder capacityProviderStrategy(List<? extends Object> capacityProviderStrategy) Sets the value ofCfnSchedule.EcsParametersProperty.getCapacityProviderStrategy()
- Parameters:
capacityProviderStrategy
- The capacity provider strategy to use for the task.- Returns:
this
-
enableEcsManagedTags
@Stability(Stable) public CfnSchedule.EcsParametersProperty.Builder enableEcsManagedTags(Boolean enableEcsManagedTags) Sets the value ofCfnSchedule.EcsParametersProperty.getEnableEcsManagedTags()
- 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 ECS Developer Guide .- Returns:
this
-
enableEcsManagedTags
@Stability(Stable) public CfnSchedule.EcsParametersProperty.Builder enableEcsManagedTags(IResolvable enableEcsManagedTags) Sets the value ofCfnSchedule.EcsParametersProperty.getEnableEcsManagedTags()
- 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 ECS Developer Guide .- Returns:
this
-
enableExecuteCommand
@Stability(Stable) public CfnSchedule.EcsParametersProperty.Builder enableExecuteCommand(Boolean enableExecuteCommand) Sets the value ofCfnSchedule.EcsParametersProperty.getEnableExecuteCommand()
- 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:
this
-
enableExecuteCommand
@Stability(Stable) public CfnSchedule.EcsParametersProperty.Builder enableExecuteCommand(IResolvable enableExecuteCommand) Sets the value ofCfnSchedule.EcsParametersProperty.getEnableExecuteCommand()
- 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:
this
-
group
Sets the value ofCfnSchedule.EcsParametersProperty.getGroup()
- Parameters:
group
- Specifies an Amazon ECS task group for the task. The maximum length is 255 characters.- Returns:
this
-
launchType
Sets the value ofCfnSchedule.EcsParametersProperty.getLaunchType()
- 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. TheFARGATE
value is supported only in the Regions where Fargate with Amazon ECS is supported. For more information, see AWS Fargate on Amazon ECS in the Amazon ECS Developer Guide .- Returns:
this
-
networkConfiguration
@Stability(Stable) public CfnSchedule.EcsParametersProperty.Builder networkConfiguration(IResolvable networkConfiguration) Sets the value ofCfnSchedule.EcsParametersProperty.getNetworkConfiguration()
- Parameters:
networkConfiguration
- This structure specifies the network configuration for an ECS task.- Returns:
this
-
networkConfiguration
@Stability(Stable) public CfnSchedule.EcsParametersProperty.Builder networkConfiguration(CfnSchedule.NetworkConfigurationProperty networkConfiguration) Sets the value ofCfnSchedule.EcsParametersProperty.getNetworkConfiguration()
- Parameters:
networkConfiguration
- This structure specifies the network configuration for an ECS task.- Returns:
this
-
placementConstraints
@Stability(Stable) public CfnSchedule.EcsParametersProperty.Builder placementConstraints(IResolvable placementConstraints) Sets the value ofCfnSchedule.EcsParametersProperty.getPlacementConstraints()
- 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:
this
-
placementConstraints
@Stability(Stable) public CfnSchedule.EcsParametersProperty.Builder placementConstraints(List<? extends Object> placementConstraints) Sets the value ofCfnSchedule.EcsParametersProperty.getPlacementConstraints()
- 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:
this
-
placementStrategy
@Stability(Stable) public CfnSchedule.EcsParametersProperty.Builder placementStrategy(IResolvable placementStrategy) Sets the value ofCfnSchedule.EcsParametersProperty.getPlacementStrategy()
- Parameters:
placementStrategy
- The task placement strategy for a task or service.- Returns:
this
-
placementStrategy
@Stability(Stable) public CfnSchedule.EcsParametersProperty.Builder placementStrategy(List<? extends Object> placementStrategy) Sets the value ofCfnSchedule.EcsParametersProperty.getPlacementStrategy()
- Parameters:
placementStrategy
- The task placement strategy for a task or service.- Returns:
this
-
platformVersion
@Stability(Stable) public CfnSchedule.EcsParametersProperty.Builder platformVersion(String platformVersion) Sets the value ofCfnSchedule.EcsParametersProperty.getPlatformVersion()
- Parameters:
platformVersion
- Specifies the platform version for the task. Specify only the numeric portion of the platform version, such as1.1.0
.- Returns:
this
-
propagateTags
@Stability(Stable) public CfnSchedule.EcsParametersProperty.Builder propagateTags(String propagateTags) Sets the value ofCfnSchedule.EcsParametersProperty.getPropagateTags()
- 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 the Amazon ECSTagResource
API action.- Returns:
this
-
referenceId
Sets the value ofCfnSchedule.EcsParametersProperty.getReferenceId()
- Parameters:
referenceId
- The reference ID to use for the task.- Returns:
this
-
tags
Sets the value ofCfnSchedule.EcsParametersProperty.getTags()
- 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. For more information, seeRunTask
in the Amazon ECS API Reference .- Returns:
this
-
taskCount
Sets the value ofCfnSchedule.EcsParametersProperty.getTaskCount()
- Parameters:
taskCount
- The number of tasks to create based onTaskDefinition
. The default is1
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSchedule.EcsParametersProperty>
- Returns:
- a new instance of
CfnSchedule.EcsParametersProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-