Class: AWSCDK::OpsWorks::CfnLayer::VolumeConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ops_works/cfn_layer.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(encrypted: nil, iops: nil, mount_point: nil, number_of_disks: nil, raid_level: nil, size: nil, volume_type: nil) ⇒ VolumeConfigurationProperty

Returns a new instance of VolumeConfigurationProperty.

Parameters:

  • encrypted (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Specifies whether an Amazon EBS volume is encrypted.

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

    The number of I/O operations per second (IOPS) to provision for the volume.

  • mount_point (String, nil) (defaults to: nil)

    The volume mount point.

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

    The number of disks in the volume.

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

    The volume RAID level .

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

    The volume size.

  • volume_type (String, nil) (defaults to: nil)

    The volume type. For more information, see Amazon EBS Volume Types .



1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
# File 'ops_works/cfn_layer.rb', line 1034

def initialize(encrypted: nil, iops: nil, mount_point: nil, number_of_disks: nil, raid_level: nil, size: nil, volume_type: nil)
  @encrypted = encrypted
  Jsii::Type.check_type(@encrypted, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "encrypted") unless @encrypted.nil?
  @iops = iops
  Jsii::Type.check_type(@iops, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "iops") unless @iops.nil?
  @mount_point = mount_point
  Jsii::Type.check_type(@mount_point, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mountPoint") unless @mount_point.nil?
  @number_of_disks = number_of_disks
  Jsii::Type.check_type(@number_of_disks, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "numberOfDisks") unless @number_of_disks.nil?
  @raid_level = raid_level
  Jsii::Type.check_type(@raid_level, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "raidLevel") unless @raid_level.nil?
  @size = size
  Jsii::Type.check_type(@size, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "size") unless @size.nil?
  @volume_type = volume_type
  Jsii::Type.check_type(@volume_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "volumeType") unless @volume_type.nil?
end

Instance Attribute Details

#encryptedBoolean, ... (readonly)

Specifies whether an Amazon EBS volume is encrypted.

For more information, see Amazon EBS Encryption .



1057
1058
1059
# File 'ops_works/cfn_layer.rb', line 1057

def encrypted
  @encrypted
end

#iopsNumeric? (readonly)

The number of I/O operations per second (IOPS) to provision for the volume.

For PIOPS volumes, the IOPS per disk.

If you specify io1 for the volume type, you must specify this property.



1066
1067
1068
# File 'ops_works/cfn_layer.rb', line 1066

def iops
  @iops
end

#mount_pointString? (readonly)

The volume mount point.

For example "/dev/sdh".



1073
1074
1075
# File 'ops_works/cfn_layer.rb', line 1073

def mount_point
  @mount_point
end

#number_of_disksNumeric? (readonly)

The number of disks in the volume.



1078
1079
1080
# File 'ops_works/cfn_layer.rb', line 1078

def number_of_disks
  @number_of_disks
end

#raid_levelNumeric? (readonly)

The volume RAID level .



1083
1084
1085
# File 'ops_works/cfn_layer.rb', line 1083

def raid_level
  @raid_level
end

#sizeNumeric? (readonly)

The volume size.



1088
1089
1090
# File 'ops_works/cfn_layer.rb', line 1088

def size
  @size
end

#volume_typeString? (readonly)

The volume type. For more information, see Amazon EBS Volume Types .

  • standard - Magnetic. Magnetic volumes must have a minimum size of 1 GiB and a maximum size of 1024 GiB.
  • io1 - Provisioned IOPS (SSD). PIOPS volumes must have a minimum size of 4 GiB and a maximum size of 16384 GiB.
  • gp2 - General Purpose (SSD). General purpose volumes must have a minimum size of 1 GiB and a maximum size of 16384 GiB.
  • st1 - Throughput Optimized hard disk drive (HDD). Throughput optimized HDD volumes must have a minimum size of 125 GiB and a maximum size of 16384 GiB.
  • sc1 - Cold HDD. Cold HDD volumes must have a minimum size of 125 GiB and a maximum size of 16384 GiB.


1099
1100
1101
# File 'ops_works/cfn_layer.rb', line 1099

def volume_type
  @volume_type
end

Class Method Details

.jsii_propertiesObject



1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
# File 'ops_works/cfn_layer.rb', line 1101

def self.jsii_properties
  {
    :encrypted => "encrypted",
    :iops => "iops",
    :mount_point => "mountPoint",
    :number_of_disks => "numberOfDisks",
    :raid_level => "raidLevel",
    :size => "size",
    :volume_type => "volumeType",
  }
end

Instance Method Details

#to_jsiiObject



1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
# File 'ops_works/cfn_layer.rb', line 1113

def to_jsii
  result = {}
  result.merge!({
    "encrypted" => @encrypted,
    "iops" => @iops,
    "mountPoint" => @mount_point,
    "numberOfDisks" => @number_of_disks,
    "raidLevel" => @raid_level,
    "size" => @size,
    "volumeType" => @volume_type,
  })
  result.compact
end