Class DaemonTaskDefinition
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DaemonTaskDefinition.Builder,DaemonTaskDefinition>
The details of a daemon task definition. A daemon task definition is a template that describes the containers that form a daemon. Daemons deploy cross-cutting software agents independently across your Amazon ECS infrastructure.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic DaemonTaskDefinition.Builderbuilder()final List<DaemonContainerDefinition> A list of container definitions in JSON format that describe the containers that make up the daemon task.final Stringcpu()The number of CPU units used by the daemon task.final StringThe full Amazon Resource Name (ARN) of the daemon task definition.final InstantThe Unix timestamp for the time when the daemon task definition delete was requested.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final StringThe Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS container agent permission to make Amazon Web Services API calls on your behalf.final Stringfamily()The name of a family that this daemon 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 Volumes property.final Stringmemory()The amount of memory (in MiB) used by the daemon task.final InstantThe Unix timestamp for the time when the daemon task definition was registered.final StringThe principal that registered the daemon task definition.final Integerrevision()The revision of the daemon task in a particular family.static Class<? extends DaemonTaskDefinition.Builder> status()The status of the daemon task definition.final StringThe status of the daemon task definition.final StringThe short name or full Amazon Resource Name (ARN) of the IAM role that grants containers in the daemon task permission to call Amazon Web Services APIs 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.final List<DaemonVolume> volumes()The list of data volume definitions for the daemon task.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
daemonTaskDefinitionArn
The full Amazon Resource Name (ARN) of the daemon task definition.
- Returns:
- The full Amazon Resource Name (ARN) of the daemon task definition.
-
family
The name of a family that this daemon task definition is registered to.
- Returns:
- The name of a family that this daemon task definition is registered to.
-
revision
The revision of the daemon task in a particular family. The revision is a version number of a daemon task definition in a family. When you register a daemon task definition for the first time, the revision is
1. Each time that you register a new revision of a daemon task definition in the same family, the revision value always increases by one.- Returns:
- The revision of the daemon task in a particular family. The revision is a version number of a daemon task
definition in a family. When you register a daemon task definition for the first time, the revision is
1. Each time that you register a new revision of a daemon task definition in the same family, the revision value always increases by one.
-
taskRoleArn
The short name or full Amazon Resource Name (ARN) of the IAM role that grants containers in the daemon task permission to call Amazon Web Services APIs on your behalf.
- Returns:
- The short name or full Amazon Resource Name (ARN) of the IAM role that grants containers in the daemon task permission to call Amazon Web Services APIs on your behalf.
-
executionRoleArn
The Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS container agent permission to make Amazon Web Services API calls on your behalf.
- Returns:
- The Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS container agent permission to make Amazon Web Services API calls on your behalf.
-
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
A list of container definitions in JSON format that describe the containers that make up the daemon 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:
- A list of container definitions in JSON format that describe the containers that make up the daemon task.
-
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 list of data volume definitions for the daemon 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 list of data volume definitions for the daemon task.
-
cpu
The number of CPU units used by the daemon task.
- Returns:
- The number of CPU units used by the daemon task.
-
memory
The amount of memory (in MiB) used by the daemon task.
- Returns:
- The amount of memory (in MiB) used by the daemon task.
-
status
The status of the daemon task definition. The valid values are
ACTIVE,DELETE_IN_PROGRESS, andDELETED.If the service returns an enum value that is not available in the current SDK version,
statuswill returnDaemonTaskDefinitionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the daemon task definition. The valid values are
ACTIVE,DELETE_IN_PROGRESS, andDELETED. - See Also:
-
statusAsString
The status of the daemon task definition. The valid values are
ACTIVE,DELETE_IN_PROGRESS, andDELETED.If the service returns an enum value that is not available in the current SDK version,
statuswill returnDaemonTaskDefinitionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the daemon task definition. The valid values are
ACTIVE,DELETE_IN_PROGRESS, andDELETED. - See Also:
-
registeredAt
The Unix timestamp for the time when the daemon task definition was registered.
- Returns:
- The Unix timestamp for the time when the daemon task definition was registered.
-
deleteRequestedAt
The Unix timestamp for the time when the daemon task definition delete was requested.
- Returns:
- The Unix timestamp for the time when the daemon task definition delete was requested.
-
registeredBy
The principal that registered the daemon task definition.
- Returns:
- The principal that registered the daemon 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<DaemonTaskDefinition.Builder,DaemonTaskDefinition> - 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
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-