{-# 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.GroundStation.GetDataflowEndpointGroup
-- 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 the dataflow endpoint group.
module Amazonka.GroundStation.GetDataflowEndpointGroup
  ( -- * Creating a Request
    GetDataflowEndpointGroup (..),
    newGetDataflowEndpointGroup,

    -- * Request Lenses
    getDataflowEndpointGroup_dataflowEndpointGroupId,

    -- * Destructuring the Response
    GetDataflowEndpointGroupResponse (..),
    newGetDataflowEndpointGroupResponse,

    -- * Response Lenses
    getDataflowEndpointGroupResponse_endpointsDetails,
    getDataflowEndpointGroupResponse_dataflowEndpointGroupArn,
    getDataflowEndpointGroupResponse_dataflowEndpointGroupId,
    getDataflowEndpointGroupResponse_tags,
    getDataflowEndpointGroupResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.GroundStation.Types
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:/ 'newGetDataflowEndpointGroup' smart constructor.
data GetDataflowEndpointGroup = GetDataflowEndpointGroup'
  { -- | UUID of a dataflow endpoint group.
    GetDataflowEndpointGroup -> Text
dataflowEndpointGroupId :: Prelude.Text
  }
  deriving (GetDataflowEndpointGroup -> GetDataflowEndpointGroup -> Bool
(GetDataflowEndpointGroup -> GetDataflowEndpointGroup -> Bool)
-> (GetDataflowEndpointGroup -> GetDataflowEndpointGroup -> Bool)
-> Eq GetDataflowEndpointGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetDataflowEndpointGroup -> GetDataflowEndpointGroup -> Bool
$c/= :: GetDataflowEndpointGroup -> GetDataflowEndpointGroup -> Bool
== :: GetDataflowEndpointGroup -> GetDataflowEndpointGroup -> Bool
$c== :: GetDataflowEndpointGroup -> GetDataflowEndpointGroup -> Bool
Prelude.Eq, ReadPrec [GetDataflowEndpointGroup]
ReadPrec GetDataflowEndpointGroup
Int -> ReadS GetDataflowEndpointGroup
ReadS [GetDataflowEndpointGroup]
(Int -> ReadS GetDataflowEndpointGroup)
-> ReadS [GetDataflowEndpointGroup]
-> ReadPrec GetDataflowEndpointGroup
-> ReadPrec [GetDataflowEndpointGroup]
-> Read GetDataflowEndpointGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetDataflowEndpointGroup]
$creadListPrec :: ReadPrec [GetDataflowEndpointGroup]
readPrec :: ReadPrec GetDataflowEndpointGroup
$creadPrec :: ReadPrec GetDataflowEndpointGroup
readList :: ReadS [GetDataflowEndpointGroup]
$creadList :: ReadS [GetDataflowEndpointGroup]
readsPrec :: Int -> ReadS GetDataflowEndpointGroup
$creadsPrec :: Int -> ReadS GetDataflowEndpointGroup
Prelude.Read, Int -> GetDataflowEndpointGroup -> ShowS
[GetDataflowEndpointGroup] -> ShowS
GetDataflowEndpointGroup -> String
(Int -> GetDataflowEndpointGroup -> ShowS)
-> (GetDataflowEndpointGroup -> String)
-> ([GetDataflowEndpointGroup] -> ShowS)
-> Show GetDataflowEndpointGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetDataflowEndpointGroup] -> ShowS
$cshowList :: [GetDataflowEndpointGroup] -> ShowS
show :: GetDataflowEndpointGroup -> String
$cshow :: GetDataflowEndpointGroup -> String
showsPrec :: Int -> GetDataflowEndpointGroup -> ShowS
$cshowsPrec :: Int -> GetDataflowEndpointGroup -> ShowS
Prelude.Show, (forall x.
 GetDataflowEndpointGroup -> Rep GetDataflowEndpointGroup x)
-> (forall x.
    Rep GetDataflowEndpointGroup x -> GetDataflowEndpointGroup)
-> Generic GetDataflowEndpointGroup
forall x.
Rep GetDataflowEndpointGroup x -> GetDataflowEndpointGroup
forall x.
GetDataflowEndpointGroup -> Rep GetDataflowEndpointGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetDataflowEndpointGroup x -> GetDataflowEndpointGroup
$cfrom :: forall x.
GetDataflowEndpointGroup -> Rep GetDataflowEndpointGroup x
Prelude.Generic)

-- |
-- Create a value of 'GetDataflowEndpointGroup' 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:
--
-- 'dataflowEndpointGroupId', 'getDataflowEndpointGroup_dataflowEndpointGroupId' - UUID of a dataflow endpoint group.
newGetDataflowEndpointGroup ::
  -- | 'dataflowEndpointGroupId'
  Prelude.Text ->
  GetDataflowEndpointGroup
newGetDataflowEndpointGroup :: Text -> GetDataflowEndpointGroup
newGetDataflowEndpointGroup Text
pDataflowEndpointGroupId_ =
  GetDataflowEndpointGroup' :: Text -> GetDataflowEndpointGroup
GetDataflowEndpointGroup'
    { $sel:dataflowEndpointGroupId:GetDataflowEndpointGroup' :: Text
dataflowEndpointGroupId =
        Text
pDataflowEndpointGroupId_
    }

-- | UUID of a dataflow endpoint group.
getDataflowEndpointGroup_dataflowEndpointGroupId :: Lens.Lens' GetDataflowEndpointGroup Prelude.Text
getDataflowEndpointGroup_dataflowEndpointGroupId :: (Text -> f Text)
-> GetDataflowEndpointGroup -> f GetDataflowEndpointGroup
getDataflowEndpointGroup_dataflowEndpointGroupId = (GetDataflowEndpointGroup -> Text)
-> (GetDataflowEndpointGroup -> Text -> GetDataflowEndpointGroup)
-> Lens GetDataflowEndpointGroup GetDataflowEndpointGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDataflowEndpointGroup' {Text
dataflowEndpointGroupId :: Text
$sel:dataflowEndpointGroupId:GetDataflowEndpointGroup' :: GetDataflowEndpointGroup -> Text
dataflowEndpointGroupId} -> Text
dataflowEndpointGroupId) (\s :: GetDataflowEndpointGroup
s@GetDataflowEndpointGroup' {} Text
a -> GetDataflowEndpointGroup
s {$sel:dataflowEndpointGroupId:GetDataflowEndpointGroup' :: Text
dataflowEndpointGroupId = Text
a} :: GetDataflowEndpointGroup)

instance Core.AWSRequest GetDataflowEndpointGroup where
  type
    AWSResponse GetDataflowEndpointGroup =
      GetDataflowEndpointGroupResponse
  request :: GetDataflowEndpointGroup -> Request GetDataflowEndpointGroup
request = Service
-> GetDataflowEndpointGroup -> Request GetDataflowEndpointGroup
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy GetDataflowEndpointGroup
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetDataflowEndpointGroup)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse GetDataflowEndpointGroup))
-> Logger
-> Service
-> Proxy GetDataflowEndpointGroup
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetDataflowEndpointGroup)))
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 [EndpointDetails]
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetDataflowEndpointGroupResponse
GetDataflowEndpointGroupResponse'
            (Maybe [EndpointDetails]
 -> Maybe Text
 -> Maybe Text
 -> Maybe (HashMap Text Text)
 -> Int
 -> GetDataflowEndpointGroupResponse)
-> Either String (Maybe [EndpointDetails])
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> GetDataflowEndpointGroupResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object -> Text -> Either String (Maybe (Maybe [EndpointDetails]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"endpointsDetails"
                            Either String (Maybe (Maybe [EndpointDetails]))
-> Maybe [EndpointDetails]
-> Either String (Maybe [EndpointDetails])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [EndpointDetails]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> GetDataflowEndpointGroupResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> GetDataflowEndpointGroupResponse)
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
"dataflowEndpointGroupArn")
            Either
  String
  (Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> GetDataflowEndpointGroupResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe (HashMap Text Text)
      -> Int -> GetDataflowEndpointGroupResponse)
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
"dataflowEndpointGroupId")
            Either
  String
  (Maybe (HashMap Text Text)
   -> Int -> GetDataflowEndpointGroupResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> GetDataflowEndpointGroupResponse)
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 -> GetDataflowEndpointGroupResponse)
-> Either String Int
-> Either String GetDataflowEndpointGroupResponse
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 GetDataflowEndpointGroup

instance Prelude.NFData GetDataflowEndpointGroup

instance Core.ToHeaders GetDataflowEndpointGroup where
  toHeaders :: GetDataflowEndpointGroup -> ResponseHeaders
toHeaders =
    ResponseHeaders -> GetDataflowEndpointGroup -> 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 GetDataflowEndpointGroup where
  toPath :: GetDataflowEndpointGroup -> ByteString
toPath GetDataflowEndpointGroup' {Text
dataflowEndpointGroupId :: Text
$sel:dataflowEndpointGroupId:GetDataflowEndpointGroup' :: GetDataflowEndpointGroup -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/dataflowEndpointGroup/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
dataflowEndpointGroupId
      ]

instance Core.ToQuery GetDataflowEndpointGroup where
  toQuery :: GetDataflowEndpointGroup -> QueryString
toQuery = QueryString -> GetDataflowEndpointGroup -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- |
--
-- /See:/ 'newGetDataflowEndpointGroupResponse' smart constructor.
data GetDataflowEndpointGroupResponse = GetDataflowEndpointGroupResponse'
  { -- | Details of a dataflow endpoint.
    GetDataflowEndpointGroupResponse -> Maybe [EndpointDetails]
endpointsDetails :: Prelude.Maybe [EndpointDetails],
    -- | ARN of a dataflow endpoint group.
    GetDataflowEndpointGroupResponse -> Maybe Text
dataflowEndpointGroupArn :: Prelude.Maybe Prelude.Text,
    -- | UUID of a dataflow endpoint group.
    GetDataflowEndpointGroupResponse -> Maybe Text
dataflowEndpointGroupId :: Prelude.Maybe Prelude.Text,
    -- | Tags assigned to a dataflow endpoint group.
    GetDataflowEndpointGroupResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    GetDataflowEndpointGroupResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetDataflowEndpointGroupResponse
-> GetDataflowEndpointGroupResponse -> Bool
(GetDataflowEndpointGroupResponse
 -> GetDataflowEndpointGroupResponse -> Bool)
-> (GetDataflowEndpointGroupResponse
    -> GetDataflowEndpointGroupResponse -> Bool)
-> Eq GetDataflowEndpointGroupResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetDataflowEndpointGroupResponse
-> GetDataflowEndpointGroupResponse -> Bool
$c/= :: GetDataflowEndpointGroupResponse
-> GetDataflowEndpointGroupResponse -> Bool
== :: GetDataflowEndpointGroupResponse
-> GetDataflowEndpointGroupResponse -> Bool
$c== :: GetDataflowEndpointGroupResponse
-> GetDataflowEndpointGroupResponse -> Bool
Prelude.Eq, ReadPrec [GetDataflowEndpointGroupResponse]
ReadPrec GetDataflowEndpointGroupResponse
Int -> ReadS GetDataflowEndpointGroupResponse
ReadS [GetDataflowEndpointGroupResponse]
(Int -> ReadS GetDataflowEndpointGroupResponse)
-> ReadS [GetDataflowEndpointGroupResponse]
-> ReadPrec GetDataflowEndpointGroupResponse
-> ReadPrec [GetDataflowEndpointGroupResponse]
-> Read GetDataflowEndpointGroupResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetDataflowEndpointGroupResponse]
$creadListPrec :: ReadPrec [GetDataflowEndpointGroupResponse]
readPrec :: ReadPrec GetDataflowEndpointGroupResponse
$creadPrec :: ReadPrec GetDataflowEndpointGroupResponse
readList :: ReadS [GetDataflowEndpointGroupResponse]
$creadList :: ReadS [GetDataflowEndpointGroupResponse]
readsPrec :: Int -> ReadS GetDataflowEndpointGroupResponse
$creadsPrec :: Int -> ReadS GetDataflowEndpointGroupResponse
Prelude.Read, Int -> GetDataflowEndpointGroupResponse -> ShowS
[GetDataflowEndpointGroupResponse] -> ShowS
GetDataflowEndpointGroupResponse -> String
(Int -> GetDataflowEndpointGroupResponse -> ShowS)
-> (GetDataflowEndpointGroupResponse -> String)
-> ([GetDataflowEndpointGroupResponse] -> ShowS)
-> Show GetDataflowEndpointGroupResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetDataflowEndpointGroupResponse] -> ShowS
$cshowList :: [GetDataflowEndpointGroupResponse] -> ShowS
show :: GetDataflowEndpointGroupResponse -> String
$cshow :: GetDataflowEndpointGroupResponse -> String
showsPrec :: Int -> GetDataflowEndpointGroupResponse -> ShowS
$cshowsPrec :: Int -> GetDataflowEndpointGroupResponse -> ShowS
Prelude.Show, (forall x.
 GetDataflowEndpointGroupResponse
 -> Rep GetDataflowEndpointGroupResponse x)
-> (forall x.
    Rep GetDataflowEndpointGroupResponse x
    -> GetDataflowEndpointGroupResponse)
-> Generic GetDataflowEndpointGroupResponse
forall x.
Rep GetDataflowEndpointGroupResponse x
-> GetDataflowEndpointGroupResponse
forall x.
GetDataflowEndpointGroupResponse
-> Rep GetDataflowEndpointGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetDataflowEndpointGroupResponse x
-> GetDataflowEndpointGroupResponse
$cfrom :: forall x.
GetDataflowEndpointGroupResponse
-> Rep GetDataflowEndpointGroupResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetDataflowEndpointGroupResponse' 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:
--
-- 'endpointsDetails', 'getDataflowEndpointGroupResponse_endpointsDetails' - Details of a dataflow endpoint.
--
-- 'dataflowEndpointGroupArn', 'getDataflowEndpointGroupResponse_dataflowEndpointGroupArn' - ARN of a dataflow endpoint group.
--
-- 'dataflowEndpointGroupId', 'getDataflowEndpointGroupResponse_dataflowEndpointGroupId' - UUID of a dataflow endpoint group.
--
-- 'tags', 'getDataflowEndpointGroupResponse_tags' - Tags assigned to a dataflow endpoint group.
--
-- 'httpStatus', 'getDataflowEndpointGroupResponse_httpStatus' - The response's http status code.
newGetDataflowEndpointGroupResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetDataflowEndpointGroupResponse
newGetDataflowEndpointGroupResponse :: Int -> GetDataflowEndpointGroupResponse
newGetDataflowEndpointGroupResponse Int
pHttpStatus_ =
  GetDataflowEndpointGroupResponse' :: Maybe [EndpointDetails]
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetDataflowEndpointGroupResponse
GetDataflowEndpointGroupResponse'
    { $sel:endpointsDetails:GetDataflowEndpointGroupResponse' :: Maybe [EndpointDetails]
endpointsDetails =
        Maybe [EndpointDetails]
forall a. Maybe a
Prelude.Nothing,
      $sel:dataflowEndpointGroupArn:GetDataflowEndpointGroupResponse' :: Maybe Text
dataflowEndpointGroupArn =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:dataflowEndpointGroupId:GetDataflowEndpointGroupResponse' :: Maybe Text
dataflowEndpointGroupId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:GetDataflowEndpointGroupResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:GetDataflowEndpointGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Details of a dataflow endpoint.
getDataflowEndpointGroupResponse_endpointsDetails :: Lens.Lens' GetDataflowEndpointGroupResponse (Prelude.Maybe [EndpointDetails])
getDataflowEndpointGroupResponse_endpointsDetails :: (Maybe [EndpointDetails] -> f (Maybe [EndpointDetails]))
-> GetDataflowEndpointGroupResponse
-> f GetDataflowEndpointGroupResponse
getDataflowEndpointGroupResponse_endpointsDetails = (GetDataflowEndpointGroupResponse -> Maybe [EndpointDetails])
-> (GetDataflowEndpointGroupResponse
    -> Maybe [EndpointDetails] -> GetDataflowEndpointGroupResponse)
-> Lens
     GetDataflowEndpointGroupResponse
     GetDataflowEndpointGroupResponse
     (Maybe [EndpointDetails])
     (Maybe [EndpointDetails])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDataflowEndpointGroupResponse' {Maybe [EndpointDetails]
endpointsDetails :: Maybe [EndpointDetails]
$sel:endpointsDetails:GetDataflowEndpointGroupResponse' :: GetDataflowEndpointGroupResponse -> Maybe [EndpointDetails]
endpointsDetails} -> Maybe [EndpointDetails]
endpointsDetails) (\s :: GetDataflowEndpointGroupResponse
s@GetDataflowEndpointGroupResponse' {} Maybe [EndpointDetails]
a -> GetDataflowEndpointGroupResponse
s {$sel:endpointsDetails:GetDataflowEndpointGroupResponse' :: Maybe [EndpointDetails]
endpointsDetails = Maybe [EndpointDetails]
a} :: GetDataflowEndpointGroupResponse) ((Maybe [EndpointDetails] -> f (Maybe [EndpointDetails]))
 -> GetDataflowEndpointGroupResponse
 -> f GetDataflowEndpointGroupResponse)
-> ((Maybe [EndpointDetails] -> f (Maybe [EndpointDetails]))
    -> Maybe [EndpointDetails] -> f (Maybe [EndpointDetails]))
-> (Maybe [EndpointDetails] -> f (Maybe [EndpointDetails]))
-> GetDataflowEndpointGroupResponse
-> f GetDataflowEndpointGroupResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [EndpointDetails]
  [EndpointDetails]
  [EndpointDetails]
  [EndpointDetails]
-> Iso
     (Maybe [EndpointDetails])
     (Maybe [EndpointDetails])
     (Maybe [EndpointDetails])
     (Maybe [EndpointDetails])
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
  [EndpointDetails]
  [EndpointDetails]
  [EndpointDetails]
  [EndpointDetails]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | ARN of a dataflow endpoint group.
getDataflowEndpointGroupResponse_dataflowEndpointGroupArn :: Lens.Lens' GetDataflowEndpointGroupResponse (Prelude.Maybe Prelude.Text)
getDataflowEndpointGroupResponse_dataflowEndpointGroupArn :: (Maybe Text -> f (Maybe Text))
-> GetDataflowEndpointGroupResponse
-> f GetDataflowEndpointGroupResponse
getDataflowEndpointGroupResponse_dataflowEndpointGroupArn = (GetDataflowEndpointGroupResponse -> Maybe Text)
-> (GetDataflowEndpointGroupResponse
    -> Maybe Text -> GetDataflowEndpointGroupResponse)
-> Lens
     GetDataflowEndpointGroupResponse
     GetDataflowEndpointGroupResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDataflowEndpointGroupResponse' {Maybe Text
dataflowEndpointGroupArn :: Maybe Text
$sel:dataflowEndpointGroupArn:GetDataflowEndpointGroupResponse' :: GetDataflowEndpointGroupResponse -> Maybe Text
dataflowEndpointGroupArn} -> Maybe Text
dataflowEndpointGroupArn) (\s :: GetDataflowEndpointGroupResponse
s@GetDataflowEndpointGroupResponse' {} Maybe Text
a -> GetDataflowEndpointGroupResponse
s {$sel:dataflowEndpointGroupArn:GetDataflowEndpointGroupResponse' :: Maybe Text
dataflowEndpointGroupArn = Maybe Text
a} :: GetDataflowEndpointGroupResponse)

-- | UUID of a dataflow endpoint group.
getDataflowEndpointGroupResponse_dataflowEndpointGroupId :: Lens.Lens' GetDataflowEndpointGroupResponse (Prelude.Maybe Prelude.Text)
getDataflowEndpointGroupResponse_dataflowEndpointGroupId :: (Maybe Text -> f (Maybe Text))
-> GetDataflowEndpointGroupResponse
-> f GetDataflowEndpointGroupResponse
getDataflowEndpointGroupResponse_dataflowEndpointGroupId = (GetDataflowEndpointGroupResponse -> Maybe Text)
-> (GetDataflowEndpointGroupResponse
    -> Maybe Text -> GetDataflowEndpointGroupResponse)
-> Lens
     GetDataflowEndpointGroupResponse
     GetDataflowEndpointGroupResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDataflowEndpointGroupResponse' {Maybe Text
dataflowEndpointGroupId :: Maybe Text
$sel:dataflowEndpointGroupId:GetDataflowEndpointGroupResponse' :: GetDataflowEndpointGroupResponse -> Maybe Text
dataflowEndpointGroupId} -> Maybe Text
dataflowEndpointGroupId) (\s :: GetDataflowEndpointGroupResponse
s@GetDataflowEndpointGroupResponse' {} Maybe Text
a -> GetDataflowEndpointGroupResponse
s {$sel:dataflowEndpointGroupId:GetDataflowEndpointGroupResponse' :: Maybe Text
dataflowEndpointGroupId = Maybe Text
a} :: GetDataflowEndpointGroupResponse)

-- | Tags assigned to a dataflow endpoint group.
getDataflowEndpointGroupResponse_tags :: Lens.Lens' GetDataflowEndpointGroupResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
getDataflowEndpointGroupResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetDataflowEndpointGroupResponse
-> f GetDataflowEndpointGroupResponse
getDataflowEndpointGroupResponse_tags = (GetDataflowEndpointGroupResponse -> Maybe (HashMap Text Text))
-> (GetDataflowEndpointGroupResponse
    -> Maybe (HashMap Text Text) -> GetDataflowEndpointGroupResponse)
-> Lens
     GetDataflowEndpointGroupResponse
     GetDataflowEndpointGroupResponse
     (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 (\GetDataflowEndpointGroupResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:GetDataflowEndpointGroupResponse' :: GetDataflowEndpointGroupResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: GetDataflowEndpointGroupResponse
s@GetDataflowEndpointGroupResponse' {} Maybe (HashMap Text Text)
a -> GetDataflowEndpointGroupResponse
s {$sel:tags:GetDataflowEndpointGroupResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: GetDataflowEndpointGroupResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> GetDataflowEndpointGroupResponse
 -> f GetDataflowEndpointGroupResponse)
-> ((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)))
-> GetDataflowEndpointGroupResponse
-> f GetDataflowEndpointGroupResponse
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.
getDataflowEndpointGroupResponse_httpStatus :: Lens.Lens' GetDataflowEndpointGroupResponse Prelude.Int
getDataflowEndpointGroupResponse_httpStatus :: (Int -> f Int)
-> GetDataflowEndpointGroupResponse
-> f GetDataflowEndpointGroupResponse
getDataflowEndpointGroupResponse_httpStatus = (GetDataflowEndpointGroupResponse -> Int)
-> (GetDataflowEndpointGroupResponse
    -> Int -> GetDataflowEndpointGroupResponse)
-> Lens
     GetDataflowEndpointGroupResponse
     GetDataflowEndpointGroupResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDataflowEndpointGroupResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetDataflowEndpointGroupResponse' :: GetDataflowEndpointGroupResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetDataflowEndpointGroupResponse
s@GetDataflowEndpointGroupResponse' {} Int
a -> GetDataflowEndpointGroupResponse
s {$sel:httpStatus:GetDataflowEndpointGroupResponse' :: Int
httpStatus = Int
a} :: GetDataflowEndpointGroupResponse)

instance
  Prelude.NFData
    GetDataflowEndpointGroupResponse