Class: AWSCDK::Athena::CfnCapacityReservation::CapacityAssignmentProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Athena::CfnCapacityReservation::CapacityAssignmentProperty
- Defined in:
- athena/cfn_capacity_reservation.rb
Overview
A mapping between one or more workgroups and a capacity reservation.
Instance Attribute Summary collapse
-
#workgroup_names ⇒ Array<String>
readonly
The list of workgroup names for the capacity assignment.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(workgroup_names:) ⇒ CapacityAssignmentProperty
constructor
A new instance of CapacityAssignmentProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(workgroup_names:) ⇒ CapacityAssignmentProperty
Returns a new instance of CapacityAssignmentProperty.
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_names ⇒ Array<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_properties ⇒ Object
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_jsii ⇒ Object
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 |