#[non_exhaustive]pub struct CapacityAssignmentConfiguration {
pub capacity_reservation_name: Option<String>,
pub capacity_assignments: Option<Vec<CapacityAssignment>>,
}Expand description
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.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.capacity_reservation_name: Option<String>The name of the reservation that the capacity assignment configuration is for.
capacity_assignments: Option<Vec<CapacityAssignment>>The list of assignments that make up the capacity assignment configuration.
Implementations§
source§impl CapacityAssignmentConfiguration
impl CapacityAssignmentConfiguration
sourcepub fn capacity_reservation_name(&self) -> Option<&str>
pub fn capacity_reservation_name(&self) -> Option<&str>
The name of the reservation that the capacity assignment configuration is for.
sourcepub fn capacity_assignments(&self) -> &[CapacityAssignment]
pub fn capacity_assignments(&self) -> &[CapacityAssignment]
The list of assignments that make up the capacity assignment configuration.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .capacity_assignments.is_none().
source§impl CapacityAssignmentConfiguration
impl CapacityAssignmentConfiguration
sourcepub fn builder() -> CapacityAssignmentConfigurationBuilder
pub fn builder() -> CapacityAssignmentConfigurationBuilder
Creates a new builder-style object to manufacture CapacityAssignmentConfiguration.
Trait Implementations§
source§impl Clone for CapacityAssignmentConfiguration
impl Clone for CapacityAssignmentConfiguration
source§fn clone(&self) -> CapacityAssignmentConfiguration
fn clone(&self) -> CapacityAssignmentConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for CapacityAssignmentConfiguration
impl PartialEq for CapacityAssignmentConfiguration
source§fn eq(&self, other: &CapacityAssignmentConfiguration) -> bool
fn eq(&self, other: &CapacityAssignmentConfiguration) -> bool
self and other values to be equal, and is used
by ==.