Class: AWSCDK::MSK::CfnCluster::EBSStorageInfoProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
msk/cfn_cluster.rb

Overview

Contains information about the EBS storage volumes attached to the broker nodes.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(provisioned_throughput: nil, volume_size: nil) ⇒ EBSStorageInfoProperty

Returns a new instance of EBSStorageInfoProperty.

Parameters:



1060
1061
1062
1063
1064
1065
# File 'msk/cfn_cluster.rb', line 1060

def initialize(provisioned_throughput: nil, volume_size: nil)
  @provisioned_throughput = provisioned_throughput.is_a?(Hash) ? ::AWSCDK::MSK::CfnCluster::ProvisionedThroughputProperty.new(**provisioned_throughput.transform_keys(&:to_sym)) : provisioned_throughput
  Jsii::Type.check_type(@provisioned_throughput, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tc2suQ2ZuQ2x1c3Rlci5Qcm92aXNpb25lZFRocm91Z2hwdXRQcm9wZXJ0eSJ9XX19")), "provisionedThroughput") unless @provisioned_throughput.nil?
  @volume_size = volume_size
  Jsii::Type.check_type(@volume_size, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "volumeSize") unless @volume_size.nil?
end

Instance Attribute Details

#provisioned_throughputAWSCDK::IResolvable, ... (readonly)

EBS volume provisioned throughput information.



1071
1072
1073
# File 'msk/cfn_cluster.rb', line 1071

def provisioned_throughput
  @provisioned_throughput
end

#volume_sizeNumeric? (readonly)

The size in GiB of the EBS volume for the data drive on each broker node.



1076
1077
1078
# File 'msk/cfn_cluster.rb', line 1076

def volume_size
  @volume_size
end

Class Method Details

.jsii_propertiesObject



1078
1079
1080
1081
1082
1083
# File 'msk/cfn_cluster.rb', line 1078

def self.jsii_properties
  {
    :provisioned_throughput => "provisionedThroughput",
    :volume_size => "volumeSize",
  }
end

Instance Method Details

#to_jsiiObject



1085
1086
1087
1088
1089
1090
1091
1092
# File 'msk/cfn_cluster.rb', line 1085

def to_jsii
  result = {}
  result.merge!({
    "provisionedThroughput" => @provisioned_throughput,
    "volumeSize" => @volume_size,
  })
  result.compact
end