interface EcsPropertiesProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Batch.CfnJobDefinition.EcsPropertiesProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsbatch#CfnJobDefinition_EcsPropertiesProperty |
![]() | software.amazon.awscdk.services.batch.CfnJobDefinition.EcsPropertiesProperty |
![]() | aws_cdk.aws_batch.CfnJobDefinition.EcsPropertiesProperty |
![]() | aws-cdk-lib » aws_batch » CfnJobDefinition » EcsPropertiesProperty |
An object that contains the properties for the Amazon ECS resources of a job.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_batch as batch } from 'aws-cdk-lib';
declare const options: any;
const ecsPropertiesProperty: batch.CfnJobDefinition.EcsPropertiesProperty = {
taskProperties: [{
containers: [{
image: 'image',
// the properties below are optional
command: ['command'],
dependsOn: [{
condition: 'condition',
containerName: 'containerName',
}],
environment: [{
name: 'name',
value: 'value',
}],
essential: false,
linuxParameters: {
devices: [{
containerPath: 'containerPath',
hostPath: 'hostPath',
permissions: ['permissions'],
}],
initProcessEnabled: false,
maxSwap: 123,
sharedMemorySize: 123,
swappiness: 123,
tmpfs: [{
containerPath: 'containerPath',
size: 123,
// the properties below are optional
mountOptions: ['mountOptions'],
}],
},
logConfiguration: {
logDriver: 'logDriver',
// the properties below are optional
options: options,
secretOptions: [{
name: 'name',
valueFrom: 'valueFrom',
}],
},
mountPoints: [{
containerPath: 'containerPath',
readOnly: false,
sourceVolume: 'sourceVolume',
}],
name: 'name',
privileged: false,
readonlyRootFilesystem: false,
repositoryCredentials: {
credentialsParameter: 'credentialsParameter',
},
resourceRequirements: [{
type: 'type',
value: 'value',
}],
secrets: [{
name: 'name',
valueFrom: 'valueFrom',
}],
ulimits: [{
hardLimit: 123,
name: 'name',
softLimit: 123,
}],
user: 'user',
}],
ephemeralStorage: {
sizeInGiB: 123,
},
executionRoleArn: 'executionRoleArn',
ipcMode: 'ipcMode',
networkConfiguration: {
assignPublicIp: 'assignPublicIp',
},
pidMode: 'pidMode',
platformVersion: 'platformVersion',
runtimePlatform: {
cpuArchitecture: 'cpuArchitecture',
operatingSystemFamily: 'operatingSystemFamily',
},
taskRoleArn: 'taskRoleArn',
volumes: [{
efsVolumeConfiguration: {
fileSystemId: 'fileSystemId',
// the properties below are optional
authorizationConfig: {
accessPointId: 'accessPointId',
iam: 'iam',
},
rootDirectory: 'rootDirectory',
transitEncryption: 'transitEncryption',
transitEncryptionPort: 123,
},
host: {
sourcePath: 'sourcePath',
},
name: 'name',
}],
}],
};
Properties
Name | Type | Description |
---|---|---|
task | IResolvable | IResolvable | Ecs [] | An object that contains the properties for the Amazon ECS task definition of a job. |
taskProperties
Type:
IResolvable
|
IResolvable
|
Ecs
[]
An object that contains the properties for the Amazon ECS task definition of a job.
This object is currently limited to one task element. However, the task element can run up to 10 containers.