{-# 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.UpdateApiDestination
(
UpdateApiDestination (..),
newUpdateApiDestination,
updateApiDestination_connectionArn,
updateApiDestination_description,
updateApiDestination_httpMethod,
updateApiDestination_invocationEndpoint,
updateApiDestination_invocationRateLimitPerSecond,
updateApiDestination_name,
UpdateApiDestinationResponse (..),
newUpdateApiDestinationResponse,
updateApiDestinationResponse_apiDestinationArn,
updateApiDestinationResponse_apiDestinationState,
updateApiDestinationResponse_creationTime,
updateApiDestinationResponse_lastModifiedTime,
updateApiDestinationResponse_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 UpdateApiDestination = UpdateApiDestination'
{
UpdateApiDestination -> Maybe Text
connectionArn :: Prelude.Maybe Prelude.Text,
UpdateApiDestination -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
UpdateApiDestination -> Maybe ApiDestinationHttpMethod
httpMethod :: Prelude.Maybe ApiDestinationHttpMethod,
UpdateApiDestination -> Maybe Text
invocationEndpoint :: Prelude.Maybe Prelude.Text,
UpdateApiDestination -> Maybe Natural
invocationRateLimitPerSecond :: Prelude.Maybe Prelude.Natural,
UpdateApiDestination -> Text
name :: Prelude.Text
}
deriving (UpdateApiDestination -> UpdateApiDestination -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateApiDestination -> UpdateApiDestination -> Bool
$c/= :: UpdateApiDestination -> UpdateApiDestination -> Bool
== :: UpdateApiDestination -> UpdateApiDestination -> Bool
$c== :: UpdateApiDestination -> UpdateApiDestination -> Bool
Prelude.Eq, ReadPrec [UpdateApiDestination]
ReadPrec UpdateApiDestination
Int -> ReadS UpdateApiDestination
ReadS [UpdateApiDestination]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateApiDestination]
$creadListPrec :: ReadPrec [UpdateApiDestination]
readPrec :: ReadPrec UpdateApiDestination
$creadPrec :: ReadPrec UpdateApiDestination
readList :: ReadS [UpdateApiDestination]
$creadList :: ReadS [UpdateApiDestination]
readsPrec :: Int -> ReadS UpdateApiDestination
$creadsPrec :: Int -> ReadS UpdateApiDestination
Prelude.Read, Int -> UpdateApiDestination -> ShowS
[UpdateApiDestination] -> ShowS
UpdateApiDestination -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateApiDestination] -> ShowS
$cshowList :: [UpdateApiDestination] -> ShowS
show :: UpdateApiDestination -> String
$cshow :: UpdateApiDestination -> String
showsPrec :: Int -> UpdateApiDestination -> ShowS
$cshowsPrec :: Int -> UpdateApiDestination -> ShowS
Prelude.Show, forall x. Rep UpdateApiDestination x -> UpdateApiDestination
forall x. UpdateApiDestination -> Rep UpdateApiDestination x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateApiDestination x -> UpdateApiDestination
$cfrom :: forall x. UpdateApiDestination -> Rep UpdateApiDestination x
Prelude.Generic)
newUpdateApiDestination ::
Prelude.Text ->
UpdateApiDestination
newUpdateApiDestination :: Text -> UpdateApiDestination
newUpdateApiDestination Text
pName_ =
UpdateApiDestination'
{ $sel:connectionArn:UpdateApiDestination' :: Maybe Text
connectionArn =
forall a. Maybe a
Prelude.Nothing,
$sel:description:UpdateApiDestination' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
$sel:httpMethod:UpdateApiDestination' :: Maybe ApiDestinationHttpMethod
httpMethod = forall a. Maybe a
Prelude.Nothing,
$sel:invocationEndpoint:UpdateApiDestination' :: Maybe Text
invocationEndpoint = forall a. Maybe a
Prelude.Nothing,
$sel:invocationRateLimitPerSecond:UpdateApiDestination' :: Maybe Natural
invocationRateLimitPerSecond = forall a. Maybe a
Prelude.Nothing,
$sel:name:UpdateApiDestination' :: Text
name = Text
pName_
}
updateApiDestination_connectionArn :: Lens.Lens' UpdateApiDestination (Prelude.Maybe Prelude.Text)
updateApiDestination_connectionArn :: Lens' UpdateApiDestination (Maybe Text)
updateApiDestination_connectionArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateApiDestination' {Maybe Text
connectionArn :: Maybe Text
$sel:connectionArn:UpdateApiDestination' :: UpdateApiDestination -> Maybe Text
connectionArn} -> Maybe Text
connectionArn) (\s :: UpdateApiDestination
s@UpdateApiDestination' {} Maybe Text
a -> UpdateApiDestination
s {$sel:connectionArn:UpdateApiDestination' :: Maybe Text
connectionArn = Maybe Text
a} :: UpdateApiDestination)
updateApiDestination_description :: Lens.Lens' UpdateApiDestination (Prelude.Maybe Prelude.Text)
updateApiDestination_description :: Lens' UpdateApiDestination (Maybe Text)
updateApiDestination_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateApiDestination' {Maybe Text
description :: Maybe Text
$sel:description:UpdateApiDestination' :: UpdateApiDestination -> Maybe Text
description} -> Maybe Text
description) (\s :: UpdateApiDestination
s@UpdateApiDestination' {} Maybe Text
a -> UpdateApiDestination
s {$sel:description:UpdateApiDestination' :: Maybe Text
description = Maybe Text
a} :: UpdateApiDestination)
updateApiDestination_httpMethod :: Lens.Lens' UpdateApiDestination (Prelude.Maybe ApiDestinationHttpMethod)
updateApiDestination_httpMethod :: Lens' UpdateApiDestination (Maybe ApiDestinationHttpMethod)
updateApiDestination_httpMethod = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateApiDestination' {Maybe ApiDestinationHttpMethod
httpMethod :: Maybe ApiDestinationHttpMethod
$sel:httpMethod:UpdateApiDestination' :: UpdateApiDestination -> Maybe ApiDestinationHttpMethod
httpMethod} -> Maybe ApiDestinationHttpMethod
httpMethod) (\s :: UpdateApiDestination
s@UpdateApiDestination' {} Maybe ApiDestinationHttpMethod
a -> UpdateApiDestination
s {$sel:httpMethod:UpdateApiDestination' :: Maybe ApiDestinationHttpMethod
httpMethod = Maybe ApiDestinationHttpMethod
a} :: UpdateApiDestination)
updateApiDestination_invocationEndpoint :: Lens.Lens' UpdateApiDestination (Prelude.Maybe Prelude.Text)
updateApiDestination_invocationEndpoint :: Lens' UpdateApiDestination (Maybe Text)
updateApiDestination_invocationEndpoint = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateApiDestination' {Maybe Text
invocationEndpoint :: Maybe Text
$sel:invocationEndpoint:UpdateApiDestination' :: UpdateApiDestination -> Maybe Text
invocationEndpoint} -> Maybe Text
invocationEndpoint) (\s :: UpdateApiDestination
s@UpdateApiDestination' {} Maybe Text
a -> UpdateApiDestination
s {$sel:invocationEndpoint:UpdateApiDestination' :: Maybe Text
invocationEndpoint = Maybe Text
a} :: UpdateApiDestination)
updateApiDestination_invocationRateLimitPerSecond :: Lens.Lens' UpdateApiDestination (Prelude.Maybe Prelude.Natural)
updateApiDestination_invocationRateLimitPerSecond :: Lens' UpdateApiDestination (Maybe Natural)
updateApiDestination_invocationRateLimitPerSecond = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateApiDestination' {Maybe Natural
invocationRateLimitPerSecond :: Maybe Natural
$sel:invocationRateLimitPerSecond:UpdateApiDestination' :: UpdateApiDestination -> Maybe Natural
invocationRateLimitPerSecond} -> Maybe Natural
invocationRateLimitPerSecond) (\s :: UpdateApiDestination
s@UpdateApiDestination' {} Maybe Natural
a -> UpdateApiDestination
s {$sel:invocationRateLimitPerSecond:UpdateApiDestination' :: Maybe Natural
invocationRateLimitPerSecond = Maybe Natural
a} :: UpdateApiDestination)
updateApiDestination_name :: Lens.Lens' UpdateApiDestination Prelude.Text
updateApiDestination_name :: Lens' UpdateApiDestination Text
updateApiDestination_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateApiDestination' {Text
name :: Text
$sel:name:UpdateApiDestination' :: UpdateApiDestination -> Text
name} -> Text
name) (\s :: UpdateApiDestination
s@UpdateApiDestination' {} Text
a -> UpdateApiDestination
s {$sel:name:UpdateApiDestination' :: Text
name = Text
a} :: UpdateApiDestination)
instance Core.AWSRequest UpdateApiDestination where
type
AWSResponse UpdateApiDestination =
UpdateApiDestinationResponse
request :: (Service -> Service)
-> UpdateApiDestination -> Request UpdateApiDestination
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 UpdateApiDestination
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateApiDestination)))
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 ApiDestinationState
-> Maybe POSIX
-> Maybe POSIX
-> Int
-> UpdateApiDestinationResponse
UpdateApiDestinationResponse'
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
"ApiDestinationArn")
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
"ApiDestinationState")
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
"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 UpdateApiDestination where
hashWithSalt :: Int -> UpdateApiDestination -> Int
hashWithSalt Int
_salt UpdateApiDestination' {Maybe Natural
Maybe Text
Maybe ApiDestinationHttpMethod
Text
name :: Text
invocationRateLimitPerSecond :: Maybe Natural
invocationEndpoint :: Maybe Text
httpMethod :: Maybe ApiDestinationHttpMethod
description :: Maybe Text
connectionArn :: Maybe Text
$sel:name:UpdateApiDestination' :: UpdateApiDestination -> Text
$sel:invocationRateLimitPerSecond:UpdateApiDestination' :: UpdateApiDestination -> Maybe Natural
$sel:invocationEndpoint:UpdateApiDestination' :: UpdateApiDestination -> Maybe Text
$sel:httpMethod:UpdateApiDestination' :: UpdateApiDestination -> Maybe ApiDestinationHttpMethod
$sel:description:UpdateApiDestination' :: UpdateApiDestination -> Maybe Text
$sel:connectionArn:UpdateApiDestination' :: UpdateApiDestination -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
connectionArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
description
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ApiDestinationHttpMethod
httpMethod
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
invocationEndpoint
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
invocationRateLimitPerSecond
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
name
instance Prelude.NFData UpdateApiDestination where
rnf :: UpdateApiDestination -> ()
rnf UpdateApiDestination' {Maybe Natural
Maybe Text
Maybe ApiDestinationHttpMethod
Text
name :: Text
invocationRateLimitPerSecond :: Maybe Natural
invocationEndpoint :: Maybe Text
httpMethod :: Maybe ApiDestinationHttpMethod
description :: Maybe Text
connectionArn :: Maybe Text
$sel:name:UpdateApiDestination' :: UpdateApiDestination -> Text
$sel:invocationRateLimitPerSecond:UpdateApiDestination' :: UpdateApiDestination -> Maybe Natural
$sel:invocationEndpoint:UpdateApiDestination' :: UpdateApiDestination -> Maybe Text
$sel:httpMethod:UpdateApiDestination' :: UpdateApiDestination -> Maybe ApiDestinationHttpMethod
$sel:description:UpdateApiDestination' :: UpdateApiDestination -> Maybe Text
$sel:connectionArn:UpdateApiDestination' :: UpdateApiDestination -> 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 Text
description
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ApiDestinationHttpMethod
httpMethod
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
invocationEndpoint
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
invocationRateLimitPerSecond
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
name
instance Data.ToHeaders UpdateApiDestination where
toHeaders :: UpdateApiDestination -> 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.UpdateApiDestination" ::
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 UpdateApiDestination where
toJSON :: UpdateApiDestination -> Value
toJSON UpdateApiDestination' {Maybe Natural
Maybe Text
Maybe ApiDestinationHttpMethod
Text
name :: Text
invocationRateLimitPerSecond :: Maybe Natural
invocationEndpoint :: Maybe Text
httpMethod :: Maybe ApiDestinationHttpMethod
description :: Maybe Text
connectionArn :: Maybe Text
$sel:name:UpdateApiDestination' :: UpdateApiDestination -> Text
$sel:invocationRateLimitPerSecond:UpdateApiDestination' :: UpdateApiDestination -> Maybe Natural
$sel:invocationEndpoint:UpdateApiDestination' :: UpdateApiDestination -> Maybe Text
$sel:httpMethod:UpdateApiDestination' :: UpdateApiDestination -> Maybe ApiDestinationHttpMethod
$sel:description:UpdateApiDestination' :: UpdateApiDestination -> Maybe Text
$sel:connectionArn:UpdateApiDestination' :: UpdateApiDestination -> Maybe Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"ConnectionArn" 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
connectionArn,
(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,
(Key
"HttpMethod" 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 ApiDestinationHttpMethod
httpMethod,
(Key
"InvocationEndpoint" 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
invocationEndpoint,
(Key
"InvocationRateLimitPerSecond" 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 Natural
invocationRateLimitPerSecond,
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 UpdateApiDestination where
toPath :: UpdateApiDestination -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery UpdateApiDestination where
toQuery :: UpdateApiDestination -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data UpdateApiDestinationResponse = UpdateApiDestinationResponse'
{
UpdateApiDestinationResponse -> Maybe Text
apiDestinationArn :: Prelude.Maybe Prelude.Text,
UpdateApiDestinationResponse -> Maybe ApiDestinationState
apiDestinationState :: Prelude.Maybe ApiDestinationState,
UpdateApiDestinationResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Data.POSIX,
UpdateApiDestinationResponse -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Data.POSIX,
UpdateApiDestinationResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateApiDestinationResponse
-> UpdateApiDestinationResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateApiDestinationResponse
-> UpdateApiDestinationResponse -> Bool
$c/= :: UpdateApiDestinationResponse
-> UpdateApiDestinationResponse -> Bool
== :: UpdateApiDestinationResponse
-> UpdateApiDestinationResponse -> Bool
$c== :: UpdateApiDestinationResponse
-> UpdateApiDestinationResponse -> Bool
Prelude.Eq, ReadPrec [UpdateApiDestinationResponse]
ReadPrec UpdateApiDestinationResponse
Int -> ReadS UpdateApiDestinationResponse
ReadS [UpdateApiDestinationResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateApiDestinationResponse]
$creadListPrec :: ReadPrec [UpdateApiDestinationResponse]
readPrec :: ReadPrec UpdateApiDestinationResponse
$creadPrec :: ReadPrec UpdateApiDestinationResponse
readList :: ReadS [UpdateApiDestinationResponse]
$creadList :: ReadS [UpdateApiDestinationResponse]
readsPrec :: Int -> ReadS UpdateApiDestinationResponse
$creadsPrec :: Int -> ReadS UpdateApiDestinationResponse
Prelude.Read, Int -> UpdateApiDestinationResponse -> ShowS
[UpdateApiDestinationResponse] -> ShowS
UpdateApiDestinationResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateApiDestinationResponse] -> ShowS
$cshowList :: [UpdateApiDestinationResponse] -> ShowS
show :: UpdateApiDestinationResponse -> String
$cshow :: UpdateApiDestinationResponse -> String
showsPrec :: Int -> UpdateApiDestinationResponse -> ShowS
$cshowsPrec :: Int -> UpdateApiDestinationResponse -> ShowS
Prelude.Show, forall x.
Rep UpdateApiDestinationResponse x -> UpdateApiDestinationResponse
forall x.
UpdateApiDestinationResponse -> Rep UpdateApiDestinationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateApiDestinationResponse x -> UpdateApiDestinationResponse
$cfrom :: forall x.
UpdateApiDestinationResponse -> Rep UpdateApiDestinationResponse x
Prelude.Generic)
newUpdateApiDestinationResponse ::
Prelude.Int ->
UpdateApiDestinationResponse
newUpdateApiDestinationResponse :: Int -> UpdateApiDestinationResponse
newUpdateApiDestinationResponse Int
pHttpStatus_ =
UpdateApiDestinationResponse'
{ $sel:apiDestinationArn:UpdateApiDestinationResponse' :: Maybe Text
apiDestinationArn =
forall a. Maybe a
Prelude.Nothing,
$sel:apiDestinationState:UpdateApiDestinationResponse' :: Maybe ApiDestinationState
apiDestinationState = forall a. Maybe a
Prelude.Nothing,
$sel:creationTime:UpdateApiDestinationResponse' :: Maybe POSIX
creationTime = forall a. Maybe a
Prelude.Nothing,
$sel:lastModifiedTime:UpdateApiDestinationResponse' :: Maybe POSIX
lastModifiedTime = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateApiDestinationResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateApiDestinationResponse_apiDestinationArn :: Lens.Lens' UpdateApiDestinationResponse (Prelude.Maybe Prelude.Text)
updateApiDestinationResponse_apiDestinationArn :: Lens' UpdateApiDestinationResponse (Maybe Text)
updateApiDestinationResponse_apiDestinationArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateApiDestinationResponse' {Maybe Text
apiDestinationArn :: Maybe Text
$sel:apiDestinationArn:UpdateApiDestinationResponse' :: UpdateApiDestinationResponse -> Maybe Text
apiDestinationArn} -> Maybe Text
apiDestinationArn) (\s :: UpdateApiDestinationResponse
s@UpdateApiDestinationResponse' {} Maybe Text
a -> UpdateApiDestinationResponse
s {$sel:apiDestinationArn:UpdateApiDestinationResponse' :: Maybe Text
apiDestinationArn = Maybe Text
a} :: UpdateApiDestinationResponse)
updateApiDestinationResponse_apiDestinationState :: Lens.Lens' UpdateApiDestinationResponse (Prelude.Maybe ApiDestinationState)
updateApiDestinationResponse_apiDestinationState :: Lens' UpdateApiDestinationResponse (Maybe ApiDestinationState)
updateApiDestinationResponse_apiDestinationState = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateApiDestinationResponse' {Maybe ApiDestinationState
apiDestinationState :: Maybe ApiDestinationState
$sel:apiDestinationState:UpdateApiDestinationResponse' :: UpdateApiDestinationResponse -> Maybe ApiDestinationState
apiDestinationState} -> Maybe ApiDestinationState
apiDestinationState) (\s :: UpdateApiDestinationResponse
s@UpdateApiDestinationResponse' {} Maybe ApiDestinationState
a -> UpdateApiDestinationResponse
s {$sel:apiDestinationState:UpdateApiDestinationResponse' :: Maybe ApiDestinationState
apiDestinationState = Maybe ApiDestinationState
a} :: UpdateApiDestinationResponse)
updateApiDestinationResponse_creationTime :: Lens.Lens' UpdateApiDestinationResponse (Prelude.Maybe Prelude.UTCTime)
updateApiDestinationResponse_creationTime :: Lens' UpdateApiDestinationResponse (Maybe UTCTime)
updateApiDestinationResponse_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateApiDestinationResponse' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:UpdateApiDestinationResponse' :: UpdateApiDestinationResponse -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: UpdateApiDestinationResponse
s@UpdateApiDestinationResponse' {} Maybe POSIX
a -> UpdateApiDestinationResponse
s {$sel:creationTime:UpdateApiDestinationResponse' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: UpdateApiDestinationResponse) 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
updateApiDestinationResponse_lastModifiedTime :: Lens.Lens' UpdateApiDestinationResponse (Prelude.Maybe Prelude.UTCTime)
updateApiDestinationResponse_lastModifiedTime :: Lens' UpdateApiDestinationResponse (Maybe UTCTime)
updateApiDestinationResponse_lastModifiedTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateApiDestinationResponse' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:UpdateApiDestinationResponse' :: UpdateApiDestinationResponse -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: UpdateApiDestinationResponse
s@UpdateApiDestinationResponse' {} Maybe POSIX
a -> UpdateApiDestinationResponse
s {$sel:lastModifiedTime:UpdateApiDestinationResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: UpdateApiDestinationResponse) 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
updateApiDestinationResponse_httpStatus :: Lens.Lens' UpdateApiDestinationResponse Prelude.Int
updateApiDestinationResponse_httpStatus :: Lens' UpdateApiDestinationResponse Int
updateApiDestinationResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateApiDestinationResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateApiDestinationResponse' :: UpdateApiDestinationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateApiDestinationResponse
s@UpdateApiDestinationResponse' {} Int
a -> UpdateApiDestinationResponse
s {$sel:httpStatus:UpdateApiDestinationResponse' :: Int
httpStatus = Int
a} :: UpdateApiDestinationResponse)
instance Prelude.NFData UpdateApiDestinationResponse where
rnf :: UpdateApiDestinationResponse -> ()
rnf UpdateApiDestinationResponse' {Int
Maybe Text
Maybe POSIX
Maybe ApiDestinationState
httpStatus :: Int
lastModifiedTime :: Maybe POSIX
creationTime :: Maybe POSIX
apiDestinationState :: Maybe ApiDestinationState
apiDestinationArn :: Maybe Text
$sel:httpStatus:UpdateApiDestinationResponse' :: UpdateApiDestinationResponse -> Int
$sel:lastModifiedTime:UpdateApiDestinationResponse' :: UpdateApiDestinationResponse -> Maybe POSIX
$sel:creationTime:UpdateApiDestinationResponse' :: UpdateApiDestinationResponse -> Maybe POSIX
$sel:apiDestinationState:UpdateApiDestinationResponse' :: UpdateApiDestinationResponse -> Maybe ApiDestinationState
$sel:apiDestinationArn:UpdateApiDestinationResponse' :: UpdateApiDestinationResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
apiDestinationArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ApiDestinationState
apiDestinationState
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
lastModifiedTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus