You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::ECS::Types::TaskDefinition

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Instance Attribute Summary collapse

Instance Attribute Details

#container_definitionsArray<Types::ContainerDefinition>

A list of container definitions in JSON format that describe the different containers that make up your task. For more information about container definition parameters and defaults, see Amazon ECS Task Definitions in the Amazon EC2 Container Service Developer Guide.

Returns:

  • (Array<Types::ContainerDefinition>)

    A list of container definitions in JSON format that describe the different containers that make up your task.

#familyString

The family of your task definition, used as the definition name.

Returns:

  • (String)

    The family of your task definition, used as the definition name.

#network_modeString

The Docker networking mode to use for the containers in the task. The valid values are none, bridge, and host.

If the network mode is none, the containers do not have external connectivity. The default Docker network mode is bridge. The host network mode offers the highest networking performance for containers because it uses the host network stack instead of the virtualized network stack provided by the bridge mode.

For more information, see Network settings in the Docker run reference.

Returns:

  • (String)

    The Docker networking mode to use for the containers in the task.

#placement_constraintsArray<Types::TaskDefinitionPlacementConstraint>

An array of placement constraint objects to use for tasks.

Returns:

#requires_attributesArray<Types::Attribute>

The container instance attributes required by your task.

Returns:

  • (Array<Types::Attribute>)

    The container instance attributes required by your task.

#revisionInteger

The revision of the task in a particular family. The revision is a version number of a task definition in a family. When you register a task definition for the first time, the revision is 1; each time you register a new revision of a task definition in the same family, the revision value always increases by one (even if you have deregistered previous revisions in this family).

Returns:

  • (Integer)

    The revision of the task in a particular family.

#statusString

The status of the task definition.

Possible values:

  • ACTIVE
  • INACTIVE

Returns:

  • (String)

    The status of the task definition.

#task_definition_arnString

The full Amazon Resource Name (ARN) of the task definition.

Returns:

  • (String)

    The full Amazon Resource Name (ARN) of the task definition.

#task_role_arnString

The Amazon Resource Name (ARN) of the IAM role that containers in this task can assume. All containers in this task are granted the permissions that are specified in this role.

Returns:

  • (String)

    The Amazon Resource Name (ARN) of the IAM role that containers in this task can assume.

#volumesArray<Types::Volume>

The list of volumes in a task. For more information about volume definition parameters and defaults, see Amazon ECS Task Definitions in the Amazon EC2 Container Service Developer Guide.

Returns: