interface ScratchSpace
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ECS.ScratchSpace |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#ScratchSpace |
Java | software.amazon.awscdk.services.ecs.ScratchSpace |
Python | aws_cdk.aws_ecs.ScratchSpace |
TypeScript (source) | aws-cdk-lib » aws_ecs » ScratchSpace |
The temporary disk space mounted to the container.
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 scratchSpace: ecs.ScratchSpace = {
containerPath: 'containerPath',
name: 'name',
readOnly: false,
sourcePath: 'sourcePath',
};
Properties
Name | Type | Description |
---|---|---|
container | string | The path on the container to mount the scratch volume at. |
name | string | The name of the scratch volume to mount. |
read | boolean | Specifies whether to give the container read-only access to the scratch volume. |
source | string |
containerPath
Type:
string
The path on the container to mount the scratch volume at.
name
Type:
string
The name of the scratch volume to mount.
Must be a volume name referenced in the name parameter of task definition volume.
readOnly
Type:
boolean
Specifies whether to give the container read-only access to the scratch volume.
If this value is true, the container has read-only access to the scratch volume. If this value is false, then the container can write to the scratch volume.
sourcePath
Type:
string