CfnTaskDefinitionProps

class aws_cdk.aws_ecs.CfnTaskDefinitionProps(*, container_definitions=None, cpu=None, execution_role_arn=None, family=None, inference_accelerators=None, ipc_mode=None, memory=None, network_mode=None, pid_mode=None, placement_constraints=None, proxy_configuration=None, requires_compatibilities=None, tags=None, task_role_arn=None, volumes=None)

Bases: object

__init__(*, container_definitions=None, cpu=None, execution_role_arn=None, family=None, inference_accelerators=None, ipc_mode=None, memory=None, network_mode=None, pid_mode=None, placement_constraints=None, proxy_configuration=None, requires_compatibilities=None, tags=None, task_role_arn=None, volumes=None)

Properties for defining a AWS::ECS::TaskDefinition.

Parameters
  • container_definitions (Union[IResolvable, None, List[Union[ContainerDefinitionProperty, IResolvable]]]) – AWS::ECS::TaskDefinition.ContainerDefinitions.

  • cpu (Optional[str]) – AWS::ECS::TaskDefinition.Cpu.

  • execution_role_arn (Optional[str]) – AWS::ECS::TaskDefinition.ExecutionRoleArn.

  • family (Optional[str]) – AWS::ECS::TaskDefinition.Family.

  • inference_accelerators (Union[IResolvable, None, List[Union[IResolvable, InferenceAcceleratorProperty]]]) – AWS::ECS::TaskDefinition.InferenceAccelerators.

  • ipc_mode (Optional[str]) – AWS::ECS::TaskDefinition.IpcMode.

  • memory (Optional[str]) – AWS::ECS::TaskDefinition.Memory.

  • network_mode (Optional[str]) – AWS::ECS::TaskDefinition.NetworkMode.

  • pid_mode (Optional[str]) – AWS::ECS::TaskDefinition.PidMode.

  • placement_constraints (Union[IResolvable, None, List[Union[IResolvable, TaskDefinitionPlacementConstraintProperty]]]) – AWS::ECS::TaskDefinition.PlacementConstraints.

  • proxy_configuration (Union[IResolvable, None, ProxyConfigurationProperty]) – AWS::ECS::TaskDefinition.ProxyConfiguration.

  • requires_compatibilities (Optional[List[str]]) – AWS::ECS::TaskDefinition.RequiresCompatibilities.

  • tags (Optional[List[CfnTag]]) – AWS::ECS::TaskDefinition.Tags.

  • task_role_arn (Optional[str]) – AWS::ECS::TaskDefinition.TaskRoleArn.

  • volumes (Union[IResolvable, None, List[Union[IResolvable, VolumeProperty]]]) – AWS::ECS::TaskDefinition.Volumes.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html

Attributes

container_definitions

AWS::ECS::TaskDefinition.ContainerDefinitions.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-containerdefinitions

Return type

Union[IResolvable, None, List[Union[ContainerDefinitionProperty, IResolvable]]]

cpu

AWS::ECS::TaskDefinition.Cpu.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-cpu

Return type

Optional[str]

execution_role_arn

AWS::ECS::TaskDefinition.ExecutionRoleArn.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-executionrolearn

Return type

Optional[str]

family

AWS::ECS::TaskDefinition.Family.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-family

Return type

Optional[str]

inference_accelerators

AWS::ECS::TaskDefinition.InferenceAccelerators.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-inferenceaccelerators

Return type

Union[IResolvable, None, List[Union[IResolvable, InferenceAcceleratorProperty]]]

ipc_mode

AWS::ECS::TaskDefinition.IpcMode.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-ipcmode

Return type

Optional[str]

memory

AWS::ECS::TaskDefinition.Memory.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-memory

Return type

Optional[str]

network_mode

AWS::ECS::TaskDefinition.NetworkMode.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-networkmode

Return type

Optional[str]

pid_mode

AWS::ECS::TaskDefinition.PidMode.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-pidmode

Return type

Optional[str]

placement_constraints

AWS::ECS::TaskDefinition.PlacementConstraints.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-placementconstraints

Return type

Union[IResolvable, None, List[Union[IResolvable, TaskDefinitionPlacementConstraintProperty]]]

proxy_configuration

AWS::ECS::TaskDefinition.ProxyConfiguration.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-proxyconfiguration

Return type

Union[IResolvable, None, ProxyConfigurationProperty]

requires_compatibilities

AWS::ECS::TaskDefinition.RequiresCompatibilities.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-requirescompatibilities

Return type

Optional[List[str]]

tags

AWS::ECS::TaskDefinition.Tags.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-tags

Return type

Optional[List[CfnTag]]

task_role_arn

AWS::ECS::TaskDefinition.TaskRoleArn.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-taskrolearn

Return type

Optional[str]

volumes

AWS::ECS::TaskDefinition.Volumes.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-taskdefinition.html#cfn-ecs-taskdefinition-volumes

Return type

Union[IResolvable, None, List[Union[IResolvable, VolumeProperty]]]