module Stratosphere.CleanRooms.ConfiguredTable.AggregationConstraintProperty (
        AggregationConstraintProperty(..), mkAggregationConstraintProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AggregationConstraintProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtable-aggregationconstraint.html>
    AggregationConstraintProperty {AggregationConstraintProperty -> ()
haddock_workaround_ :: (),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtable-aggregationconstraint.html#cfn-cleanrooms-configuredtable-aggregationconstraint-columnname>
                                   AggregationConstraintProperty -> Value Text
columnName :: (Value Prelude.Text),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtable-aggregationconstraint.html#cfn-cleanrooms-configuredtable-aggregationconstraint-minimum>
                                   AggregationConstraintProperty -> Value Double
minimum :: (Value Prelude.Double),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cleanrooms-configuredtable-aggregationconstraint.html#cfn-cleanrooms-configuredtable-aggregationconstraint-type>
                                   AggregationConstraintProperty -> Value Text
type' :: (Value Prelude.Text)}
  deriving stock (AggregationConstraintProperty
-> AggregationConstraintProperty -> Bool
(AggregationConstraintProperty
 -> AggregationConstraintProperty -> Bool)
-> (AggregationConstraintProperty
    -> AggregationConstraintProperty -> Bool)
-> Eq AggregationConstraintProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AggregationConstraintProperty
-> AggregationConstraintProperty -> Bool
== :: AggregationConstraintProperty
-> AggregationConstraintProperty -> Bool
$c/= :: AggregationConstraintProperty
-> AggregationConstraintProperty -> Bool
/= :: AggregationConstraintProperty
-> AggregationConstraintProperty -> Bool
Prelude.Eq, Int -> AggregationConstraintProperty -> ShowS
[AggregationConstraintProperty] -> ShowS
AggregationConstraintProperty -> String
(Int -> AggregationConstraintProperty -> ShowS)
-> (AggregationConstraintProperty -> String)
-> ([AggregationConstraintProperty] -> ShowS)
-> Show AggregationConstraintProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AggregationConstraintProperty -> ShowS
showsPrec :: Int -> AggregationConstraintProperty -> ShowS
$cshow :: AggregationConstraintProperty -> String
show :: AggregationConstraintProperty -> String
$cshowList :: [AggregationConstraintProperty] -> ShowS
showList :: [AggregationConstraintProperty] -> ShowS
Prelude.Show)
mkAggregationConstraintProperty ::
  Value Prelude.Text
  -> Value Prelude.Double
     -> Value Prelude.Text -> AggregationConstraintProperty
mkAggregationConstraintProperty :: Value Text
-> Value Double -> Value Text -> AggregationConstraintProperty
mkAggregationConstraintProperty Value Text
columnName Value Double
minimum Value Text
type'
  = AggregationConstraintProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), columnName :: Value Text
columnName = Value Text
columnName,
       minimum :: Value Double
minimum = Value Double
minimum, type' :: Value Text
type' = Value Text
type'}
instance ToResourceProperties AggregationConstraintProperty where
  toResourceProperties :: AggregationConstraintProperty -> ResourceProperties
toResourceProperties AggregationConstraintProperty {()
Value Double
Value Text
haddock_workaround_ :: AggregationConstraintProperty -> ()
columnName :: AggregationConstraintProperty -> Value Text
minimum :: AggregationConstraintProperty -> Value Double
type' :: AggregationConstraintProperty -> Value Text
haddock_workaround_ :: ()
columnName :: Value Text
minimum :: Value Double
type' :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::CleanRooms::ConfiguredTable.AggregationConstraint",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"ColumnName" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
columnName,
                       Key
"Minimum" Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Double
minimum, Key
"Type" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
type']}
instance JSON.ToJSON AggregationConstraintProperty where
  toJSON :: AggregationConstraintProperty -> Value
toJSON AggregationConstraintProperty {()
Value Double
Value Text
haddock_workaround_ :: AggregationConstraintProperty -> ()
columnName :: AggregationConstraintProperty -> Value Text
minimum :: AggregationConstraintProperty -> Value Double
type' :: AggregationConstraintProperty -> Value Text
haddock_workaround_ :: ()
columnName :: Value Text
minimum :: Value Double
type' :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"ColumnName" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
columnName, Key
"Minimum" Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Double
minimum,
         Key
"Type" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
type']
instance Property "ColumnName" AggregationConstraintProperty where
  type PropertyType "ColumnName" AggregationConstraintProperty = Value Prelude.Text
  set :: PropertyType "ColumnName" AggregationConstraintProperty
-> AggregationConstraintProperty -> AggregationConstraintProperty
set PropertyType "ColumnName" AggregationConstraintProperty
newValue AggregationConstraintProperty {()
Value Double
Value Text
haddock_workaround_ :: AggregationConstraintProperty -> ()
columnName :: AggregationConstraintProperty -> Value Text
minimum :: AggregationConstraintProperty -> Value Double
type' :: AggregationConstraintProperty -> Value Text
haddock_workaround_ :: ()
columnName :: Value Text
minimum :: Value Double
type' :: Value Text
..}
    = AggregationConstraintProperty {columnName :: Value Text
columnName = PropertyType "ColumnName" AggregationConstraintProperty
Value Text
newValue, ()
Value Double
Value Text
haddock_workaround_ :: ()
minimum :: Value Double
type' :: Value Text
haddock_workaround_ :: ()
minimum :: Value Double
type' :: Value Text
..}
instance Property "Minimum" AggregationConstraintProperty where
  type PropertyType "Minimum" AggregationConstraintProperty = Value Prelude.Double
  set :: PropertyType "Minimum" AggregationConstraintProperty
-> AggregationConstraintProperty -> AggregationConstraintProperty
set PropertyType "Minimum" AggregationConstraintProperty
newValue AggregationConstraintProperty {()
Value Double
Value Text
haddock_workaround_ :: AggregationConstraintProperty -> ()
columnName :: AggregationConstraintProperty -> Value Text
minimum :: AggregationConstraintProperty -> Value Double
type' :: AggregationConstraintProperty -> Value Text
haddock_workaround_ :: ()
columnName :: Value Text
minimum :: Value Double
type' :: Value Text
..}
    = AggregationConstraintProperty {minimum :: Value Double
minimum = PropertyType "Minimum" AggregationConstraintProperty
Value Double
newValue, ()
Value Text
haddock_workaround_ :: ()
columnName :: Value Text
type' :: Value Text
haddock_workaround_ :: ()
columnName :: Value Text
type' :: Value Text
..}
instance Property "Type" AggregationConstraintProperty where
  type PropertyType "Type" AggregationConstraintProperty = Value Prelude.Text
  set :: PropertyType "Type" AggregationConstraintProperty
-> AggregationConstraintProperty -> AggregationConstraintProperty
set PropertyType "Type" AggregationConstraintProperty
newValue AggregationConstraintProperty {()
Value Double
Value Text
haddock_workaround_ :: AggregationConstraintProperty -> ()
columnName :: AggregationConstraintProperty -> Value Text
minimum :: AggregationConstraintProperty -> Value Double
type' :: AggregationConstraintProperty -> Value Text
haddock_workaround_ :: ()
columnName :: Value Text
minimum :: Value Double
type' :: Value Text
..}
    = AggregationConstraintProperty {type' :: Value Text
type' = PropertyType "Type" AggregationConstraintProperty
Value Text
newValue, ()
Value Double
Value Text
haddock_workaround_ :: ()
columnName :: Value Text
minimum :: Value Double
haddock_workaround_ :: ()
columnName :: Value Text
minimum :: Value Double
..}