Class LaunchTemplateBlockDeviceMappingEbs


  • public final class LaunchTemplateBlockDeviceMappingEbs
    extends java.lang.Object
    • Method Detail

      • deleteOnTermination

        public java.util.Optional<java.lang.String> deleteOnTermination()
        Returns:
        Whether the volume should be destroyed on instance termination. See [Preserving Amazon EBS Volumes on Instance Termination](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/preserving-volumes-on-termination.html) for more information.
      • encrypted

        public java.util.Optional<java.lang.String> encrypted()
        Returns:
        Enables [EBS encryption](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) on the volume. Cannot be used with `snapshotId`.
      • iops

        public java.util.Optional<java.lang.Integer> iops()
        Returns:
        The amount of provisioned [IOPS](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-io-characteristics.html). This must be set with a `volumeType` of `"io1/io2/gp3"`.
      • kmsKeyId

        public java.util.Optional<java.lang.String> kmsKeyId()
        Returns:
        Identifier (key ID, key alias, key ARN, or alias ARN) of the customer managed KMS key to use for EBS encryption. `encrypted` must be set to `true` when this is set.
      • snapshotId

        public java.util.Optional<java.lang.String> snapshotId()
        Returns:
        The Snapshot ID to mount.
      • throughput

        public java.util.Optional<java.lang.Integer> throughput()
        Returns:
        The throughput to provision for a `gp3` volume in MiB/s (specified as an integer, e.g., 500), with a maximum of 1,000 MiB/s.
      • volumeInitializationRate

        public java.util.Optional<java.lang.Integer> volumeInitializationRate()
        Returns:
        The volume initialization rate in MiB/s (specified as an integer, e.g. 100), with a minimum of 100 MiB/s and maximum of 300 MiB/s.
      • volumeSize

        public java.util.Optional<java.lang.Integer> volumeSize()
        Returns:
        The size of the volume in gigabytes.
      • volumeType

        public java.util.Optional<java.lang.String> volumeType()
        Returns:
        The volume type. Can be one of `standard`, `gp2`, `gp3`, `io1`, `io2`, `sc1` or `st1`.