module Stratosphere.Events.Connection (
module Exports, Connection(..), mkConnection
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Events.Connection.AuthParametersProperty as Exports
import {-# SOURCE #-} Stratosphere.Events.Connection.InvocationConnectivityParametersProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data Connection
=
Connection {Connection -> ()
haddock_workaround_ :: (),
Connection -> Maybe AuthParametersProperty
authParameters :: (Prelude.Maybe AuthParametersProperty),
Connection -> Maybe (Value Text)
authorizationType :: (Prelude.Maybe (Value Prelude.Text)),
Connection -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
Connection -> Maybe InvocationConnectivityParametersProperty
invocationConnectivityParameters :: (Prelude.Maybe InvocationConnectivityParametersProperty),
Connection -> Maybe (Value Text)
kmsKeyIdentifier :: (Prelude.Maybe (Value Prelude.Text)),
Connection -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (Connection -> Connection -> Bool
(Connection -> Connection -> Bool)
-> (Connection -> Connection -> Bool) -> Eq Connection
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Connection -> Connection -> Bool
== :: Connection -> Connection -> Bool
$c/= :: Connection -> Connection -> Bool
/= :: Connection -> Connection -> Bool
Prelude.Eq, Int -> Connection -> ShowS
[Connection] -> ShowS
Connection -> String
(Int -> Connection -> ShowS)
-> (Connection -> String)
-> ([Connection] -> ShowS)
-> Show Connection
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Connection -> ShowS
showsPrec :: Int -> Connection -> ShowS
$cshow :: Connection -> String
show :: Connection -> String
$cshowList :: [Connection] -> ShowS
showList :: [Connection] -> ShowS
Prelude.Show)
mkConnection :: Connection
mkConnection :: Connection
mkConnection
= Connection
{haddock_workaround_ :: ()
haddock_workaround_ = (), authParameters :: Maybe AuthParametersProperty
authParameters = Maybe AuthParametersProperty
forall a. Maybe a
Prelude.Nothing,
authorizationType :: Maybe (Value Text)
authorizationType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
invocationConnectivityParameters :: Maybe InvocationConnectivityParametersProperty
invocationConnectivityParameters = Maybe InvocationConnectivityParametersProperty
forall a. Maybe a
Prelude.Nothing,
kmsKeyIdentifier :: Maybe (Value Text)
kmsKeyIdentifier = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Connection where
toResourceProperties :: Connection -> ResourceProperties
toResourceProperties Connection {Maybe (Value Text)
Maybe InvocationConnectivityParametersProperty
Maybe AuthParametersProperty
()
haddock_workaround_ :: Connection -> ()
authParameters :: Connection -> Maybe AuthParametersProperty
authorizationType :: Connection -> Maybe (Value Text)
description :: Connection -> Maybe (Value Text)
invocationConnectivityParameters :: Connection -> Maybe InvocationConnectivityParametersProperty
kmsKeyIdentifier :: Connection -> Maybe (Value Text)
name :: Connection -> Maybe (Value Text)
haddock_workaround_ :: ()
authParameters :: Maybe AuthParametersProperty
authorizationType :: Maybe (Value Text)
description :: Maybe (Value Text)
invocationConnectivityParameters :: Maybe InvocationConnectivityParametersProperty
kmsKeyIdentifier :: Maybe (Value Text)
name :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Events::Connection", 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 -> AuthParametersProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AuthParameters" (AuthParametersProperty -> (Key, Value))
-> Maybe AuthParametersProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AuthParametersProperty
authParameters,
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
"AuthorizationType" (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)
authorizationType,
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 -> InvocationConnectivityParametersProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InvocationConnectivityParameters"
(InvocationConnectivityParametersProperty -> (Key, Value))
-> Maybe InvocationConnectivityParametersProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InvocationConnectivityParametersProperty
invocationConnectivityParameters,
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
"KmsKeyIdentifier" (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)
kmsKeyIdentifier,
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
"Name" (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)
name])}
instance JSON.ToJSON Connection where
toJSON :: Connection -> Value
toJSON Connection {Maybe (Value Text)
Maybe InvocationConnectivityParametersProperty
Maybe AuthParametersProperty
()
haddock_workaround_ :: Connection -> ()
authParameters :: Connection -> Maybe AuthParametersProperty
authorizationType :: Connection -> Maybe (Value Text)
description :: Connection -> Maybe (Value Text)
invocationConnectivityParameters :: Connection -> Maybe InvocationConnectivityParametersProperty
kmsKeyIdentifier :: Connection -> Maybe (Value Text)
name :: Connection -> Maybe (Value Text)
haddock_workaround_ :: ()
authParameters :: Maybe AuthParametersProperty
authorizationType :: Maybe (Value Text)
description :: Maybe (Value Text)
invocationConnectivityParameters :: Maybe InvocationConnectivityParametersProperty
kmsKeyIdentifier :: Maybe (Value Text)
name :: 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 -> AuthParametersProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AuthParameters" (AuthParametersProperty -> (Key, Value))
-> Maybe AuthParametersProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AuthParametersProperty
authParameters,
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
"AuthorizationType" (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)
authorizationType,
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 -> InvocationConnectivityParametersProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InvocationConnectivityParameters"
(InvocationConnectivityParametersProperty -> (Key, Value))
-> Maybe InvocationConnectivityParametersProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InvocationConnectivityParametersProperty
invocationConnectivityParameters,
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
"KmsKeyIdentifier" (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)
kmsKeyIdentifier,
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
"Name" (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)
name]))
instance Property "AuthParameters" Connection where
type PropertyType "AuthParameters" Connection = AuthParametersProperty
set :: PropertyType "AuthParameters" Connection
-> Connection -> Connection
set PropertyType "AuthParameters" Connection
newValue Connection {Maybe (Value Text)
Maybe InvocationConnectivityParametersProperty
Maybe AuthParametersProperty
()
haddock_workaround_ :: Connection -> ()
authParameters :: Connection -> Maybe AuthParametersProperty
authorizationType :: Connection -> Maybe (Value Text)
description :: Connection -> Maybe (Value Text)
invocationConnectivityParameters :: Connection -> Maybe InvocationConnectivityParametersProperty
kmsKeyIdentifier :: Connection -> Maybe (Value Text)
name :: Connection -> Maybe (Value Text)
haddock_workaround_ :: ()
authParameters :: Maybe AuthParametersProperty
authorizationType :: Maybe (Value Text)
description :: Maybe (Value Text)
invocationConnectivityParameters :: Maybe InvocationConnectivityParametersProperty
kmsKeyIdentifier :: Maybe (Value Text)
name :: Maybe (Value Text)
..}
= Connection {authParameters :: Maybe AuthParametersProperty
authParameters = AuthParametersProperty -> Maybe AuthParametersProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AuthParameters" Connection
AuthParametersProperty
newValue, Maybe (Value Text)
Maybe InvocationConnectivityParametersProperty
()
haddock_workaround_ :: ()
authorizationType :: Maybe (Value Text)
description :: Maybe (Value Text)
invocationConnectivityParameters :: Maybe InvocationConnectivityParametersProperty
kmsKeyIdentifier :: Maybe (Value Text)
name :: Maybe (Value Text)
haddock_workaround_ :: ()
authorizationType :: Maybe (Value Text)
description :: Maybe (Value Text)
invocationConnectivityParameters :: Maybe InvocationConnectivityParametersProperty
kmsKeyIdentifier :: Maybe (Value Text)
name :: Maybe (Value Text)
..}
instance Property "AuthorizationType" Connection where
type PropertyType "AuthorizationType" Connection = Value Prelude.Text
set :: PropertyType "AuthorizationType" Connection
-> Connection -> Connection
set PropertyType "AuthorizationType" Connection
newValue Connection {Maybe (Value Text)
Maybe InvocationConnectivityParametersProperty
Maybe AuthParametersProperty
()
haddock_workaround_ :: Connection -> ()
authParameters :: Connection -> Maybe AuthParametersProperty
authorizationType :: Connection -> Maybe (Value Text)
description :: Connection -> Maybe (Value Text)
invocationConnectivityParameters :: Connection -> Maybe InvocationConnectivityParametersProperty
kmsKeyIdentifier :: Connection -> Maybe (Value Text)
name :: Connection -> Maybe (Value Text)
haddock_workaround_ :: ()
authParameters :: Maybe AuthParametersProperty
authorizationType :: Maybe (Value Text)
description :: Maybe (Value Text)
invocationConnectivityParameters :: Maybe InvocationConnectivityParametersProperty
kmsKeyIdentifier :: Maybe (Value Text)
name :: Maybe (Value Text)
..}
= Connection {authorizationType :: Maybe (Value Text)
authorizationType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AuthorizationType" Connection
Value Text
newValue, Maybe (Value Text)
Maybe InvocationConnectivityParametersProperty
Maybe AuthParametersProperty
()
haddock_workaround_ :: ()
authParameters :: Maybe AuthParametersProperty
description :: Maybe (Value Text)
invocationConnectivityParameters :: Maybe InvocationConnectivityParametersProperty
kmsKeyIdentifier :: Maybe (Value Text)
name :: Maybe (Value Text)
haddock_workaround_ :: ()
authParameters :: Maybe AuthParametersProperty
description :: Maybe (Value Text)
invocationConnectivityParameters :: Maybe InvocationConnectivityParametersProperty
kmsKeyIdentifier :: Maybe (Value Text)
name :: Maybe (Value Text)
..}
instance Property "Description" Connection where
type PropertyType "Description" Connection = Value Prelude.Text
set :: PropertyType "Description" Connection -> Connection -> Connection
set PropertyType "Description" Connection
newValue Connection {Maybe (Value Text)
Maybe InvocationConnectivityParametersProperty
Maybe AuthParametersProperty
()
haddock_workaround_ :: Connection -> ()
authParameters :: Connection -> Maybe AuthParametersProperty
authorizationType :: Connection -> Maybe (Value Text)
description :: Connection -> Maybe (Value Text)
invocationConnectivityParameters :: Connection -> Maybe InvocationConnectivityParametersProperty
kmsKeyIdentifier :: Connection -> Maybe (Value Text)
name :: Connection -> Maybe (Value Text)
haddock_workaround_ :: ()
authParameters :: Maybe AuthParametersProperty
authorizationType :: Maybe (Value Text)
description :: Maybe (Value Text)
invocationConnectivityParameters :: Maybe InvocationConnectivityParametersProperty
kmsKeyIdentifier :: Maybe (Value Text)
name :: Maybe (Value Text)
..}
= Connection {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" Connection
Value Text
newValue, Maybe (Value Text)
Maybe InvocationConnectivityParametersProperty
Maybe AuthParametersProperty
()
haddock_workaround_ :: ()
authParameters :: Maybe AuthParametersProperty
authorizationType :: Maybe (Value Text)
invocationConnectivityParameters :: Maybe InvocationConnectivityParametersProperty
kmsKeyIdentifier :: Maybe (Value Text)
name :: Maybe (Value Text)
haddock_workaround_ :: ()
authParameters :: Maybe AuthParametersProperty
authorizationType :: Maybe (Value Text)
invocationConnectivityParameters :: Maybe InvocationConnectivityParametersProperty
kmsKeyIdentifier :: Maybe (Value Text)
name :: Maybe (Value Text)
..}
instance Property "InvocationConnectivityParameters" Connection where
type PropertyType "InvocationConnectivityParameters" Connection = InvocationConnectivityParametersProperty
set :: PropertyType "InvocationConnectivityParameters" Connection
-> Connection -> Connection
set PropertyType "InvocationConnectivityParameters" Connection
newValue Connection {Maybe (Value Text)
Maybe InvocationConnectivityParametersProperty
Maybe AuthParametersProperty
()
haddock_workaround_ :: Connection -> ()
authParameters :: Connection -> Maybe AuthParametersProperty
authorizationType :: Connection -> Maybe (Value Text)
description :: Connection -> Maybe (Value Text)
invocationConnectivityParameters :: Connection -> Maybe InvocationConnectivityParametersProperty
kmsKeyIdentifier :: Connection -> Maybe (Value Text)
name :: Connection -> Maybe (Value Text)
haddock_workaround_ :: ()
authParameters :: Maybe AuthParametersProperty
authorizationType :: Maybe (Value Text)
description :: Maybe (Value Text)
invocationConnectivityParameters :: Maybe InvocationConnectivityParametersProperty
kmsKeyIdentifier :: Maybe (Value Text)
name :: Maybe (Value Text)
..}
= Connection
{invocationConnectivityParameters :: Maybe InvocationConnectivityParametersProperty
invocationConnectivityParameters = InvocationConnectivityParametersProperty
-> Maybe InvocationConnectivityParametersProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "InvocationConnectivityParameters" Connection
InvocationConnectivityParametersProperty
newValue, Maybe (Value Text)
Maybe AuthParametersProperty
()
haddock_workaround_ :: ()
authParameters :: Maybe AuthParametersProperty
authorizationType :: Maybe (Value Text)
description :: Maybe (Value Text)
kmsKeyIdentifier :: Maybe (Value Text)
name :: Maybe (Value Text)
haddock_workaround_ :: ()
authParameters :: Maybe AuthParametersProperty
authorizationType :: Maybe (Value Text)
description :: Maybe (Value Text)
kmsKeyIdentifier :: Maybe (Value Text)
name :: Maybe (Value Text)
..}
instance Property "KmsKeyIdentifier" Connection where
type PropertyType "KmsKeyIdentifier" Connection = Value Prelude.Text
set :: PropertyType "KmsKeyIdentifier" Connection
-> Connection -> Connection
set PropertyType "KmsKeyIdentifier" Connection
newValue Connection {Maybe (Value Text)
Maybe InvocationConnectivityParametersProperty
Maybe AuthParametersProperty
()
haddock_workaround_ :: Connection -> ()
authParameters :: Connection -> Maybe AuthParametersProperty
authorizationType :: Connection -> Maybe (Value Text)
description :: Connection -> Maybe (Value Text)
invocationConnectivityParameters :: Connection -> Maybe InvocationConnectivityParametersProperty
kmsKeyIdentifier :: Connection -> Maybe (Value Text)
name :: Connection -> Maybe (Value Text)
haddock_workaround_ :: ()
authParameters :: Maybe AuthParametersProperty
authorizationType :: Maybe (Value Text)
description :: Maybe (Value Text)
invocationConnectivityParameters :: Maybe InvocationConnectivityParametersProperty
kmsKeyIdentifier :: Maybe (Value Text)
name :: Maybe (Value Text)
..}
= Connection {kmsKeyIdentifier :: Maybe (Value Text)
kmsKeyIdentifier = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "KmsKeyIdentifier" Connection
Value Text
newValue, Maybe (Value Text)
Maybe InvocationConnectivityParametersProperty
Maybe AuthParametersProperty
()
haddock_workaround_ :: ()
authParameters :: Maybe AuthParametersProperty
authorizationType :: Maybe (Value Text)
description :: Maybe (Value Text)
invocationConnectivityParameters :: Maybe InvocationConnectivityParametersProperty
name :: Maybe (Value Text)
haddock_workaround_ :: ()
authParameters :: Maybe AuthParametersProperty
authorizationType :: Maybe (Value Text)
description :: Maybe (Value Text)
invocationConnectivityParameters :: Maybe InvocationConnectivityParametersProperty
name :: Maybe (Value Text)
..}
instance Property "Name" Connection where
type PropertyType "Name" Connection = Value Prelude.Text
set :: PropertyType "Name" Connection -> Connection -> Connection
set PropertyType "Name" Connection
newValue Connection {Maybe (Value Text)
Maybe InvocationConnectivityParametersProperty
Maybe AuthParametersProperty
()
haddock_workaround_ :: Connection -> ()
authParameters :: Connection -> Maybe AuthParametersProperty
authorizationType :: Connection -> Maybe (Value Text)
description :: Connection -> Maybe (Value Text)
invocationConnectivityParameters :: Connection -> Maybe InvocationConnectivityParametersProperty
kmsKeyIdentifier :: Connection -> Maybe (Value Text)
name :: Connection -> Maybe (Value Text)
haddock_workaround_ :: ()
authParameters :: Maybe AuthParametersProperty
authorizationType :: Maybe (Value Text)
description :: Maybe (Value Text)
invocationConnectivityParameters :: Maybe InvocationConnectivityParametersProperty
kmsKeyIdentifier :: Maybe (Value Text)
name :: Maybe (Value Text)
..}
= Connection {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" Connection
Value Text
newValue, Maybe (Value Text)
Maybe InvocationConnectivityParametersProperty
Maybe AuthParametersProperty
()
haddock_workaround_ :: ()
authParameters :: Maybe AuthParametersProperty
authorizationType :: Maybe (Value Text)
description :: Maybe (Value Text)
invocationConnectivityParameters :: Maybe InvocationConnectivityParametersProperty
kmsKeyIdentifier :: Maybe (Value Text)
haddock_workaround_ :: ()
authParameters :: Maybe AuthParametersProperty
authorizationType :: Maybe (Value Text)
description :: Maybe (Value Text)
invocationConnectivityParameters :: Maybe InvocationConnectivityParametersProperty
kmsKeyIdentifier :: Maybe (Value Text)
..}