Class: AWSCDK::MSK::CfnCluster::ProvisionedThroughputProperty

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

Overview

Contains information about provisioned throughput for EBS storage volumes attached to kafka broker nodes.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enabled: nil, volume_throughput: nil) ⇒ ProvisionedThroughputProperty

Returns a new instance of ProvisionedThroughputProperty.

Parameters:

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

    Provisioned throughput is on or off.

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

    Throughput value of the EBS volumes for the data drive on each kafka broker node in MiB per second.



1493
1494
1495
1496
1497
1498
# File 'msk/cfn_cluster.rb', line 1493

def initialize(enabled: nil, volume_throughput: nil)
  @enabled = enabled
  Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled") unless @enabled.nil?
  @volume_throughput = volume_throughput
  Jsii::Type.check_type(@volume_throughput, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "volumeThroughput") unless @volume_throughput.nil?
end

Instance Attribute Details

#enabledBoolean, ... (readonly)

Provisioned throughput is on or off.



1504
1505
1506
# File 'msk/cfn_cluster.rb', line 1504

def enabled
  @enabled
end

#volume_throughputNumeric? (readonly)

Throughput value of the EBS volumes for the data drive on each kafka broker node in MiB per second.



1509
1510
1511
# File 'msk/cfn_cluster.rb', line 1509

def volume_throughput
  @volume_throughput
end

Class Method Details

.jsii_propertiesObject



1511
1512
1513
1514
1515
1516
# File 'msk/cfn_cluster.rb', line 1511

def self.jsii_properties
  {
    :enabled => "enabled",
    :volume_throughput => "volumeThroughput",
  }
end

Instance Method Details

#to_jsiiObject



1518
1519
1520
1521
1522
1523
1524
1525
# File 'msk/cfn_cluster.rb', line 1518

def to_jsii
  result = {}
  result.merge!({
    "enabled" => @enabled,
    "volumeThroughput" => @volume_throughput,
  })
  result.compact
end