Interface TaskManagedEBSVolumeTerminationPolicy.Builder

    • Method Detail

      • deleteOnTermination

        TaskManagedEBSVolumeTerminationPolicy.Builder deleteOnTermination​(Boolean deleteOnTermination)

        Indicates whether the volume should be deleted on when the task stops. If a value of true is specified, 
Amazon ECS deletes the Amazon EBS volume on your behalf when the task goes into the STOPPED state. If no value is specified, the 
default value is true is used. When set to false, Amazon ECS leaves the volume in your 
account.

        Parameters:
        deleteOnTermination - Indicates whether the volume should be deleted on when the task stops. If a value of true is specified, 
Amazon ECS deletes the Amazon EBS volume on your behalf when the task goes into the STOPPED state. If no value is specified, the 
default value is true is used. When set to false, Amazon ECS leaves the volume in your 
account.
        Returns:
        Returns a reference to this object so that method calls can be chained together.