aws-cdk-lib.aws_ecs.ScratchSpace

interface ScratchSpace

LanguageType name
.NETAmazon.CDK.AWS.ECS.ScratchSpace
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsecs#ScratchSpace
Javasoftware.amazon.awscdk.services.ecs.ScratchSpace
Pythonaws_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

NameTypeDescription
containerPathstringThe path on the container to mount the scratch volume at.
namestringThe name of the scratch volume to mount.
readOnlybooleanSpecifies whether to give the container read-only access to the scratch volume.
sourcePathstring

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