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 Stringcpu()The number of CPU units used by the task.Valid values are as follows:final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final StringThe ARN of the task execution role that grants the container agent permission to make API calls on behalf of the container user.final Stringfamily()The name of a family that this task definition is registered to.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the ContainerDefinitions property.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the InferenceAccelerators property.final booleanFor responses, this returns true if the service returned a value for the PlacementConstraints property.final booleanFor responses, this returns true if the service returned a value for the RequiresCompatibilities property.final booleanFor 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 StringipcMode()The inter-process communication (IPC) resource namespace to use for the containers in the task.final Stringmemory()The amount (in MiB) of memory used by the task.final StringThe Docker networking mode to use for the containers in the task.final StringpidMode()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 Stringstatus()The status of the task definition.final StringThe 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 StringtoString()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
CpuandMemoryparameters.- 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
CpuandMemoryparameters.
-
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
hostortask.- Returns:
- The process namespace to use for the containers in the task. Valid values are
hostortask.
-
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:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<AwsEcsTaskDefinitionDetails.Builder,AwsEcsTaskDefinitionDetails> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin 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
-
getValueForField
-
sdkFields
-