module Stratosphere.QuickSight.Dashboard.AnchorDateConfigurationProperty (
AnchorDateConfigurationProperty(..),
mkAnchorDateConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AnchorDateConfigurationProperty
=
AnchorDateConfigurationProperty {AnchorDateConfigurationProperty -> ()
haddock_workaround_ :: (),
AnchorDateConfigurationProperty -> Maybe (Value Text)
anchorOption :: (Prelude.Maybe (Value Prelude.Text)),
AnchorDateConfigurationProperty -> Maybe (Value Text)
parameterName :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (AnchorDateConfigurationProperty
-> AnchorDateConfigurationProperty -> Bool
(AnchorDateConfigurationProperty
-> AnchorDateConfigurationProperty -> Bool)
-> (AnchorDateConfigurationProperty
-> AnchorDateConfigurationProperty -> Bool)
-> Eq AnchorDateConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AnchorDateConfigurationProperty
-> AnchorDateConfigurationProperty -> Bool
== :: AnchorDateConfigurationProperty
-> AnchorDateConfigurationProperty -> Bool
$c/= :: AnchorDateConfigurationProperty
-> AnchorDateConfigurationProperty -> Bool
/= :: AnchorDateConfigurationProperty
-> AnchorDateConfigurationProperty -> Bool
Prelude.Eq, Int -> AnchorDateConfigurationProperty -> ShowS
[AnchorDateConfigurationProperty] -> ShowS
AnchorDateConfigurationProperty -> String
(Int -> AnchorDateConfigurationProperty -> ShowS)
-> (AnchorDateConfigurationProperty -> String)
-> ([AnchorDateConfigurationProperty] -> ShowS)
-> Show AnchorDateConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AnchorDateConfigurationProperty -> ShowS
showsPrec :: Int -> AnchorDateConfigurationProperty -> ShowS
$cshow :: AnchorDateConfigurationProperty -> String
show :: AnchorDateConfigurationProperty -> String
$cshowList :: [AnchorDateConfigurationProperty] -> ShowS
showList :: [AnchorDateConfigurationProperty] -> ShowS
Prelude.Show)
mkAnchorDateConfigurationProperty ::
AnchorDateConfigurationProperty
mkAnchorDateConfigurationProperty :: AnchorDateConfigurationProperty
mkAnchorDateConfigurationProperty
= AnchorDateConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), anchorOption :: Maybe (Value Text)
anchorOption = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
parameterName :: Maybe (Value Text)
parameterName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AnchorDateConfigurationProperty where
toResourceProperties :: AnchorDateConfigurationProperty -> ResourceProperties
toResourceProperties AnchorDateConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: AnchorDateConfigurationProperty -> ()
anchorOption :: AnchorDateConfigurationProperty -> Maybe (Value Text)
parameterName :: AnchorDateConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
anchorOption :: Maybe (Value Text)
parameterName :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Dashboard.AnchorDateConfiguration",
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
"AnchorOption" (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)
anchorOption,
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
"ParameterName" (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)
parameterName])}
instance JSON.ToJSON AnchorDateConfigurationProperty where
toJSON :: AnchorDateConfigurationProperty -> Value
toJSON AnchorDateConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: AnchorDateConfigurationProperty -> ()
anchorOption :: AnchorDateConfigurationProperty -> Maybe (Value Text)
parameterName :: AnchorDateConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
anchorOption :: Maybe (Value Text)
parameterName :: Maybe (Value Text)
..}
= [(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
"AnchorOption" (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)
anchorOption,
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
"ParameterName" (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)
parameterName]))
instance Property "AnchorOption" AnchorDateConfigurationProperty where
type PropertyType "AnchorOption" AnchorDateConfigurationProperty = Value Prelude.Text
set :: PropertyType "AnchorOption" AnchorDateConfigurationProperty
-> AnchorDateConfigurationProperty
-> AnchorDateConfigurationProperty
set PropertyType "AnchorOption" AnchorDateConfigurationProperty
newValue AnchorDateConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: AnchorDateConfigurationProperty -> ()
anchorOption :: AnchorDateConfigurationProperty -> Maybe (Value Text)
parameterName :: AnchorDateConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
anchorOption :: Maybe (Value Text)
parameterName :: Maybe (Value Text)
..}
= AnchorDateConfigurationProperty
{anchorOption :: Maybe (Value Text)
anchorOption = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AnchorOption" AnchorDateConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
parameterName :: Maybe (Value Text)
haddock_workaround_ :: ()
parameterName :: Maybe (Value Text)
..}
instance Property "ParameterName" AnchorDateConfigurationProperty where
type PropertyType "ParameterName" AnchorDateConfigurationProperty = Value Prelude.Text
set :: PropertyType "ParameterName" AnchorDateConfigurationProperty
-> AnchorDateConfigurationProperty
-> AnchorDateConfigurationProperty
set PropertyType "ParameterName" AnchorDateConfigurationProperty
newValue AnchorDateConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: AnchorDateConfigurationProperty -> ()
anchorOption :: AnchorDateConfigurationProperty -> Maybe (Value Text)
parameterName :: AnchorDateConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
anchorOption :: Maybe (Value Text)
parameterName :: Maybe (Value Text)
..}
= AnchorDateConfigurationProperty
{parameterName :: Maybe (Value Text)
parameterName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ParameterName" AnchorDateConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
anchorOption :: Maybe (Value Text)
haddock_workaround_ :: ()
anchorOption :: Maybe (Value Text)
..}