module Stratosphere.Route53Resolver.ResolverQueryLoggingConfigAssociation (
        ResolverQueryLoggingConfigAssociation(..),
        mkResolverQueryLoggingConfigAssociation
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ResolverQueryLoggingConfigAssociation
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53resolver-resolverqueryloggingconfigassociation.html>
    ResolverQueryLoggingConfigAssociation {ResolverQueryLoggingConfigAssociation -> ()
haddock_workaround_ :: (),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53resolver-resolverqueryloggingconfigassociation.html#cfn-route53resolver-resolverqueryloggingconfigassociation-resolverquerylogconfigid>
                                           ResolverQueryLoggingConfigAssociation -> Maybe (Value Text)
resolverQueryLogConfigId :: (Prelude.Maybe (Value Prelude.Text)),
                                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-route53resolver-resolverqueryloggingconfigassociation.html#cfn-route53resolver-resolverqueryloggingconfigassociation-resourceid>
                                           ResolverQueryLoggingConfigAssociation -> Maybe (Value Text)
resourceId :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (ResolverQueryLoggingConfigAssociation
-> ResolverQueryLoggingConfigAssociation -> Bool
(ResolverQueryLoggingConfigAssociation
 -> ResolverQueryLoggingConfigAssociation -> Bool)
-> (ResolverQueryLoggingConfigAssociation
    -> ResolverQueryLoggingConfigAssociation -> Bool)
-> Eq ResolverQueryLoggingConfigAssociation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ResolverQueryLoggingConfigAssociation
-> ResolverQueryLoggingConfigAssociation -> Bool
== :: ResolverQueryLoggingConfigAssociation
-> ResolverQueryLoggingConfigAssociation -> Bool
$c/= :: ResolverQueryLoggingConfigAssociation
-> ResolverQueryLoggingConfigAssociation -> Bool
/= :: ResolverQueryLoggingConfigAssociation
-> ResolverQueryLoggingConfigAssociation -> Bool
Prelude.Eq, Int -> ResolverQueryLoggingConfigAssociation -> ShowS
[ResolverQueryLoggingConfigAssociation] -> ShowS
ResolverQueryLoggingConfigAssociation -> String
(Int -> ResolverQueryLoggingConfigAssociation -> ShowS)
-> (ResolverQueryLoggingConfigAssociation -> String)
-> ([ResolverQueryLoggingConfigAssociation] -> ShowS)
-> Show ResolverQueryLoggingConfigAssociation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ResolverQueryLoggingConfigAssociation -> ShowS
showsPrec :: Int -> ResolverQueryLoggingConfigAssociation -> ShowS
$cshow :: ResolverQueryLoggingConfigAssociation -> String
show :: ResolverQueryLoggingConfigAssociation -> String
$cshowList :: [ResolverQueryLoggingConfigAssociation] -> ShowS
showList :: [ResolverQueryLoggingConfigAssociation] -> ShowS
Prelude.Show)
mkResolverQueryLoggingConfigAssociation ::
  ResolverQueryLoggingConfigAssociation
mkResolverQueryLoggingConfigAssociation :: ResolverQueryLoggingConfigAssociation
mkResolverQueryLoggingConfigAssociation
  = ResolverQueryLoggingConfigAssociation
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       resolverQueryLogConfigId :: Maybe (Value Text)
resolverQueryLogConfigId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       resourceId :: Maybe (Value Text)
resourceId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ResolverQueryLoggingConfigAssociation where
  toResourceProperties :: ResolverQueryLoggingConfigAssociation -> ResourceProperties
toResourceProperties ResolverQueryLoggingConfigAssociation {Maybe (Value Text)
()
haddock_workaround_ :: ResolverQueryLoggingConfigAssociation -> ()
resolverQueryLogConfigId :: ResolverQueryLoggingConfigAssociation -> Maybe (Value Text)
resourceId :: ResolverQueryLoggingConfigAssociation -> Maybe (Value Text)
haddock_workaround_ :: ()
resolverQueryLogConfigId :: Maybe (Value Text)
resourceId :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Route53Resolver::ResolverQueryLoggingConfigAssociation",
         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
"ResolverQueryLogConfigId"
                              (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)
resolverQueryLogConfigId,
                            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
"ResourceId" (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)
resourceId])}
instance JSON.ToJSON ResolverQueryLoggingConfigAssociation where
  toJSON :: ResolverQueryLoggingConfigAssociation -> Value
toJSON ResolverQueryLoggingConfigAssociation {Maybe (Value Text)
()
haddock_workaround_ :: ResolverQueryLoggingConfigAssociation -> ()
resolverQueryLogConfigId :: ResolverQueryLoggingConfigAssociation -> Maybe (Value Text)
resourceId :: ResolverQueryLoggingConfigAssociation -> Maybe (Value Text)
haddock_workaround_ :: ()
resolverQueryLogConfigId :: Maybe (Value Text)
resourceId :: 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
"ResolverQueryLogConfigId"
                 (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)
resolverQueryLogConfigId,
               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
"ResourceId" (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)
resourceId]))
instance Property "ResolverQueryLogConfigId" ResolverQueryLoggingConfigAssociation where
  type PropertyType "ResolverQueryLogConfigId" ResolverQueryLoggingConfigAssociation = Value Prelude.Text
  set :: PropertyType
  "ResolverQueryLogConfigId" ResolverQueryLoggingConfigAssociation
-> ResolverQueryLoggingConfigAssociation
-> ResolverQueryLoggingConfigAssociation
set PropertyType
  "ResolverQueryLogConfigId" ResolverQueryLoggingConfigAssociation
newValue ResolverQueryLoggingConfigAssociation {Maybe (Value Text)
()
haddock_workaround_ :: ResolverQueryLoggingConfigAssociation -> ()
resolverQueryLogConfigId :: ResolverQueryLoggingConfigAssociation -> Maybe (Value Text)
resourceId :: ResolverQueryLoggingConfigAssociation -> Maybe (Value Text)
haddock_workaround_ :: ()
resolverQueryLogConfigId :: Maybe (Value Text)
resourceId :: Maybe (Value Text)
..}
    = ResolverQueryLoggingConfigAssociation
        {resolverQueryLogConfigId :: Maybe (Value Text)
resolverQueryLogConfigId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "ResolverQueryLogConfigId" ResolverQueryLoggingConfigAssociation
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
resourceId :: Maybe (Value Text)
haddock_workaround_ :: ()
resourceId :: Maybe (Value Text)
..}
instance Property "ResourceId" ResolverQueryLoggingConfigAssociation where
  type PropertyType "ResourceId" ResolverQueryLoggingConfigAssociation = Value Prelude.Text
  set :: PropertyType "ResourceId" ResolverQueryLoggingConfigAssociation
-> ResolverQueryLoggingConfigAssociation
-> ResolverQueryLoggingConfigAssociation
set PropertyType "ResourceId" ResolverQueryLoggingConfigAssociation
newValue ResolverQueryLoggingConfigAssociation {Maybe (Value Text)
()
haddock_workaround_ :: ResolverQueryLoggingConfigAssociation -> ()
resolverQueryLogConfigId :: ResolverQueryLoggingConfigAssociation -> Maybe (Value Text)
resourceId :: ResolverQueryLoggingConfigAssociation -> Maybe (Value Text)
haddock_workaround_ :: ()
resolverQueryLogConfigId :: Maybe (Value Text)
resourceId :: Maybe (Value Text)
..}
    = ResolverQueryLoggingConfigAssociation
        {resourceId :: Maybe (Value Text)
resourceId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ResourceId" ResolverQueryLoggingConfigAssociation
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
resolverQueryLogConfigId :: Maybe (Value Text)
haddock_workaround_ :: ()
resolverQueryLogConfigId :: Maybe (Value Text)
..}