module Stratosphere.Athena.CapacityReservation.CapacityAssignmentProperty ( CapacityAssignmentProperty(..), mkCapacityAssignmentProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data CapacityAssignmentProperty = -- | See: CapacityAssignmentProperty {haddock_workaround_ :: (), -- | See: workgroupNames :: (ValueList Prelude.Text)} deriving stock (Prelude.Eq, Prelude.Show) mkCapacityAssignmentProperty :: ValueList Prelude.Text -> CapacityAssignmentProperty mkCapacityAssignmentProperty workgroupNames = CapacityAssignmentProperty {haddock_workaround_ = (), workgroupNames = workgroupNames} instance ToResourceProperties CapacityAssignmentProperty where toResourceProperties CapacityAssignmentProperty {..} = ResourceProperties {awsType = "AWS::Athena::CapacityReservation.CapacityAssignment", supportsTags = Prelude.False, properties = ["WorkgroupNames" JSON..= workgroupNames]} instance JSON.ToJSON CapacityAssignmentProperty where toJSON CapacityAssignmentProperty {..} = JSON.object ["WorkgroupNames" JSON..= workgroupNames] instance Property "WorkgroupNames" CapacityAssignmentProperty where type PropertyType "WorkgroupNames" CapacityAssignmentProperty = ValueList Prelude.Text set newValue CapacityAssignmentProperty {..} = CapacityAssignmentProperty {workgroupNames = newValue, ..}