module Stratosphere.Connect.Instance (
module Exports, Instance(..), mkInstance
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Connect.Instance.AttributesProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data Instance
=
Instance {Instance -> ()
haddock_workaround_ :: (),
Instance -> AttributesProperty
attributes :: AttributesProperty,
Instance -> Maybe (Value Text)
directoryId :: (Prelude.Maybe (Value Prelude.Text)),
Instance -> Value Text
identityManagementType :: (Value Prelude.Text),
Instance -> Maybe (Value Text)
instanceAlias :: (Prelude.Maybe (Value Prelude.Text)),
Instance -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
deriving stock (Instance -> Instance -> Bool
(Instance -> Instance -> Bool)
-> (Instance -> Instance -> Bool) -> Eq Instance
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Instance -> Instance -> Bool
== :: Instance -> Instance -> Bool
$c/= :: Instance -> Instance -> Bool
/= :: Instance -> Instance -> Bool
Prelude.Eq, Int -> Instance -> ShowS
[Instance] -> ShowS
Instance -> String
(Int -> Instance -> ShowS)
-> (Instance -> String) -> ([Instance] -> ShowS) -> Show Instance
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Instance -> ShowS
showsPrec :: Int -> Instance -> ShowS
$cshow :: Instance -> String
show :: Instance -> String
$cshowList :: [Instance] -> ShowS
showList :: [Instance] -> ShowS
Prelude.Show)
mkInstance :: AttributesProperty -> Value Prelude.Text -> Instance
mkInstance :: AttributesProperty -> Value Text -> Instance
mkInstance AttributesProperty
attributes Value Text
identityManagementType
= Instance
{haddock_workaround_ :: ()
haddock_workaround_ = (), attributes :: AttributesProperty
attributes = AttributesProperty
attributes,
identityManagementType :: Value Text
identityManagementType = Value Text
identityManagementType,
directoryId :: Maybe (Value Text)
directoryId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, instanceAlias :: Maybe (Value Text)
instanceAlias = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Instance where
toResourceProperties :: Instance -> ResourceProperties
toResourceProperties Instance {Maybe [Tag]
Maybe (Value Text)
()
Value Text
AttributesProperty
haddock_workaround_ :: Instance -> ()
attributes :: Instance -> AttributesProperty
directoryId :: Instance -> Maybe (Value Text)
identityManagementType :: Instance -> Value Text
instanceAlias :: Instance -> Maybe (Value Text)
tags :: Instance -> Maybe [Tag]
haddock_workaround_ :: ()
attributes :: AttributesProperty
directoryId :: Maybe (Value Text)
identityManagementType :: Value Text
instanceAlias :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Connect::Instance", 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
"Attributes" Key -> AttributesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= AttributesProperty
attributes,
Key
"IdentityManagementType" 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
identityManagementType]
([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
"DirectoryId" (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)
directoryId,
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
"InstanceAlias" (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)
instanceAlias,
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 Instance where
toJSON :: Instance -> Value
toJSON Instance {Maybe [Tag]
Maybe (Value Text)
()
Value Text
AttributesProperty
haddock_workaround_ :: Instance -> ()
attributes :: Instance -> AttributesProperty
directoryId :: Instance -> Maybe (Value Text)
identityManagementType :: Instance -> Value Text
instanceAlias :: Instance -> Maybe (Value Text)
tags :: Instance -> Maybe [Tag]
haddock_workaround_ :: ()
attributes :: AttributesProperty
directoryId :: Maybe (Value Text)
identityManagementType :: Value Text
instanceAlias :: 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
"Attributes" Key -> AttributesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= AttributesProperty
attributes,
Key
"IdentityManagementType" 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
identityManagementType]
([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
"DirectoryId" (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)
directoryId,
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
"InstanceAlias" (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)
instanceAlias,
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 "Attributes" Instance where
type PropertyType "Attributes" Instance = AttributesProperty
set :: PropertyType "Attributes" Instance -> Instance -> Instance
set PropertyType "Attributes" Instance
newValue Instance {Maybe [Tag]
Maybe (Value Text)
()
Value Text
AttributesProperty
haddock_workaround_ :: Instance -> ()
attributes :: Instance -> AttributesProperty
directoryId :: Instance -> Maybe (Value Text)
identityManagementType :: Instance -> Value Text
instanceAlias :: Instance -> Maybe (Value Text)
tags :: Instance -> Maybe [Tag]
haddock_workaround_ :: ()
attributes :: AttributesProperty
directoryId :: Maybe (Value Text)
identityManagementType :: Value Text
instanceAlias :: Maybe (Value Text)
tags :: Maybe [Tag]
..} = Instance {attributes :: AttributesProperty
attributes = PropertyType "Attributes" Instance
AttributesProperty
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
directoryId :: Maybe (Value Text)
identityManagementType :: Value Text
instanceAlias :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
directoryId :: Maybe (Value Text)
identityManagementType :: Value Text
instanceAlias :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "DirectoryId" Instance where
type PropertyType "DirectoryId" Instance = Value Prelude.Text
set :: PropertyType "DirectoryId" Instance -> Instance -> Instance
set PropertyType "DirectoryId" Instance
newValue Instance {Maybe [Tag]
Maybe (Value Text)
()
Value Text
AttributesProperty
haddock_workaround_ :: Instance -> ()
attributes :: Instance -> AttributesProperty
directoryId :: Instance -> Maybe (Value Text)
identityManagementType :: Instance -> Value Text
instanceAlias :: Instance -> Maybe (Value Text)
tags :: Instance -> Maybe [Tag]
haddock_workaround_ :: ()
attributes :: AttributesProperty
directoryId :: Maybe (Value Text)
identityManagementType :: Value Text
instanceAlias :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= Instance {directoryId :: Maybe (Value Text)
directoryId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DirectoryId" Instance
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
AttributesProperty
haddock_workaround_ :: ()
attributes :: AttributesProperty
identityManagementType :: Value Text
instanceAlias :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
attributes :: AttributesProperty
identityManagementType :: Value Text
instanceAlias :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "IdentityManagementType" Instance where
type PropertyType "IdentityManagementType" Instance = Value Prelude.Text
set :: PropertyType "IdentityManagementType" Instance
-> Instance -> Instance
set PropertyType "IdentityManagementType" Instance
newValue Instance {Maybe [Tag]
Maybe (Value Text)
()
Value Text
AttributesProperty
haddock_workaround_ :: Instance -> ()
attributes :: Instance -> AttributesProperty
directoryId :: Instance -> Maybe (Value Text)
identityManagementType :: Instance -> Value Text
instanceAlias :: Instance -> Maybe (Value Text)
tags :: Instance -> Maybe [Tag]
haddock_workaround_ :: ()
attributes :: AttributesProperty
directoryId :: Maybe (Value Text)
identityManagementType :: Value Text
instanceAlias :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= Instance {identityManagementType :: Value Text
identityManagementType = PropertyType "IdentityManagementType" Instance
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
AttributesProperty
haddock_workaround_ :: ()
attributes :: AttributesProperty
directoryId :: Maybe (Value Text)
instanceAlias :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
attributes :: AttributesProperty
directoryId :: Maybe (Value Text)
instanceAlias :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "InstanceAlias" Instance where
type PropertyType "InstanceAlias" Instance = Value Prelude.Text
set :: PropertyType "InstanceAlias" Instance -> Instance -> Instance
set PropertyType "InstanceAlias" Instance
newValue Instance {Maybe [Tag]
Maybe (Value Text)
()
Value Text
AttributesProperty
haddock_workaround_ :: Instance -> ()
attributes :: Instance -> AttributesProperty
directoryId :: Instance -> Maybe (Value Text)
identityManagementType :: Instance -> Value Text
instanceAlias :: Instance -> Maybe (Value Text)
tags :: Instance -> Maybe [Tag]
haddock_workaround_ :: ()
attributes :: AttributesProperty
directoryId :: Maybe (Value Text)
identityManagementType :: Value Text
instanceAlias :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= Instance {instanceAlias :: Maybe (Value Text)
instanceAlias = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "InstanceAlias" Instance
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
AttributesProperty
haddock_workaround_ :: ()
attributes :: AttributesProperty
directoryId :: Maybe (Value Text)
identityManagementType :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
attributes :: AttributesProperty
directoryId :: Maybe (Value Text)
identityManagementType :: Value Text
tags :: Maybe [Tag]
..}
instance Property "Tags" Instance where
type PropertyType "Tags" Instance = [Tag]
set :: PropertyType "Tags" Instance -> Instance -> Instance
set PropertyType "Tags" Instance
newValue Instance {Maybe [Tag]
Maybe (Value Text)
()
Value Text
AttributesProperty
haddock_workaround_ :: Instance -> ()
attributes :: Instance -> AttributesProperty
directoryId :: Instance -> Maybe (Value Text)
identityManagementType :: Instance -> Value Text
instanceAlias :: Instance -> Maybe (Value Text)
tags :: Instance -> Maybe [Tag]
haddock_workaround_ :: ()
attributes :: AttributesProperty
directoryId :: Maybe (Value Text)
identityManagementType :: Value Text
instanceAlias :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= Instance {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" Instance
newValue, Maybe (Value Text)
()
Value Text
AttributesProperty
haddock_workaround_ :: ()
attributes :: AttributesProperty
directoryId :: Maybe (Value Text)
identityManagementType :: Value Text
instanceAlias :: Maybe (Value Text)
haddock_workaround_ :: ()
attributes :: AttributesProperty
directoryId :: Maybe (Value Text)
identityManagementType :: Value Text
instanceAlias :: Maybe (Value Text)
..}