interface CfnDaemonTaskDefinitionProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ECS.CfnDaemonTaskDefinitionProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#CfnDaemonTaskDefinitionProps |
Java | software.amazon.awscdk.services.ecs.CfnDaemonTaskDefinitionProps |
Python | aws_cdk.aws_ecs.CfnDaemonTaskDefinitionProps |
TypeScript | aws-cdk-lib » aws_ecs » CfnDaemonTaskDefinitionProps |
Properties for defining a CfnDaemonTaskDefinition.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const cfnDaemonTaskDefinitionProps: ecs.CfnDaemonTaskDefinitionProps = {
containerDefinitions: [{
image: 'image',
name: 'name',
// the properties below are optional
command: ['command'],
cpu: 123,
dependsOn: [{
condition: 'condition',
containerName: 'containerName',
}],
entryPoint: ['entryPoint'],
environment: [{
name: 'name',
value: 'value',
}],
environmentFiles: [{
type: 'type',
value: 'value',
}],
essential: false,
firelensConfiguration: {
options: {
optionsKey: 'options',
},
type: 'type',
},
healthCheck: {
command: ['command'],
interval: 123,
retries: 123,
startPeriod: 123,
timeout: 123,
},
interactive: false,
linuxParameters: {
capabilities: {
add: ['add'],
drop: ['drop'],
},
devices: [{
containerPath: 'containerPath',
hostPath: 'hostPath',
permissions: ['permissions'],
}],
initProcessEnabled: false,
tmpfs: [{
size: 123,
// the properties below are optional
containerPath: 'containerPath',
mountOptions: ['mountOptions'],
}],
},
logConfiguration: {
logDriver: 'logDriver',
// the properties below are optional
options: {
optionsKey: 'options',
},
secretOptions: [{
name: 'name',
valueFrom: 'valueFrom',
}],
},
memory: 123,
memoryReservation: 123,
mountPoints: [{
containerPath: 'containerPath',
readOnly: false,
sourceVolume: 'sourceVolume',
}],
privileged: false,
pseudoTerminal: false,
readonlyRootFilesystem: false,
repositoryCredentials: {
credentialsParameter: 'credentialsParameter',
},
restartPolicy: {
enabled: false,
ignoredExitCodes: [123],
restartAttemptPeriod: 123,
},
secrets: [{
name: 'name',
valueFrom: 'valueFrom',
}],
startTimeout: 123,
stopTimeout: 123,
systemControls: [{
namespace: 'namespace',
value: 'value',
}],
ulimits: [{
hardLimit: 123,
name: 'name',
softLimit: 123,
}],
user: 'user',
workingDirectory: 'workingDirectory',
}],
cpu: 'cpu',
executionRoleArn: 'executionRoleArn',
family: 'family',
ipcMode: 'ipcMode',
memory: 'memory',
pidMode: 'pidMode',
tags: [{
key: 'key',
value: 'value',
}],
taskRoleArn: 'taskRoleArn',
volumes: [{
host: {
sourcePath: 'sourcePath',
},
name: 'name',
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| container | IResolvable | (IResolvable | Daemon)[] | A list of container definitions in JSON format that describe the containers that make up the daemon task. |
| cpu? | string | The number of CPU units used by the daemon task. |
| execution | string | 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? | string | The name of a family that this daemon task definition is registered to. |
| ipc | string | The IPC namespace mode for the daemon. |
| memory? | string | The amount of memory (in MiB) used by the daemon task. |
| pid | string | The PID namespace mode for the daemon. |
| tags? | Cfn[] | |
| task | string | 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? | IResolvable | (IResolvable | Volume)[] | The list of data volume definitions for the daemon task. |
containerDefinitions?
Type:
IResolvable | (IResolvable | Daemon)[]
(optional)
A list of container definitions in JSON format that describe the containers that make up the daemon task.
cpu?
Type:
string
(optional)
The number of CPU units used by the daemon task.
executionRoleArn?
Type:
string
(optional)
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?
Type:
string
(optional)
The name of a family that this daemon task definition is registered to.
ipcMode?
Type:
string
(optional)
The IPC namespace mode for the daemon.
The valid values are none and shared. The default is none.
If none is specified or no value is provided, the daemon runs with its own IPC namespace, isolated from other tasks. If shared is specified, the daemon joins the host IPC namespace, making it accessible to non-daemon tasks that use ipcMode: "host" or other daemons that use ipcMode: "shared".
memory?
Type:
string
(optional)
The amount of memory (in MiB) used by the daemon task.
pidMode?
Type:
string
(optional)
The PID namespace mode for the daemon.
The valid values are none and shared. The default is none.
If none is specified or no value is provided, the daemon runs with its own PID namespace, isolated from other tasks. If shared is specified, the daemon joins the host PID namespace, making it accessible to non-daemon tasks that use pidMode: "host" or other daemons that use pidMode: "shared".
tags?
Type:
Cfn[]
(optional)
taskRoleArn?
Type:
string
(optional)
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?
Type:
IResolvable | (IResolvable | Volume)[]
(optional)
The list of data volume definitions for the daemon task.

.NET
Go
Java
Python
TypeScript