module Stratosphere.QuickSight.Analysis.DateTimeFormatConfigurationProperty (
        module Exports, DateTimeFormatConfigurationProperty(..),
        mkDateTimeFormatConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.NullValueFormatConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.NumericFormatConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DateTimeFormatConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-datetimeformatconfiguration.html>
    DateTimeFormatConfigurationProperty {DateTimeFormatConfigurationProperty -> ()
haddock_workaround_ :: (),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-datetimeformatconfiguration.html#cfn-quicksight-analysis-datetimeformatconfiguration-datetimeformat>
                                         DateTimeFormatConfigurationProperty -> Maybe (Value Text)
dateTimeFormat :: (Prelude.Maybe (Value Prelude.Text)),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-datetimeformatconfiguration.html#cfn-quicksight-analysis-datetimeformatconfiguration-nullvalueformatconfiguration>
                                         DateTimeFormatConfigurationProperty
-> Maybe NullValueFormatConfigurationProperty
nullValueFormatConfiguration :: (Prelude.Maybe NullValueFormatConfigurationProperty),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-datetimeformatconfiguration.html#cfn-quicksight-analysis-datetimeformatconfiguration-numericformatconfiguration>
                                         DateTimeFormatConfigurationProperty
-> Maybe NumericFormatConfigurationProperty
numericFormatConfiguration :: (Prelude.Maybe NumericFormatConfigurationProperty)}
  deriving stock (DateTimeFormatConfigurationProperty
-> DateTimeFormatConfigurationProperty -> Bool
(DateTimeFormatConfigurationProperty
 -> DateTimeFormatConfigurationProperty -> Bool)
-> (DateTimeFormatConfigurationProperty
    -> DateTimeFormatConfigurationProperty -> Bool)
-> Eq DateTimeFormatConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DateTimeFormatConfigurationProperty
-> DateTimeFormatConfigurationProperty -> Bool
== :: DateTimeFormatConfigurationProperty
-> DateTimeFormatConfigurationProperty -> Bool
$c/= :: DateTimeFormatConfigurationProperty
-> DateTimeFormatConfigurationProperty -> Bool
/= :: DateTimeFormatConfigurationProperty
-> DateTimeFormatConfigurationProperty -> Bool
Prelude.Eq, Int -> DateTimeFormatConfigurationProperty -> ShowS
[DateTimeFormatConfigurationProperty] -> ShowS
DateTimeFormatConfigurationProperty -> String
(Int -> DateTimeFormatConfigurationProperty -> ShowS)
-> (DateTimeFormatConfigurationProperty -> String)
-> ([DateTimeFormatConfigurationProperty] -> ShowS)
-> Show DateTimeFormatConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DateTimeFormatConfigurationProperty -> ShowS
showsPrec :: Int -> DateTimeFormatConfigurationProperty -> ShowS
$cshow :: DateTimeFormatConfigurationProperty -> String
show :: DateTimeFormatConfigurationProperty -> String
$cshowList :: [DateTimeFormatConfigurationProperty] -> ShowS
showList :: [DateTimeFormatConfigurationProperty] -> ShowS
Prelude.Show)
mkDateTimeFormatConfigurationProperty ::
  DateTimeFormatConfigurationProperty
mkDateTimeFormatConfigurationProperty :: DateTimeFormatConfigurationProperty
mkDateTimeFormatConfigurationProperty
  = DateTimeFormatConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), dateTimeFormat :: Maybe (Value Text)
dateTimeFormat = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       nullValueFormatConfiguration :: Maybe NullValueFormatConfigurationProperty
nullValueFormatConfiguration = Maybe NullValueFormatConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
       numericFormatConfiguration :: Maybe NumericFormatConfigurationProperty
numericFormatConfiguration = Maybe NumericFormatConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DateTimeFormatConfigurationProperty where
  toResourceProperties :: DateTimeFormatConfigurationProperty -> ResourceProperties
toResourceProperties DateTimeFormatConfigurationProperty {Maybe (Value Text)
Maybe NullValueFormatConfigurationProperty
Maybe NumericFormatConfigurationProperty
()
haddock_workaround_ :: DateTimeFormatConfigurationProperty -> ()
dateTimeFormat :: DateTimeFormatConfigurationProperty -> Maybe (Value Text)
nullValueFormatConfiguration :: DateTimeFormatConfigurationProperty
-> Maybe NullValueFormatConfigurationProperty
numericFormatConfiguration :: DateTimeFormatConfigurationProperty
-> Maybe NumericFormatConfigurationProperty
haddock_workaround_ :: ()
dateTimeFormat :: Maybe (Value Text)
nullValueFormatConfiguration :: Maybe NullValueFormatConfigurationProperty
numericFormatConfiguration :: Maybe NumericFormatConfigurationProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Analysis.DateTimeFormatConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [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..=) Key
"DateTimeFormat" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
dateTimeFormat,
                            Key -> NullValueFormatConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"NullValueFormatConfiguration"
                              (NullValueFormatConfigurationProperty -> (Key, Value))
-> Maybe NullValueFormatConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe NullValueFormatConfigurationProperty
nullValueFormatConfiguration,
                            Key -> NumericFormatConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"NumericFormatConfiguration"
                              (NumericFormatConfigurationProperty -> (Key, Value))
-> Maybe NumericFormatConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe NumericFormatConfigurationProperty
numericFormatConfiguration])}
instance JSON.ToJSON DateTimeFormatConfigurationProperty where
  toJSON :: DateTimeFormatConfigurationProperty -> Value
toJSON DateTimeFormatConfigurationProperty {Maybe (Value Text)
Maybe NullValueFormatConfigurationProperty
Maybe NumericFormatConfigurationProperty
()
haddock_workaround_ :: DateTimeFormatConfigurationProperty -> ()
dateTimeFormat :: DateTimeFormatConfigurationProperty -> Maybe (Value Text)
nullValueFormatConfiguration :: DateTimeFormatConfigurationProperty
-> Maybe NullValueFormatConfigurationProperty
numericFormatConfiguration :: DateTimeFormatConfigurationProperty
-> Maybe NumericFormatConfigurationProperty
haddock_workaround_ :: ()
dateTimeFormat :: Maybe (Value Text)
nullValueFormatConfiguration :: Maybe NullValueFormatConfigurationProperty
numericFormatConfiguration :: Maybe NumericFormatConfigurationProperty
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [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..=) Key
"DateTimeFormat" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
dateTimeFormat,
               Key -> NullValueFormatConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"NullValueFormatConfiguration"
                 (NullValueFormatConfigurationProperty -> (Key, Value))
-> Maybe NullValueFormatConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe NullValueFormatConfigurationProperty
nullValueFormatConfiguration,
               Key -> NumericFormatConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"NumericFormatConfiguration"
                 (NumericFormatConfigurationProperty -> (Key, Value))
-> Maybe NumericFormatConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe NumericFormatConfigurationProperty
numericFormatConfiguration]))
instance Property "DateTimeFormat" DateTimeFormatConfigurationProperty where
  type PropertyType "DateTimeFormat" DateTimeFormatConfigurationProperty = Value Prelude.Text
  set :: PropertyType "DateTimeFormat" DateTimeFormatConfigurationProperty
-> DateTimeFormatConfigurationProperty
-> DateTimeFormatConfigurationProperty
set PropertyType "DateTimeFormat" DateTimeFormatConfigurationProperty
newValue DateTimeFormatConfigurationProperty {Maybe (Value Text)
Maybe NullValueFormatConfigurationProperty
Maybe NumericFormatConfigurationProperty
()
haddock_workaround_ :: DateTimeFormatConfigurationProperty -> ()
dateTimeFormat :: DateTimeFormatConfigurationProperty -> Maybe (Value Text)
nullValueFormatConfiguration :: DateTimeFormatConfigurationProperty
-> Maybe NullValueFormatConfigurationProperty
numericFormatConfiguration :: DateTimeFormatConfigurationProperty
-> Maybe NumericFormatConfigurationProperty
haddock_workaround_ :: ()
dateTimeFormat :: Maybe (Value Text)
nullValueFormatConfiguration :: Maybe NullValueFormatConfigurationProperty
numericFormatConfiguration :: Maybe NumericFormatConfigurationProperty
..}
    = DateTimeFormatConfigurationProperty
        {dateTimeFormat :: Maybe (Value Text)
dateTimeFormat = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DateTimeFormat" DateTimeFormatConfigurationProperty
Value Text
newValue, Maybe NullValueFormatConfigurationProperty
Maybe NumericFormatConfigurationProperty
()
haddock_workaround_ :: ()
nullValueFormatConfiguration :: Maybe NullValueFormatConfigurationProperty
numericFormatConfiguration :: Maybe NumericFormatConfigurationProperty
haddock_workaround_ :: ()
nullValueFormatConfiguration :: Maybe NullValueFormatConfigurationProperty
numericFormatConfiguration :: Maybe NumericFormatConfigurationProperty
..}
instance Property "NullValueFormatConfiguration" DateTimeFormatConfigurationProperty where
  type PropertyType "NullValueFormatConfiguration" DateTimeFormatConfigurationProperty = NullValueFormatConfigurationProperty
  set :: PropertyType
  "NullValueFormatConfiguration" DateTimeFormatConfigurationProperty
-> DateTimeFormatConfigurationProperty
-> DateTimeFormatConfigurationProperty
set PropertyType
  "NullValueFormatConfiguration" DateTimeFormatConfigurationProperty
newValue DateTimeFormatConfigurationProperty {Maybe (Value Text)
Maybe NullValueFormatConfigurationProperty
Maybe NumericFormatConfigurationProperty
()
haddock_workaround_ :: DateTimeFormatConfigurationProperty -> ()
dateTimeFormat :: DateTimeFormatConfigurationProperty -> Maybe (Value Text)
nullValueFormatConfiguration :: DateTimeFormatConfigurationProperty
-> Maybe NullValueFormatConfigurationProperty
numericFormatConfiguration :: DateTimeFormatConfigurationProperty
-> Maybe NumericFormatConfigurationProperty
haddock_workaround_ :: ()
dateTimeFormat :: Maybe (Value Text)
nullValueFormatConfiguration :: Maybe NullValueFormatConfigurationProperty
numericFormatConfiguration :: Maybe NumericFormatConfigurationProperty
..}
    = DateTimeFormatConfigurationProperty
        {nullValueFormatConfiguration :: Maybe NullValueFormatConfigurationProperty
nullValueFormatConfiguration = NullValueFormatConfigurationProperty
-> Maybe NullValueFormatConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "NullValueFormatConfiguration" DateTimeFormatConfigurationProperty
NullValueFormatConfigurationProperty
newValue, Maybe (Value Text)
Maybe NumericFormatConfigurationProperty
()
haddock_workaround_ :: ()
dateTimeFormat :: Maybe (Value Text)
numericFormatConfiguration :: Maybe NumericFormatConfigurationProperty
haddock_workaround_ :: ()
dateTimeFormat :: Maybe (Value Text)
numericFormatConfiguration :: Maybe NumericFormatConfigurationProperty
..}
instance Property "NumericFormatConfiguration" DateTimeFormatConfigurationProperty where
  type PropertyType "NumericFormatConfiguration" DateTimeFormatConfigurationProperty = NumericFormatConfigurationProperty
  set :: PropertyType
  "NumericFormatConfiguration" DateTimeFormatConfigurationProperty
-> DateTimeFormatConfigurationProperty
-> DateTimeFormatConfigurationProperty
set PropertyType
  "NumericFormatConfiguration" DateTimeFormatConfigurationProperty
newValue DateTimeFormatConfigurationProperty {Maybe (Value Text)
Maybe NullValueFormatConfigurationProperty
Maybe NumericFormatConfigurationProperty
()
haddock_workaround_ :: DateTimeFormatConfigurationProperty -> ()
dateTimeFormat :: DateTimeFormatConfigurationProperty -> Maybe (Value Text)
nullValueFormatConfiguration :: DateTimeFormatConfigurationProperty
-> Maybe NullValueFormatConfigurationProperty
numericFormatConfiguration :: DateTimeFormatConfigurationProperty
-> Maybe NumericFormatConfigurationProperty
haddock_workaround_ :: ()
dateTimeFormat :: Maybe (Value Text)
nullValueFormatConfiguration :: Maybe NullValueFormatConfigurationProperty
numericFormatConfiguration :: Maybe NumericFormatConfigurationProperty
..}
    = DateTimeFormatConfigurationProperty
        {numericFormatConfiguration :: Maybe NumericFormatConfigurationProperty
numericFormatConfiguration = NumericFormatConfigurationProperty
-> Maybe NumericFormatConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "NumericFormatConfiguration" DateTimeFormatConfigurationProperty
NumericFormatConfigurationProperty
newValue, Maybe (Value Text)
Maybe NullValueFormatConfigurationProperty
()
haddock_workaround_ :: ()
dateTimeFormat :: Maybe (Value Text)
nullValueFormatConfiguration :: Maybe NullValueFormatConfigurationProperty
haddock_workaround_ :: ()
dateTimeFormat :: Maybe (Value Text)
nullValueFormatConfiguration :: Maybe NullValueFormatConfigurationProperty
..}