module Stratosphere.Route53Resolver.FirewallDomainList (
        FirewallDomainList(..), mkFirewallDomainList
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data FirewallDomainList
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53resolver-firewalldomainlist.html>
    FirewallDomainList {FirewallDomainList -> ()
haddock_workaround_ :: (),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53resolver-firewalldomainlist.html#cfn-route53resolver-firewalldomainlist-domainfileurl>
                        FirewallDomainList -> Maybe (Value Text)
domainFileUrl :: (Prelude.Maybe (Value Prelude.Text)),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53resolver-firewalldomainlist.html#cfn-route53resolver-firewalldomainlist-domains>
                        FirewallDomainList -> Maybe (ValueList Text)
domains :: (Prelude.Maybe (ValueList Prelude.Text)),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53resolver-firewalldomainlist.html#cfn-route53resolver-firewalldomainlist-name>
                        FirewallDomainList -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53resolver-firewalldomainlist.html#cfn-route53resolver-firewalldomainlist-tags>
                        FirewallDomainList -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
  deriving stock (FirewallDomainList -> FirewallDomainList -> Bool
(FirewallDomainList -> FirewallDomainList -> Bool)
-> (FirewallDomainList -> FirewallDomainList -> Bool)
-> Eq FirewallDomainList
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FirewallDomainList -> FirewallDomainList -> Bool
== :: FirewallDomainList -> FirewallDomainList -> Bool
$c/= :: FirewallDomainList -> FirewallDomainList -> Bool
/= :: FirewallDomainList -> FirewallDomainList -> Bool
Prelude.Eq, Int -> FirewallDomainList -> ShowS
[FirewallDomainList] -> ShowS
FirewallDomainList -> String
(Int -> FirewallDomainList -> ShowS)
-> (FirewallDomainList -> String)
-> ([FirewallDomainList] -> ShowS)
-> Show FirewallDomainList
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FirewallDomainList -> ShowS
showsPrec :: Int -> FirewallDomainList -> ShowS
$cshow :: FirewallDomainList -> String
show :: FirewallDomainList -> String
$cshowList :: [FirewallDomainList] -> ShowS
showList :: [FirewallDomainList] -> ShowS
Prelude.Show)
mkFirewallDomainList :: FirewallDomainList
mkFirewallDomainList :: FirewallDomainList
mkFirewallDomainList
  = FirewallDomainList
      {haddock_workaround_ :: ()
haddock_workaround_ = (), domainFileUrl :: Maybe (Value Text)
domainFileUrl = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       domains :: Maybe (ValueList Text)
domains = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing, name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FirewallDomainList where
  toResourceProperties :: FirewallDomainList -> ResourceProperties
toResourceProperties FirewallDomainList {Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: FirewallDomainList -> ()
domainFileUrl :: FirewallDomainList -> Maybe (Value Text)
domains :: FirewallDomainList -> Maybe (ValueList Text)
name :: FirewallDomainList -> Maybe (Value Text)
tags :: FirewallDomainList -> Maybe [Tag]
haddock_workaround_ :: ()
domainFileUrl :: Maybe (Value Text)
domains :: Maybe (ValueList Text)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Route53Resolver::FirewallDomainList",
         supportsTags :: Bool
supportsTags = Bool
Prelude.True,
         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
"DomainFileUrl" (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)
domainFileUrl,
                            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
"Domains" (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)
domains,
                            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
"Name" (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)
name,
                            Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])}
instance JSON.ToJSON FirewallDomainList where
  toJSON :: FirewallDomainList -> Value
toJSON FirewallDomainList {Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: FirewallDomainList -> ()
domainFileUrl :: FirewallDomainList -> Maybe (Value Text)
domains :: FirewallDomainList -> Maybe (ValueList Text)
name :: FirewallDomainList -> Maybe (Value Text)
tags :: FirewallDomainList -> Maybe [Tag]
haddock_workaround_ :: ()
domainFileUrl :: Maybe (Value Text)
domains :: Maybe (ValueList Text)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = [(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
"DomainFileUrl" (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)
domainFileUrl,
               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
"Domains" (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)
domains,
               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
"Name" (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)
name,
               Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))
instance Property "DomainFileUrl" FirewallDomainList where
  type PropertyType "DomainFileUrl" FirewallDomainList = Value Prelude.Text
  set :: PropertyType "DomainFileUrl" FirewallDomainList
-> FirewallDomainList -> FirewallDomainList
set PropertyType "DomainFileUrl" FirewallDomainList
newValue FirewallDomainList {Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: FirewallDomainList -> ()
domainFileUrl :: FirewallDomainList -> Maybe (Value Text)
domains :: FirewallDomainList -> Maybe (ValueList Text)
name :: FirewallDomainList -> Maybe (Value Text)
tags :: FirewallDomainList -> Maybe [Tag]
haddock_workaround_ :: ()
domainFileUrl :: Maybe (Value Text)
domains :: Maybe (ValueList Text)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = FirewallDomainList {domainFileUrl :: Maybe (Value Text)
domainFileUrl = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DomainFileUrl" FirewallDomainList
Value Text
newValue, Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
domains :: Maybe (ValueList Text)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
domains :: Maybe (ValueList Text)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Domains" FirewallDomainList where
  type PropertyType "Domains" FirewallDomainList = ValueList Prelude.Text
  set :: PropertyType "Domains" FirewallDomainList
-> FirewallDomainList -> FirewallDomainList
set PropertyType "Domains" FirewallDomainList
newValue FirewallDomainList {Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: FirewallDomainList -> ()
domainFileUrl :: FirewallDomainList -> Maybe (Value Text)
domains :: FirewallDomainList -> Maybe (ValueList Text)
name :: FirewallDomainList -> Maybe (Value Text)
tags :: FirewallDomainList -> Maybe [Tag]
haddock_workaround_ :: ()
domainFileUrl :: Maybe (Value Text)
domains :: Maybe (ValueList Text)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = FirewallDomainList {domains :: Maybe (ValueList Text)
domains = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Domains" FirewallDomainList
ValueList Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ()
domainFileUrl :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
domainFileUrl :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Name" FirewallDomainList where
  type PropertyType "Name" FirewallDomainList = Value Prelude.Text
  set :: PropertyType "Name" FirewallDomainList
-> FirewallDomainList -> FirewallDomainList
set PropertyType "Name" FirewallDomainList
newValue FirewallDomainList {Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: FirewallDomainList -> ()
domainFileUrl :: FirewallDomainList -> Maybe (Value Text)
domains :: FirewallDomainList -> Maybe (ValueList Text)
name :: FirewallDomainList -> Maybe (Value Text)
tags :: FirewallDomainList -> Maybe [Tag]
haddock_workaround_ :: ()
domainFileUrl :: Maybe (Value Text)
domains :: Maybe (ValueList Text)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = FirewallDomainList {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" FirewallDomainList
Value Text
newValue, Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
domainFileUrl :: Maybe (Value Text)
domains :: Maybe (ValueList Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
domainFileUrl :: Maybe (Value Text)
domains :: Maybe (ValueList Text)
tags :: Maybe [Tag]
..}
instance Property "Tags" FirewallDomainList where
  type PropertyType "Tags" FirewallDomainList = [Tag]
  set :: PropertyType "Tags" FirewallDomainList
-> FirewallDomainList -> FirewallDomainList
set PropertyType "Tags" FirewallDomainList
newValue FirewallDomainList {Maybe [Tag]
Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: FirewallDomainList -> ()
domainFileUrl :: FirewallDomainList -> Maybe (Value Text)
domains :: FirewallDomainList -> Maybe (ValueList Text)
name :: FirewallDomainList -> Maybe (Value Text)
tags :: FirewallDomainList -> Maybe [Tag]
haddock_workaround_ :: ()
domainFileUrl :: Maybe (Value Text)
domains :: Maybe (ValueList Text)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = FirewallDomainList {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" FirewallDomainList
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
domainFileUrl :: Maybe (Value Text)
domains :: Maybe (ValueList Text)
name :: Maybe (Value Text)
haddock_workaround_ :: ()
domainFileUrl :: Maybe (Value Text)
domains :: Maybe (ValueList Text)
name :: Maybe (Value Text)
..}