{-# 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.MediaLive.ListInputSecurityGroups
-- 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)
--
-- Produces a list of Input Security Groups for an account
--
-- This operation returns paginated results.
module Amazonka.MediaLive.ListInputSecurityGroups
  ( -- * Creating a Request
    ListInputSecurityGroups (..),
    newListInputSecurityGroups,

    -- * Request Lenses
    listInputSecurityGroups_nextToken,
    listInputSecurityGroups_maxResults,

    -- * Destructuring the Response
    ListInputSecurityGroupsResponse (..),
    newListInputSecurityGroupsResponse,

    -- * Response Lenses
    listInputSecurityGroupsResponse_nextToken,
    listInputSecurityGroupsResponse_inputSecurityGroups,
    listInputSecurityGroupsResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MediaLive.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | Placeholder documentation for ListInputSecurityGroupsRequest
--
-- /See:/ 'newListInputSecurityGroups' smart constructor.
data ListInputSecurityGroups = ListInputSecurityGroups'
  { ListInputSecurityGroups -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    ListInputSecurityGroups -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
  }
  deriving (ListInputSecurityGroups -> ListInputSecurityGroups -> Bool
(ListInputSecurityGroups -> ListInputSecurityGroups -> Bool)
-> (ListInputSecurityGroups -> ListInputSecurityGroups -> Bool)
-> Eq ListInputSecurityGroups
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListInputSecurityGroups -> ListInputSecurityGroups -> Bool
$c/= :: ListInputSecurityGroups -> ListInputSecurityGroups -> Bool
== :: ListInputSecurityGroups -> ListInputSecurityGroups -> Bool
$c== :: ListInputSecurityGroups -> ListInputSecurityGroups -> Bool
Prelude.Eq, ReadPrec [ListInputSecurityGroups]
ReadPrec ListInputSecurityGroups
Int -> ReadS ListInputSecurityGroups
ReadS [ListInputSecurityGroups]
(Int -> ReadS ListInputSecurityGroups)
-> ReadS [ListInputSecurityGroups]
-> ReadPrec ListInputSecurityGroups
-> ReadPrec [ListInputSecurityGroups]
-> Read ListInputSecurityGroups
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListInputSecurityGroups]
$creadListPrec :: ReadPrec [ListInputSecurityGroups]
readPrec :: ReadPrec ListInputSecurityGroups
$creadPrec :: ReadPrec ListInputSecurityGroups
readList :: ReadS [ListInputSecurityGroups]
$creadList :: ReadS [ListInputSecurityGroups]
readsPrec :: Int -> ReadS ListInputSecurityGroups
$creadsPrec :: Int -> ReadS ListInputSecurityGroups
Prelude.Read, Int -> ListInputSecurityGroups -> ShowS
[ListInputSecurityGroups] -> ShowS
ListInputSecurityGroups -> String
(Int -> ListInputSecurityGroups -> ShowS)
-> (ListInputSecurityGroups -> String)
-> ([ListInputSecurityGroups] -> ShowS)
-> Show ListInputSecurityGroups
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListInputSecurityGroups] -> ShowS
$cshowList :: [ListInputSecurityGroups] -> ShowS
show :: ListInputSecurityGroups -> String
$cshow :: ListInputSecurityGroups -> String
showsPrec :: Int -> ListInputSecurityGroups -> ShowS
$cshowsPrec :: Int -> ListInputSecurityGroups -> ShowS
Prelude.Show, (forall x.
 ListInputSecurityGroups -> Rep ListInputSecurityGroups x)
-> (forall x.
    Rep ListInputSecurityGroups x -> ListInputSecurityGroups)
-> Generic ListInputSecurityGroups
forall x. Rep ListInputSecurityGroups x -> ListInputSecurityGroups
forall x. ListInputSecurityGroups -> Rep ListInputSecurityGroups x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListInputSecurityGroups x -> ListInputSecurityGroups
$cfrom :: forall x. ListInputSecurityGroups -> Rep ListInputSecurityGroups x
Prelude.Generic)

-- |
-- Create a value of 'ListInputSecurityGroups' 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:
--
-- 'nextToken', 'listInputSecurityGroups_nextToken' - Undocumented member.
--
-- 'maxResults', 'listInputSecurityGroups_maxResults' - Undocumented member.
newListInputSecurityGroups ::
  ListInputSecurityGroups
newListInputSecurityGroups :: ListInputSecurityGroups
newListInputSecurityGroups =
  ListInputSecurityGroups' :: Maybe Text -> Maybe Natural -> ListInputSecurityGroups
ListInputSecurityGroups'
    { $sel:nextToken:ListInputSecurityGroups' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListInputSecurityGroups' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
    }

-- | Undocumented member.
listInputSecurityGroups_nextToken :: Lens.Lens' ListInputSecurityGroups (Prelude.Maybe Prelude.Text)
listInputSecurityGroups_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListInputSecurityGroups -> f ListInputSecurityGroups
listInputSecurityGroups_nextToken = (ListInputSecurityGroups -> Maybe Text)
-> (ListInputSecurityGroups
    -> Maybe Text -> ListInputSecurityGroups)
-> Lens
     ListInputSecurityGroups
     ListInputSecurityGroups
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInputSecurityGroups' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListInputSecurityGroups' :: ListInputSecurityGroups -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListInputSecurityGroups
s@ListInputSecurityGroups' {} Maybe Text
a -> ListInputSecurityGroups
s {$sel:nextToken:ListInputSecurityGroups' :: Maybe Text
nextToken = Maybe Text
a} :: ListInputSecurityGroups)

-- | Undocumented member.
listInputSecurityGroups_maxResults :: Lens.Lens' ListInputSecurityGroups (Prelude.Maybe Prelude.Natural)
listInputSecurityGroups_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListInputSecurityGroups -> f ListInputSecurityGroups
listInputSecurityGroups_maxResults = (ListInputSecurityGroups -> Maybe Natural)
-> (ListInputSecurityGroups
    -> Maybe Natural -> ListInputSecurityGroups)
-> Lens
     ListInputSecurityGroups
     ListInputSecurityGroups
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInputSecurityGroups' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListInputSecurityGroups' :: ListInputSecurityGroups -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListInputSecurityGroups
s@ListInputSecurityGroups' {} Maybe Natural
a -> ListInputSecurityGroups
s {$sel:maxResults:ListInputSecurityGroups' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListInputSecurityGroups)

instance Core.AWSPager ListInputSecurityGroups where
  page :: ListInputSecurityGroups
-> AWSResponse ListInputSecurityGroups
-> Maybe ListInputSecurityGroups
page ListInputSecurityGroups
rq AWSResponse ListInputSecurityGroups
rs
    | Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListInputSecurityGroups
ListInputSecurityGroupsResponse
rs
            ListInputSecurityGroupsResponse
-> Getting (First Text) ListInputSecurityGroupsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListInputSecurityGroupsResponse
-> Const (First Text) ListInputSecurityGroupsResponse
Lens' ListInputSecurityGroupsResponse (Maybe Text)
listInputSecurityGroupsResponse_nextToken
              ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListInputSecurityGroupsResponse
 -> Const (First Text) ListInputSecurityGroupsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListInputSecurityGroupsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe ListInputSecurityGroups
forall a. Maybe a
Prelude.Nothing
    | Maybe [InputSecurityGroup] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListInputSecurityGroups
ListInputSecurityGroupsResponse
rs
            ListInputSecurityGroupsResponse
-> Getting
     (First [InputSecurityGroup])
     ListInputSecurityGroupsResponse
     [InputSecurityGroup]
-> Maybe [InputSecurityGroup]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [InputSecurityGroup]
 -> Const (First [InputSecurityGroup]) (Maybe [InputSecurityGroup]))
-> ListInputSecurityGroupsResponse
-> Const
     (First [InputSecurityGroup]) ListInputSecurityGroupsResponse
Lens' ListInputSecurityGroupsResponse (Maybe [InputSecurityGroup])
listInputSecurityGroupsResponse_inputSecurityGroups
              ((Maybe [InputSecurityGroup]
  -> Const (First [InputSecurityGroup]) (Maybe [InputSecurityGroup]))
 -> ListInputSecurityGroupsResponse
 -> Const
      (First [InputSecurityGroup]) ListInputSecurityGroupsResponse)
-> (([InputSecurityGroup]
     -> Const (First [InputSecurityGroup]) [InputSecurityGroup])
    -> Maybe [InputSecurityGroup]
    -> Const (First [InputSecurityGroup]) (Maybe [InputSecurityGroup]))
-> Getting
     (First [InputSecurityGroup])
     ListInputSecurityGroupsResponse
     [InputSecurityGroup]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([InputSecurityGroup]
 -> Const (First [InputSecurityGroup]) [InputSecurityGroup])
-> Maybe [InputSecurityGroup]
-> Const (First [InputSecurityGroup]) (Maybe [InputSecurityGroup])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe ListInputSecurityGroups
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      ListInputSecurityGroups -> Maybe ListInputSecurityGroups
forall a. a -> Maybe a
Prelude.Just (ListInputSecurityGroups -> Maybe ListInputSecurityGroups)
-> ListInputSecurityGroups -> Maybe ListInputSecurityGroups
forall a b. (a -> b) -> a -> b
Prelude.$
        ListInputSecurityGroups
rq
          ListInputSecurityGroups
-> (ListInputSecurityGroups -> ListInputSecurityGroups)
-> ListInputSecurityGroups
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListInputSecurityGroups -> Identity ListInputSecurityGroups
Lens
  ListInputSecurityGroups
  ListInputSecurityGroups
  (Maybe Text)
  (Maybe Text)
listInputSecurityGroups_nextToken
          ((Maybe Text -> Identity (Maybe Text))
 -> ListInputSecurityGroups -> Identity ListInputSecurityGroups)
-> Maybe Text -> ListInputSecurityGroups -> ListInputSecurityGroups
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListInputSecurityGroups
ListInputSecurityGroupsResponse
rs
          ListInputSecurityGroupsResponse
-> Getting (First Text) ListInputSecurityGroupsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListInputSecurityGroupsResponse
-> Const (First Text) ListInputSecurityGroupsResponse
Lens' ListInputSecurityGroupsResponse (Maybe Text)
listInputSecurityGroupsResponse_nextToken
            ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListInputSecurityGroupsResponse
 -> Const (First Text) ListInputSecurityGroupsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListInputSecurityGroupsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

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

instance Prelude.NFData ListInputSecurityGroups

instance Core.ToHeaders ListInputSecurityGroups where
  toHeaders :: ListInputSecurityGroups -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListInputSecurityGroups -> 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 ListInputSecurityGroups where
  toPath :: ListInputSecurityGroups -> ByteString
toPath = ByteString -> ListInputSecurityGroups -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/prod/inputSecurityGroups"

instance Core.ToQuery ListInputSecurityGroups where
  toQuery :: ListInputSecurityGroups -> QueryString
toQuery ListInputSecurityGroups' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListInputSecurityGroups' :: ListInputSecurityGroups -> Maybe Natural
$sel:nextToken:ListInputSecurityGroups' :: ListInputSecurityGroups -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
        ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
      ]

-- | Placeholder documentation for ListInputSecurityGroupsResponse
--
-- /See:/ 'newListInputSecurityGroupsResponse' smart constructor.
data ListInputSecurityGroupsResponse = ListInputSecurityGroupsResponse'
  { ListInputSecurityGroupsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | List of input security groups
    ListInputSecurityGroupsResponse -> Maybe [InputSecurityGroup]
inputSecurityGroups :: Prelude.Maybe [InputSecurityGroup],
    -- | The response's http status code.
    ListInputSecurityGroupsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListInputSecurityGroupsResponse
-> ListInputSecurityGroupsResponse -> Bool
(ListInputSecurityGroupsResponse
 -> ListInputSecurityGroupsResponse -> Bool)
-> (ListInputSecurityGroupsResponse
    -> ListInputSecurityGroupsResponse -> Bool)
-> Eq ListInputSecurityGroupsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListInputSecurityGroupsResponse
-> ListInputSecurityGroupsResponse -> Bool
$c/= :: ListInputSecurityGroupsResponse
-> ListInputSecurityGroupsResponse -> Bool
== :: ListInputSecurityGroupsResponse
-> ListInputSecurityGroupsResponse -> Bool
$c== :: ListInputSecurityGroupsResponse
-> ListInputSecurityGroupsResponse -> Bool
Prelude.Eq, ReadPrec [ListInputSecurityGroupsResponse]
ReadPrec ListInputSecurityGroupsResponse
Int -> ReadS ListInputSecurityGroupsResponse
ReadS [ListInputSecurityGroupsResponse]
(Int -> ReadS ListInputSecurityGroupsResponse)
-> ReadS [ListInputSecurityGroupsResponse]
-> ReadPrec ListInputSecurityGroupsResponse
-> ReadPrec [ListInputSecurityGroupsResponse]
-> Read ListInputSecurityGroupsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListInputSecurityGroupsResponse]
$creadListPrec :: ReadPrec [ListInputSecurityGroupsResponse]
readPrec :: ReadPrec ListInputSecurityGroupsResponse
$creadPrec :: ReadPrec ListInputSecurityGroupsResponse
readList :: ReadS [ListInputSecurityGroupsResponse]
$creadList :: ReadS [ListInputSecurityGroupsResponse]
readsPrec :: Int -> ReadS ListInputSecurityGroupsResponse
$creadsPrec :: Int -> ReadS ListInputSecurityGroupsResponse
Prelude.Read, Int -> ListInputSecurityGroupsResponse -> ShowS
[ListInputSecurityGroupsResponse] -> ShowS
ListInputSecurityGroupsResponse -> String
(Int -> ListInputSecurityGroupsResponse -> ShowS)
-> (ListInputSecurityGroupsResponse -> String)
-> ([ListInputSecurityGroupsResponse] -> ShowS)
-> Show ListInputSecurityGroupsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListInputSecurityGroupsResponse] -> ShowS
$cshowList :: [ListInputSecurityGroupsResponse] -> ShowS
show :: ListInputSecurityGroupsResponse -> String
$cshow :: ListInputSecurityGroupsResponse -> String
showsPrec :: Int -> ListInputSecurityGroupsResponse -> ShowS
$cshowsPrec :: Int -> ListInputSecurityGroupsResponse -> ShowS
Prelude.Show, (forall x.
 ListInputSecurityGroupsResponse
 -> Rep ListInputSecurityGroupsResponse x)
-> (forall x.
    Rep ListInputSecurityGroupsResponse x
    -> ListInputSecurityGroupsResponse)
-> Generic ListInputSecurityGroupsResponse
forall x.
Rep ListInputSecurityGroupsResponse x
-> ListInputSecurityGroupsResponse
forall x.
ListInputSecurityGroupsResponse
-> Rep ListInputSecurityGroupsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListInputSecurityGroupsResponse x
-> ListInputSecurityGroupsResponse
$cfrom :: forall x.
ListInputSecurityGroupsResponse
-> Rep ListInputSecurityGroupsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListInputSecurityGroupsResponse' 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:
--
-- 'nextToken', 'listInputSecurityGroupsResponse_nextToken' - Undocumented member.
--
-- 'inputSecurityGroups', 'listInputSecurityGroupsResponse_inputSecurityGroups' - List of input security groups
--
-- 'httpStatus', 'listInputSecurityGroupsResponse_httpStatus' - The response's http status code.
newListInputSecurityGroupsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListInputSecurityGroupsResponse
newListInputSecurityGroupsResponse :: Int -> ListInputSecurityGroupsResponse
newListInputSecurityGroupsResponse Int
pHttpStatus_ =
  ListInputSecurityGroupsResponse' :: Maybe Text
-> Maybe [InputSecurityGroup]
-> Int
-> ListInputSecurityGroupsResponse
ListInputSecurityGroupsResponse'
    { $sel:nextToken:ListInputSecurityGroupsResponse' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:inputSecurityGroups:ListInputSecurityGroupsResponse' :: Maybe [InputSecurityGroup]
inputSecurityGroups = Maybe [InputSecurityGroup]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListInputSecurityGroupsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Undocumented member.
listInputSecurityGroupsResponse_nextToken :: Lens.Lens' ListInputSecurityGroupsResponse (Prelude.Maybe Prelude.Text)
listInputSecurityGroupsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListInputSecurityGroupsResponse
-> f ListInputSecurityGroupsResponse
listInputSecurityGroupsResponse_nextToken = (ListInputSecurityGroupsResponse -> Maybe Text)
-> (ListInputSecurityGroupsResponse
    -> Maybe Text -> ListInputSecurityGroupsResponse)
-> Lens' ListInputSecurityGroupsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInputSecurityGroupsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListInputSecurityGroupsResponse' :: ListInputSecurityGroupsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListInputSecurityGroupsResponse
s@ListInputSecurityGroupsResponse' {} Maybe Text
a -> ListInputSecurityGroupsResponse
s {$sel:nextToken:ListInputSecurityGroupsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListInputSecurityGroupsResponse)

-- | List of input security groups
listInputSecurityGroupsResponse_inputSecurityGroups :: Lens.Lens' ListInputSecurityGroupsResponse (Prelude.Maybe [InputSecurityGroup])
listInputSecurityGroupsResponse_inputSecurityGroups :: (Maybe [InputSecurityGroup] -> f (Maybe [InputSecurityGroup]))
-> ListInputSecurityGroupsResponse
-> f ListInputSecurityGroupsResponse
listInputSecurityGroupsResponse_inputSecurityGroups = (ListInputSecurityGroupsResponse -> Maybe [InputSecurityGroup])
-> (ListInputSecurityGroupsResponse
    -> Maybe [InputSecurityGroup] -> ListInputSecurityGroupsResponse)
-> Lens'
     ListInputSecurityGroupsResponse (Maybe [InputSecurityGroup])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInputSecurityGroupsResponse' {Maybe [InputSecurityGroup]
inputSecurityGroups :: Maybe [InputSecurityGroup]
$sel:inputSecurityGroups:ListInputSecurityGroupsResponse' :: ListInputSecurityGroupsResponse -> Maybe [InputSecurityGroup]
inputSecurityGroups} -> Maybe [InputSecurityGroup]
inputSecurityGroups) (\s :: ListInputSecurityGroupsResponse
s@ListInputSecurityGroupsResponse' {} Maybe [InputSecurityGroup]
a -> ListInputSecurityGroupsResponse
s {$sel:inputSecurityGroups:ListInputSecurityGroupsResponse' :: Maybe [InputSecurityGroup]
inputSecurityGroups = Maybe [InputSecurityGroup]
a} :: ListInputSecurityGroupsResponse) ((Maybe [InputSecurityGroup] -> f (Maybe [InputSecurityGroup]))
 -> ListInputSecurityGroupsResponse
 -> f ListInputSecurityGroupsResponse)
-> ((Maybe [InputSecurityGroup] -> f (Maybe [InputSecurityGroup]))
    -> Maybe [InputSecurityGroup] -> f (Maybe [InputSecurityGroup]))
-> (Maybe [InputSecurityGroup] -> f (Maybe [InputSecurityGroup]))
-> ListInputSecurityGroupsResponse
-> f ListInputSecurityGroupsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [InputSecurityGroup]
  [InputSecurityGroup]
  [InputSecurityGroup]
  [InputSecurityGroup]
-> Iso
     (Maybe [InputSecurityGroup])
     (Maybe [InputSecurityGroup])
     (Maybe [InputSecurityGroup])
     (Maybe [InputSecurityGroup])
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
  [InputSecurityGroup]
  [InputSecurityGroup]
  [InputSecurityGroup]
  [InputSecurityGroup]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The response's http status code.
listInputSecurityGroupsResponse_httpStatus :: Lens.Lens' ListInputSecurityGroupsResponse Prelude.Int
listInputSecurityGroupsResponse_httpStatus :: (Int -> f Int)
-> ListInputSecurityGroupsResponse
-> f ListInputSecurityGroupsResponse
listInputSecurityGroupsResponse_httpStatus = (ListInputSecurityGroupsResponse -> Int)
-> (ListInputSecurityGroupsResponse
    -> Int -> ListInputSecurityGroupsResponse)
-> Lens
     ListInputSecurityGroupsResponse
     ListInputSecurityGroupsResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInputSecurityGroupsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListInputSecurityGroupsResponse' :: ListInputSecurityGroupsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListInputSecurityGroupsResponse
s@ListInputSecurityGroupsResponse' {} Int
a -> ListInputSecurityGroupsResponse
s {$sel:httpStatus:ListInputSecurityGroupsResponse' :: Int
httpStatus = Int
a} :: ListInputSecurityGroupsResponse)

instance
  Prelude.NFData
    ListInputSecurityGroupsResponse