{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.CloudWatchEvents.UpdateConnection
(
UpdateConnection (..),
newUpdateConnection,
updateConnection_authParameters,
updateConnection_authorizationType,
updateConnection_description,
updateConnection_name,
UpdateConnectionResponse (..),
newUpdateConnectionResponse,
updateConnectionResponse_connectionArn,
updateConnectionResponse_connectionState,
updateConnectionResponse_creationTime,
updateConnectionResponse_lastAuthorizedTime,
updateConnectionResponse_lastModifiedTime,
updateConnectionResponse_httpStatus,
)
where
import Amazonka.CloudWatchEvents.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data UpdateConnection = UpdateConnection'
{
UpdateConnection -> Maybe UpdateConnectionAuthRequestParameters
authParameters :: Prelude.Maybe UpdateConnectionAuthRequestParameters,
UpdateConnection -> Maybe ConnectionAuthorizationType
authorizationType :: Prelude.Maybe ConnectionAuthorizationType,
UpdateConnection -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
UpdateConnection -> Text
name :: Prelude.Text
}
deriving (UpdateConnection -> UpdateConnection -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateConnection -> UpdateConnection -> Bool
$c/= :: UpdateConnection -> UpdateConnection -> Bool
== :: UpdateConnection -> UpdateConnection -> Bool
$c== :: UpdateConnection -> UpdateConnection -> Bool
Prelude.Eq, ReadPrec [UpdateConnection]
ReadPrec UpdateConnection
Int -> ReadS UpdateConnection
ReadS [UpdateConnection]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateConnection]
$creadListPrec :: ReadPrec [UpdateConnection]
readPrec :: ReadPrec UpdateConnection
$creadPrec :: ReadPrec UpdateConnection
readList :: ReadS [UpdateConnection]
$creadList :: ReadS [UpdateConnection]
readsPrec :: Int -> ReadS UpdateConnection
$creadsPrec :: Int -> ReadS UpdateConnection
Prelude.Read, Int -> UpdateConnection -> ShowS
[UpdateConnection] -> ShowS
UpdateConnection -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateConnection] -> ShowS
$cshowList :: [UpdateConnection] -> ShowS
show :: UpdateConnection -> String
$cshow :: UpdateConnection -> String
showsPrec :: Int -> UpdateConnection -> ShowS
$cshowsPrec :: Int -> UpdateConnection -> ShowS
Prelude.Show, forall x. Rep UpdateConnection x -> UpdateConnection
forall x. UpdateConnection -> Rep UpdateConnection x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateConnection x -> UpdateConnection
$cfrom :: forall x. UpdateConnection -> Rep UpdateConnection x
Prelude.Generic)
newUpdateConnection ::
Prelude.Text ->
UpdateConnection
newUpdateConnection :: Text -> UpdateConnection
newUpdateConnection Text
pName_ =
UpdateConnection'
{ $sel:authParameters:UpdateConnection' :: Maybe UpdateConnectionAuthRequestParameters
authParameters = forall a. Maybe a
Prelude.Nothing,
$sel:authorizationType:UpdateConnection' :: Maybe ConnectionAuthorizationType
authorizationType = forall a. Maybe a
Prelude.Nothing,
$sel:description:UpdateConnection' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
$sel:name:UpdateConnection' :: Text
name = Text
pName_
}
updateConnection_authParameters :: Lens.Lens' UpdateConnection (Prelude.Maybe UpdateConnectionAuthRequestParameters)
updateConnection_authParameters :: Lens'
UpdateConnection (Maybe UpdateConnectionAuthRequestParameters)
updateConnection_authParameters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateConnection' {Maybe UpdateConnectionAuthRequestParameters
authParameters :: Maybe UpdateConnectionAuthRequestParameters
$sel:authParameters:UpdateConnection' :: UpdateConnection -> Maybe UpdateConnectionAuthRequestParameters
authParameters} -> Maybe UpdateConnectionAuthRequestParameters
authParameters) (\s :: UpdateConnection
s@UpdateConnection' {} Maybe UpdateConnectionAuthRequestParameters
a -> UpdateConnection
s {$sel:authParameters:UpdateConnection' :: Maybe UpdateConnectionAuthRequestParameters
authParameters = Maybe UpdateConnectionAuthRequestParameters
a} :: UpdateConnection)
updateConnection_authorizationType :: Lens.Lens' UpdateConnection (Prelude.Maybe ConnectionAuthorizationType)
updateConnection_authorizationType :: Lens' UpdateConnection (Maybe ConnectionAuthorizationType)
updateConnection_authorizationType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateConnection' {Maybe ConnectionAuthorizationType
authorizationType :: Maybe ConnectionAuthorizationType
$sel:authorizationType:UpdateConnection' :: UpdateConnection -> Maybe ConnectionAuthorizationType
authorizationType} -> Maybe ConnectionAuthorizationType
authorizationType) (\s :: UpdateConnection
s@UpdateConnection' {} Maybe ConnectionAuthorizationType
a -> UpdateConnection
s {$sel:authorizationType:UpdateConnection' :: Maybe ConnectionAuthorizationType
authorizationType = Maybe ConnectionAuthorizationType
a} :: UpdateConnection)
updateConnection_description :: Lens.Lens' UpdateConnection (Prelude.Maybe Prelude.Text)
updateConnection_description :: Lens' UpdateConnection (Maybe Text)
updateConnection_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateConnection' {Maybe Text
description :: Maybe Text
$sel:description:UpdateConnection' :: UpdateConnection -> Maybe Text
description} -> Maybe Text
description) (\s :: UpdateConnection
s@UpdateConnection' {} Maybe Text
a -> UpdateConnection
s {$sel:description:UpdateConnection' :: Maybe Text
description = Maybe Text
a} :: UpdateConnection)
updateConnection_name :: Lens.Lens' UpdateConnection Prelude.Text
updateConnection_name :: Lens' UpdateConnection Text
updateConnection_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateConnection' {Text
name :: Text
$sel:name:UpdateConnection' :: UpdateConnection -> Text
name} -> Text
name) (\s :: UpdateConnection
s@UpdateConnection' {} Text
a -> UpdateConnection
s {$sel:name:UpdateConnection' :: Text
name = Text
a} :: UpdateConnection)
instance Core.AWSRequest UpdateConnection where
type
AWSResponse UpdateConnection =
UpdateConnectionResponse
request :: (Service -> Service)
-> UpdateConnection -> Request UpdateConnection
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy UpdateConnection
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateConnection)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe ConnectionState
-> Maybe POSIX
-> Maybe POSIX
-> Maybe POSIX
-> Int
-> UpdateConnectionResponse
UpdateConnectionResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"ConnectionArn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"ConnectionState")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"CreationTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"LastAuthorizedTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"LastModifiedTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable UpdateConnection where
hashWithSalt :: Int -> UpdateConnection -> Int
hashWithSalt Int
_salt UpdateConnection' {Maybe Text
Maybe ConnectionAuthorizationType
Maybe UpdateConnectionAuthRequestParameters
Text
name :: Text
description :: Maybe Text
authorizationType :: Maybe ConnectionAuthorizationType
authParameters :: Maybe UpdateConnectionAuthRequestParameters
$sel:name:UpdateConnection' :: UpdateConnection -> Text
$sel:description:UpdateConnection' :: UpdateConnection -> Maybe Text
$sel:authorizationType:UpdateConnection' :: UpdateConnection -> Maybe ConnectionAuthorizationType
$sel:authParameters:UpdateConnection' :: UpdateConnection -> Maybe UpdateConnectionAuthRequestParameters
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe UpdateConnectionAuthRequestParameters
authParameters
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ConnectionAuthorizationType
authorizationType
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
description
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
name
instance Prelude.NFData UpdateConnection where
rnf :: UpdateConnection -> ()
rnf UpdateConnection' {Maybe Text
Maybe ConnectionAuthorizationType
Maybe UpdateConnectionAuthRequestParameters
Text
name :: Text
description :: Maybe Text
authorizationType :: Maybe ConnectionAuthorizationType
authParameters :: Maybe UpdateConnectionAuthRequestParameters
$sel:name:UpdateConnection' :: UpdateConnection -> Text
$sel:description:UpdateConnection' :: UpdateConnection -> Maybe Text
$sel:authorizationType:UpdateConnection' :: UpdateConnection -> Maybe ConnectionAuthorizationType
$sel:authParameters:UpdateConnection' :: UpdateConnection -> Maybe UpdateConnectionAuthRequestParameters
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe UpdateConnectionAuthRequestParameters
authParameters
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ConnectionAuthorizationType
authorizationType
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
description
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
name
instance Data.ToHeaders UpdateConnection where
toHeaders :: UpdateConnection -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# (ByteString
"AWSEvents.UpdateConnection" :: Prelude.ByteString),
HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON UpdateConnection where
toJSON :: UpdateConnection -> Value
toJSON UpdateConnection' {Maybe Text
Maybe ConnectionAuthorizationType
Maybe UpdateConnectionAuthRequestParameters
Text
name :: Text
description :: Maybe Text
authorizationType :: Maybe ConnectionAuthorizationType
authParameters :: Maybe UpdateConnectionAuthRequestParameters
$sel:name:UpdateConnection' :: UpdateConnection -> Text
$sel:description:UpdateConnection' :: UpdateConnection -> Maybe Text
$sel:authorizationType:UpdateConnection' :: UpdateConnection -> Maybe ConnectionAuthorizationType
$sel:authParameters:UpdateConnection' :: UpdateConnection -> Maybe UpdateConnectionAuthRequestParameters
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"AuthParameters" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe UpdateConnectionAuthRequestParameters
authParameters,
(Key
"AuthorizationType" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ConnectionAuthorizationType
authorizationType,
(Key
"Description" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
description,
forall a. a -> Maybe a
Prelude.Just (Key
"Name" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
name)
]
)
instance Data.ToPath UpdateConnection where
toPath :: UpdateConnection -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery UpdateConnection where
toQuery :: UpdateConnection -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data UpdateConnectionResponse = UpdateConnectionResponse'
{
UpdateConnectionResponse -> Maybe Text
connectionArn :: Prelude.Maybe Prelude.Text,
UpdateConnectionResponse -> Maybe ConnectionState
connectionState :: Prelude.Maybe ConnectionState,
UpdateConnectionResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Data.POSIX,
UpdateConnectionResponse -> Maybe POSIX
lastAuthorizedTime :: Prelude.Maybe Data.POSIX,
UpdateConnectionResponse -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Data.POSIX,
UpdateConnectionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateConnectionResponse -> UpdateConnectionResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateConnectionResponse -> UpdateConnectionResponse -> Bool
$c/= :: UpdateConnectionResponse -> UpdateConnectionResponse -> Bool
== :: UpdateConnectionResponse -> UpdateConnectionResponse -> Bool
$c== :: UpdateConnectionResponse -> UpdateConnectionResponse -> Bool
Prelude.Eq, ReadPrec [UpdateConnectionResponse]
ReadPrec UpdateConnectionResponse
Int -> ReadS UpdateConnectionResponse
ReadS [UpdateConnectionResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateConnectionResponse]
$creadListPrec :: ReadPrec [UpdateConnectionResponse]
readPrec :: ReadPrec UpdateConnectionResponse
$creadPrec :: ReadPrec UpdateConnectionResponse
readList :: ReadS [UpdateConnectionResponse]
$creadList :: ReadS [UpdateConnectionResponse]
readsPrec :: Int -> ReadS UpdateConnectionResponse
$creadsPrec :: Int -> ReadS UpdateConnectionResponse
Prelude.Read, Int -> UpdateConnectionResponse -> ShowS
[UpdateConnectionResponse] -> ShowS
UpdateConnectionResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateConnectionResponse] -> ShowS
$cshowList :: [UpdateConnectionResponse] -> ShowS
show :: UpdateConnectionResponse -> String
$cshow :: UpdateConnectionResponse -> String
showsPrec :: Int -> UpdateConnectionResponse -> ShowS
$cshowsPrec :: Int -> UpdateConnectionResponse -> ShowS
Prelude.Show, forall x.
Rep UpdateConnectionResponse x -> UpdateConnectionResponse
forall x.
UpdateConnectionResponse -> Rep UpdateConnectionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateConnectionResponse x -> UpdateConnectionResponse
$cfrom :: forall x.
UpdateConnectionResponse -> Rep UpdateConnectionResponse x
Prelude.Generic)
newUpdateConnectionResponse ::
Prelude.Int ->
UpdateConnectionResponse
newUpdateConnectionResponse :: Int -> UpdateConnectionResponse
newUpdateConnectionResponse Int
pHttpStatus_ =
UpdateConnectionResponse'
{ $sel:connectionArn:UpdateConnectionResponse' :: Maybe Text
connectionArn =
forall a. Maybe a
Prelude.Nothing,
$sel:connectionState:UpdateConnectionResponse' :: Maybe ConnectionState
connectionState = forall a. Maybe a
Prelude.Nothing,
$sel:creationTime:UpdateConnectionResponse' :: Maybe POSIX
creationTime = forall a. Maybe a
Prelude.Nothing,
$sel:lastAuthorizedTime:UpdateConnectionResponse' :: Maybe POSIX
lastAuthorizedTime = forall a. Maybe a
Prelude.Nothing,
$sel:lastModifiedTime:UpdateConnectionResponse' :: Maybe POSIX
lastModifiedTime = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateConnectionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateConnectionResponse_connectionArn :: Lens.Lens' UpdateConnectionResponse (Prelude.Maybe Prelude.Text)
updateConnectionResponse_connectionArn :: Lens' UpdateConnectionResponse (Maybe Text)
updateConnectionResponse_connectionArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateConnectionResponse' {Maybe Text
connectionArn :: Maybe Text
$sel:connectionArn:UpdateConnectionResponse' :: UpdateConnectionResponse -> Maybe Text
connectionArn} -> Maybe Text
connectionArn) (\s :: UpdateConnectionResponse
s@UpdateConnectionResponse' {} Maybe Text
a -> UpdateConnectionResponse
s {$sel:connectionArn:UpdateConnectionResponse' :: Maybe Text
connectionArn = Maybe Text
a} :: UpdateConnectionResponse)
updateConnectionResponse_connectionState :: Lens.Lens' UpdateConnectionResponse (Prelude.Maybe ConnectionState)
updateConnectionResponse_connectionState :: Lens' UpdateConnectionResponse (Maybe ConnectionState)
updateConnectionResponse_connectionState = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateConnectionResponse' {Maybe ConnectionState
connectionState :: Maybe ConnectionState
$sel:connectionState:UpdateConnectionResponse' :: UpdateConnectionResponse -> Maybe ConnectionState
connectionState} -> Maybe ConnectionState
connectionState) (\s :: UpdateConnectionResponse
s@UpdateConnectionResponse' {} Maybe ConnectionState
a -> UpdateConnectionResponse
s {$sel:connectionState:UpdateConnectionResponse' :: Maybe ConnectionState
connectionState = Maybe ConnectionState
a} :: UpdateConnectionResponse)
updateConnectionResponse_creationTime :: Lens.Lens' UpdateConnectionResponse (Prelude.Maybe Prelude.UTCTime)
updateConnectionResponse_creationTime :: Lens' UpdateConnectionResponse (Maybe UTCTime)
updateConnectionResponse_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateConnectionResponse' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:UpdateConnectionResponse' :: UpdateConnectionResponse -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: UpdateConnectionResponse
s@UpdateConnectionResponse' {} Maybe POSIX
a -> UpdateConnectionResponse
s {$sel:creationTime:UpdateConnectionResponse' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: UpdateConnectionResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
updateConnectionResponse_lastAuthorizedTime :: Lens.Lens' UpdateConnectionResponse (Prelude.Maybe Prelude.UTCTime)
updateConnectionResponse_lastAuthorizedTime :: Lens' UpdateConnectionResponse (Maybe UTCTime)
updateConnectionResponse_lastAuthorizedTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateConnectionResponse' {Maybe POSIX
lastAuthorizedTime :: Maybe POSIX
$sel:lastAuthorizedTime:UpdateConnectionResponse' :: UpdateConnectionResponse -> Maybe POSIX
lastAuthorizedTime} -> Maybe POSIX
lastAuthorizedTime) (\s :: UpdateConnectionResponse
s@UpdateConnectionResponse' {} Maybe POSIX
a -> UpdateConnectionResponse
s {$sel:lastAuthorizedTime:UpdateConnectionResponse' :: Maybe POSIX
lastAuthorizedTime = Maybe POSIX
a} :: UpdateConnectionResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
updateConnectionResponse_lastModifiedTime :: Lens.Lens' UpdateConnectionResponse (Prelude.Maybe Prelude.UTCTime)
updateConnectionResponse_lastModifiedTime :: Lens' UpdateConnectionResponse (Maybe UTCTime)
updateConnectionResponse_lastModifiedTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateConnectionResponse' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:UpdateConnectionResponse' :: UpdateConnectionResponse -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: UpdateConnectionResponse
s@UpdateConnectionResponse' {} Maybe POSIX
a -> UpdateConnectionResponse
s {$sel:lastModifiedTime:UpdateConnectionResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: UpdateConnectionResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time
updateConnectionResponse_httpStatus :: Lens.Lens' UpdateConnectionResponse Prelude.Int
updateConnectionResponse_httpStatus :: Lens' UpdateConnectionResponse Int
updateConnectionResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateConnectionResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateConnectionResponse' :: UpdateConnectionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateConnectionResponse
s@UpdateConnectionResponse' {} Int
a -> UpdateConnectionResponse
s {$sel:httpStatus:UpdateConnectionResponse' :: Int
httpStatus = Int
a} :: UpdateConnectionResponse)
instance Prelude.NFData UpdateConnectionResponse where
rnf :: UpdateConnectionResponse -> ()
rnf UpdateConnectionResponse' {Int
Maybe Text
Maybe POSIX
Maybe ConnectionState
httpStatus :: Int
lastModifiedTime :: Maybe POSIX
lastAuthorizedTime :: Maybe POSIX
creationTime :: Maybe POSIX
connectionState :: Maybe ConnectionState
connectionArn :: Maybe Text
$sel:httpStatus:UpdateConnectionResponse' :: UpdateConnectionResponse -> Int
$sel:lastModifiedTime:UpdateConnectionResponse' :: UpdateConnectionResponse -> Maybe POSIX
$sel:lastAuthorizedTime:UpdateConnectionResponse' :: UpdateConnectionResponse -> Maybe POSIX
$sel:creationTime:UpdateConnectionResponse' :: UpdateConnectionResponse -> Maybe POSIX
$sel:connectionState:UpdateConnectionResponse' :: UpdateConnectionResponse -> Maybe ConnectionState
$sel:connectionArn:UpdateConnectionResponse' :: UpdateConnectionResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
connectionArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ConnectionState
connectionState
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastAuthorizedTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastModifiedTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus