Class: AWSCDK::FSX::CfnVolume::AggregateConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
fsx/cfn_volume.rb

Overview

Use to specify configuration options for a volume’s storage aggregate or aggregates.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(aggregates: nil, constituents_per_aggregate: nil) ⇒ AggregateConfigurationProperty

Returns a new instance of AggregateConfigurationProperty.

Parameters:

  • aggregates (Array<String>, nil) (defaults to: nil)

    The list of aggregates that this volume resides on.

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

    Used to explicitly set the number of constituents within the FlexGroup per storage aggregate.



600
601
602
603
604
605
# File 'fsx/cfn_volume.rb', line 600

def initialize(aggregates: nil, constituents_per_aggregate: nil)
  @aggregates = aggregates
  Jsii::Type.check_type(@aggregates, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "aggregates") unless @aggregates.nil?
  @constituents_per_aggregate = constituents_per_aggregate
  Jsii::Type.check_type(@constituents_per_aggregate, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "constituentsPerAggregate") unless @constituents_per_aggregate.nil?
end

Instance Attribute Details

#aggregatesArray<String>? (readonly)

The list of aggregates that this volume resides on.

Aggregates are storage pools which make up your primary storage tier. Each high-availability (HA) pair has one aggregate. The names of the aggregates map to the names of the aggregates in the ONTAP CLI and REST API. For FlexVols, there will always be a single entry.

Amazon FSx responds with an HTTP status code 400 (Bad Request) for the following conditions:

  • The strings in the value of Aggregates are not are not formatted as aggr_x , where X is a number between 1 and 12.
  • The value of Aggregates contains aggregates that are not present.
  • One or more of the aggregates supplied are too close to the volume limit to support adding more volumes.


619
620
621
# File 'fsx/cfn_volume.rb', line 619

def aggregates
  @aggregates
end

#constituents_per_aggregateNumeric? (readonly)

Used to explicitly set the number of constituents within the FlexGroup per storage aggregate.

This field is optional when creating a FlexGroup volume. If unspecified, the default value will be 8. This field cannot be provided when creating a FlexVol volume.



626
627
628
# File 'fsx/cfn_volume.rb', line 626

def constituents_per_aggregate
  @constituents_per_aggregate
end

Class Method Details

.jsii_propertiesObject



628
629
630
631
632
633
# File 'fsx/cfn_volume.rb', line 628

def self.jsii_properties
  {
    :aggregates => "aggregates",
    :constituents_per_aggregate => "constituentsPerAggregate",
  }
end

Instance Method Details

#to_jsiiObject



635
636
637
638
639
640
641
642
# File 'fsx/cfn_volume.rb', line 635

def to_jsii
  result = {}
  result.merge!({
    "aggregates" => @aggregates,
    "constituentsPerAggregate" => @constituents_per_aggregate,
  })
  result.compact
end