{-# 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.AppIntegrationS.GetEventIntegration
(
GetEventIntegration (..),
newGetEventIntegration,
getEventIntegration_name,
GetEventIntegrationResponse (..),
newGetEventIntegrationResponse,
getEventIntegrationResponse_eventBridgeBus,
getEventIntegrationResponse_eventFilter,
getEventIntegrationResponse_eventIntegrationArn,
getEventIntegrationResponse_name,
getEventIntegrationResponse_description,
getEventIntegrationResponse_tags,
getEventIntegrationResponse_httpStatus,
)
where
import Amazonka.AppIntegrationS.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 GetEventIntegration = GetEventIntegration'
{
GetEventIntegration -> Text
name :: Prelude.Text
}
deriving (GetEventIntegration -> GetEventIntegration -> Bool
(GetEventIntegration -> GetEventIntegration -> Bool)
-> (GetEventIntegration -> GetEventIntegration -> Bool)
-> Eq GetEventIntegration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetEventIntegration -> GetEventIntegration -> Bool
$c/= :: GetEventIntegration -> GetEventIntegration -> Bool
== :: GetEventIntegration -> GetEventIntegration -> Bool
$c== :: GetEventIntegration -> GetEventIntegration -> Bool
Prelude.Eq, ReadPrec [GetEventIntegration]
ReadPrec GetEventIntegration
Int -> ReadS GetEventIntegration
ReadS [GetEventIntegration]
(Int -> ReadS GetEventIntegration)
-> ReadS [GetEventIntegration]
-> ReadPrec GetEventIntegration
-> ReadPrec [GetEventIntegration]
-> Read GetEventIntegration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetEventIntegration]
$creadListPrec :: ReadPrec [GetEventIntegration]
readPrec :: ReadPrec GetEventIntegration
$creadPrec :: ReadPrec GetEventIntegration
readList :: ReadS [GetEventIntegration]
$creadList :: ReadS [GetEventIntegration]
readsPrec :: Int -> ReadS GetEventIntegration
$creadsPrec :: Int -> ReadS GetEventIntegration
Prelude.Read, Int -> GetEventIntegration -> ShowS
[GetEventIntegration] -> ShowS
GetEventIntegration -> String
(Int -> GetEventIntegration -> ShowS)
-> (GetEventIntegration -> String)
-> ([GetEventIntegration] -> ShowS)
-> Show GetEventIntegration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetEventIntegration] -> ShowS
$cshowList :: [GetEventIntegration] -> ShowS
show :: GetEventIntegration -> String
$cshow :: GetEventIntegration -> String
showsPrec :: Int -> GetEventIntegration -> ShowS
$cshowsPrec :: Int -> GetEventIntegration -> ShowS
Prelude.Show, (forall x. GetEventIntegration -> Rep GetEventIntegration x)
-> (forall x. Rep GetEventIntegration x -> GetEventIntegration)
-> Generic GetEventIntegration
forall x. Rep GetEventIntegration x -> GetEventIntegration
forall x. GetEventIntegration -> Rep GetEventIntegration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetEventIntegration x -> GetEventIntegration
$cfrom :: forall x. GetEventIntegration -> Rep GetEventIntegration x
Prelude.Generic)
newGetEventIntegration ::
Prelude.Text ->
GetEventIntegration
newGetEventIntegration :: Text -> GetEventIntegration
newGetEventIntegration Text
pName_ =
GetEventIntegration' :: Text -> GetEventIntegration
GetEventIntegration' {$sel:name:GetEventIntegration' :: Text
name = Text
pName_}
getEventIntegration_name :: Lens.Lens' GetEventIntegration Prelude.Text
getEventIntegration_name :: (Text -> f Text) -> GetEventIntegration -> f GetEventIntegration
getEventIntegration_name = (GetEventIntegration -> Text)
-> (GetEventIntegration -> Text -> GetEventIntegration)
-> Lens GetEventIntegration GetEventIntegration Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEventIntegration' {Text
name :: Text
$sel:name:GetEventIntegration' :: GetEventIntegration -> Text
name} -> Text
name) (\s :: GetEventIntegration
s@GetEventIntegration' {} Text
a -> GetEventIntegration
s {$sel:name:GetEventIntegration' :: Text
name = Text
a} :: GetEventIntegration)
instance Core.AWSRequest GetEventIntegration where
type
AWSResponse GetEventIntegration =
GetEventIntegrationResponse
request :: GetEventIntegration -> Request GetEventIntegration
request = Service -> GetEventIntegration -> Request GetEventIntegration
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetEventIntegration
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetEventIntegration)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetEventIntegration))
-> Logger
-> Service
-> Proxy GetEventIntegration
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetEventIntegration)))
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 Text
-> Maybe EventFilter
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetEventIntegrationResponse
GetEventIntegrationResponse'
(Maybe Text
-> Maybe EventFilter
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetEventIntegrationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe EventFilter
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetEventIntegrationResponse)
forall (f :: * -> *) a b. Functor 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
"EventBridgeBus")
Either
String
(Maybe EventFilter
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetEventIntegrationResponse)
-> Either String (Maybe EventFilter)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetEventIntegrationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe EventFilter)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"EventFilter")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetEventIntegrationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetEventIntegrationResponse)
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
"EventIntegrationArn")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetEventIntegrationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe (HashMap Text Text) -> Int -> GetEventIntegrationResponse)
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 Text
-> Maybe (HashMap Text Text) -> Int -> GetEventIntegrationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (HashMap Text Text) -> Int -> GetEventIntegrationResponse)
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 (HashMap Text Text) -> Int -> GetEventIntegrationResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> GetEventIntegrationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> GetEventIntegrationResponse)
-> Either String Int -> Either String GetEventIntegrationResponse
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 GetEventIntegration
instance Prelude.NFData GetEventIntegration
instance Core.ToHeaders GetEventIntegration where
toHeaders :: GetEventIntegration -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetEventIntegration -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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.ToPath GetEventIntegration where
toPath :: GetEventIntegration -> ByteString
toPath GetEventIntegration' {Text
name :: Text
$sel:name:GetEventIntegration' :: GetEventIntegration -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/eventIntegrations/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
name]
instance Core.ToQuery GetEventIntegration where
toQuery :: GetEventIntegration -> QueryString
toQuery = QueryString -> GetEventIntegration -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetEventIntegrationResponse = GetEventIntegrationResponse'
{
GetEventIntegrationResponse -> Maybe Text
eventBridgeBus :: Prelude.Maybe Prelude.Text,
GetEventIntegrationResponse -> Maybe EventFilter
eventFilter :: Prelude.Maybe EventFilter,
GetEventIntegrationResponse -> Maybe Text
eventIntegrationArn :: Prelude.Maybe Prelude.Text,
GetEventIntegrationResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
GetEventIntegrationResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
GetEventIntegrationResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
GetEventIntegrationResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetEventIntegrationResponse -> GetEventIntegrationResponse -> Bool
(GetEventIntegrationResponse
-> GetEventIntegrationResponse -> Bool)
-> (GetEventIntegrationResponse
-> GetEventIntegrationResponse -> Bool)
-> Eq GetEventIntegrationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetEventIntegrationResponse -> GetEventIntegrationResponse -> Bool
$c/= :: GetEventIntegrationResponse -> GetEventIntegrationResponse -> Bool
== :: GetEventIntegrationResponse -> GetEventIntegrationResponse -> Bool
$c== :: GetEventIntegrationResponse -> GetEventIntegrationResponse -> Bool
Prelude.Eq, ReadPrec [GetEventIntegrationResponse]
ReadPrec GetEventIntegrationResponse
Int -> ReadS GetEventIntegrationResponse
ReadS [GetEventIntegrationResponse]
(Int -> ReadS GetEventIntegrationResponse)
-> ReadS [GetEventIntegrationResponse]
-> ReadPrec GetEventIntegrationResponse
-> ReadPrec [GetEventIntegrationResponse]
-> Read GetEventIntegrationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetEventIntegrationResponse]
$creadListPrec :: ReadPrec [GetEventIntegrationResponse]
readPrec :: ReadPrec GetEventIntegrationResponse
$creadPrec :: ReadPrec GetEventIntegrationResponse
readList :: ReadS [GetEventIntegrationResponse]
$creadList :: ReadS [GetEventIntegrationResponse]
readsPrec :: Int -> ReadS GetEventIntegrationResponse
$creadsPrec :: Int -> ReadS GetEventIntegrationResponse
Prelude.Read, Int -> GetEventIntegrationResponse -> ShowS
[GetEventIntegrationResponse] -> ShowS
GetEventIntegrationResponse -> String
(Int -> GetEventIntegrationResponse -> ShowS)
-> (GetEventIntegrationResponse -> String)
-> ([GetEventIntegrationResponse] -> ShowS)
-> Show GetEventIntegrationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetEventIntegrationResponse] -> ShowS
$cshowList :: [GetEventIntegrationResponse] -> ShowS
show :: GetEventIntegrationResponse -> String
$cshow :: GetEventIntegrationResponse -> String
showsPrec :: Int -> GetEventIntegrationResponse -> ShowS
$cshowsPrec :: Int -> GetEventIntegrationResponse -> ShowS
Prelude.Show, (forall x.
GetEventIntegrationResponse -> Rep GetEventIntegrationResponse x)
-> (forall x.
Rep GetEventIntegrationResponse x -> GetEventIntegrationResponse)
-> Generic GetEventIntegrationResponse
forall x.
Rep GetEventIntegrationResponse x -> GetEventIntegrationResponse
forall x.
GetEventIntegrationResponse -> Rep GetEventIntegrationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetEventIntegrationResponse x -> GetEventIntegrationResponse
$cfrom :: forall x.
GetEventIntegrationResponse -> Rep GetEventIntegrationResponse x
Prelude.Generic)
newGetEventIntegrationResponse ::
Prelude.Int ->
GetEventIntegrationResponse
newGetEventIntegrationResponse :: Int -> GetEventIntegrationResponse
newGetEventIntegrationResponse Int
pHttpStatus_ =
GetEventIntegrationResponse' :: Maybe Text
-> Maybe EventFilter
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetEventIntegrationResponse
GetEventIntegrationResponse'
{ $sel:eventBridgeBus:GetEventIntegrationResponse' :: Maybe Text
eventBridgeBus =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:eventFilter:GetEventIntegrationResponse' :: Maybe EventFilter
eventFilter = Maybe EventFilter
forall a. Maybe a
Prelude.Nothing,
$sel:eventIntegrationArn:GetEventIntegrationResponse' :: Maybe Text
eventIntegrationArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:name:GetEventIntegrationResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:GetEventIntegrationResponse' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:GetEventIntegrationResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetEventIntegrationResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getEventIntegrationResponse_eventBridgeBus :: Lens.Lens' GetEventIntegrationResponse (Prelude.Maybe Prelude.Text)
getEventIntegrationResponse_eventBridgeBus :: (Maybe Text -> f (Maybe Text))
-> GetEventIntegrationResponse -> f GetEventIntegrationResponse
getEventIntegrationResponse_eventBridgeBus = (GetEventIntegrationResponse -> Maybe Text)
-> (GetEventIntegrationResponse
-> Maybe Text -> GetEventIntegrationResponse)
-> Lens
GetEventIntegrationResponse
GetEventIntegrationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEventIntegrationResponse' {Maybe Text
eventBridgeBus :: Maybe Text
$sel:eventBridgeBus:GetEventIntegrationResponse' :: GetEventIntegrationResponse -> Maybe Text
eventBridgeBus} -> Maybe Text
eventBridgeBus) (\s :: GetEventIntegrationResponse
s@GetEventIntegrationResponse' {} Maybe Text
a -> GetEventIntegrationResponse
s {$sel:eventBridgeBus:GetEventIntegrationResponse' :: Maybe Text
eventBridgeBus = Maybe Text
a} :: GetEventIntegrationResponse)
getEventIntegrationResponse_eventFilter :: Lens.Lens' GetEventIntegrationResponse (Prelude.Maybe EventFilter)
getEventIntegrationResponse_eventFilter :: (Maybe EventFilter -> f (Maybe EventFilter))
-> GetEventIntegrationResponse -> f GetEventIntegrationResponse
getEventIntegrationResponse_eventFilter = (GetEventIntegrationResponse -> Maybe EventFilter)
-> (GetEventIntegrationResponse
-> Maybe EventFilter -> GetEventIntegrationResponse)
-> Lens
GetEventIntegrationResponse
GetEventIntegrationResponse
(Maybe EventFilter)
(Maybe EventFilter)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEventIntegrationResponse' {Maybe EventFilter
eventFilter :: Maybe EventFilter
$sel:eventFilter:GetEventIntegrationResponse' :: GetEventIntegrationResponse -> Maybe EventFilter
eventFilter} -> Maybe EventFilter
eventFilter) (\s :: GetEventIntegrationResponse
s@GetEventIntegrationResponse' {} Maybe EventFilter
a -> GetEventIntegrationResponse
s {$sel:eventFilter:GetEventIntegrationResponse' :: Maybe EventFilter
eventFilter = Maybe EventFilter
a} :: GetEventIntegrationResponse)
getEventIntegrationResponse_eventIntegrationArn :: Lens.Lens' GetEventIntegrationResponse (Prelude.Maybe Prelude.Text)
getEventIntegrationResponse_eventIntegrationArn :: (Maybe Text -> f (Maybe Text))
-> GetEventIntegrationResponse -> f GetEventIntegrationResponse
getEventIntegrationResponse_eventIntegrationArn = (GetEventIntegrationResponse -> Maybe Text)
-> (GetEventIntegrationResponse
-> Maybe Text -> GetEventIntegrationResponse)
-> Lens
GetEventIntegrationResponse
GetEventIntegrationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEventIntegrationResponse' {Maybe Text
eventIntegrationArn :: Maybe Text
$sel:eventIntegrationArn:GetEventIntegrationResponse' :: GetEventIntegrationResponse -> Maybe Text
eventIntegrationArn} -> Maybe Text
eventIntegrationArn) (\s :: GetEventIntegrationResponse
s@GetEventIntegrationResponse' {} Maybe Text
a -> GetEventIntegrationResponse
s {$sel:eventIntegrationArn:GetEventIntegrationResponse' :: Maybe Text
eventIntegrationArn = Maybe Text
a} :: GetEventIntegrationResponse)
getEventIntegrationResponse_name :: Lens.Lens' GetEventIntegrationResponse (Prelude.Maybe Prelude.Text)
getEventIntegrationResponse_name :: (Maybe Text -> f (Maybe Text))
-> GetEventIntegrationResponse -> f GetEventIntegrationResponse
getEventIntegrationResponse_name = (GetEventIntegrationResponse -> Maybe Text)
-> (GetEventIntegrationResponse
-> Maybe Text -> GetEventIntegrationResponse)
-> Lens
GetEventIntegrationResponse
GetEventIntegrationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEventIntegrationResponse' {Maybe Text
name :: Maybe Text
$sel:name:GetEventIntegrationResponse' :: GetEventIntegrationResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: GetEventIntegrationResponse
s@GetEventIntegrationResponse' {} Maybe Text
a -> GetEventIntegrationResponse
s {$sel:name:GetEventIntegrationResponse' :: Maybe Text
name = Maybe Text
a} :: GetEventIntegrationResponse)
getEventIntegrationResponse_description :: Lens.Lens' GetEventIntegrationResponse (Prelude.Maybe Prelude.Text)
getEventIntegrationResponse_description :: (Maybe Text -> f (Maybe Text))
-> GetEventIntegrationResponse -> f GetEventIntegrationResponse
getEventIntegrationResponse_description = (GetEventIntegrationResponse -> Maybe Text)
-> (GetEventIntegrationResponse
-> Maybe Text -> GetEventIntegrationResponse)
-> Lens
GetEventIntegrationResponse
GetEventIntegrationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEventIntegrationResponse' {Maybe Text
description :: Maybe Text
$sel:description:GetEventIntegrationResponse' :: GetEventIntegrationResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: GetEventIntegrationResponse
s@GetEventIntegrationResponse' {} Maybe Text
a -> GetEventIntegrationResponse
s {$sel:description:GetEventIntegrationResponse' :: Maybe Text
description = Maybe Text
a} :: GetEventIntegrationResponse)
getEventIntegrationResponse_tags :: Lens.Lens' GetEventIntegrationResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
getEventIntegrationResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetEventIntegrationResponse -> f GetEventIntegrationResponse
getEventIntegrationResponse_tags = (GetEventIntegrationResponse -> Maybe (HashMap Text Text))
-> (GetEventIntegrationResponse
-> Maybe (HashMap Text Text) -> GetEventIntegrationResponse)
-> Lens
GetEventIntegrationResponse
GetEventIntegrationResponse
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEventIntegrationResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:GetEventIntegrationResponse' :: GetEventIntegrationResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: GetEventIntegrationResponse
s@GetEventIntegrationResponse' {} Maybe (HashMap Text Text)
a -> GetEventIntegrationResponse
s {$sel:tags:GetEventIntegrationResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: GetEventIntegrationResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetEventIntegrationResponse -> f GetEventIntegrationResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetEventIntegrationResponse
-> f GetEventIntegrationResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
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
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getEventIntegrationResponse_httpStatus :: Lens.Lens' GetEventIntegrationResponse Prelude.Int
getEventIntegrationResponse_httpStatus :: (Int -> f Int)
-> GetEventIntegrationResponse -> f GetEventIntegrationResponse
getEventIntegrationResponse_httpStatus = (GetEventIntegrationResponse -> Int)
-> (GetEventIntegrationResponse
-> Int -> GetEventIntegrationResponse)
-> Lens
GetEventIntegrationResponse GetEventIntegrationResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetEventIntegrationResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetEventIntegrationResponse' :: GetEventIntegrationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetEventIntegrationResponse
s@GetEventIntegrationResponse' {} Int
a -> GetEventIntegrationResponse
s {$sel:httpStatus:GetEventIntegrationResponse' :: Int
httpStatus = Int
a} :: GetEventIntegrationResponse)
instance Prelude.NFData GetEventIntegrationResponse