Interface VolumeFrom

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
VolumeFrom.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:47.490Z") @Stability(Stable) public interface VolumeFrom extends software.amazon.jsii.JsiiSerializable
The details on a data volume from another container in the same task 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.*;
 VolumeFrom volumeFrom = VolumeFrom.builder()
         .readOnly(false)
         .sourceContainer("sourceContainer")
         .build();
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    A builder for VolumeFrom
    static final class 
    An implementation for VolumeFrom
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Specifies whether the container has read-only access to the volume.
    The name of another container within the same task definition from which to mount volumes.

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Method Details

    • getReadOnly

      @Stability(Stable) @NotNull Boolean getReadOnly()
      Specifies whether the container has read-only access to the volume.

      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.

    • getSourceContainer

      @Stability(Stable) @NotNull String getSourceContainer()
      The name of another container within the same task definition from which to mount volumes.
    • builder

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