Class: AWSCDK::Deadline::CfnFleet::EC2EbsVolumeProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
deadline/cfn_fleet.rb

Overview

Specifies the EBS volume.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(iops: nil, size_gib: nil, throughput_mib: nil) ⇒ EC2EbsVolumeProperty

Returns a new instance of EC2EbsVolumeProperty.

Parameters:

  • iops (Numeric, nil) (defaults to: nil)

    The IOPS per volume.

  • size_gib (Numeric, nil) (defaults to: nil)

    The EBS volume size in GiB.

  • throughput_mib (Numeric, nil) (defaults to: nil)

    The throughput per volume in MiB.



1105
1106
1107
1108
1109
1110
1111
1112
# File 'deadline/cfn_fleet.rb', line 1105

def initialize(iops: nil, size_gib: nil, throughput_mib: nil)
  @iops = iops
  Jsii::Type.check_type(@iops, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "iops") unless @iops.nil?
  @size_gib = size_gib
  Jsii::Type.check_type(@size_gib, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "sizeGiB") unless @size_gib.nil?
  @throughput_mib = throughput_mib
  Jsii::Type.check_type(@throughput_mib, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "throughputMiB") unless @throughput_mib.nil?
end

Instance Attribute Details

#iopsNumeric? (readonly)

Note:

Default: - 3000

The IOPS per volume.



1119
1120
1121
# File 'deadline/cfn_fleet.rb', line 1119

def iops
  @iops
end

#size_gibNumeric? (readonly)

Note:

Default: - 250

The EBS volume size in GiB.



1125
1126
1127
# File 'deadline/cfn_fleet.rb', line 1125

def size_gib
  @size_gib
end

#throughput_mibNumeric? (readonly)

Note:

Default: - 125

The throughput per volume in MiB.



1131
1132
1133
# File 'deadline/cfn_fleet.rb', line 1131

def throughput_mib
  @throughput_mib
end

Class Method Details

.jsii_propertiesObject



1133
1134
1135
1136
1137
1138
1139
# File 'deadline/cfn_fleet.rb', line 1133

def self.jsii_properties
  {
    :iops => "iops",
    :size_gib => "sizeGiB",
    :throughput_mib => "throughputMiB",
  }
end

Instance Method Details

#to_jsiiObject



1141
1142
1143
1144
1145
1146
1147
1148
1149
# File 'deadline/cfn_fleet.rb', line 1141

def to_jsii
  result = {}
  result.merge!({
    "iops" => @iops,
    "sizeGiB" => @size_gib,
    "throughputMiB" => @throughput_mib,
  })
  result.compact
end