GetTaskDefinitionResult class

Result data returned by getTaskDefinition.

Constructors

GetTaskDefinitionResult({String? arn, String? arnWithoutRevision, String? containerDefinitions, String? cpu, bool? enableFaultInjection, List<GetTaskDefinitionEphemeralStorage>? ephemeralStorages, String? executionRoleArn, String? family, String? id, String? ipcMode, String? memory, String? networkMode, String? pidMode, List<GetTaskDefinitionPlacementConstraint>? placementConstraints, List<GetTaskDefinitionProxyConfiguration>? proxyConfigurations, String? region, List<String>? requiresCompatibilities, int? revision, List<GetTaskDefinitionRuntimePlatform>? runtimePlatforms, String? status, String? taskDefinition, String? taskRoleArn, List<GetTaskDefinitionVolume>? volumes})
Creates a new GetTaskDefinitionResult. arn ARN of the task definition. arnWithoutRevision ARN of the Task Definition with the trailing revision removed. This may be useful for situations where the latest task definition is always desired. If a revision isn't specified, the latest ACTIVE revision is used. See the AWS documentation for details. containerDefinitions List of valid container definitions provided as a single valid JSON document. Please note that you should only provide values that are part of the container definition document. For a detailed description of what parameters are available, see the Task Definition Parameters section from the official Developer Guide. cpu Number of cpu units used by the task. If the requiresCompatibilities is FARGATE this field is required. enableFaultInjection Enables fault injection and allows for fault injection requests to be accepted from the task's containers. Default is false. ephemeralStorages Amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on AWS Fargate. See ephemeralStorage Block. executionRoleArn ARN of the task execution role that the Amazon ECS container agent and the Docker daemon can assume. family Unique name for your task definition. id The provider-assigned unique ID for this managed resource. ipcMode IPC resource namespace to be used for the containers in the task The valid values are host, task, and none. memory Amount (in MiB) of memory used by the task. If the requiresCompatibilities is FARGATE this field is required. networkMode Docker networking mode to use for the containers in the task. Valid values are none, bridge, awsvpc, and host. pidMode Process namespace to use for the containers in the task. The valid values are host and task. placementConstraints Configuration block for rules that are taken into consideration during task placement. Maximum number of placementConstraints is 10. See placementConstraints Block. proxyConfigurations Configuration block for the App Mesh proxy. See proxyConfiguration Block. region Optional. requiresCompatibilities Set of launch types required by the task. The valid values are EC2 and FARGATE. revision Revision of the task in a particular family. runtimePlatforms Configuration block for runtimePlatform that containers in your task may use. status Status of the task definition. taskDefinition Optional. taskRoleArn ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services. volumes Configuration block for volumes that containers in your task may use. See volume Block for details.
const
GetTaskDefinitionResult.fromMap(Map<String, dynamic> map)
factory

Properties

arn → String?
ARN of the task definition.
final
arnWithoutRevision → String?
ARN of the Task Definition with the trailing revision removed. This may be useful for situations where the latest task definition is always desired. If a revision isn't specified, the latest ACTIVE revision is used. See the AWS documentation for details.
final
containerDefinitions → String?
List of valid container definitions provided as a single valid JSON document. Please note that you should only provide values that are part of the container definition document. For a detailed description of what parameters are available, see the Task Definition Parameters section from the official Developer Guide.
final
cpu → String?
Number of cpu units used by the task. If the requiresCompatibilities is FARGATE this field is required.
final
enableFaultInjection → bool?
Enables fault injection and allows for fault injection requests to be accepted from the task's containers. Default is false.
final
ephemeralStorages → List<GetTaskDefinitionEphemeralStorage>?
Amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on AWS Fargate. See ephemeralStorage Block.
final
executionRoleArn → String?
ARN of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
final
family → String?
Unique name for your task definition. The following arguments are optional:
final
hashCode → int
The hash code for this object.
no setterinherited
id → String?
The provider-assigned unique ID for this managed resource.
final
ipcMode → String?
IPC resource namespace to be used for the containers in the task The valid values are host, task, and none.
final
memory → String?
Amount (in MiB) of memory used by the task. If the requiresCompatibilities is FARGATE this field is required.
final
networkMode → String?
Docker networking mode to use for the containers in the task. Valid values are none, bridge, awsvpc, and host.
final
pidMode → String?
Process namespace to use for the containers in the task. The valid values are host and task.
final
placementConstraints → List<GetTaskDefinitionPlacementConstraint>?
Configuration block for rules that are taken into consideration during task placement. Maximum number of placementConstraints is 10. See placementConstraints Block.
final
proxyConfigurations → List<GetTaskDefinitionProxyConfiguration>?
Configuration block for the App Mesh proxy. See proxyConfiguration Block.
final
region → String?
final
requiresCompatibilities → List<String>?
Set of launch types required by the task. The valid values are EC2 and FARGATE.
final
revision → int?
Revision of the task in a particular family.
final
runtimePlatforms → List<GetTaskDefinitionRuntimePlatform>?
Configuration block for runtimePlatform that containers in your task may use.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → String?
Status of the task definition.
final
taskDefinition → String?
final
taskRoleArn → String?
ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
final
volumes → List<GetTaskDefinitionVolume>?
Configuration block for volumes that containers in your task may use. See volume Block for details.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited