Athena / Client / put_capacity_assignment_configuration

put_capacity_assignment_configuration#

Athena.Client.put_capacity_assignment_configuration(**kwargs)#

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.

See also: AWS API Documentation

Request Syntax

response = client.put_capacity_assignment_configuration(
    CapacityReservationName='string',
    CapacityAssignments=[
        {
            'WorkGroupNames': [
                'string',
            ]
        },
    ]
)
Parameters:
  • CapacityReservationName (string) –

    [REQUIRED]

    The name of the capacity reservation to put a capacity assignment configuration for.

  • CapacityAssignments (list) –

    [REQUIRED]

    The list of assignments for the capacity assignment configuration.

    • (dict) –

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

      • WorkGroupNames (list) –

        The list of workgroup names for the capacity assignment.

        • (string) –

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions