Class: AWSCDK::Athena::CfnCapacityReservation::CapacityAssignmentProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
athena/cfn_capacity_reservation.rb

Overview

A mapping between one or more workgroups and a capacity reservation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(workgroup_names:) ⇒ CapacityAssignmentProperty

Returns a new instance of CapacityAssignmentProperty.

Parameters:

  • workgroup_names (Array<String>)

    The list of workgroup names for the capacity assignment.



624
625
626
627
# File 'athena/cfn_capacity_reservation.rb', line 624

def initialize(workgroup_names:)
  @workgroup_names = workgroup_names
  Jsii::Type.check_type(@workgroup_names, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "workgroupNames")
end

Instance Attribute Details

#workgroup_namesArray<String> (readonly)

The list of workgroup names for the capacity assignment.



633
634
635
# File 'athena/cfn_capacity_reservation.rb', line 633

def workgroup_names
  @workgroup_names
end

Class Method Details

.jsii_propertiesObject



635
636
637
638
639
# File 'athena/cfn_capacity_reservation.rb', line 635

def self.jsii_properties
  {
    :workgroup_names => "workgroupNames",
  }
end

Instance Method Details

#to_jsiiObject



641
642
643
644
645
646
647
# File 'athena/cfn_capacity_reservation.rb', line 641

def to_jsii
  result = {}
  result.merge!({
    "workgroupNames" => @workgroup_names,
  })
  result.compact
end