Class EcsParameters
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<EcsParameters.Builder,
EcsParameters>
The templated target type for the Amazon ECS RunTask
API
operation.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EcsParameters.Builder
builder()
final List
<CapacityProviderStrategyItem> The capacity provider strategy to use for the task.final Boolean
Specifies whether to enable Amazon ECS managed tags for the task.final Boolean
Whether or not to enable the execute command functionality for the containers in this task.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final String
group()
Specifies an ECS task group for the task.final boolean
For responses, this returns true if the service returned a value for the CapacityProviderStrategy property.final int
hashCode()
final boolean
For responses, this returns true if the service returned a value for the PlacementConstraints property.final boolean
For responses, this returns true if the service returned a value for the PlacementStrategy property.final boolean
hasTags()
For responses, this returns true if the service returned a value for the Tags property.final LaunchType
Specifies the launch type on which your task is running.final String
Specifies the launch type on which your task is running.final NetworkConfiguration
This structure specifies the network configuration for an ECS task.final List
<PlacementConstraint> An array of placement constraint objects to use for the task.final List
<PlacementStrategy> The task placement strategy for a task or service.final String
Specifies the platform version for the task.final PropagateTags
Specifies whether to propagate the tags from the task definition to the task.final String
Specifies whether to propagate the tags from the task definition to the task.final String
The reference ID to use for the task.static Class
<? extends EcsParameters.Builder> tags()
The metadata that you apply to the task to help you categorize and organize them.final Integer
The number of tasks to create based onTaskDefinition
.final String
The Amazon Resource Name (ARN) of the task definition to use if the event target is an Amazon ECS task.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
hasCapacityProviderStrategy
public final boolean hasCapacityProviderStrategy()For responses, this returns true if the service returned a value for the CapacityProviderStrategy property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
capacityProviderStrategy
The capacity provider strategy to use for the task.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasCapacityProviderStrategy()
method.- Returns:
- The capacity provider strategy to use for the task.
-
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:
- 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.
-
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:
- 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.
- Returns:
- 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. The
FARGATE
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.If the service returns an enum value that is not available in the current SDK version,
launchType
will returnLaunchType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromlaunchTypeAsString()
.- 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. The
FARGATE
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. - See Also:
-
launchTypeAsString
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 AWS Fargate on Amazon ECS in the Amazon ECS Developer Guide.If the service returns an enum value that is not available in the current SDK version,
launchType
will returnLaunchType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromlaunchTypeAsString()
.- 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. The
FARGATE
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. - See Also:
-
networkConfiguration
This structure specifies the network configuration for an ECS task.
- Returns:
- This structure specifies the network configuration for an ECS task.
-
hasPlacementConstraints
public final boolean hasPlacementConstraints()For responses, this returns true if the service returned a value for the PlacementConstraints property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
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).
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasPlacementConstraints()
method.- 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).
-
hasPlacementStrategy
public final boolean hasPlacementStrategy()For responses, this returns true if the service returned a value for the PlacementStrategy property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
placementStrategy
The task placement strategy for a task or service.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasPlacementStrategy()
method.- Returns:
- The task placement strategy for a task or service.
-
platformVersion
Specifies the platform version for the task. Specify only the numeric portion of the platform version, such as
1.1.0
.- Returns:
- Specifies the platform version for the task. Specify only the numeric portion of the platform version,
such as
1.1.0
.
-
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 Amazon ECS's
TagResource
API action.If the service returns an enum value that is not available in the current SDK version,
propagateTags
will returnPropagateTags.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frompropagateTagsAsString()
.- 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. To add tags to
a task after task creation, use Amazon ECS's
TagResource
API action. - See Also:
-
propagateTagsAsString
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 Amazon ECS's
TagResource
API action.If the service returns an enum value that is not available in the current SDK version,
propagateTags
will returnPropagateTags.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frompropagateTagsAsString()
.- 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. To add tags to
a task after task creation, use Amazon ECS's
TagResource
API action. - See Also:
-
referenceId
The reference ID to use for the task.
- Returns:
- The reference ID to use for the task.
-
hasTags
public final boolean hasTags()For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
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, see
RunTask
in the Amazon ECS API Reference.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTags()
method.- Returns:
- 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, see
RunTask
in the Amazon ECS API Reference.
-
taskCount
The number of tasks to create based on
TaskDefinition
. The default is1
.- Returns:
- The number of tasks to create based on
TaskDefinition
. The default is1
.
-
taskDefinitionArn
The Amazon Resource Name (ARN) of the task definition to use if the event target is an Amazon ECS task.
- Returns:
- The Amazon Resource Name (ARN) of the task definition to use if the event target is an Amazon ECS task.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<EcsParameters.Builder,
EcsParameters> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-