{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.AppIntegrationS.GetEventIntegration
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns information about the event integration.
module Amazonka.AppIntegrationS.GetEventIntegration
  ( -- * Creating a Request
    GetEventIntegration (..),
    newGetEventIntegration,

    -- * Request Lenses
    getEventIntegration_name,

    -- * Destructuring the Response
    GetEventIntegrationResponse (..),
    newGetEventIntegrationResponse,

    -- * Response Lenses
    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

-- | /See:/ 'newGetEventIntegration' smart constructor.
data GetEventIntegration = GetEventIntegration'
  { -- | The name of the event integration.
    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)

-- |
-- Create a value of 'GetEventIntegration' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'name', 'getEventIntegration_name' - The name of the event integration.
newGetEventIntegration ::
  -- | 'name'
  Prelude.Text ->
  GetEventIntegration
newGetEventIntegration :: Text -> GetEventIntegration
newGetEventIntegration Text
pName_ =
  GetEventIntegration' :: Text -> GetEventIntegration
GetEventIntegration' {$sel:name:GetEventIntegration' :: Text
name = Text
pName_}

-- | The name of the event integration.
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

-- | /See:/ 'newGetEventIntegrationResponse' smart constructor.
data GetEventIntegrationResponse = GetEventIntegrationResponse'
  { -- | The EventBridge bus.
    GetEventIntegrationResponse -> Maybe Text
eventBridgeBus :: Prelude.Maybe Prelude.Text,
    -- | The event filter.
    GetEventIntegrationResponse -> Maybe EventFilter
eventFilter :: Prelude.Maybe EventFilter,
    -- | The Amazon Resource Name (ARN) for the event integration.
    GetEventIntegrationResponse -> Maybe Text
eventIntegrationArn :: Prelude.Maybe Prelude.Text,
    -- | The name of the event integration.
    GetEventIntegrationResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The description of the event integration.
    GetEventIntegrationResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | One or more tags.
    GetEventIntegrationResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    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)

-- |
-- Create a value of 'GetEventIntegrationResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'eventBridgeBus', 'getEventIntegrationResponse_eventBridgeBus' - The EventBridge bus.
--
-- 'eventFilter', 'getEventIntegrationResponse_eventFilter' - The event filter.
--
-- 'eventIntegrationArn', 'getEventIntegrationResponse_eventIntegrationArn' - The Amazon Resource Name (ARN) for the event integration.
--
-- 'name', 'getEventIntegrationResponse_name' - The name of the event integration.
--
-- 'description', 'getEventIntegrationResponse_description' - The description of the event integration.
--
-- 'tags', 'getEventIntegrationResponse_tags' - One or more tags.
--
-- 'httpStatus', 'getEventIntegrationResponse_httpStatus' - The response's http status code.
newGetEventIntegrationResponse ::
  -- | 'httpStatus'
  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_
    }

-- | The EventBridge bus.
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)

-- | The event filter.
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)

-- | The Amazon Resource Name (ARN) for the event integration.
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)

-- | The name of the event integration.
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)

-- | The description of the event integration.
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)

-- | One or more tags.
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

-- | The response's http status code.
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