module Stratosphere.Connect.SecurityKey (
SecurityKey(..), mkSecurityKey
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SecurityKey
=
SecurityKey {SecurityKey -> ()
haddock_workaround_ :: (),
SecurityKey -> Value Text
instanceId :: (Value Prelude.Text),
SecurityKey -> Value Text
key :: (Value Prelude.Text)}
deriving stock (SecurityKey -> SecurityKey -> Bool
(SecurityKey -> SecurityKey -> Bool)
-> (SecurityKey -> SecurityKey -> Bool) -> Eq SecurityKey
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SecurityKey -> SecurityKey -> Bool
== :: SecurityKey -> SecurityKey -> Bool
$c/= :: SecurityKey -> SecurityKey -> Bool
/= :: SecurityKey -> SecurityKey -> Bool
Prelude.Eq, Int -> SecurityKey -> ShowS
[SecurityKey] -> ShowS
SecurityKey -> String
(Int -> SecurityKey -> ShowS)
-> (SecurityKey -> String)
-> ([SecurityKey] -> ShowS)
-> Show SecurityKey
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SecurityKey -> ShowS
showsPrec :: Int -> SecurityKey -> ShowS
$cshow :: SecurityKey -> String
show :: SecurityKey -> String
$cshowList :: [SecurityKey] -> ShowS
showList :: [SecurityKey] -> ShowS
Prelude.Show)
mkSecurityKey ::
Value Prelude.Text -> Value Prelude.Text -> SecurityKey
mkSecurityKey :: Value Text -> Value Text -> SecurityKey
mkSecurityKey Value Text
instanceId Value Text
key
= SecurityKey
{haddock_workaround_ :: ()
haddock_workaround_ = (), instanceId :: Value Text
instanceId = Value Text
instanceId, key :: Value Text
key = Value Text
key}
instance ToResourceProperties SecurityKey where
toResourceProperties :: SecurityKey -> ResourceProperties
toResourceProperties SecurityKey {()
Value Text
haddock_workaround_ :: SecurityKey -> ()
instanceId :: SecurityKey -> Value Text
key :: SecurityKey -> Value Text
haddock_workaround_ :: ()
instanceId :: Value Text
key :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Connect::SecurityKey",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"InstanceId" 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
instanceId, Key
"Key" 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
key]}
instance JSON.ToJSON SecurityKey where
toJSON :: SecurityKey -> Value
toJSON SecurityKey {()
Value Text
haddock_workaround_ :: SecurityKey -> ()
instanceId :: SecurityKey -> Value Text
key :: SecurityKey -> Value Text
haddock_workaround_ :: ()
instanceId :: Value Text
key :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"InstanceId" 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
instanceId, Key
"Key" 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
key]
instance Property "InstanceId" SecurityKey where
type PropertyType "InstanceId" SecurityKey = Value Prelude.Text
set :: PropertyType "InstanceId" SecurityKey -> SecurityKey -> SecurityKey
set PropertyType "InstanceId" SecurityKey
newValue SecurityKey {()
Value Text
haddock_workaround_ :: SecurityKey -> ()
instanceId :: SecurityKey -> Value Text
key :: SecurityKey -> Value Text
haddock_workaround_ :: ()
instanceId :: Value Text
key :: Value Text
..}
= SecurityKey {instanceId :: Value Text
instanceId = PropertyType "InstanceId" SecurityKey
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
key :: Value Text
haddock_workaround_ :: ()
key :: Value Text
..}
instance Property "Key" SecurityKey where
type PropertyType "Key" SecurityKey = Value Prelude.Text
set :: PropertyType "Key" SecurityKey -> SecurityKey -> SecurityKey
set PropertyType "Key" SecurityKey
newValue SecurityKey {()
Value Text
haddock_workaround_ :: SecurityKey -> ()
instanceId :: SecurityKey -> Value Text
key :: SecurityKey -> Value Text
haddock_workaround_ :: ()
instanceId :: Value Text
key :: Value Text
..} = SecurityKey {key :: Value Text
key = PropertyType "Key" SecurityKey
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
instanceId :: Value Text
haddock_workaround_ :: ()
instanceId :: Value Text
..}