CfnDaemonTaskDefinitionProps
- class aws_cdk.aws_ecs.CfnDaemonTaskDefinitionProps(*, container_definitions=None, cpu=None, execution_role_arn=None, family=None, ipc_mode=None, memory=None, pid_mode=None, tags=None, task_role_arn=None, volumes=None)
Bases:
objectProperties for defining a
CfnDaemonTaskDefinition.- Parameters:
container_definitions (
Union[IResolvable,Sequence[Union[IResolvable,DaemonContainerDefinitionProperty,Dict[str,Any]]],None]) – A list of container definitions in JSON format that describe the containers that make up the daemon task.cpu (
Optional[str]) – The number of CPU units used by the daemon task.execution_role_arn (
Optional[str]) – The Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS container agent permission to make Amazon Web Services API calls on your behalf.family (
Optional[str]) – The name of a family that this daemon task definition is registered to.ipc_mode (
Optional[str]) – The IPC namespace mode for the daemon. The valid values arenoneandshared. The default isnone. Ifnoneis specified or no value is provided, the daemon runs with its own IPC namespace, isolated from other tasks. Ifsharedis specified, the daemon joins the host IPC namespace, making it accessible to non-daemon tasks that useipcMode: "host"or other daemons that useipcMode: "shared".memory (
Optional[str]) – The amount of memory (in MiB) used by the daemon task.pid_mode (
Optional[str]) – The PID namespace mode for the daemon. The valid values arenoneandshared. The default isnone. Ifnoneis specified or no value is provided, the daemon runs with its own PID namespace, isolated from other tasks. Ifsharedis specified, the daemon joins the host PID namespace, making it accessible to non-daemon tasks that usepidMode: "host"or other daemons that usepidMode: "shared".tags (
Optional[Sequence[Union[CfnTag,Dict[str,Any]]]])task_role_arn (
Optional[str]) – The short name or full Amazon Resource Name (ARN) of the IAM role that grants containers in the daemon task permission to call Amazon Web Services APIs on your behalf.volumes (
Union[IResolvable,Sequence[Union[IResolvable,VolumeProperty,Dict[str,Any]]],None]) – The list of data volume definitions for the daemon task.
- See:
- ExampleMetadata:
fixture=_generated
Example:
from aws_cdk import CfnTag # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_ecs as ecs cfn_daemon_task_definition_props = ecs.CfnDaemonTaskDefinitionProps( container_definitions=[ecs.CfnDaemonTaskDefinition.DaemonContainerDefinitionProperty( image="image", name="name", # the properties below are optional command=["command"], cpu=123, depends_on=[ecs.CfnDaemonTaskDefinition.ContainerDependencyProperty( condition="condition", container_name="containerName" )], entry_point=["entryPoint"], environment=[ecs.CfnDaemonTaskDefinition.KeyValuePairProperty( name="name", value="value" )], environment_files=[ecs.CfnDaemonTaskDefinition.EnvironmentFileProperty( type="type", value="value" )], essential=False, firelens_configuration=ecs.CfnDaemonTaskDefinition.FirelensConfigurationProperty( options={ "options_key": "options" }, type="type" ), health_check=ecs.CfnDaemonTaskDefinition.HealthCheckProperty( command=["command"], interval=123, retries=123, start_period=123, timeout=123 ), interactive=False, linux_parameters=ecs.CfnDaemonTaskDefinition.LinuxParametersProperty( capabilities=ecs.CfnDaemonTaskDefinition.KernelCapabilitiesProperty( add=["add"], drop=["drop"] ), devices=[ecs.CfnDaemonTaskDefinition.DeviceProperty( container_path="containerPath", host_path="hostPath", permissions=["permissions"] )], init_process_enabled=False, tmpfs=[ecs.CfnDaemonTaskDefinition.TmpfsProperty( size=123, # the properties below are optional container_path="containerPath", mount_options=["mountOptions"] )] ), log_configuration=ecs.CfnDaemonTaskDefinition.LogConfigurationProperty( log_driver="logDriver", # the properties below are optional options={ "options_key": "options" }, secret_options=[ecs.CfnDaemonTaskDefinition.SecretProperty( name="name", value_from="valueFrom" )] ), memory=123, memory_reservation=123, mount_points=[ecs.CfnDaemonTaskDefinition.MountPointProperty( container_path="containerPath", read_only=False, source_volume="sourceVolume" )], privileged=False, pseudo_terminal=False, readonly_root_filesystem=False, repository_credentials=ecs.CfnDaemonTaskDefinition.RepositoryCredentialsProperty( credentials_parameter="credentialsParameter" ), restart_policy=ecs.CfnDaemonTaskDefinition.RestartPolicyProperty( enabled=False, ignored_exit_codes=[123], restart_attempt_period=123 ), secrets=[ecs.CfnDaemonTaskDefinition.SecretProperty( name="name", value_from="valueFrom" )], start_timeout=123, stop_timeout=123, system_controls=[ecs.CfnDaemonTaskDefinition.SystemControlProperty( namespace="namespace", value="value" )], ulimits=[ecs.CfnDaemonTaskDefinition.UlimitProperty( hard_limit=123, name="name", soft_limit=123 )], user="user", working_directory="workingDirectory" )], cpu="cpu", execution_role_arn="executionRoleArn", family="family", ipc_mode="ipcMode", memory="memory", pid_mode="pidMode", tags=[CfnTag( key="key", value="value" )], task_role_arn="taskRoleArn", volumes=[ecs.CfnDaemonTaskDefinition.VolumeProperty( host=ecs.CfnDaemonTaskDefinition.HostVolumePropertiesProperty( source_path="sourcePath" ), name="name" )] )
Attributes
- container_definitions
A list of container definitions in JSON format that describe the containers that make up the daemon task.
- cpu
The number of CPU units used by the daemon task.
- execution_role_arn
The Amazon Resource Name (ARN) of the task execution role that grants the Amazon ECS container agent permission to make Amazon Web Services API calls on your behalf.
- family
The name of a family that this daemon task definition is registered to.
- ipc_mode
The IPC namespace mode for the daemon.
The valid values are
noneandshared. The default isnone. Ifnoneis specified or no value is provided, the daemon runs with its own IPC namespace, isolated from other tasks. Ifsharedis specified, the daemon joins the host IPC namespace, making it accessible to non-daemon tasks that useipcMode: "host"or other daemons that useipcMode: "shared".
- memory
The amount of memory (in MiB) used by the daemon task.
- pid_mode
The PID namespace mode for the daemon.
The valid values are
noneandshared. The default isnone. Ifnoneis specified or no value is provided, the daemon runs with its own PID namespace, isolated from other tasks. Ifsharedis specified, the daemon joins the host PID namespace, making it accessible to non-daemon tasks that usepidMode: "host"or other daemons that usepidMode: "shared".
- tags
-
- Type:
see
- task_role_arn
The short name or full Amazon Resource Name (ARN) of the IAM role that grants containers in the daemon task permission to call Amazon Web Services APIs on your behalf.
- volumes
The list of data volume definitions for the daemon task.