Skip to main content

capacity_assignment_configurations

Creates, updates, deletes, gets or lists a capacity_assignment_configurations resource.

Overview

Namecapacity_assignment_configurations
TypeResource
Idaws.athena.capacity_assignment_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
capacity_assignmentsarrayThe list of assignments that make up the capacity assignment configuration.
capacity_reservation_namestringThe name of the reservation that the capacity assignment configuration is for. (pattern: <code>[a-zA-Z0-9._-]+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_capacity_assignment_configurationselectregionGets the capacity assignment configuration for a capacity reservation, if one exists.
put_capacity_assignment_configurationreplaceregion, CapacityReservationName, CapacityAssignmentsPuts a new capacity assignment configuration for a specified capacity reservation. If a capacity assignment configuration already exists for the capacity reservation, replaces the existing capacity assignment configuration.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Gets the capacity assignment configuration for a capacity reservation, if one exists.

SELECT
capacity_assignments,
capacity_reservation_name
FROM aws.athena.capacity_assignment_configurations
WHERE region = '{{ region }}' -- required
;

REPLACE examples

Puts a new capacity assignment configuration for a specified capacity reservation. If a capacity assignment configuration already exists for the capacity reservation, replaces the existing capacity assignment configuration.

REPLACE aws.athena.capacity_assignment_configurations
SET
CapacityReservationName = '{{ CapacityReservationName }}',
CapacityAssignments = '{{ CapacityAssignments }}'
WHERE
region = '{{ region }}' --required
AND CapacityReservationName = '{{ CapacityReservationName }}' --required
AND CapacityAssignments = '{{ CapacityAssignments }}' --required;