Struct rusoto_ecs::TaskDefinition [] [src]

pub struct TaskDefinition {
    pub container_definitions: Option<Vec<ContainerDefinition>>,
    pub family: Option<String>,
    pub network_mode: Option<String>,
    pub placement_constraints: Option<Vec<TaskDefinitionPlacementConstraint>>,
    pub requires_attributes: Option<Vec<Attribute>>,
    pub revision: Option<i64>,
    pub status: Option<String>,
    pub task_definition_arn: Option<String>,
    pub task_role_arn: Option<String>,
    pub volumes: Option<Vec<Volume>>,
}

Details of a task definition.

Fields

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.

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

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.

An array of placement constraint objects to use for tasks.

The container instance attributes required by your task.

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).

The status of the task definition.

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

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.

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.

Trait Implementations

impl Default for TaskDefinition
[src]

[src]

Returns the "default value" for a type. Read more

impl Debug for TaskDefinition
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for TaskDefinition
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations