{-# 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.DescribeApiDestination
(
DescribeApiDestination (..),
newDescribeApiDestination,
describeApiDestination_name,
DescribeApiDestinationResponse (..),
newDescribeApiDestinationResponse,
describeApiDestinationResponse_creationTime,
describeApiDestinationResponse_httpMethod,
describeApiDestinationResponse_invocationEndpoint,
describeApiDestinationResponse_lastModifiedTime,
describeApiDestinationResponse_name,
describeApiDestinationResponse_invocationRateLimitPerSecond,
describeApiDestinationResponse_apiDestinationState,
describeApiDestinationResponse_connectionArn,
describeApiDestinationResponse_description,
describeApiDestinationResponse_apiDestinationArn,
describeApiDestinationResponse_httpStatus,
)
where
import Amazonka.CloudWatchEvents.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeApiDestination = DescribeApiDestination'
{
DescribeApiDestination -> Text
name :: Prelude.Text
}
deriving (DescribeApiDestination -> DescribeApiDestination -> Bool
(DescribeApiDestination -> DescribeApiDestination -> Bool)
-> (DescribeApiDestination -> DescribeApiDestination -> Bool)
-> Eq DescribeApiDestination
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeApiDestination -> DescribeApiDestination -> Bool
$c/= :: DescribeApiDestination -> DescribeApiDestination -> Bool
== :: DescribeApiDestination -> DescribeApiDestination -> Bool
$c== :: DescribeApiDestination -> DescribeApiDestination -> Bool
Prelude.Eq, ReadPrec [DescribeApiDestination]
ReadPrec DescribeApiDestination
Int -> ReadS DescribeApiDestination
ReadS [DescribeApiDestination]
(Int -> ReadS DescribeApiDestination)
-> ReadS [DescribeApiDestination]
-> ReadPrec DescribeApiDestination
-> ReadPrec [DescribeApiDestination]
-> Read DescribeApiDestination
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeApiDestination]
$creadListPrec :: ReadPrec [DescribeApiDestination]
readPrec :: ReadPrec DescribeApiDestination
$creadPrec :: ReadPrec DescribeApiDestination
readList :: ReadS [DescribeApiDestination]
$creadList :: ReadS [DescribeApiDestination]
readsPrec :: Int -> ReadS DescribeApiDestination
$creadsPrec :: Int -> ReadS DescribeApiDestination
Prelude.Read, Int -> DescribeApiDestination -> ShowS
[DescribeApiDestination] -> ShowS
DescribeApiDestination -> String
(Int -> DescribeApiDestination -> ShowS)
-> (DescribeApiDestination -> String)
-> ([DescribeApiDestination] -> ShowS)
-> Show DescribeApiDestination
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeApiDestination] -> ShowS
$cshowList :: [DescribeApiDestination] -> ShowS
show :: DescribeApiDestination -> String
$cshow :: DescribeApiDestination -> String
showsPrec :: Int -> DescribeApiDestination -> ShowS
$cshowsPrec :: Int -> DescribeApiDestination -> ShowS
Prelude.Show, (forall x. DescribeApiDestination -> Rep DescribeApiDestination x)
-> (forall x.
Rep DescribeApiDestination x -> DescribeApiDestination)
-> Generic DescribeApiDestination
forall x. Rep DescribeApiDestination x -> DescribeApiDestination
forall x. DescribeApiDestination -> Rep DescribeApiDestination x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeApiDestination x -> DescribeApiDestination
$cfrom :: forall x. DescribeApiDestination -> Rep DescribeApiDestination x
Prelude.Generic)
newDescribeApiDestination ::
Prelude.Text ->
DescribeApiDestination
newDescribeApiDestination :: Text -> DescribeApiDestination
newDescribeApiDestination Text
pName_ =
DescribeApiDestination' :: Text -> DescribeApiDestination
DescribeApiDestination' {$sel:name:DescribeApiDestination' :: Text
name = Text
pName_}
describeApiDestination_name :: Lens.Lens' DescribeApiDestination Prelude.Text
describeApiDestination_name :: (Text -> f Text)
-> DescribeApiDestination -> f DescribeApiDestination
describeApiDestination_name = (DescribeApiDestination -> Text)
-> (DescribeApiDestination -> Text -> DescribeApiDestination)
-> Lens DescribeApiDestination DescribeApiDestination Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeApiDestination' {Text
name :: Text
$sel:name:DescribeApiDestination' :: DescribeApiDestination -> Text
name} -> Text
name) (\s :: DescribeApiDestination
s@DescribeApiDestination' {} Text
a -> DescribeApiDestination
s {$sel:name:DescribeApiDestination' :: Text
name = Text
a} :: DescribeApiDestination)
instance Core.AWSRequest DescribeApiDestination where
type
AWSResponse DescribeApiDestination =
DescribeApiDestinationResponse
request :: DescribeApiDestination -> Request DescribeApiDestination
request = Service -> DescribeApiDestination -> Request DescribeApiDestination
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeApiDestination
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeApiDestination)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeApiDestination))
-> Logger
-> Service
-> Proxy DescribeApiDestination
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeApiDestination)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe POSIX
-> Maybe ApiDestinationHttpMethod
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe ApiDestinationState
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeApiDestinationResponse
DescribeApiDestinationResponse'
(Maybe POSIX
-> Maybe ApiDestinationHttpMethod
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe ApiDestinationState
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeApiDestinationResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe ApiDestinationHttpMethod
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe ApiDestinationState
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeApiDestinationResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CreationTime")
Either
String
(Maybe ApiDestinationHttpMethod
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe ApiDestinationState
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeApiDestinationResponse)
-> Either String (Maybe ApiDestinationHttpMethod)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe ApiDestinationState
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeApiDestinationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ApiDestinationHttpMethod)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"HttpMethod")
Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe ApiDestinationState
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeApiDestinationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe ApiDestinationState
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeApiDestinationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"InvocationEndpoint")
Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe ApiDestinationState
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeApiDestinationResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe Natural
-> Maybe ApiDestinationState
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeApiDestinationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LastModifiedTime")
Either
String
(Maybe Text
-> Maybe Natural
-> Maybe ApiDestinationState
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeApiDestinationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Natural
-> Maybe ApiDestinationState
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeApiDestinationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Name")
Either
String
(Maybe Natural
-> Maybe ApiDestinationState
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeApiDestinationResponse)
-> Either String (Maybe Natural)
-> Either
String
(Maybe ApiDestinationState
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeApiDestinationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"InvocationRateLimitPerSecond")
Either
String
(Maybe ApiDestinationState
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeApiDestinationResponse)
-> Either String (Maybe ApiDestinationState)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeApiDestinationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ApiDestinationState)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ApiDestinationState")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeApiDestinationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text -> Maybe Text -> Int -> DescribeApiDestinationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ConnectionArn")
Either
String
(Maybe Text -> Maybe Text -> Int -> DescribeApiDestinationResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Text -> Int -> DescribeApiDestinationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Description")
Either String (Maybe Text -> Int -> DescribeApiDestinationResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeApiDestinationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ApiDestinationArn")
Either String (Int -> DescribeApiDestinationResponse)
-> Either String Int
-> Either String DescribeApiDestinationResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable DescribeApiDestination
instance Prelude.NFData DescribeApiDestination
instance Core.ToHeaders DescribeApiDestination where
toHeaders :: DescribeApiDestination -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeApiDestination -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AWSEvents.DescribeApiDestination" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON DescribeApiDestination where
toJSON :: DescribeApiDestination -> Value
toJSON DescribeApiDestination' {Text
name :: Text
$sel:name:DescribeApiDestination' :: DescribeApiDestination -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
name)]
)
instance Core.ToPath DescribeApiDestination where
toPath :: DescribeApiDestination -> ByteString
toPath = ByteString -> DescribeApiDestination -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeApiDestination where
toQuery :: DescribeApiDestination -> QueryString
toQuery = QueryString -> DescribeApiDestination -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeApiDestinationResponse = DescribeApiDestinationResponse'
{
DescribeApiDestinationResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
DescribeApiDestinationResponse -> Maybe ApiDestinationHttpMethod
httpMethod :: Prelude.Maybe ApiDestinationHttpMethod,
DescribeApiDestinationResponse -> Maybe Text
invocationEndpoint :: Prelude.Maybe Prelude.Text,
DescribeApiDestinationResponse -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Core.POSIX,
DescribeApiDestinationResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
DescribeApiDestinationResponse -> Maybe Natural
invocationRateLimitPerSecond :: Prelude.Maybe Prelude.Natural,
DescribeApiDestinationResponse -> Maybe ApiDestinationState
apiDestinationState :: Prelude.Maybe ApiDestinationState,
DescribeApiDestinationResponse -> Maybe Text
connectionArn :: Prelude.Maybe Prelude.Text,
DescribeApiDestinationResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
DescribeApiDestinationResponse -> Maybe Text
apiDestinationArn :: Prelude.Maybe Prelude.Text,
DescribeApiDestinationResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeApiDestinationResponse
-> DescribeApiDestinationResponse -> Bool
(DescribeApiDestinationResponse
-> DescribeApiDestinationResponse -> Bool)
-> (DescribeApiDestinationResponse
-> DescribeApiDestinationResponse -> Bool)
-> Eq DescribeApiDestinationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeApiDestinationResponse
-> DescribeApiDestinationResponse -> Bool
$c/= :: DescribeApiDestinationResponse
-> DescribeApiDestinationResponse -> Bool
== :: DescribeApiDestinationResponse
-> DescribeApiDestinationResponse -> Bool
$c== :: DescribeApiDestinationResponse
-> DescribeApiDestinationResponse -> Bool
Prelude.Eq, ReadPrec [DescribeApiDestinationResponse]
ReadPrec DescribeApiDestinationResponse
Int -> ReadS DescribeApiDestinationResponse
ReadS [DescribeApiDestinationResponse]
(Int -> ReadS DescribeApiDestinationResponse)
-> ReadS [DescribeApiDestinationResponse]
-> ReadPrec DescribeApiDestinationResponse
-> ReadPrec [DescribeApiDestinationResponse]
-> Read DescribeApiDestinationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeApiDestinationResponse]
$creadListPrec :: ReadPrec [DescribeApiDestinationResponse]
readPrec :: ReadPrec DescribeApiDestinationResponse
$creadPrec :: ReadPrec DescribeApiDestinationResponse
readList :: ReadS [DescribeApiDestinationResponse]
$creadList :: ReadS [DescribeApiDestinationResponse]
readsPrec :: Int -> ReadS DescribeApiDestinationResponse
$creadsPrec :: Int -> ReadS DescribeApiDestinationResponse
Prelude.Read, Int -> DescribeApiDestinationResponse -> ShowS
[DescribeApiDestinationResponse] -> ShowS
DescribeApiDestinationResponse -> String
(Int -> DescribeApiDestinationResponse -> ShowS)
-> (DescribeApiDestinationResponse -> String)
-> ([DescribeApiDestinationResponse] -> ShowS)
-> Show DescribeApiDestinationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeApiDestinationResponse] -> ShowS
$cshowList :: [DescribeApiDestinationResponse] -> ShowS
show :: DescribeApiDestinationResponse -> String
$cshow :: DescribeApiDestinationResponse -> String
showsPrec :: Int -> DescribeApiDestinationResponse -> ShowS
$cshowsPrec :: Int -> DescribeApiDestinationResponse -> ShowS
Prelude.Show, (forall x.
DescribeApiDestinationResponse
-> Rep DescribeApiDestinationResponse x)
-> (forall x.
Rep DescribeApiDestinationResponse x
-> DescribeApiDestinationResponse)
-> Generic DescribeApiDestinationResponse
forall x.
Rep DescribeApiDestinationResponse x
-> DescribeApiDestinationResponse
forall x.
DescribeApiDestinationResponse
-> Rep DescribeApiDestinationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeApiDestinationResponse x
-> DescribeApiDestinationResponse
$cfrom :: forall x.
DescribeApiDestinationResponse
-> Rep DescribeApiDestinationResponse x
Prelude.Generic)
newDescribeApiDestinationResponse ::
Prelude.Int ->
DescribeApiDestinationResponse
newDescribeApiDestinationResponse :: Int -> DescribeApiDestinationResponse
newDescribeApiDestinationResponse Int
pHttpStatus_ =
DescribeApiDestinationResponse' :: Maybe POSIX
-> Maybe ApiDestinationHttpMethod
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe ApiDestinationState
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeApiDestinationResponse
DescribeApiDestinationResponse'
{ $sel:creationTime:DescribeApiDestinationResponse' :: Maybe POSIX
creationTime =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:httpMethod:DescribeApiDestinationResponse' :: Maybe ApiDestinationHttpMethod
httpMethod = Maybe ApiDestinationHttpMethod
forall a. Maybe a
Prelude.Nothing,
$sel:invocationEndpoint:DescribeApiDestinationResponse' :: Maybe Text
invocationEndpoint = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastModifiedTime:DescribeApiDestinationResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:name:DescribeApiDestinationResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:invocationRateLimitPerSecond:DescribeApiDestinationResponse' :: Maybe Natural
invocationRateLimitPerSecond =
Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:apiDestinationState:DescribeApiDestinationResponse' :: Maybe ApiDestinationState
apiDestinationState = Maybe ApiDestinationState
forall a. Maybe a
Prelude.Nothing,
$sel:connectionArn:DescribeApiDestinationResponse' :: Maybe Text
connectionArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:DescribeApiDestinationResponse' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:apiDestinationArn:DescribeApiDestinationResponse' :: Maybe Text
apiDestinationArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeApiDestinationResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeApiDestinationResponse_creationTime :: Lens.Lens' DescribeApiDestinationResponse (Prelude.Maybe Prelude.UTCTime)
describeApiDestinationResponse_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeApiDestinationResponse
-> f DescribeApiDestinationResponse
describeApiDestinationResponse_creationTime = (DescribeApiDestinationResponse -> Maybe POSIX)
-> (DescribeApiDestinationResponse
-> Maybe POSIX -> DescribeApiDestinationResponse)
-> Lens
DescribeApiDestinationResponse
DescribeApiDestinationResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeApiDestinationResponse' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:DescribeApiDestinationResponse' :: DescribeApiDestinationResponse -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: DescribeApiDestinationResponse
s@DescribeApiDestinationResponse' {} Maybe POSIX
a -> DescribeApiDestinationResponse
s {$sel:creationTime:DescribeApiDestinationResponse' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: DescribeApiDestinationResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeApiDestinationResponse
-> f DescribeApiDestinationResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeApiDestinationResponse
-> f DescribeApiDestinationResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
describeApiDestinationResponse_httpMethod :: Lens.Lens' DescribeApiDestinationResponse (Prelude.Maybe ApiDestinationHttpMethod)
describeApiDestinationResponse_httpMethod :: (Maybe ApiDestinationHttpMethod
-> f (Maybe ApiDestinationHttpMethod))
-> DescribeApiDestinationResponse
-> f DescribeApiDestinationResponse
describeApiDestinationResponse_httpMethod = (DescribeApiDestinationResponse -> Maybe ApiDestinationHttpMethod)
-> (DescribeApiDestinationResponse
-> Maybe ApiDestinationHttpMethod
-> DescribeApiDestinationResponse)
-> Lens
DescribeApiDestinationResponse
DescribeApiDestinationResponse
(Maybe ApiDestinationHttpMethod)
(Maybe ApiDestinationHttpMethod)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeApiDestinationResponse' {Maybe ApiDestinationHttpMethod
httpMethod :: Maybe ApiDestinationHttpMethod
$sel:httpMethod:DescribeApiDestinationResponse' :: DescribeApiDestinationResponse -> Maybe ApiDestinationHttpMethod
httpMethod} -> Maybe ApiDestinationHttpMethod
httpMethod) (\s :: DescribeApiDestinationResponse
s@DescribeApiDestinationResponse' {} Maybe ApiDestinationHttpMethod
a -> DescribeApiDestinationResponse
s {$sel:httpMethod:DescribeApiDestinationResponse' :: Maybe ApiDestinationHttpMethod
httpMethod = Maybe ApiDestinationHttpMethod
a} :: DescribeApiDestinationResponse)
describeApiDestinationResponse_invocationEndpoint :: Lens.Lens' DescribeApiDestinationResponse (Prelude.Maybe Prelude.Text)
describeApiDestinationResponse_invocationEndpoint :: (Maybe Text -> f (Maybe Text))
-> DescribeApiDestinationResponse
-> f DescribeApiDestinationResponse
describeApiDestinationResponse_invocationEndpoint = (DescribeApiDestinationResponse -> Maybe Text)
-> (DescribeApiDestinationResponse
-> Maybe Text -> DescribeApiDestinationResponse)
-> Lens
DescribeApiDestinationResponse
DescribeApiDestinationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeApiDestinationResponse' {Maybe Text
invocationEndpoint :: Maybe Text
$sel:invocationEndpoint:DescribeApiDestinationResponse' :: DescribeApiDestinationResponse -> Maybe Text
invocationEndpoint} -> Maybe Text
invocationEndpoint) (\s :: DescribeApiDestinationResponse
s@DescribeApiDestinationResponse' {} Maybe Text
a -> DescribeApiDestinationResponse
s {$sel:invocationEndpoint:DescribeApiDestinationResponse' :: Maybe Text
invocationEndpoint = Maybe Text
a} :: DescribeApiDestinationResponse)
describeApiDestinationResponse_lastModifiedTime :: Lens.Lens' DescribeApiDestinationResponse (Prelude.Maybe Prelude.UTCTime)
describeApiDestinationResponse_lastModifiedTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeApiDestinationResponse
-> f DescribeApiDestinationResponse
describeApiDestinationResponse_lastModifiedTime = (DescribeApiDestinationResponse -> Maybe POSIX)
-> (DescribeApiDestinationResponse
-> Maybe POSIX -> DescribeApiDestinationResponse)
-> Lens
DescribeApiDestinationResponse
DescribeApiDestinationResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeApiDestinationResponse' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:DescribeApiDestinationResponse' :: DescribeApiDestinationResponse -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: DescribeApiDestinationResponse
s@DescribeApiDestinationResponse' {} Maybe POSIX
a -> DescribeApiDestinationResponse
s {$sel:lastModifiedTime:DescribeApiDestinationResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: DescribeApiDestinationResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeApiDestinationResponse
-> f DescribeApiDestinationResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeApiDestinationResponse
-> f DescribeApiDestinationResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
describeApiDestinationResponse_name :: Lens.Lens' DescribeApiDestinationResponse (Prelude.Maybe Prelude.Text)
describeApiDestinationResponse_name :: (Maybe Text -> f (Maybe Text))
-> DescribeApiDestinationResponse
-> f DescribeApiDestinationResponse
describeApiDestinationResponse_name = (DescribeApiDestinationResponse -> Maybe Text)
-> (DescribeApiDestinationResponse
-> Maybe Text -> DescribeApiDestinationResponse)
-> Lens
DescribeApiDestinationResponse
DescribeApiDestinationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeApiDestinationResponse' {Maybe Text
name :: Maybe Text
$sel:name:DescribeApiDestinationResponse' :: DescribeApiDestinationResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: DescribeApiDestinationResponse
s@DescribeApiDestinationResponse' {} Maybe Text
a -> DescribeApiDestinationResponse
s {$sel:name:DescribeApiDestinationResponse' :: Maybe Text
name = Maybe Text
a} :: DescribeApiDestinationResponse)
describeApiDestinationResponse_invocationRateLimitPerSecond :: Lens.Lens' DescribeApiDestinationResponse (Prelude.Maybe Prelude.Natural)
describeApiDestinationResponse_invocationRateLimitPerSecond :: (Maybe Natural -> f (Maybe Natural))
-> DescribeApiDestinationResponse
-> f DescribeApiDestinationResponse
describeApiDestinationResponse_invocationRateLimitPerSecond = (DescribeApiDestinationResponse -> Maybe Natural)
-> (DescribeApiDestinationResponse
-> Maybe Natural -> DescribeApiDestinationResponse)
-> Lens
DescribeApiDestinationResponse
DescribeApiDestinationResponse
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeApiDestinationResponse' {Maybe Natural
invocationRateLimitPerSecond :: Maybe Natural
$sel:invocationRateLimitPerSecond:DescribeApiDestinationResponse' :: DescribeApiDestinationResponse -> Maybe Natural
invocationRateLimitPerSecond} -> Maybe Natural
invocationRateLimitPerSecond) (\s :: DescribeApiDestinationResponse
s@DescribeApiDestinationResponse' {} Maybe Natural
a -> DescribeApiDestinationResponse
s {$sel:invocationRateLimitPerSecond:DescribeApiDestinationResponse' :: Maybe Natural
invocationRateLimitPerSecond = Maybe Natural
a} :: DescribeApiDestinationResponse)
describeApiDestinationResponse_apiDestinationState :: Lens.Lens' DescribeApiDestinationResponse (Prelude.Maybe ApiDestinationState)
describeApiDestinationResponse_apiDestinationState :: (Maybe ApiDestinationState -> f (Maybe ApiDestinationState))
-> DescribeApiDestinationResponse
-> f DescribeApiDestinationResponse
describeApiDestinationResponse_apiDestinationState = (DescribeApiDestinationResponse -> Maybe ApiDestinationState)
-> (DescribeApiDestinationResponse
-> Maybe ApiDestinationState -> DescribeApiDestinationResponse)
-> Lens
DescribeApiDestinationResponse
DescribeApiDestinationResponse
(Maybe ApiDestinationState)
(Maybe ApiDestinationState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeApiDestinationResponse' {Maybe ApiDestinationState
apiDestinationState :: Maybe ApiDestinationState
$sel:apiDestinationState:DescribeApiDestinationResponse' :: DescribeApiDestinationResponse -> Maybe ApiDestinationState
apiDestinationState} -> Maybe ApiDestinationState
apiDestinationState) (\s :: DescribeApiDestinationResponse
s@DescribeApiDestinationResponse' {} Maybe ApiDestinationState
a -> DescribeApiDestinationResponse
s {$sel:apiDestinationState:DescribeApiDestinationResponse' :: Maybe ApiDestinationState
apiDestinationState = Maybe ApiDestinationState
a} :: DescribeApiDestinationResponse)
describeApiDestinationResponse_connectionArn :: Lens.Lens' DescribeApiDestinationResponse (Prelude.Maybe Prelude.Text)
describeApiDestinationResponse_connectionArn :: (Maybe Text -> f (Maybe Text))
-> DescribeApiDestinationResponse
-> f DescribeApiDestinationResponse
describeApiDestinationResponse_connectionArn = (DescribeApiDestinationResponse -> Maybe Text)
-> (DescribeApiDestinationResponse
-> Maybe Text -> DescribeApiDestinationResponse)
-> Lens
DescribeApiDestinationResponse
DescribeApiDestinationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeApiDestinationResponse' {Maybe Text
connectionArn :: Maybe Text
$sel:connectionArn:DescribeApiDestinationResponse' :: DescribeApiDestinationResponse -> Maybe Text
connectionArn} -> Maybe Text
connectionArn) (\s :: DescribeApiDestinationResponse
s@DescribeApiDestinationResponse' {} Maybe Text
a -> DescribeApiDestinationResponse
s {$sel:connectionArn:DescribeApiDestinationResponse' :: Maybe Text
connectionArn = Maybe Text
a} :: DescribeApiDestinationResponse)
describeApiDestinationResponse_description :: Lens.Lens' DescribeApiDestinationResponse (Prelude.Maybe Prelude.Text)
describeApiDestinationResponse_description :: (Maybe Text -> f (Maybe Text))
-> DescribeApiDestinationResponse
-> f DescribeApiDestinationResponse
describeApiDestinationResponse_description = (DescribeApiDestinationResponse -> Maybe Text)
-> (DescribeApiDestinationResponse
-> Maybe Text -> DescribeApiDestinationResponse)
-> Lens
DescribeApiDestinationResponse
DescribeApiDestinationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeApiDestinationResponse' {Maybe Text
description :: Maybe Text
$sel:description:DescribeApiDestinationResponse' :: DescribeApiDestinationResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: DescribeApiDestinationResponse
s@DescribeApiDestinationResponse' {} Maybe Text
a -> DescribeApiDestinationResponse
s {$sel:description:DescribeApiDestinationResponse' :: Maybe Text
description = Maybe Text
a} :: DescribeApiDestinationResponse)
describeApiDestinationResponse_apiDestinationArn :: Lens.Lens' DescribeApiDestinationResponse (Prelude.Maybe Prelude.Text)
describeApiDestinationResponse_apiDestinationArn :: (Maybe Text -> f (Maybe Text))
-> DescribeApiDestinationResponse
-> f DescribeApiDestinationResponse
describeApiDestinationResponse_apiDestinationArn = (DescribeApiDestinationResponse -> Maybe Text)
-> (DescribeApiDestinationResponse
-> Maybe Text -> DescribeApiDestinationResponse)
-> Lens
DescribeApiDestinationResponse
DescribeApiDestinationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeApiDestinationResponse' {Maybe Text
apiDestinationArn :: Maybe Text
$sel:apiDestinationArn:DescribeApiDestinationResponse' :: DescribeApiDestinationResponse -> Maybe Text
apiDestinationArn} -> Maybe Text
apiDestinationArn) (\s :: DescribeApiDestinationResponse
s@DescribeApiDestinationResponse' {} Maybe Text
a -> DescribeApiDestinationResponse
s {$sel:apiDestinationArn:DescribeApiDestinationResponse' :: Maybe Text
apiDestinationArn = Maybe Text
a} :: DescribeApiDestinationResponse)
describeApiDestinationResponse_httpStatus :: Lens.Lens' DescribeApiDestinationResponse Prelude.Int
describeApiDestinationResponse_httpStatus :: (Int -> f Int)
-> DescribeApiDestinationResponse
-> f DescribeApiDestinationResponse
describeApiDestinationResponse_httpStatus = (DescribeApiDestinationResponse -> Int)
-> (DescribeApiDestinationResponse
-> Int -> DescribeApiDestinationResponse)
-> Lens
DescribeApiDestinationResponse
DescribeApiDestinationResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeApiDestinationResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeApiDestinationResponse' :: DescribeApiDestinationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeApiDestinationResponse
s@DescribeApiDestinationResponse' {} Int
a -> DescribeApiDestinationResponse
s {$sel:httpStatus:DescribeApiDestinationResponse' :: Int
httpStatus = Int
a} :: DescribeApiDestinationResponse)
instance
Prelude.NFData
DescribeApiDestinationResponse