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.
arnARN of the task definition.arnWithoutRevisionARN of the Task Definition with the trailingrevisionremoved. 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.containerDefinitionsList 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.cpuNumber of cpu units used by the task. If therequiresCompatibilitiesisFARGATEthis field is required.enableFaultInjectionEnables fault injection and allows for fault injection requests to be accepted from the task's containers. Default isfalse.ephemeralStoragesAmount 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. SeeephemeralStorageBlock.executionRoleArnARN of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.familyUnique name for your task definition.idThe provider-assigned unique ID for this managed resource.ipcModeIPC resource namespace to be used for the containers in the task The valid values arehost,task, andnone.memoryAmount (in MiB) of memory used by the task. If therequiresCompatibilitiesisFARGATEthis field is required.networkModeDocker networking mode to use for the containers in the task. Valid values arenone,bridge,awsvpc, andhost.pidModeProcess namespace to use for the containers in the task. The valid values arehostandtask.placementConstraintsConfiguration block for rules that are taken into consideration during task placement. Maximum number ofplacementConstraintsis10. SeeplacementConstraintsBlock.proxyConfigurationsConfiguration block for the App Mesh proxy. SeeproxyConfigurationBlock.regionOptional.requiresCompatibilitiesSet of launch types required by the task. The valid values areEC2andFARGATE.revisionRevision of the task in a particular family.runtimePlatformsConfiguration block for runtimePlatform that containers in your task may use.statusStatus of the task definition.taskDefinitionOptional.taskRoleArnARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.volumesConfiguration block for volumes that containers in your task may use. SeevolumeBlock 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
revisionremoved. 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
requiresCompatibilitiesisFARGATEthis 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
ephemeralStorageBlock.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, andnone.final - memory → String?
-
Amount (in MiB) of memory used by the task. If the
requiresCompatibilitiesisFARGATEthis field is required.final - networkMode → String?
-
Docker networking mode to use for the containers in the task. Valid values are
none,bridge,awsvpc, andhost.final - pidMode → String?
-
Process namespace to use for the containers in the task. The valid values are
hostandtask.final -
placementConstraints
→ List<
GetTaskDefinitionPlacementConstraint> ? -
Configuration block for rules that are taken into consideration during task placement. Maximum number of
placementConstraintsis10. SeeplacementConstraintsBlock.final -
proxyConfigurations
→ List<
GetTaskDefinitionProxyConfiguration> ? -
Configuration block for the App Mesh proxy. See
proxyConfigurationBlock.final - region → String?
-
final
-
requiresCompatibilities
→ List<
String> ? -
Set of launch types required by the task. The valid values are
EC2andFARGATE.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
volumeBlock 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