Class: AWSCDK::Athena::CfnCapacityReservation::CapacityAssignmentConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Athena::CfnCapacityReservation::CapacityAssignmentConfigurationProperty
- Defined in:
- athena/cfn_capacity_reservation.rb
Overview
Assigns Athena workgroups (and hence their queries) to capacity reservations.
A capacity reservation can have only one capacity assignment configuration, but the capacity assignment configuration can be made up of multiple individual assignments. Each assignment specifies how Athena queries can consume capacity from the capacity reservation that their workgroup is mapped to.
Instance Attribute Summary collapse
-
#capacity_assignments ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Athena::CfnCapacityReservation::CapacityAssignmentProperty>
readonly
The list of assignments that make up the capacity assignment configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(capacity_assignments:) ⇒ CapacityAssignmentConfigurationProperty
constructor
A new instance of CapacityAssignmentConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(capacity_assignments:) ⇒ CapacityAssignmentConfigurationProperty
Returns a new instance of CapacityAssignmentConfigurationProperty.
591 592 593 594 |
# File 'athena/cfn_capacity_reservation.rb', line 591 def initialize(capacity_assignments:) @capacity_assignments = capacity_assignments Jsii::Type.check_type(@capacity_assignments, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXRoZW5hLkNmbkNhcGFjaXR5UmVzZXJ2YXRpb24uQ2FwYWNpdHlBc3NpZ25tZW50UHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "capacityAssignments") end |
Instance Attribute Details
#capacity_assignments ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Athena::CfnCapacityReservation::CapacityAssignmentProperty> (readonly)
The list of assignments that make up the capacity assignment configuration.
600 601 602 |
# File 'athena/cfn_capacity_reservation.rb', line 600 def capacity_assignments @capacity_assignments end |
Class Method Details
.jsii_properties ⇒ Object
602 603 604 605 606 |
# File 'athena/cfn_capacity_reservation.rb', line 602 def self.jsii_properties { :capacity_assignments => "capacityAssignments", } end |
Instance Method Details
#to_jsii ⇒ Object
608 609 610 611 612 613 614 |
# File 'athena/cfn_capacity_reservation.rb', line 608 def to_jsii result = {} result.merge!({ "capacityAssignments" => @capacity_assignments, }) result.compact end |