{-# 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.Transfer.ListSecurityPolicies
-- 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)
--
-- Lists the security policies that are attached to your file transfer
-- protocol-enabled servers.
module Amazonka.Transfer.ListSecurityPolicies
  ( -- * Creating a Request
    ListSecurityPolicies (..),
    newListSecurityPolicies,

    -- * Request Lenses
    listSecurityPolicies_nextToken,
    listSecurityPolicies_maxResults,

    -- * Destructuring the Response
    ListSecurityPoliciesResponse (..),
    newListSecurityPoliciesResponse,

    -- * Response Lenses
    listSecurityPoliciesResponse_nextToken,
    listSecurityPoliciesResponse_httpStatus,
    listSecurityPoliciesResponse_securityPolicyNames,
  )
where

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
import Amazonka.Transfer.Types

-- | /See:/ 'newListSecurityPolicies' smart constructor.
data ListSecurityPolicies = ListSecurityPolicies'
  { -- | When additional results are obtained from the @ListSecurityPolicies@
    -- command, a @NextToken@ parameter is returned in the output. You can then
    -- pass the @NextToken@ parameter in a subsequent command to continue
    -- listing additional security policies.
    ListSecurityPolicies -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | Specifies the number of security policies to return as a response to the
    -- @ListSecurityPolicies@ query.
    ListSecurityPolicies -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
  }
  deriving (ListSecurityPolicies -> ListSecurityPolicies -> Bool
(ListSecurityPolicies -> ListSecurityPolicies -> Bool)
-> (ListSecurityPolicies -> ListSecurityPolicies -> Bool)
-> Eq ListSecurityPolicies
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSecurityPolicies -> ListSecurityPolicies -> Bool
$c/= :: ListSecurityPolicies -> ListSecurityPolicies -> Bool
== :: ListSecurityPolicies -> ListSecurityPolicies -> Bool
$c== :: ListSecurityPolicies -> ListSecurityPolicies -> Bool
Prelude.Eq, ReadPrec [ListSecurityPolicies]
ReadPrec ListSecurityPolicies
Int -> ReadS ListSecurityPolicies
ReadS [ListSecurityPolicies]
(Int -> ReadS ListSecurityPolicies)
-> ReadS [ListSecurityPolicies]
-> ReadPrec ListSecurityPolicies
-> ReadPrec [ListSecurityPolicies]
-> Read ListSecurityPolicies
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSecurityPolicies]
$creadListPrec :: ReadPrec [ListSecurityPolicies]
readPrec :: ReadPrec ListSecurityPolicies
$creadPrec :: ReadPrec ListSecurityPolicies
readList :: ReadS [ListSecurityPolicies]
$creadList :: ReadS [ListSecurityPolicies]
readsPrec :: Int -> ReadS ListSecurityPolicies
$creadsPrec :: Int -> ReadS ListSecurityPolicies
Prelude.Read, Int -> ListSecurityPolicies -> ShowS
[ListSecurityPolicies] -> ShowS
ListSecurityPolicies -> String
(Int -> ListSecurityPolicies -> ShowS)
-> (ListSecurityPolicies -> String)
-> ([ListSecurityPolicies] -> ShowS)
-> Show ListSecurityPolicies
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSecurityPolicies] -> ShowS
$cshowList :: [ListSecurityPolicies] -> ShowS
show :: ListSecurityPolicies -> String
$cshow :: ListSecurityPolicies -> String
showsPrec :: Int -> ListSecurityPolicies -> ShowS
$cshowsPrec :: Int -> ListSecurityPolicies -> ShowS
Prelude.Show, (forall x. ListSecurityPolicies -> Rep ListSecurityPolicies x)
-> (forall x. Rep ListSecurityPolicies x -> ListSecurityPolicies)
-> Generic ListSecurityPolicies
forall x. Rep ListSecurityPolicies x -> ListSecurityPolicies
forall x. ListSecurityPolicies -> Rep ListSecurityPolicies x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListSecurityPolicies x -> ListSecurityPolicies
$cfrom :: forall x. ListSecurityPolicies -> Rep ListSecurityPolicies x
Prelude.Generic)

-- |
-- Create a value of 'ListSecurityPolicies' 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', 'listSecurityPolicies_nextToken' - When additional results are obtained from the @ListSecurityPolicies@
-- command, a @NextToken@ parameter is returned in the output. You can then
-- pass the @NextToken@ parameter in a subsequent command to continue
-- listing additional security policies.
--
-- 'maxResults', 'listSecurityPolicies_maxResults' - Specifies the number of security policies to return as a response to the
-- @ListSecurityPolicies@ query.
newListSecurityPolicies ::
  ListSecurityPolicies
newListSecurityPolicies :: ListSecurityPolicies
newListSecurityPolicies =
  ListSecurityPolicies' :: Maybe Text -> Maybe Natural -> ListSecurityPolicies
ListSecurityPolicies'
    { $sel:nextToken:ListSecurityPolicies' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListSecurityPolicies' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
    }

-- | When additional results are obtained from the @ListSecurityPolicies@
-- command, a @NextToken@ parameter is returned in the output. You can then
-- pass the @NextToken@ parameter in a subsequent command to continue
-- listing additional security policies.
listSecurityPolicies_nextToken :: Lens.Lens' ListSecurityPolicies (Prelude.Maybe Prelude.Text)
listSecurityPolicies_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListSecurityPolicies -> f ListSecurityPolicies
listSecurityPolicies_nextToken = (ListSecurityPolicies -> Maybe Text)
-> (ListSecurityPolicies -> Maybe Text -> ListSecurityPolicies)
-> Lens
     ListSecurityPolicies ListSecurityPolicies (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSecurityPolicies' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSecurityPolicies' :: ListSecurityPolicies -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSecurityPolicies
s@ListSecurityPolicies' {} Maybe Text
a -> ListSecurityPolicies
s {$sel:nextToken:ListSecurityPolicies' :: Maybe Text
nextToken = Maybe Text
a} :: ListSecurityPolicies)

-- | Specifies the number of security policies to return as a response to the
-- @ListSecurityPolicies@ query.
listSecurityPolicies_maxResults :: Lens.Lens' ListSecurityPolicies (Prelude.Maybe Prelude.Natural)
listSecurityPolicies_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListSecurityPolicies -> f ListSecurityPolicies
listSecurityPolicies_maxResults = (ListSecurityPolicies -> Maybe Natural)
-> (ListSecurityPolicies -> Maybe Natural -> ListSecurityPolicies)
-> Lens
     ListSecurityPolicies
     ListSecurityPolicies
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSecurityPolicies' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListSecurityPolicies' :: ListSecurityPolicies -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListSecurityPolicies
s@ListSecurityPolicies' {} Maybe Natural
a -> ListSecurityPolicies
s {$sel:maxResults:ListSecurityPolicies' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListSecurityPolicies)

instance Core.AWSRequest ListSecurityPolicies where
  type
    AWSResponse ListSecurityPolicies =
      ListSecurityPoliciesResponse
  request :: ListSecurityPolicies -> Request ListSecurityPolicies
request = Service -> ListSecurityPolicies -> Request ListSecurityPolicies
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ListSecurityPolicies
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListSecurityPolicies)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListSecurityPolicies))
-> Logger
-> Service
-> Proxy ListSecurityPolicies
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListSecurityPolicies)))
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 -> Int -> [Text] -> ListSecurityPoliciesResponse
ListSecurityPoliciesResponse'
            (Maybe Text -> Int -> [Text] -> ListSecurityPoliciesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> [Text] -> ListSecurityPoliciesResponse)
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 (Int -> [Text] -> ListSecurityPoliciesResponse)
-> Either String Int
-> Either String ([Text] -> ListSecurityPoliciesResponse)
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))
            Either String ([Text] -> ListSecurityPoliciesResponse)
-> Either String [Text]
-> Either String ListSecurityPoliciesResponse
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
"SecurityPolicyNames"
                            Either String (Maybe [Text]) -> [Text] -> Either String [Text]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Text]
forall a. Monoid a => a
Prelude.mempty
                        )
      )

instance Prelude.Hashable ListSecurityPolicies

instance Prelude.NFData ListSecurityPolicies

instance Core.ToHeaders ListSecurityPolicies where
  toHeaders :: ListSecurityPolicies -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListSecurityPolicies -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"TransferService.ListSecurityPolicies" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToJSON ListSecurityPolicies where
  toJSON :: ListSecurityPolicies -> Value
toJSON ListSecurityPolicies' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListSecurityPolicies' :: ListSecurityPolicies -> Maybe Natural
$sel:nextToken:ListSecurityPolicies' :: ListSecurityPolicies -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"NextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
            (Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults
          ]
      )

instance Core.ToPath ListSecurityPolicies where
  toPath :: ListSecurityPolicies -> ByteString
toPath = ByteString -> ListSecurityPolicies -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

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

-- | /See:/ 'newListSecurityPoliciesResponse' smart constructor.
data ListSecurityPoliciesResponse = ListSecurityPoliciesResponse'
  { -- | When you can get additional results from the @ListSecurityPolicies@
    -- operation, a @NextToken@ parameter is returned in the output. In a
    -- following command, you can pass in the @NextToken@ parameter to continue
    -- listing security policies.
    ListSecurityPoliciesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListSecurityPoliciesResponse -> Int
httpStatus :: Prelude.Int,
    -- | An array of security policies that were listed.
    ListSecurityPoliciesResponse -> [Text]
securityPolicyNames :: [Prelude.Text]
  }
  deriving (ListSecurityPoliciesResponse
-> ListSecurityPoliciesResponse -> Bool
(ListSecurityPoliciesResponse
 -> ListSecurityPoliciesResponse -> Bool)
-> (ListSecurityPoliciesResponse
    -> ListSecurityPoliciesResponse -> Bool)
-> Eq ListSecurityPoliciesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSecurityPoliciesResponse
-> ListSecurityPoliciesResponse -> Bool
$c/= :: ListSecurityPoliciesResponse
-> ListSecurityPoliciesResponse -> Bool
== :: ListSecurityPoliciesResponse
-> ListSecurityPoliciesResponse -> Bool
$c== :: ListSecurityPoliciesResponse
-> ListSecurityPoliciesResponse -> Bool
Prelude.Eq, ReadPrec [ListSecurityPoliciesResponse]
ReadPrec ListSecurityPoliciesResponse
Int -> ReadS ListSecurityPoliciesResponse
ReadS [ListSecurityPoliciesResponse]
(Int -> ReadS ListSecurityPoliciesResponse)
-> ReadS [ListSecurityPoliciesResponse]
-> ReadPrec ListSecurityPoliciesResponse
-> ReadPrec [ListSecurityPoliciesResponse]
-> Read ListSecurityPoliciesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSecurityPoliciesResponse]
$creadListPrec :: ReadPrec [ListSecurityPoliciesResponse]
readPrec :: ReadPrec ListSecurityPoliciesResponse
$creadPrec :: ReadPrec ListSecurityPoliciesResponse
readList :: ReadS [ListSecurityPoliciesResponse]
$creadList :: ReadS [ListSecurityPoliciesResponse]
readsPrec :: Int -> ReadS ListSecurityPoliciesResponse
$creadsPrec :: Int -> ReadS ListSecurityPoliciesResponse
Prelude.Read, Int -> ListSecurityPoliciesResponse -> ShowS
[ListSecurityPoliciesResponse] -> ShowS
ListSecurityPoliciesResponse -> String
(Int -> ListSecurityPoliciesResponse -> ShowS)
-> (ListSecurityPoliciesResponse -> String)
-> ([ListSecurityPoliciesResponse] -> ShowS)
-> Show ListSecurityPoliciesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSecurityPoliciesResponse] -> ShowS
$cshowList :: [ListSecurityPoliciesResponse] -> ShowS
show :: ListSecurityPoliciesResponse -> String
$cshow :: ListSecurityPoliciesResponse -> String
showsPrec :: Int -> ListSecurityPoliciesResponse -> ShowS
$cshowsPrec :: Int -> ListSecurityPoliciesResponse -> ShowS
Prelude.Show, (forall x.
 ListSecurityPoliciesResponse -> Rep ListSecurityPoliciesResponse x)
-> (forall x.
    Rep ListSecurityPoliciesResponse x -> ListSecurityPoliciesResponse)
-> Generic ListSecurityPoliciesResponse
forall x.
Rep ListSecurityPoliciesResponse x -> ListSecurityPoliciesResponse
forall x.
ListSecurityPoliciesResponse -> Rep ListSecurityPoliciesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListSecurityPoliciesResponse x -> ListSecurityPoliciesResponse
$cfrom :: forall x.
ListSecurityPoliciesResponse -> Rep ListSecurityPoliciesResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListSecurityPoliciesResponse' 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', 'listSecurityPoliciesResponse_nextToken' - When you can get additional results from the @ListSecurityPolicies@
-- operation, a @NextToken@ parameter is returned in the output. In a
-- following command, you can pass in the @NextToken@ parameter to continue
-- listing security policies.
--
-- 'httpStatus', 'listSecurityPoliciesResponse_httpStatus' - The response's http status code.
--
-- 'securityPolicyNames', 'listSecurityPoliciesResponse_securityPolicyNames' - An array of security policies that were listed.
newListSecurityPoliciesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListSecurityPoliciesResponse
newListSecurityPoliciesResponse :: Int -> ListSecurityPoliciesResponse
newListSecurityPoliciesResponse Int
pHttpStatus_ =
  ListSecurityPoliciesResponse' :: Maybe Text -> Int -> [Text] -> ListSecurityPoliciesResponse
ListSecurityPoliciesResponse'
    { $sel:nextToken:ListSecurityPoliciesResponse' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListSecurityPoliciesResponse' :: Int
httpStatus = Int
pHttpStatus_,
      $sel:securityPolicyNames:ListSecurityPoliciesResponse' :: [Text]
securityPolicyNames = [Text]
forall a. Monoid a => a
Prelude.mempty
    }

-- | When you can get additional results from the @ListSecurityPolicies@
-- operation, a @NextToken@ parameter is returned in the output. In a
-- following command, you can pass in the @NextToken@ parameter to continue
-- listing security policies.
listSecurityPoliciesResponse_nextToken :: Lens.Lens' ListSecurityPoliciesResponse (Prelude.Maybe Prelude.Text)
listSecurityPoliciesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListSecurityPoliciesResponse -> f ListSecurityPoliciesResponse
listSecurityPoliciesResponse_nextToken = (ListSecurityPoliciesResponse -> Maybe Text)
-> (ListSecurityPoliciesResponse
    -> Maybe Text -> ListSecurityPoliciesResponse)
-> Lens
     ListSecurityPoliciesResponse
     ListSecurityPoliciesResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSecurityPoliciesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSecurityPoliciesResponse' :: ListSecurityPoliciesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSecurityPoliciesResponse
s@ListSecurityPoliciesResponse' {} Maybe Text
a -> ListSecurityPoliciesResponse
s {$sel:nextToken:ListSecurityPoliciesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListSecurityPoliciesResponse)

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

-- | An array of security policies that were listed.
listSecurityPoliciesResponse_securityPolicyNames :: Lens.Lens' ListSecurityPoliciesResponse [Prelude.Text]
listSecurityPoliciesResponse_securityPolicyNames :: ([Text] -> f [Text])
-> ListSecurityPoliciesResponse -> f ListSecurityPoliciesResponse
listSecurityPoliciesResponse_securityPolicyNames = (ListSecurityPoliciesResponse -> [Text])
-> (ListSecurityPoliciesResponse
    -> [Text] -> ListSecurityPoliciesResponse)
-> Lens
     ListSecurityPoliciesResponse
     ListSecurityPoliciesResponse
     [Text]
     [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSecurityPoliciesResponse' {[Text]
securityPolicyNames :: [Text]
$sel:securityPolicyNames:ListSecurityPoliciesResponse' :: ListSecurityPoliciesResponse -> [Text]
securityPolicyNames} -> [Text]
securityPolicyNames) (\s :: ListSecurityPoliciesResponse
s@ListSecurityPoliciesResponse' {} [Text]
a -> ListSecurityPoliciesResponse
s {$sel:securityPolicyNames:ListSecurityPoliciesResponse' :: [Text]
securityPolicyNames = [Text]
a} :: ListSecurityPoliciesResponse) (([Text] -> f [Text])
 -> ListSecurityPoliciesResponse -> f ListSecurityPoliciesResponse)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> ListSecurityPoliciesResponse
-> f ListSecurityPoliciesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Text] -> f [Text]) -> [Text] -> f [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Prelude.NFData ListSecurityPoliciesResponse