Interface CfnTaskDefinition.MountPointProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnTaskDefinition.MountPointProperty.Jsii$Proxy
Enclosing class:
CfnTaskDefinition

@Stability(Stable) public static interface CfnTaskDefinition.MountPointProperty extends software.amazon.jsii.JsiiSerializable
The details for a volume mount point that's used in a container definition.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.ecs.*;
 MountPointProperty mountPointProperty = MountPointProperty.builder()
         .containerPath("containerPath")
         .readOnly(false)
         .sourceVolume("sourceVolume")
         .build();
 
  • Method Details

    • getContainerPath

      @Stability(Stable) @Nullable default String getContainerPath()
      The path on the container to mount the host volume at.
    • getReadOnly

      @Stability(Stable) @Nullable default Object getReadOnly()
      If this value is true , the container has read-only access to the volume.

      If this value is false , then the container can write to the volume. The default value is false .

    • getSourceVolume

      @Stability(Stable) @Nullable default String getSourceVolume()
      The name of the volume to mount.

      Must be a volume name referenced in the name parameter of task definition volume .

    • builder

      @Stability(Stable) static CfnTaskDefinition.MountPointProperty.Builder builder()
      Returns:
      a CfnTaskDefinition.MountPointProperty.Builder of CfnTaskDefinition.MountPointProperty