Class: AWSCDK::Athena::CfnCapacityReservation::CapacityAssignmentConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(capacity_assignments:) ⇒ CapacityAssignmentConfigurationProperty

Returns a new instance of CapacityAssignmentConfigurationProperty.

Parameters:



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

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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