@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EcsParameters extends Object implements Serializable, Cloneable, StructuredPojo
The custom parameters to be used when the target is an Amazon ECS task.
| Constructor and Description |
|---|
EcsParameters() |
| Modifier and Type | Method and Description |
|---|---|
EcsParameters |
clone() |
boolean |
equals(Object obj) |
List<CapacityProviderStrategyItem> |
getCapacityProviderStrategy()
The capacity provider strategy to use for the task.
|
Boolean |
getEnableECSManagedTags()
Specifies whether to enable Amazon ECS managed tags for the task.
|
Boolean |
getEnableExecuteCommand()
Whether or not to enable the execute command functionality for the containers in this task.
|
String |
getGroup()
Specifies an ECS task group for the task.
|
String |
getLaunchType()
Specifies the launch type on which your task is running.
|
NetworkConfiguration |
getNetworkConfiguration()
Use this structure if the Amazon ECS task uses the
awsvpc network mode. |
List<PlacementConstraint> |
getPlacementConstraints()
An array of placement constraint objects to use for the task.
|
List<PlacementStrategy> |
getPlacementStrategy()
The placement strategy objects to use for the task.
|
String |
getPlatformVersion()
Specifies the platform version for the task.
|
String |
getPropagateTags()
Specifies whether to propagate the tags from the task definition to the task.
|
String |
getReferenceId()
The reference ID to use for the task.
|
List<Tag> |
getTags()
The metadata that you apply to the task to help you categorize and organize them.
|
Integer |
getTaskCount()
The number of tasks to create based on
TaskDefinition. |
String |
getTaskDefinitionArn()
The ARN of the task definition to use if the event target is an Amazon ECS task.
|
int |
hashCode() |
Boolean |
isEnableECSManagedTags()
Specifies whether to enable Amazon ECS managed tags for the task.
|
Boolean |
isEnableExecuteCommand()
Whether or not to enable the execute command functionality for the containers in this task.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setCapacityProviderStrategy(Collection<CapacityProviderStrategyItem> capacityProviderStrategy)
The capacity provider strategy to use for the task.
|
void |
setEnableECSManagedTags(Boolean enableECSManagedTags)
Specifies whether to enable Amazon ECS managed tags for the task.
|
void |
setEnableExecuteCommand(Boolean enableExecuteCommand)
Whether or not to enable the execute command functionality for the containers in this task.
|
void |
setGroup(String group)
Specifies an ECS task group for the task.
|
void |
setLaunchType(String launchType)
Specifies the launch type on which your task is running.
|
void |
setNetworkConfiguration(NetworkConfiguration networkConfiguration)
Use this structure if the Amazon ECS task uses the
awsvpc network mode. |
void |
setPlacementConstraints(Collection<PlacementConstraint> placementConstraints)
An array of placement constraint objects to use for the task.
|
void |
setPlacementStrategy(Collection<PlacementStrategy> placementStrategy)
The placement strategy objects to use for the task.
|
void |
setPlatformVersion(String platformVersion)
Specifies the platform version for the task.
|
void |
setPropagateTags(String propagateTags)
Specifies whether to propagate the tags from the task definition to the task.
|
void |
setReferenceId(String referenceId)
The reference ID to use for the task.
|
void |
setTags(Collection<Tag> tags)
The metadata that you apply to the task to help you categorize and organize them.
|
void |
setTaskCount(Integer taskCount)
The number of tasks to create based on
TaskDefinition. |
void |
setTaskDefinitionArn(String taskDefinitionArn)
The ARN of the task definition to use if the event target is an Amazon ECS task.
|
String |
toString()
Returns a string representation of this object.
|
EcsParameters |
withCapacityProviderStrategy(CapacityProviderStrategyItem... capacityProviderStrategy)
The capacity provider strategy to use for the task.
|
EcsParameters |
withCapacityProviderStrategy(Collection<CapacityProviderStrategyItem> capacityProviderStrategy)
The capacity provider strategy to use for the task.
|
EcsParameters |
withEnableECSManagedTags(Boolean enableECSManagedTags)
Specifies whether to enable Amazon ECS managed tags for the task.
|
EcsParameters |
withEnableExecuteCommand(Boolean enableExecuteCommand)
Whether or not to enable the execute command functionality for the containers in this task.
|
EcsParameters |
withGroup(String group)
Specifies an ECS task group for the task.
|
EcsParameters |
withLaunchType(LaunchType launchType)
Specifies the launch type on which your task is running.
|
EcsParameters |
withLaunchType(String launchType)
Specifies the launch type on which your task is running.
|
EcsParameters |
withNetworkConfiguration(NetworkConfiguration networkConfiguration)
Use this structure if the Amazon ECS task uses the
awsvpc network mode. |
EcsParameters |
withPlacementConstraints(Collection<PlacementConstraint> placementConstraints)
An array of placement constraint objects to use for the task.
|
EcsParameters |
withPlacementConstraints(PlacementConstraint... placementConstraints)
An array of placement constraint objects to use for the task.
|
EcsParameters |
withPlacementStrategy(Collection<PlacementStrategy> placementStrategy)
The placement strategy objects to use for the task.
|
EcsParameters |
withPlacementStrategy(PlacementStrategy... placementStrategy)
The placement strategy objects to use for the task.
|
EcsParameters |
withPlatformVersion(String platformVersion)
Specifies the platform version for the task.
|
EcsParameters |
withPropagateTags(PropagateTags propagateTags)
Specifies whether to propagate the tags from the task definition to the task.
|
EcsParameters |
withPropagateTags(String propagateTags)
Specifies whether to propagate the tags from the task definition to the task.
|
EcsParameters |
withReferenceId(String referenceId)
The reference ID to use for the task.
|
EcsParameters |
withTags(Collection<Tag> tags)
The metadata that you apply to the task to help you categorize and organize them.
|
EcsParameters |
withTags(Tag... tags)
The metadata that you apply to the task to help you categorize and organize them.
|
EcsParameters |
withTaskCount(Integer taskCount)
The number of tasks to create based on
TaskDefinition. |
EcsParameters |
withTaskDefinitionArn(String taskDefinitionArn)
The ARN of the task definition to use if the event target is an Amazon ECS task.
|
public void setTaskDefinitionArn(String taskDefinitionArn)
The ARN of the task definition to use if the event target is an Amazon ECS task.
taskDefinitionArn - The ARN of the task definition to use if the event target is an Amazon ECS task.public String getTaskDefinitionArn()
The ARN of the task definition to use if the event target is an Amazon ECS task.
public EcsParameters withTaskDefinitionArn(String taskDefinitionArn)
The ARN of the task definition to use if the event target is an Amazon ECS task.
taskDefinitionArn - The ARN of the task definition to use if the event target is an Amazon ECS task.public void setTaskCount(Integer taskCount)
The number of tasks to create based on TaskDefinition. The default is 1.
taskCount - The number of tasks to create based on TaskDefinition. The default is 1.public Integer getTaskCount()
The number of tasks to create based on TaskDefinition. The default is 1.
TaskDefinition. The default is 1.public EcsParameters withTaskCount(Integer taskCount)
The number of tasks to create based on TaskDefinition. The default is 1.
taskCount - The number of tasks to create based on TaskDefinition. The default is 1.public void setLaunchType(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 FARGATE value 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.
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 FARGATE value 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.LaunchTypepublic String getLaunchType()
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 FARGATE value 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.
FARGATE value 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.LaunchTypepublic EcsParameters withLaunchType(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 FARGATE value 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.
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 FARGATE value 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.LaunchTypepublic EcsParameters withLaunchType(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 FARGATE value 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.
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 FARGATE value 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.LaunchTypepublic void setNetworkConfiguration(NetworkConfiguration networkConfiguration)
Use this structure if the Amazon ECS task uses the awsvpc network 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 if LaunchType is FARGATE because the awsvpc mode is
required for Fargate tasks.
If you specify NetworkConfiguration when the target ECS task does not use the awsvpc
network mode, the task fails.
networkConfiguration - Use this structure if the Amazon ECS task uses the awsvpc network 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 if LaunchType is FARGATE because the
awsvpc mode is required for Fargate tasks.
If you specify NetworkConfiguration when the target ECS task does not use the
awsvpc network mode, the task fails.
public NetworkConfiguration getNetworkConfiguration()
Use this structure if the Amazon ECS task uses the awsvpc network 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 if LaunchType is FARGATE because the awsvpc mode is
required for Fargate tasks.
If you specify NetworkConfiguration when the target ECS task does not use the awsvpc
network mode, the task fails.
awsvpc network 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 if LaunchType is FARGATE because the
awsvpc mode is required for Fargate tasks.
If you specify NetworkConfiguration when the target ECS task does not use the
awsvpc network mode, the task fails.
public EcsParameters withNetworkConfiguration(NetworkConfiguration networkConfiguration)
Use this structure if the Amazon ECS task uses the awsvpc network 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 if LaunchType is FARGATE because the awsvpc mode is
required for Fargate tasks.
If you specify NetworkConfiguration when the target ECS task does not use the awsvpc
network mode, the task fails.
networkConfiguration - Use this structure if the Amazon ECS task uses the awsvpc network 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 if LaunchType is FARGATE because the
awsvpc mode is required for Fargate tasks.
If you specify NetworkConfiguration when the target ECS task does not use the
awsvpc network mode, the task fails.
public void setPlatformVersion(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 LaunchType is FARGATE. For more information about valid
platform versions, see Fargate Platform
Versions in the Amazon Elastic Container Service Developer Guide.
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 LaunchType is FARGATE. For more information about
valid platform versions, see Fargate Platform
Versions in the Amazon Elastic Container Service Developer Guide.
public String getPlatformVersion()
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 LaunchType is FARGATE. For more information about valid
platform versions, see Fargate Platform
Versions in the Amazon Elastic Container Service Developer Guide.
1.1.0.
This structure is used only if LaunchType is FARGATE. For more information
about valid platform versions, see Fargate
Platform Versions in the Amazon Elastic Container Service Developer Guide.
public EcsParameters withPlatformVersion(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 LaunchType is FARGATE. For more information about valid
platform versions, see Fargate Platform
Versions in the Amazon Elastic Container Service Developer Guide.
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 LaunchType is FARGATE. For more information about
valid platform versions, see Fargate Platform
Versions in the Amazon Elastic Container Service Developer Guide.
public void setGroup(String group)
Specifies an ECS task group for the task. The maximum length is 255 characters.
group - Specifies an ECS task group for the task. The maximum length is 255 characters.public String getGroup()
Specifies an ECS task group for the task. The maximum length is 255 characters.
public EcsParameters withGroup(String group)
Specifies an ECS task group for the task. The maximum length is 255 characters.
group - Specifies an ECS task group for the task. The maximum length is 255 characters.public List<CapacityProviderStrategyItem> getCapacityProviderStrategy()
The capacity provider strategy to use for the task.
If a capacityProviderStrategy is specified, the launchType parameter must be omitted.
If no capacityProviderStrategy or launchType is specified, the
defaultCapacityProviderStrategy for the cluster is used.
If a capacityProviderStrategy is specified, the launchType parameter must be
omitted. If no capacityProviderStrategy or launchType is specified, the
defaultCapacityProviderStrategy for the cluster is used.
public void setCapacityProviderStrategy(Collection<CapacityProviderStrategyItem> capacityProviderStrategy)
The capacity provider strategy to use for the task.
If a capacityProviderStrategy is specified, the launchType parameter must be omitted.
If no capacityProviderStrategy or launchType is specified, the
defaultCapacityProviderStrategy for the cluster is used.
capacityProviderStrategy - The capacity provider strategy to use for the task.
If a capacityProviderStrategy is specified, the launchType parameter must be
omitted. If no capacityProviderStrategy or launchType is specified, the
defaultCapacityProviderStrategy for the cluster is used.
public EcsParameters withCapacityProviderStrategy(CapacityProviderStrategyItem... capacityProviderStrategy)
The capacity provider strategy to use for the task.
If a capacityProviderStrategy is specified, the launchType parameter must be omitted.
If no capacityProviderStrategy or launchType is specified, the
defaultCapacityProviderStrategy for the cluster is used.
NOTE: This method appends the values to the existing list (if any). Use
setCapacityProviderStrategy(java.util.Collection) or
withCapacityProviderStrategy(java.util.Collection) if you want to override the existing values.
capacityProviderStrategy - The capacity provider strategy to use for the task.
If a capacityProviderStrategy is specified, the launchType parameter must be
omitted. If no capacityProviderStrategy or launchType is specified, the
defaultCapacityProviderStrategy for the cluster is used.
public EcsParameters withCapacityProviderStrategy(Collection<CapacityProviderStrategyItem> capacityProviderStrategy)
The capacity provider strategy to use for the task.
If a capacityProviderStrategy is specified, the launchType parameter must be omitted.
If no capacityProviderStrategy or launchType is specified, the
defaultCapacityProviderStrategy for the cluster is used.
capacityProviderStrategy - The capacity provider strategy to use for the task.
If a capacityProviderStrategy is specified, the launchType parameter must be
omitted. If no capacityProviderStrategy or launchType is specified, the
defaultCapacityProviderStrategy for the cluster is used.
public void setEnableECSManagedTags(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.
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.public Boolean getEnableECSManagedTags()
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.
public EcsParameters withEnableECSManagedTags(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.
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.public Boolean isEnableECSManagedTags()
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.
public void setEnableExecuteCommand(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.
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.public Boolean getEnableExecuteCommand()
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.
public EcsParameters withEnableExecuteCommand(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.
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.public Boolean isEnableExecuteCommand()
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.
public List<PlacementConstraint> getPlacementConstraints()
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).
public void setPlacementConstraints(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).
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).public EcsParameters withPlacementConstraints(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).
NOTE: This method appends the values to the existing list (if any). Use
setPlacementConstraints(java.util.Collection) or withPlacementConstraints(java.util.Collection)
if you want to override the existing values.
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).public EcsParameters withPlacementConstraints(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).
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).public List<PlacementStrategy> getPlacementStrategy()
The placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task.
public void setPlacementStrategy(Collection<PlacementStrategy> placementStrategy)
The placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task.
placementStrategy - The placement strategy objects to use for the task. You can specify a maximum of five strategy rules per
task.public EcsParameters withPlacementStrategy(PlacementStrategy... placementStrategy)
The placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task.
NOTE: This method appends the values to the existing list (if any). Use
setPlacementStrategy(java.util.Collection) or withPlacementStrategy(java.util.Collection) if
you want to override the existing values.
placementStrategy - The placement strategy objects to use for the task. You can specify a maximum of five strategy rules per
task.public EcsParameters withPlacementStrategy(Collection<PlacementStrategy> placementStrategy)
The placement strategy objects to use for the task. You can specify a maximum of five strategy rules per task.
placementStrategy - The placement strategy objects to use for the task. You can specify a maximum of five strategy rules per
task.public void setPropagateTags(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 TagResource API action.
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 TagResource API action.PropagateTagspublic String getPropagateTags()
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 TagResource API action.
PropagateTagspublic EcsParameters withPropagateTags(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 TagResource API action.
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 TagResource API action.PropagateTagspublic EcsParameters withPropagateTags(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 TagResource API action.
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 TagResource API action.PropagateTagspublic void setReferenceId(String referenceId)
The reference ID to use for the task.
referenceId - The reference ID to use for the task.public String getReferenceId()
The reference ID to use for the task.
public EcsParameters withReferenceId(String referenceId)
The reference ID to use for the task.
referenceId - The reference ID to use for the task.public List<Tag> getTags()
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.
public void setTags(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.
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.public EcsParameters withTags(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.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection) or withTags(java.util.Collection) if you want to override the
existing values.
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.public EcsParameters withTags(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.
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.public String toString()
toString in class ObjectObject.toString()public EcsParameters clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.