module Stratosphere.Location.APIKey (
module Exports, APIKey(..), mkAPIKey
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Location.APIKey.ApiKeyRestrictionsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data APIKey
=
APIKey {APIKey -> ()
haddock_workaround_ :: (),
APIKey -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
APIKey -> Maybe (Value Text)
expireTime :: (Prelude.Maybe (Value Prelude.Text)),
APIKey -> Maybe (Value Bool)
forceDelete :: (Prelude.Maybe (Value Prelude.Bool)),
APIKey -> Maybe (Value Bool)
forceUpdate :: (Prelude.Maybe (Value Prelude.Bool)),
APIKey -> Value Text
keyName :: (Value Prelude.Text),
APIKey -> Maybe (Value Bool)
noExpiry :: (Prelude.Maybe (Value Prelude.Bool)),
APIKey -> ApiKeyRestrictionsProperty
restrictions :: ApiKeyRestrictionsProperty,
APIKey -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
deriving stock (APIKey -> APIKey -> Bool
(APIKey -> APIKey -> Bool)
-> (APIKey -> APIKey -> Bool) -> Eq APIKey
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: APIKey -> APIKey -> Bool
== :: APIKey -> APIKey -> Bool
$c/= :: APIKey -> APIKey -> Bool
/= :: APIKey -> APIKey -> Bool
Prelude.Eq, Int -> APIKey -> ShowS
[APIKey] -> ShowS
APIKey -> String
(Int -> APIKey -> ShowS)
-> (APIKey -> String) -> ([APIKey] -> ShowS) -> Show APIKey
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> APIKey -> ShowS
showsPrec :: Int -> APIKey -> ShowS
$cshow :: APIKey -> String
show :: APIKey -> String
$cshowList :: [APIKey] -> ShowS
showList :: [APIKey] -> ShowS
Prelude.Show)
mkAPIKey ::
Value Prelude.Text -> ApiKeyRestrictionsProperty -> APIKey
mkAPIKey :: Value Text -> ApiKeyRestrictionsProperty -> APIKey
mkAPIKey Value Text
keyName ApiKeyRestrictionsProperty
restrictions
= APIKey
{haddock_workaround_ :: ()
haddock_workaround_ = (), keyName :: Value Text
keyName = Value Text
keyName,
restrictions :: ApiKeyRestrictionsProperty
restrictions = ApiKeyRestrictionsProperty
restrictions, description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
expireTime :: Maybe (Value Text)
expireTime = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, forceDelete :: Maybe (Value Bool)
forceDelete = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
forceUpdate :: Maybe (Value Bool)
forceUpdate = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing, noExpiry :: Maybe (Value Bool)
noExpiry = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties APIKey where
toResourceProperties :: APIKey -> ResourceProperties
toResourceProperties APIKey {Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
ApiKeyRestrictionsProperty
haddock_workaround_ :: APIKey -> ()
description :: APIKey -> Maybe (Value Text)
expireTime :: APIKey -> Maybe (Value Text)
forceDelete :: APIKey -> Maybe (Value Bool)
forceUpdate :: APIKey -> Maybe (Value Bool)
keyName :: APIKey -> Value Text
noExpiry :: APIKey -> Maybe (Value Bool)
restrictions :: APIKey -> ApiKeyRestrictionsProperty
tags :: APIKey -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expireTime :: Maybe (Value Text)
forceDelete :: Maybe (Value Bool)
forceUpdate :: Maybe (Value Bool)
keyName :: Value Text
noExpiry :: Maybe (Value Bool)
restrictions :: ApiKeyRestrictionsProperty
tags :: Maybe [Tag]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Location::APIKey", 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
"KeyName" 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
keyName, Key
"Restrictions" Key -> ApiKeyRestrictionsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ApiKeyRestrictionsProperty
restrictions]
([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
"ExpireTime" (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)
expireTime,
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
"ForceDelete" (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)
forceDelete,
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
"ForceUpdate" (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)
forceUpdate,
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
"NoExpiry" (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)
noExpiry,
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 APIKey where
toJSON :: APIKey -> Value
toJSON APIKey {Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
ApiKeyRestrictionsProperty
haddock_workaround_ :: APIKey -> ()
description :: APIKey -> Maybe (Value Text)
expireTime :: APIKey -> Maybe (Value Text)
forceDelete :: APIKey -> Maybe (Value Bool)
forceUpdate :: APIKey -> Maybe (Value Bool)
keyName :: APIKey -> Value Text
noExpiry :: APIKey -> Maybe (Value Bool)
restrictions :: APIKey -> ApiKeyRestrictionsProperty
tags :: APIKey -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expireTime :: Maybe (Value Text)
forceDelete :: Maybe (Value Bool)
forceUpdate :: Maybe (Value Bool)
keyName :: Value Text
noExpiry :: Maybe (Value Bool)
restrictions :: ApiKeyRestrictionsProperty
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
"KeyName" 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
keyName, Key
"Restrictions" Key -> ApiKeyRestrictionsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ApiKeyRestrictionsProperty
restrictions]
([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
"ExpireTime" (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)
expireTime,
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
"ForceDelete" (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)
forceDelete,
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
"ForceUpdate" (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)
forceUpdate,
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
"NoExpiry" (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)
noExpiry,
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 "Description" APIKey where
type PropertyType "Description" APIKey = Value Prelude.Text
set :: PropertyType "Description" APIKey -> APIKey -> APIKey
set PropertyType "Description" APIKey
newValue APIKey {Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
ApiKeyRestrictionsProperty
haddock_workaround_ :: APIKey -> ()
description :: APIKey -> Maybe (Value Text)
expireTime :: APIKey -> Maybe (Value Text)
forceDelete :: APIKey -> Maybe (Value Bool)
forceUpdate :: APIKey -> Maybe (Value Bool)
keyName :: APIKey -> Value Text
noExpiry :: APIKey -> Maybe (Value Bool)
restrictions :: APIKey -> ApiKeyRestrictionsProperty
tags :: APIKey -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expireTime :: Maybe (Value Text)
forceDelete :: Maybe (Value Bool)
forceUpdate :: Maybe (Value Bool)
keyName :: Value Text
noExpiry :: Maybe (Value Bool)
restrictions :: ApiKeyRestrictionsProperty
tags :: Maybe [Tag]
..}
= APIKey {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" APIKey
Value Text
newValue, Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
ApiKeyRestrictionsProperty
haddock_workaround_ :: ()
expireTime :: Maybe (Value Text)
forceDelete :: Maybe (Value Bool)
forceUpdate :: Maybe (Value Bool)
keyName :: Value Text
noExpiry :: Maybe (Value Bool)
restrictions :: ApiKeyRestrictionsProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
expireTime :: Maybe (Value Text)
forceDelete :: Maybe (Value Bool)
forceUpdate :: Maybe (Value Bool)
keyName :: Value Text
noExpiry :: Maybe (Value Bool)
restrictions :: ApiKeyRestrictionsProperty
tags :: Maybe [Tag]
..}
instance Property "ExpireTime" APIKey where
type PropertyType "ExpireTime" APIKey = Value Prelude.Text
set :: PropertyType "ExpireTime" APIKey -> APIKey -> APIKey
set PropertyType "ExpireTime" APIKey
newValue APIKey {Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
ApiKeyRestrictionsProperty
haddock_workaround_ :: APIKey -> ()
description :: APIKey -> Maybe (Value Text)
expireTime :: APIKey -> Maybe (Value Text)
forceDelete :: APIKey -> Maybe (Value Bool)
forceUpdate :: APIKey -> Maybe (Value Bool)
keyName :: APIKey -> Value Text
noExpiry :: APIKey -> Maybe (Value Bool)
restrictions :: APIKey -> ApiKeyRestrictionsProperty
tags :: APIKey -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expireTime :: Maybe (Value Text)
forceDelete :: Maybe (Value Bool)
forceUpdate :: Maybe (Value Bool)
keyName :: Value Text
noExpiry :: Maybe (Value Bool)
restrictions :: ApiKeyRestrictionsProperty
tags :: Maybe [Tag]
..}
= APIKey {expireTime :: Maybe (Value Text)
expireTime = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ExpireTime" APIKey
Value Text
newValue, Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
ApiKeyRestrictionsProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
forceDelete :: Maybe (Value Bool)
forceUpdate :: Maybe (Value Bool)
keyName :: Value Text
noExpiry :: Maybe (Value Bool)
restrictions :: ApiKeyRestrictionsProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
forceDelete :: Maybe (Value Bool)
forceUpdate :: Maybe (Value Bool)
keyName :: Value Text
noExpiry :: Maybe (Value Bool)
restrictions :: ApiKeyRestrictionsProperty
tags :: Maybe [Tag]
..}
instance Property "ForceDelete" APIKey where
type PropertyType "ForceDelete" APIKey = Value Prelude.Bool
set :: PropertyType "ForceDelete" APIKey -> APIKey -> APIKey
set PropertyType "ForceDelete" APIKey
newValue APIKey {Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
ApiKeyRestrictionsProperty
haddock_workaround_ :: APIKey -> ()
description :: APIKey -> Maybe (Value Text)
expireTime :: APIKey -> Maybe (Value Text)
forceDelete :: APIKey -> Maybe (Value Bool)
forceUpdate :: APIKey -> Maybe (Value Bool)
keyName :: APIKey -> Value Text
noExpiry :: APIKey -> Maybe (Value Bool)
restrictions :: APIKey -> ApiKeyRestrictionsProperty
tags :: APIKey -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expireTime :: Maybe (Value Text)
forceDelete :: Maybe (Value Bool)
forceUpdate :: Maybe (Value Bool)
keyName :: Value Text
noExpiry :: Maybe (Value Bool)
restrictions :: ApiKeyRestrictionsProperty
tags :: Maybe [Tag]
..}
= APIKey {forceDelete :: Maybe (Value Bool)
forceDelete = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ForceDelete" APIKey
Value Bool
newValue, Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
ApiKeyRestrictionsProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expireTime :: Maybe (Value Text)
forceUpdate :: Maybe (Value Bool)
keyName :: Value Text
noExpiry :: Maybe (Value Bool)
restrictions :: ApiKeyRestrictionsProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expireTime :: Maybe (Value Text)
forceUpdate :: Maybe (Value Bool)
keyName :: Value Text
noExpiry :: Maybe (Value Bool)
restrictions :: ApiKeyRestrictionsProperty
tags :: Maybe [Tag]
..}
instance Property "ForceUpdate" APIKey where
type PropertyType "ForceUpdate" APIKey = Value Prelude.Bool
set :: PropertyType "ForceUpdate" APIKey -> APIKey -> APIKey
set PropertyType "ForceUpdate" APIKey
newValue APIKey {Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
ApiKeyRestrictionsProperty
haddock_workaround_ :: APIKey -> ()
description :: APIKey -> Maybe (Value Text)
expireTime :: APIKey -> Maybe (Value Text)
forceDelete :: APIKey -> Maybe (Value Bool)
forceUpdate :: APIKey -> Maybe (Value Bool)
keyName :: APIKey -> Value Text
noExpiry :: APIKey -> Maybe (Value Bool)
restrictions :: APIKey -> ApiKeyRestrictionsProperty
tags :: APIKey -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expireTime :: Maybe (Value Text)
forceDelete :: Maybe (Value Bool)
forceUpdate :: Maybe (Value Bool)
keyName :: Value Text
noExpiry :: Maybe (Value Bool)
restrictions :: ApiKeyRestrictionsProperty
tags :: Maybe [Tag]
..}
= APIKey {forceUpdate :: Maybe (Value Bool)
forceUpdate = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ForceUpdate" APIKey
Value Bool
newValue, Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
ApiKeyRestrictionsProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expireTime :: Maybe (Value Text)
forceDelete :: Maybe (Value Bool)
keyName :: Value Text
noExpiry :: Maybe (Value Bool)
restrictions :: ApiKeyRestrictionsProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expireTime :: Maybe (Value Text)
forceDelete :: Maybe (Value Bool)
keyName :: Value Text
noExpiry :: Maybe (Value Bool)
restrictions :: ApiKeyRestrictionsProperty
tags :: Maybe [Tag]
..}
instance Property "KeyName" APIKey where
type PropertyType "KeyName" APIKey = Value Prelude.Text
set :: PropertyType "KeyName" APIKey -> APIKey -> APIKey
set PropertyType "KeyName" APIKey
newValue APIKey {Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
ApiKeyRestrictionsProperty
haddock_workaround_ :: APIKey -> ()
description :: APIKey -> Maybe (Value Text)
expireTime :: APIKey -> Maybe (Value Text)
forceDelete :: APIKey -> Maybe (Value Bool)
forceUpdate :: APIKey -> Maybe (Value Bool)
keyName :: APIKey -> Value Text
noExpiry :: APIKey -> Maybe (Value Bool)
restrictions :: APIKey -> ApiKeyRestrictionsProperty
tags :: APIKey -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expireTime :: Maybe (Value Text)
forceDelete :: Maybe (Value Bool)
forceUpdate :: Maybe (Value Bool)
keyName :: Value Text
noExpiry :: Maybe (Value Bool)
restrictions :: ApiKeyRestrictionsProperty
tags :: Maybe [Tag]
..} = APIKey {keyName :: Value Text
keyName = PropertyType "KeyName" APIKey
Value Text
newValue, Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
()
ApiKeyRestrictionsProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expireTime :: Maybe (Value Text)
forceDelete :: Maybe (Value Bool)
forceUpdate :: Maybe (Value Bool)
noExpiry :: Maybe (Value Bool)
restrictions :: ApiKeyRestrictionsProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expireTime :: Maybe (Value Text)
forceDelete :: Maybe (Value Bool)
forceUpdate :: Maybe (Value Bool)
noExpiry :: Maybe (Value Bool)
restrictions :: ApiKeyRestrictionsProperty
tags :: Maybe [Tag]
..}
instance Property "NoExpiry" APIKey where
type PropertyType "NoExpiry" APIKey = Value Prelude.Bool
set :: PropertyType "NoExpiry" APIKey -> APIKey -> APIKey
set PropertyType "NoExpiry" APIKey
newValue APIKey {Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
ApiKeyRestrictionsProperty
haddock_workaround_ :: APIKey -> ()
description :: APIKey -> Maybe (Value Text)
expireTime :: APIKey -> Maybe (Value Text)
forceDelete :: APIKey -> Maybe (Value Bool)
forceUpdate :: APIKey -> Maybe (Value Bool)
keyName :: APIKey -> Value Text
noExpiry :: APIKey -> Maybe (Value Bool)
restrictions :: APIKey -> ApiKeyRestrictionsProperty
tags :: APIKey -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expireTime :: Maybe (Value Text)
forceDelete :: Maybe (Value Bool)
forceUpdate :: Maybe (Value Bool)
keyName :: Value Text
noExpiry :: Maybe (Value Bool)
restrictions :: ApiKeyRestrictionsProperty
tags :: Maybe [Tag]
..}
= APIKey {noExpiry :: Maybe (Value Bool)
noExpiry = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "NoExpiry" APIKey
Value Bool
newValue, Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
ApiKeyRestrictionsProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expireTime :: Maybe (Value Text)
forceDelete :: Maybe (Value Bool)
forceUpdate :: Maybe (Value Bool)
keyName :: Value Text
restrictions :: ApiKeyRestrictionsProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expireTime :: Maybe (Value Text)
forceDelete :: Maybe (Value Bool)
forceUpdate :: Maybe (Value Bool)
keyName :: Value Text
restrictions :: ApiKeyRestrictionsProperty
tags :: Maybe [Tag]
..}
instance Property "Restrictions" APIKey where
type PropertyType "Restrictions" APIKey = ApiKeyRestrictionsProperty
set :: PropertyType "Restrictions" APIKey -> APIKey -> APIKey
set PropertyType "Restrictions" APIKey
newValue APIKey {Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
ApiKeyRestrictionsProperty
haddock_workaround_ :: APIKey -> ()
description :: APIKey -> Maybe (Value Text)
expireTime :: APIKey -> Maybe (Value Text)
forceDelete :: APIKey -> Maybe (Value Bool)
forceUpdate :: APIKey -> Maybe (Value Bool)
keyName :: APIKey -> Value Text
noExpiry :: APIKey -> Maybe (Value Bool)
restrictions :: APIKey -> ApiKeyRestrictionsProperty
tags :: APIKey -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expireTime :: Maybe (Value Text)
forceDelete :: Maybe (Value Bool)
forceUpdate :: Maybe (Value Bool)
keyName :: Value Text
noExpiry :: Maybe (Value Bool)
restrictions :: ApiKeyRestrictionsProperty
tags :: Maybe [Tag]
..} = APIKey {restrictions :: ApiKeyRestrictionsProperty
restrictions = PropertyType "Restrictions" APIKey
ApiKeyRestrictionsProperty
newValue, Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expireTime :: Maybe (Value Text)
forceDelete :: Maybe (Value Bool)
forceUpdate :: Maybe (Value Bool)
keyName :: Value Text
noExpiry :: Maybe (Value Bool)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expireTime :: Maybe (Value Text)
forceDelete :: Maybe (Value Bool)
forceUpdate :: Maybe (Value Bool)
keyName :: Value Text
noExpiry :: Maybe (Value Bool)
tags :: Maybe [Tag]
..}
instance Property "Tags" APIKey where
type PropertyType "Tags" APIKey = [Tag]
set :: PropertyType "Tags" APIKey -> APIKey -> APIKey
set PropertyType "Tags" APIKey
newValue APIKey {Maybe [Tag]
Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
ApiKeyRestrictionsProperty
haddock_workaround_ :: APIKey -> ()
description :: APIKey -> Maybe (Value Text)
expireTime :: APIKey -> Maybe (Value Text)
forceDelete :: APIKey -> Maybe (Value Bool)
forceUpdate :: APIKey -> Maybe (Value Bool)
keyName :: APIKey -> Value Text
noExpiry :: APIKey -> Maybe (Value Bool)
restrictions :: APIKey -> ApiKeyRestrictionsProperty
tags :: APIKey -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expireTime :: Maybe (Value Text)
forceDelete :: Maybe (Value Bool)
forceUpdate :: Maybe (Value Bool)
keyName :: Value Text
noExpiry :: Maybe (Value Bool)
restrictions :: ApiKeyRestrictionsProperty
tags :: Maybe [Tag]
..}
= APIKey {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" APIKey
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
ApiKeyRestrictionsProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expireTime :: Maybe (Value Text)
forceDelete :: Maybe (Value Bool)
forceUpdate :: Maybe (Value Bool)
keyName :: Value Text
noExpiry :: Maybe (Value Bool)
restrictions :: ApiKeyRestrictionsProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expireTime :: Maybe (Value Text)
forceDelete :: Maybe (Value Bool)
forceUpdate :: Maybe (Value Bool)
keyName :: Value Text
noExpiry :: Maybe (Value Bool)
restrictions :: ApiKeyRestrictionsProperty
..}