module Stratosphere.Location.GeofenceCollection (
        GeofenceCollection(..), mkGeofenceCollection
    ) 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 GeofenceCollection
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-location-geofencecollection.html>
    GeofenceCollection {GeofenceCollection -> ()
haddock_workaround_ :: (),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-location-geofencecollection.html#cfn-location-geofencecollection-collectionname>
                        GeofenceCollection -> Value Text
collectionName :: (Value Prelude.Text),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-location-geofencecollection.html#cfn-location-geofencecollection-description>
                        GeofenceCollection -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-location-geofencecollection.html#cfn-location-geofencecollection-kmskeyid>
                        GeofenceCollection -> Maybe (Value Text)
kmsKeyId :: (Prelude.Maybe (Value Prelude.Text)),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-location-geofencecollection.html#cfn-location-geofencecollection-tags>
                        GeofenceCollection -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
  deriving stock (GeofenceCollection -> GeofenceCollection -> Bool
(GeofenceCollection -> GeofenceCollection -> Bool)
-> (GeofenceCollection -> GeofenceCollection -> Bool)
-> Eq GeofenceCollection
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GeofenceCollection -> GeofenceCollection -> Bool
== :: GeofenceCollection -> GeofenceCollection -> Bool
$c/= :: GeofenceCollection -> GeofenceCollection -> Bool
/= :: GeofenceCollection -> GeofenceCollection -> Bool
Prelude.Eq, Int -> GeofenceCollection -> ShowS
[GeofenceCollection] -> ShowS
GeofenceCollection -> String
(Int -> GeofenceCollection -> ShowS)
-> (GeofenceCollection -> String)
-> ([GeofenceCollection] -> ShowS)
-> Show GeofenceCollection
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GeofenceCollection -> ShowS
showsPrec :: Int -> GeofenceCollection -> ShowS
$cshow :: GeofenceCollection -> String
show :: GeofenceCollection -> String
$cshowList :: [GeofenceCollection] -> ShowS
showList :: [GeofenceCollection] -> ShowS
Prelude.Show)
mkGeofenceCollection :: Value Prelude.Text -> GeofenceCollection
mkGeofenceCollection :: Value Text -> GeofenceCollection
mkGeofenceCollection Value Text
collectionName
  = GeofenceCollection
      {haddock_workaround_ :: ()
haddock_workaround_ = (), collectionName :: Value Text
collectionName = Value Text
collectionName,
       description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, kmsKeyId :: Maybe (Value Text)
kmsKeyId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties GeofenceCollection where
  toResourceProperties :: GeofenceCollection -> ResourceProperties
toResourceProperties GeofenceCollection {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GeofenceCollection -> ()
collectionName :: GeofenceCollection -> Value Text
description :: GeofenceCollection -> Maybe (Value Text)
kmsKeyId :: GeofenceCollection -> Maybe (Value Text)
tags :: GeofenceCollection -> Maybe [Tag]
haddock_workaround_ :: ()
collectionName :: Value Text
description :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Location::GeofenceCollection",
         supportsTags :: Bool
supportsTags = Bool
Prelude.True,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"CollectionName" 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..= Value Text
collectionName]
                           ([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
"Description" (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)
description,
                               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
"KmsKeyId" (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)
kmsKeyId,
                               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 GeofenceCollection where
  toJSON :: GeofenceCollection -> Value
toJSON GeofenceCollection {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GeofenceCollection -> ()
collectionName :: GeofenceCollection -> Value Text
description :: GeofenceCollection -> Maybe (Value Text)
kmsKeyId :: GeofenceCollection -> Maybe (Value Text)
tags :: GeofenceCollection -> Maybe [Tag]
haddock_workaround_ :: ()
collectionName :: Value Text
description :: Maybe (Value Text)
kmsKeyId :: 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
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"CollectionName" 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..= Value Text
collectionName]
              ([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
"Description" (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)
description,
                  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
"KmsKeyId" (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)
kmsKeyId,
                  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 "CollectionName" GeofenceCollection where
  type PropertyType "CollectionName" GeofenceCollection = Value Prelude.Text
  set :: PropertyType "CollectionName" GeofenceCollection
-> GeofenceCollection -> GeofenceCollection
set PropertyType "CollectionName" GeofenceCollection
newValue GeofenceCollection {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GeofenceCollection -> ()
collectionName :: GeofenceCollection -> Value Text
description :: GeofenceCollection -> Maybe (Value Text)
kmsKeyId :: GeofenceCollection -> Maybe (Value Text)
tags :: GeofenceCollection -> Maybe [Tag]
haddock_workaround_ :: ()
collectionName :: Value Text
description :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = GeofenceCollection {collectionName :: Value Text
collectionName = PropertyType "CollectionName" GeofenceCollection
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Description" GeofenceCollection where
  type PropertyType "Description" GeofenceCollection = Value Prelude.Text
  set :: PropertyType "Description" GeofenceCollection
-> GeofenceCollection -> GeofenceCollection
set PropertyType "Description" GeofenceCollection
newValue GeofenceCollection {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GeofenceCollection -> ()
collectionName :: GeofenceCollection -> Value Text
description :: GeofenceCollection -> Maybe (Value Text)
kmsKeyId :: GeofenceCollection -> Maybe (Value Text)
tags :: GeofenceCollection -> Maybe [Tag]
haddock_workaround_ :: ()
collectionName :: Value Text
description :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = GeofenceCollection {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" GeofenceCollection
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
collectionName :: Value Text
kmsKeyId :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
collectionName :: Value Text
kmsKeyId :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "KmsKeyId" GeofenceCollection where
  type PropertyType "KmsKeyId" GeofenceCollection = Value Prelude.Text
  set :: PropertyType "KmsKeyId" GeofenceCollection
-> GeofenceCollection -> GeofenceCollection
set PropertyType "KmsKeyId" GeofenceCollection
newValue GeofenceCollection {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GeofenceCollection -> ()
collectionName :: GeofenceCollection -> Value Text
description :: GeofenceCollection -> Maybe (Value Text)
kmsKeyId :: GeofenceCollection -> Maybe (Value Text)
tags :: GeofenceCollection -> Maybe [Tag]
haddock_workaround_ :: ()
collectionName :: Value Text
description :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = GeofenceCollection {kmsKeyId :: Maybe (Value Text)
kmsKeyId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "KmsKeyId" GeofenceCollection
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
collectionName :: Value Text
description :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
collectionName :: Value Text
description :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Tags" GeofenceCollection where
  type PropertyType "Tags" GeofenceCollection = [Tag]
  set :: PropertyType "Tags" GeofenceCollection
-> GeofenceCollection -> GeofenceCollection
set PropertyType "Tags" GeofenceCollection
newValue GeofenceCollection {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: GeofenceCollection -> ()
collectionName :: GeofenceCollection -> Value Text
description :: GeofenceCollection -> Maybe (Value Text)
kmsKeyId :: GeofenceCollection -> Maybe (Value Text)
tags :: GeofenceCollection -> Maybe [Tag]
haddock_workaround_ :: ()
collectionName :: Value Text
description :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = GeofenceCollection {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" GeofenceCollection
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
collectionName :: Value Text
description :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
haddock_workaround_ :: ()
collectionName :: Value Text
description :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
..}