Class AwsEcsTaskDefinitionDetails
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<AwsEcsTaskDefinitionDetails.Builder,
AwsEcsTaskDefinitionDetails>
Details about a task definition. A task definition describes the container and volume definitions of an Amazon Elastic Container Service task.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The container definitions that describe the containers that make up the task.final String
cpu()
The number of CPU units used by the task.Valid values are as follows:final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final String
The ARN of the task execution role that grants the container agent permission to make API calls on behalf of the container user.final String
family()
The name of a family that this task definition is registered to.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final boolean
For responses, this returns true if the service returned a value for the ContainerDefinitions property.final int
hashCode()
final boolean
For responses, this returns true if the service returned a value for the InferenceAccelerators property.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 RequiresCompatibilities property.final boolean
For responses, this returns true if the service returned a value for the Volumes property.The Elastic Inference accelerators to use for the containers in the task.final String
ipcMode()
The inter-process communication (IPC) resource namespace to use for the containers in the task.final String
memory()
The amount (in MiB) of memory used by the task.final String
The Docker networking mode to use for the containers in the task.final String
pidMode()
The process namespace to use for the containers in the task.The placement constraint objects to use for tasks.The configuration details for the App Mesh proxy.The task launch types that the task definition was validated against.static Class
<? extends AwsEcsTaskDefinitionDetails.Builder> final String
status()
The status of the task definition.final String
The short name or ARN of the IAM role that grants containers in the task permission to call Amazon Web Services API operations on your behalf.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.volumes()
The data volume definitions for the task.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
hasContainerDefinitions
public final boolean hasContainerDefinitions()For responses, this returns true if the service returned a value for the ContainerDefinitions 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. -
containerDefinitions
The container definitions that describe the containers that make up 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
hasContainerDefinitions()
method.- Returns:
- The container definitions that describe the containers that make up the task.
-
cpu
The number of CPU units used by the task.Valid values are as follows:
-
256 (.25 vCPU)
-
512 (.5 vCPU)
-
1024 (1 vCPU)
-
2048 (2 vCPU)
-
4096 (4 vCPU)
- Returns:
- The number of CPU units used by the task.Valid values are as follows:
-
256 (.25 vCPU)
-
512 (.5 vCPU)
-
1024 (1 vCPU)
-
2048 (2 vCPU)
-
4096 (4 vCPU)
-
-
-
executionRoleArn
The ARN of the task execution role that grants the container agent permission to make API calls on behalf of the container user.
- Returns:
- The ARN of the task execution role that grants the container agent permission to make API calls on behalf of the container user.
-
family
The name of a family that this task definition is registered to.
- Returns:
- The name of a family that this task definition is registered to.
-
hasInferenceAccelerators
public final boolean hasInferenceAccelerators()For responses, this returns true if the service returned a value for the InferenceAccelerators 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. -
inferenceAccelerators
The Elastic Inference accelerators to use for the containers in 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
hasInferenceAccelerators()
method.- Returns:
- The Elastic Inference accelerators to use for the containers in the task.
-
ipcMode
The inter-process communication (IPC) resource namespace to use for the containers in the task. Valid values are as follows:
-
host
-
none
-
task
- Returns:
- The inter-process communication (IPC) resource namespace to use for the containers in the task. Valid
values are as follows:
-
host
-
none
-
task
-
-
-
memory
The amount (in MiB) of memory used by the task.
For tasks that are hosted on Amazon EC2, you can provide a task-level memory value or a container-level memory value. For tasks that are hosted on Fargate, you must use one of the specified values in the Amazon Elastic Container Service Developer Guide , which determines your range of supported values for the
Cpu
andMemory
parameters.- Returns:
- The amount (in MiB) of memory used by the task.
For tasks that are hosted on Amazon EC2, you can provide a task-level memory value or a container-level memory value. For tasks that are hosted on Fargate, you must use one of the specified values in the Amazon Elastic Container Service Developer Guide , which determines your range of supported values for the
Cpu
andMemory
parameters.
-
networkMode
The Docker networking mode to use for the containers in the task. Valid values are as follows:
-
awsvpc
-
bridge
-
host
-
none
- Returns:
- The Docker networking mode to use for the containers in the task. Valid values are as follows:
-
awsvpc
-
bridge
-
host
-
none
-
-
-
pidMode
The process namespace to use for the containers in the task. Valid values are
host
ortask
.- Returns:
- The process namespace to use for the containers in the task. Valid values are
host
ortask
.
-
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
The placement constraint objects to use for tasks.
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:
- The placement constraint objects to use for tasks.
-
proxyConfiguration
The configuration details for the App Mesh proxy.
- Returns:
- The configuration details for the App Mesh proxy.
-
hasRequiresCompatibilities
public final boolean hasRequiresCompatibilities()For responses, this returns true if the service returned a value for the RequiresCompatibilities 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. -
requiresCompatibilities
The task launch types that the task definition was validated against.
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
hasRequiresCompatibilities()
method.- Returns:
- The task launch types that the task definition was validated against.
-
taskRoleArn
The short name or ARN of the IAM role that grants containers in the task permission to call Amazon Web Services API operations on your behalf.
- Returns:
- The short name or ARN of the IAM role that grants containers in the task permission to call Amazon Web Services API operations on your behalf.
-
hasVolumes
public final boolean hasVolumes()For responses, this returns true if the service returned a value for the Volumes 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. -
volumes
The data volume definitions 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
hasVolumes()
method.- Returns:
- The data volume definitions for the task.
-
status
The status of the task definition.
- Returns:
- The status of the task definition.
-
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<AwsEcsTaskDefinitionDetails.Builder,
AwsEcsTaskDefinitionDetails> - 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
-