Class: AWSCDK::WorkspacesInstances::CfnWorkspaceInstance::EbsBlockDeviceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
workspaces_instances/cfn_workspace_instance.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(encrypted: nil, iops: nil, kms_key_id: nil, throughput: nil, volume_size: nil, volume_type: nil) ⇒ EbsBlockDeviceProperty

Returns a new instance of EbsBlockDeviceProperty.

Parameters:

  • encrypted (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)
  • iops (Numeric, nil) (defaults to: nil)
  • kms_key_id (String, nil) (defaults to: nil)
  • throughput (Numeric, nil) (defaults to: nil)
  • volume_size (Numeric, nil) (defaults to: nil)
  • volume_type (String, nil) (defaults to: nil)


785
786
787
788
789
790
791
792
793
794
795
796
797
798
# File 'workspaces_instances/cfn_workspace_instance.rb', line 785

def initialize(encrypted: nil, iops: nil, kms_key_id: nil, throughput: nil, volume_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?
  @kms_key_id = kms_key_id
  Jsii::Type.check_type(@kms_key_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsKeyId") unless @kms_key_id.nil?
  @throughput = throughput
  Jsii::Type.check_type(@throughput, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "throughput") unless @throughput.nil?
  @volume_size = volume_size
  Jsii::Type.check_type(@volume_size, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "volumeSize") unless @volume_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)



802
803
804
# File 'workspaces_instances/cfn_workspace_instance.rb', line 802

def encrypted
  @encrypted
end

#iopsNumeric? (readonly)



805
806
807
# File 'workspaces_instances/cfn_workspace_instance.rb', line 805

def iops
  @iops
end

#kms_key_idString? (readonly)



808
809
810
# File 'workspaces_instances/cfn_workspace_instance.rb', line 808

def kms_key_id
  @kms_key_id
end

#throughputNumeric? (readonly)



811
812
813
# File 'workspaces_instances/cfn_workspace_instance.rb', line 811

def throughput
  @throughput
end

#volume_sizeNumeric? (readonly)



814
815
816
# File 'workspaces_instances/cfn_workspace_instance.rb', line 814

def volume_size
  @volume_size
end

#volume_typeString? (readonly)



817
818
819
# File 'workspaces_instances/cfn_workspace_instance.rb', line 817

def volume_type
  @volume_type
end

Class Method Details

.jsii_propertiesObject



819
820
821
822
823
824
825
826
827
828
# File 'workspaces_instances/cfn_workspace_instance.rb', line 819

def self.jsii_properties
  {
    :encrypted => "encrypted",
    :iops => "iops",
    :kms_key_id => "kmsKeyId",
    :throughput => "throughput",
    :volume_size => "volumeSize",
    :volume_type => "volumeType",
  }
end

Instance Method Details

#to_jsiiObject



830
831
832
833
834
835
836
837
838
839
840
841
# File 'workspaces_instances/cfn_workspace_instance.rb', line 830

def to_jsii
  result = {}
  result.merge!({
    "encrypted" => @encrypted,
    "iops" => @iops,
    "kmsKeyId" => @kms_key_id,
    "throughput" => @throughput,
    "volumeSize" => @volume_size,
    "volumeType" => @volume_type,
  })
  result.compact
end