module Stratosphere.Lightsail.Distribution.QueryStringObjectProperty (
        QueryStringObjectProperty(..), mkQueryStringObjectProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data QueryStringObjectProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-distribution-querystringobject.html>
    QueryStringObjectProperty {QueryStringObjectProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-distribution-querystringobject.html#cfn-lightsail-distribution-querystringobject-option>
                               QueryStringObjectProperty -> Maybe (Value Bool)
option :: (Prelude.Maybe (Value Prelude.Bool)),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lightsail-distribution-querystringobject.html#cfn-lightsail-distribution-querystringobject-querystringsallowlist>
                               QueryStringObjectProperty -> Maybe (ValueList Text)
queryStringsAllowList :: (Prelude.Maybe (ValueList Prelude.Text))}
  deriving stock (QueryStringObjectProperty -> QueryStringObjectProperty -> Bool
(QueryStringObjectProperty -> QueryStringObjectProperty -> Bool)
-> (QueryStringObjectProperty -> QueryStringObjectProperty -> Bool)
-> Eq QueryStringObjectProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: QueryStringObjectProperty -> QueryStringObjectProperty -> Bool
== :: QueryStringObjectProperty -> QueryStringObjectProperty -> Bool
$c/= :: QueryStringObjectProperty -> QueryStringObjectProperty -> Bool
/= :: QueryStringObjectProperty -> QueryStringObjectProperty -> Bool
Prelude.Eq, Int -> QueryStringObjectProperty -> ShowS
[QueryStringObjectProperty] -> ShowS
QueryStringObjectProperty -> String
(Int -> QueryStringObjectProperty -> ShowS)
-> (QueryStringObjectProperty -> String)
-> ([QueryStringObjectProperty] -> ShowS)
-> Show QueryStringObjectProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> QueryStringObjectProperty -> ShowS
showsPrec :: Int -> QueryStringObjectProperty -> ShowS
$cshow :: QueryStringObjectProperty -> String
show :: QueryStringObjectProperty -> String
$cshowList :: [QueryStringObjectProperty] -> ShowS
showList :: [QueryStringObjectProperty] -> ShowS
Prelude.Show)
mkQueryStringObjectProperty :: QueryStringObjectProperty
mkQueryStringObjectProperty :: QueryStringObjectProperty
mkQueryStringObjectProperty
  = QueryStringObjectProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), option :: Maybe (Value Bool)
option = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       queryStringsAllowList :: Maybe (ValueList Text)
queryStringsAllowList = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties QueryStringObjectProperty where
  toResourceProperties :: QueryStringObjectProperty -> ResourceProperties
toResourceProperties QueryStringObjectProperty {Maybe (ValueList Text)
Maybe (Value Bool)
()
haddock_workaround_ :: QueryStringObjectProperty -> ()
option :: QueryStringObjectProperty -> Maybe (Value Bool)
queryStringsAllowList :: QueryStringObjectProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
option :: Maybe (Value Bool)
queryStringsAllowList :: Maybe (ValueList Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Lightsail::Distribution.QueryStringObject",
         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 Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Option" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
option,
                            Key -> ValueList 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
"QueryStringsAllowList"
                              (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
queryStringsAllowList])}
instance JSON.ToJSON QueryStringObjectProperty where
  toJSON :: QueryStringObjectProperty -> Value
toJSON QueryStringObjectProperty {Maybe (ValueList Text)
Maybe (Value Bool)
()
haddock_workaround_ :: QueryStringObjectProperty -> ()
option :: QueryStringObjectProperty -> Maybe (Value Bool)
queryStringsAllowList :: QueryStringObjectProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
option :: Maybe (Value Bool)
queryStringsAllowList :: Maybe (ValueList 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 Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Option" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
option,
               Key -> ValueList 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
"QueryStringsAllowList"
                 (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
queryStringsAllowList]))
instance Property "Option" QueryStringObjectProperty where
  type PropertyType "Option" QueryStringObjectProperty = Value Prelude.Bool
  set :: PropertyType "Option" QueryStringObjectProperty
-> QueryStringObjectProperty -> QueryStringObjectProperty
set PropertyType "Option" QueryStringObjectProperty
newValue QueryStringObjectProperty {Maybe (ValueList Text)
Maybe (Value Bool)
()
haddock_workaround_ :: QueryStringObjectProperty -> ()
option :: QueryStringObjectProperty -> Maybe (Value Bool)
queryStringsAllowList :: QueryStringObjectProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
option :: Maybe (Value Bool)
queryStringsAllowList :: Maybe (ValueList Text)
..}
    = QueryStringObjectProperty {option :: Maybe (Value Bool)
option = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Option" QueryStringObjectProperty
Value Bool
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
queryStringsAllowList :: Maybe (ValueList Text)
haddock_workaround_ :: ()
queryStringsAllowList :: Maybe (ValueList Text)
..}
instance Property "QueryStringsAllowList" QueryStringObjectProperty where
  type PropertyType "QueryStringsAllowList" QueryStringObjectProperty = ValueList Prelude.Text
  set :: PropertyType "QueryStringsAllowList" QueryStringObjectProperty
-> QueryStringObjectProperty -> QueryStringObjectProperty
set PropertyType "QueryStringsAllowList" QueryStringObjectProperty
newValue QueryStringObjectProperty {Maybe (ValueList Text)
Maybe (Value Bool)
()
haddock_workaround_ :: QueryStringObjectProperty -> ()
option :: QueryStringObjectProperty -> Maybe (Value Bool)
queryStringsAllowList :: QueryStringObjectProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
option :: Maybe (Value Bool)
queryStringsAllowList :: Maybe (ValueList Text)
..}
    = QueryStringObjectProperty
        {queryStringsAllowList :: Maybe (ValueList Text)
queryStringsAllowList = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "QueryStringsAllowList" QueryStringObjectProperty
ValueList Text
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
option :: Maybe (Value Bool)
haddock_workaround_ :: ()
option :: Maybe (Value Bool)
..}