Class: AWSCDK::WorkspacesInstances::CfnWorkspaceInstance::EbsBlockDeviceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WorkspacesInstances::CfnWorkspaceInstance::EbsBlockDeviceProperty
- Defined in:
- workspaces_instances/cfn_workspace_instance.rb
Overview
Instance Attribute Summary collapse
- #encrypted ⇒ Boolean, ... readonly
- #iops ⇒ Numeric? readonly
- #kms_key_id ⇒ String? readonly
- #throughput ⇒ Numeric? readonly
- #volume_size ⇒ Numeric? readonly
- #volume_type ⇒ String? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(encrypted: nil, iops: nil, kms_key_id: nil, throughput: nil, volume_size: nil, volume_type: nil) ⇒ EbsBlockDeviceProperty
constructor
A new instance of EbsBlockDeviceProperty.
- #to_jsii ⇒ Object
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.
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
#encrypted ⇒ Boolean, ... (readonly)
802 803 804 |
# File 'workspaces_instances/cfn_workspace_instance.rb', line 802 def encrypted @encrypted end |
#iops ⇒ Numeric? (readonly)
805 806 807 |
# File 'workspaces_instances/cfn_workspace_instance.rb', line 805 def iops @iops end |
#kms_key_id ⇒ String? (readonly)
808 809 810 |
# File 'workspaces_instances/cfn_workspace_instance.rb', line 808 def kms_key_id @kms_key_id end |
#throughput ⇒ Numeric? (readonly)
811 812 813 |
# File 'workspaces_instances/cfn_workspace_instance.rb', line 811 def throughput @throughput end |
#volume_size ⇒ Numeric? (readonly)
814 815 816 |
# File 'workspaces_instances/cfn_workspace_instance.rb', line 814 def volume_size @volume_size end |
#volume_type ⇒ String? (readonly)
817 818 819 |
# File 'workspaces_instances/cfn_workspace_instance.rb', line 817 def volume_type @volume_type end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |