Fugue.AWS.ECS.TaskDefinition

Module Members

external

(Function)

Create a reference to an externally defined TaskDefinition.

Example usage:

taskDefinition: ECS.TaskDefinition.external("arn:aws:ecs:us-east-2:0123456789:task-definition/wordpress:2")

Type Signature

 fun (String) -> TaskDefinition
Argument: arn

The ARN for the task definition revision to reference.

Type: String

Returns:

A reference to the specified TaskDefinition.

Type: TaskDefinition

new

(Function)

Type Signature

 fun { family: Optional<String>,
       containerDefinitions: List<ContainerDefinition>,
       networkMode: Optional<NetworkMode>,
       volumes: Optional<List<Volume>>,
       placementConstraints: Optional<List<String>>,
       region: Region,
       role: Optional<Role>,
       executionRole: Optional<Role>,
       requiresCompatibilities: Optional<List<LaunchType>>,
       cpu: Optional<Int>,
       memory: Optional<Int>,
       resourceId: Optional<String> } -> TaskDefinition
Argument: family
Type: Optional<String>
Argument: containerDefinitions
Type: List<ContainerDefinition>
Argument: networkMode
Type: Optional<NetworkMode>
Argument: volumes
Type: Optional<List<Volume>>
Argument: placementConstraints
Type: Optional<List<String>>
Argument: region
Type: Region
Argument: role
Type: Optional<Role>
Argument: executionRole
Type: Optional<Role>
Argument: requiresCompatibilities

The launch type the task is using. Default is ECS.Ec2.

Type: Optional<List<LaunchType>>

Argument: cpu

The number of cpu units used by the task. If using the EC2 launch type, this field is optional and any value can be used. If using the Fargate launch type, this field is required. See http://botocore.readthedocs.io/en/latest/reference/services/ecs.html#ECS.Client.register**task**definition for more information on valid values.

Type: Optional<Int>

Argument: memory

The amount (in MiB) of memory used by the task. If using the EC2 launch type, this field is optional and any value can be used. If using the Fargate launch type, this field is required. See http://botocore.readthedocs.io/en/latest/reference/services/ecs.html#ECS.Client.register**task**definition for more information on valid values.

Type: Optional<Int>

Argument: resourceId

Resource ID of the resource to import with Fugue Import. This field is only honored on fugue run. The resource ID is the ARN. Mutable. Example: arn:aws:ecs:us-east-1:123456789012:task-definition/hello_world:8

Type: Optional<String>

Returns:

A new Fugue.Core.AWS.ECS.TaskDefinition value.

Type: TaskDefinition

region

(Function)

Return the region for a given TaskDefinition. Works on externals.

Type Signature

 fun (TaskDefinition) -> Region
Argument: taskDefinition

The TaskDefinition whose region to return.

Type: TaskDefinition

Returns:

Region containing the TaskDefinition.

Type: Region