{-# 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.IAM.ListServiceSpecificCredentials
-- 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 service-specific credentials associated
-- with the specified IAM user. If none exists, the operation returns an
-- empty list. The service-specific credentials returned by this operation
-- are used only for authenticating the IAM user to a specific service. For
-- more information about using service-specific credentials to
-- authenticate to an Amazon Web Services service, see
-- <https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-gc.html Set up service-specific credentials>
-- in the CodeCommit User Guide.
module Amazonka.IAM.ListServiceSpecificCredentials
  ( -- * Creating a Request
    ListServiceSpecificCredentials (..),
    newListServiceSpecificCredentials,

    -- * Request Lenses
    listServiceSpecificCredentials_userName,
    listServiceSpecificCredentials_serviceName,

    -- * Destructuring the Response
    ListServiceSpecificCredentialsResponse (..),
    newListServiceSpecificCredentialsResponse,

    -- * Response Lenses
    listServiceSpecificCredentialsResponse_serviceSpecificCredentials,
    listServiceSpecificCredentialsResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.IAM.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:/ 'newListServiceSpecificCredentials' smart constructor.
data ListServiceSpecificCredentials = ListServiceSpecificCredentials'
  { -- | The name of the user whose service-specific credentials you want
    -- information about. If this value is not specified, then the operation
    -- assumes the user whose credentials are used to call the operation.
    --
    -- This parameter allows (through its
    -- <http://wikipedia.org/wiki/regex regex pattern>) a string of characters
    -- consisting of upper and lowercase alphanumeric characters with no
    -- spaces. You can also include any of the following characters: _+=,.\@-
    ListServiceSpecificCredentials -> Maybe Text
userName :: Prelude.Maybe Prelude.Text,
    -- | Filters the returned results to only those for the specified Amazon Web
    -- Services service. If not specified, then Amazon Web Services returns
    -- service-specific credentials for all services.
    ListServiceSpecificCredentials -> Maybe Text
serviceName :: Prelude.Maybe Prelude.Text
  }
  deriving (ListServiceSpecificCredentials
-> ListServiceSpecificCredentials -> Bool
(ListServiceSpecificCredentials
 -> ListServiceSpecificCredentials -> Bool)
-> (ListServiceSpecificCredentials
    -> ListServiceSpecificCredentials -> Bool)
-> Eq ListServiceSpecificCredentials
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListServiceSpecificCredentials
-> ListServiceSpecificCredentials -> Bool
$c/= :: ListServiceSpecificCredentials
-> ListServiceSpecificCredentials -> Bool
== :: ListServiceSpecificCredentials
-> ListServiceSpecificCredentials -> Bool
$c== :: ListServiceSpecificCredentials
-> ListServiceSpecificCredentials -> Bool
Prelude.Eq, ReadPrec [ListServiceSpecificCredentials]
ReadPrec ListServiceSpecificCredentials
Int -> ReadS ListServiceSpecificCredentials
ReadS [ListServiceSpecificCredentials]
(Int -> ReadS ListServiceSpecificCredentials)
-> ReadS [ListServiceSpecificCredentials]
-> ReadPrec ListServiceSpecificCredentials
-> ReadPrec [ListServiceSpecificCredentials]
-> Read ListServiceSpecificCredentials
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListServiceSpecificCredentials]
$creadListPrec :: ReadPrec [ListServiceSpecificCredentials]
readPrec :: ReadPrec ListServiceSpecificCredentials
$creadPrec :: ReadPrec ListServiceSpecificCredentials
readList :: ReadS [ListServiceSpecificCredentials]
$creadList :: ReadS [ListServiceSpecificCredentials]
readsPrec :: Int -> ReadS ListServiceSpecificCredentials
$creadsPrec :: Int -> ReadS ListServiceSpecificCredentials
Prelude.Read, Int -> ListServiceSpecificCredentials -> ShowS
[ListServiceSpecificCredentials] -> ShowS
ListServiceSpecificCredentials -> String
(Int -> ListServiceSpecificCredentials -> ShowS)
-> (ListServiceSpecificCredentials -> String)
-> ([ListServiceSpecificCredentials] -> ShowS)
-> Show ListServiceSpecificCredentials
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListServiceSpecificCredentials] -> ShowS
$cshowList :: [ListServiceSpecificCredentials] -> ShowS
show :: ListServiceSpecificCredentials -> String
$cshow :: ListServiceSpecificCredentials -> String
showsPrec :: Int -> ListServiceSpecificCredentials -> ShowS
$cshowsPrec :: Int -> ListServiceSpecificCredentials -> ShowS
Prelude.Show, (forall x.
 ListServiceSpecificCredentials
 -> Rep ListServiceSpecificCredentials x)
-> (forall x.
    Rep ListServiceSpecificCredentials x
    -> ListServiceSpecificCredentials)
-> Generic ListServiceSpecificCredentials
forall x.
Rep ListServiceSpecificCredentials x
-> ListServiceSpecificCredentials
forall x.
ListServiceSpecificCredentials
-> Rep ListServiceSpecificCredentials x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListServiceSpecificCredentials x
-> ListServiceSpecificCredentials
$cfrom :: forall x.
ListServiceSpecificCredentials
-> Rep ListServiceSpecificCredentials x
Prelude.Generic)

-- |
-- Create a value of 'ListServiceSpecificCredentials' 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:
--
-- 'userName', 'listServiceSpecificCredentials_userName' - The name of the user whose service-specific credentials you want
-- information about. If this value is not specified, then the operation
-- assumes the user whose credentials are used to call the operation.
--
-- This parameter allows (through its
-- <http://wikipedia.org/wiki/regex regex pattern>) a string of characters
-- consisting of upper and lowercase alphanumeric characters with no
-- spaces. You can also include any of the following characters: _+=,.\@-
--
-- 'serviceName', 'listServiceSpecificCredentials_serviceName' - Filters the returned results to only those for the specified Amazon Web
-- Services service. If not specified, then Amazon Web Services returns
-- service-specific credentials for all services.
newListServiceSpecificCredentials ::
  ListServiceSpecificCredentials
newListServiceSpecificCredentials :: ListServiceSpecificCredentials
newListServiceSpecificCredentials =
  ListServiceSpecificCredentials' :: Maybe Text -> Maybe Text -> ListServiceSpecificCredentials
ListServiceSpecificCredentials'
    { $sel:userName:ListServiceSpecificCredentials' :: Maybe Text
userName =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:serviceName:ListServiceSpecificCredentials' :: Maybe Text
serviceName = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The name of the user whose service-specific credentials you want
-- information about. If this value is not specified, then the operation
-- assumes the user whose credentials are used to call the operation.
--
-- This parameter allows (through its
-- <http://wikipedia.org/wiki/regex regex pattern>) a string of characters
-- consisting of upper and lowercase alphanumeric characters with no
-- spaces. You can also include any of the following characters: _+=,.\@-
listServiceSpecificCredentials_userName :: Lens.Lens' ListServiceSpecificCredentials (Prelude.Maybe Prelude.Text)
listServiceSpecificCredentials_userName :: (Maybe Text -> f (Maybe Text))
-> ListServiceSpecificCredentials
-> f ListServiceSpecificCredentials
listServiceSpecificCredentials_userName = (ListServiceSpecificCredentials -> Maybe Text)
-> (ListServiceSpecificCredentials
    -> Maybe Text -> ListServiceSpecificCredentials)
-> Lens
     ListServiceSpecificCredentials
     ListServiceSpecificCredentials
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListServiceSpecificCredentials' {Maybe Text
userName :: Maybe Text
$sel:userName:ListServiceSpecificCredentials' :: ListServiceSpecificCredentials -> Maybe Text
userName} -> Maybe Text
userName) (\s :: ListServiceSpecificCredentials
s@ListServiceSpecificCredentials' {} Maybe Text
a -> ListServiceSpecificCredentials
s {$sel:userName:ListServiceSpecificCredentials' :: Maybe Text
userName = Maybe Text
a} :: ListServiceSpecificCredentials)

-- | Filters the returned results to only those for the specified Amazon Web
-- Services service. If not specified, then Amazon Web Services returns
-- service-specific credentials for all services.
listServiceSpecificCredentials_serviceName :: Lens.Lens' ListServiceSpecificCredentials (Prelude.Maybe Prelude.Text)
listServiceSpecificCredentials_serviceName :: (Maybe Text -> f (Maybe Text))
-> ListServiceSpecificCredentials
-> f ListServiceSpecificCredentials
listServiceSpecificCredentials_serviceName = (ListServiceSpecificCredentials -> Maybe Text)
-> (ListServiceSpecificCredentials
    -> Maybe Text -> ListServiceSpecificCredentials)
-> Lens
     ListServiceSpecificCredentials
     ListServiceSpecificCredentials
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListServiceSpecificCredentials' {Maybe Text
serviceName :: Maybe Text
$sel:serviceName:ListServiceSpecificCredentials' :: ListServiceSpecificCredentials -> Maybe Text
serviceName} -> Maybe Text
serviceName) (\s :: ListServiceSpecificCredentials
s@ListServiceSpecificCredentials' {} Maybe Text
a -> ListServiceSpecificCredentials
s {$sel:serviceName:ListServiceSpecificCredentials' :: Maybe Text
serviceName = Maybe Text
a} :: ListServiceSpecificCredentials)

instance
  Core.AWSRequest
    ListServiceSpecificCredentials
  where
  type
    AWSResponse ListServiceSpecificCredentials =
      ListServiceSpecificCredentialsResponse
  request :: ListServiceSpecificCredentials
-> Request ListServiceSpecificCredentials
request = Service
-> ListServiceSpecificCredentials
-> Request ListServiceSpecificCredentials
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
  response :: Logger
-> Service
-> Proxy ListServiceSpecificCredentials
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse ListServiceSpecificCredentials)))
response =
    Text
-> (Int
    -> ResponseHeaders
    -> [Node]
    -> Either String (AWSResponse ListServiceSpecificCredentials))
-> Logger
-> Service
-> Proxy ListServiceSpecificCredentials
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse ListServiceSpecificCredentials)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
    -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
      Text
"ListServiceSpecificCredentialsResult"
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Maybe [ServiceSpecificCredentialMetadata]
-> Int -> ListServiceSpecificCredentialsResponse
ListServiceSpecificCredentialsResponse'
            (Maybe [ServiceSpecificCredentialMetadata]
 -> Int -> ListServiceSpecificCredentialsResponse)
-> Either String (Maybe [ServiceSpecificCredentialMetadata])
-> Either String (Int -> ListServiceSpecificCredentialsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"ServiceSpecificCredentials"
                            Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
                            Either String [Node]
-> ([Node]
    -> Either String (Maybe [ServiceSpecificCredentialMetadata]))
-> Either String (Maybe [ServiceSpecificCredentialMetadata])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [ServiceSpecificCredentialMetadata])
-> [Node]
-> Either String (Maybe [ServiceSpecificCredentialMetadata])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [ServiceSpecificCredentialMetadata]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member")
                        )
            Either String (Int -> ListServiceSpecificCredentialsResponse)
-> Either String Int
-> Either String ListServiceSpecificCredentialsResponse
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
    ListServiceSpecificCredentials

instance
  Prelude.NFData
    ListServiceSpecificCredentials

instance
  Core.ToHeaders
    ListServiceSpecificCredentials
  where
  toHeaders :: ListServiceSpecificCredentials -> ResponseHeaders
toHeaders = ResponseHeaders
-> ListServiceSpecificCredentials -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

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

instance Core.ToQuery ListServiceSpecificCredentials where
  toQuery :: ListServiceSpecificCredentials -> QueryString
toQuery ListServiceSpecificCredentials' {Maybe Text
serviceName :: Maybe Text
userName :: Maybe Text
$sel:serviceName:ListServiceSpecificCredentials' :: ListServiceSpecificCredentials -> Maybe Text
$sel:userName:ListServiceSpecificCredentials' :: ListServiceSpecificCredentials -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"Action"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ( ByteString
"ListServiceSpecificCredentials" ::
                      Prelude.ByteString
                  ),
        ByteString
"Version"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-05-08" :: Prelude.ByteString),
        ByteString
"UserName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
userName,
        ByteString
"ServiceName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
serviceName
      ]

-- | /See:/ 'newListServiceSpecificCredentialsResponse' smart constructor.
data ListServiceSpecificCredentialsResponse = ListServiceSpecificCredentialsResponse'
  { -- | A list of structures that each contain details about a service-specific
    -- credential.
    ListServiceSpecificCredentialsResponse
-> Maybe [ServiceSpecificCredentialMetadata]
serviceSpecificCredentials :: Prelude.Maybe [ServiceSpecificCredentialMetadata],
    -- | The response's http status code.
    ListServiceSpecificCredentialsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListServiceSpecificCredentialsResponse
-> ListServiceSpecificCredentialsResponse -> Bool
(ListServiceSpecificCredentialsResponse
 -> ListServiceSpecificCredentialsResponse -> Bool)
-> (ListServiceSpecificCredentialsResponse
    -> ListServiceSpecificCredentialsResponse -> Bool)
-> Eq ListServiceSpecificCredentialsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListServiceSpecificCredentialsResponse
-> ListServiceSpecificCredentialsResponse -> Bool
$c/= :: ListServiceSpecificCredentialsResponse
-> ListServiceSpecificCredentialsResponse -> Bool
== :: ListServiceSpecificCredentialsResponse
-> ListServiceSpecificCredentialsResponse -> Bool
$c== :: ListServiceSpecificCredentialsResponse
-> ListServiceSpecificCredentialsResponse -> Bool
Prelude.Eq, ReadPrec [ListServiceSpecificCredentialsResponse]
ReadPrec ListServiceSpecificCredentialsResponse
Int -> ReadS ListServiceSpecificCredentialsResponse
ReadS [ListServiceSpecificCredentialsResponse]
(Int -> ReadS ListServiceSpecificCredentialsResponse)
-> ReadS [ListServiceSpecificCredentialsResponse]
-> ReadPrec ListServiceSpecificCredentialsResponse
-> ReadPrec [ListServiceSpecificCredentialsResponse]
-> Read ListServiceSpecificCredentialsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListServiceSpecificCredentialsResponse]
$creadListPrec :: ReadPrec [ListServiceSpecificCredentialsResponse]
readPrec :: ReadPrec ListServiceSpecificCredentialsResponse
$creadPrec :: ReadPrec ListServiceSpecificCredentialsResponse
readList :: ReadS [ListServiceSpecificCredentialsResponse]
$creadList :: ReadS [ListServiceSpecificCredentialsResponse]
readsPrec :: Int -> ReadS ListServiceSpecificCredentialsResponse
$creadsPrec :: Int -> ReadS ListServiceSpecificCredentialsResponse
Prelude.Read, Int -> ListServiceSpecificCredentialsResponse -> ShowS
[ListServiceSpecificCredentialsResponse] -> ShowS
ListServiceSpecificCredentialsResponse -> String
(Int -> ListServiceSpecificCredentialsResponse -> ShowS)
-> (ListServiceSpecificCredentialsResponse -> String)
-> ([ListServiceSpecificCredentialsResponse] -> ShowS)
-> Show ListServiceSpecificCredentialsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListServiceSpecificCredentialsResponse] -> ShowS
$cshowList :: [ListServiceSpecificCredentialsResponse] -> ShowS
show :: ListServiceSpecificCredentialsResponse -> String
$cshow :: ListServiceSpecificCredentialsResponse -> String
showsPrec :: Int -> ListServiceSpecificCredentialsResponse -> ShowS
$cshowsPrec :: Int -> ListServiceSpecificCredentialsResponse -> ShowS
Prelude.Show, (forall x.
 ListServiceSpecificCredentialsResponse
 -> Rep ListServiceSpecificCredentialsResponse x)
-> (forall x.
    Rep ListServiceSpecificCredentialsResponse x
    -> ListServiceSpecificCredentialsResponse)
-> Generic ListServiceSpecificCredentialsResponse
forall x.
Rep ListServiceSpecificCredentialsResponse x
-> ListServiceSpecificCredentialsResponse
forall x.
ListServiceSpecificCredentialsResponse
-> Rep ListServiceSpecificCredentialsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListServiceSpecificCredentialsResponse x
-> ListServiceSpecificCredentialsResponse
$cfrom :: forall x.
ListServiceSpecificCredentialsResponse
-> Rep ListServiceSpecificCredentialsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListServiceSpecificCredentialsResponse' 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:
--
-- 'serviceSpecificCredentials', 'listServiceSpecificCredentialsResponse_serviceSpecificCredentials' - A list of structures that each contain details about a service-specific
-- credential.
--
-- 'httpStatus', 'listServiceSpecificCredentialsResponse_httpStatus' - The response's http status code.
newListServiceSpecificCredentialsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListServiceSpecificCredentialsResponse
newListServiceSpecificCredentialsResponse :: Int -> ListServiceSpecificCredentialsResponse
newListServiceSpecificCredentialsResponse
  Int
pHttpStatus_ =
    ListServiceSpecificCredentialsResponse' :: Maybe [ServiceSpecificCredentialMetadata]
-> Int -> ListServiceSpecificCredentialsResponse
ListServiceSpecificCredentialsResponse'
      { $sel:serviceSpecificCredentials:ListServiceSpecificCredentialsResponse' :: Maybe [ServiceSpecificCredentialMetadata]
serviceSpecificCredentials =
          Maybe [ServiceSpecificCredentialMetadata]
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:ListServiceSpecificCredentialsResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | A list of structures that each contain details about a service-specific
-- credential.
listServiceSpecificCredentialsResponse_serviceSpecificCredentials :: Lens.Lens' ListServiceSpecificCredentialsResponse (Prelude.Maybe [ServiceSpecificCredentialMetadata])
listServiceSpecificCredentialsResponse_serviceSpecificCredentials :: (Maybe [ServiceSpecificCredentialMetadata]
 -> f (Maybe [ServiceSpecificCredentialMetadata]))
-> ListServiceSpecificCredentialsResponse
-> f ListServiceSpecificCredentialsResponse
listServiceSpecificCredentialsResponse_serviceSpecificCredentials = (ListServiceSpecificCredentialsResponse
 -> Maybe [ServiceSpecificCredentialMetadata])
-> (ListServiceSpecificCredentialsResponse
    -> Maybe [ServiceSpecificCredentialMetadata]
    -> ListServiceSpecificCredentialsResponse)
-> Lens
     ListServiceSpecificCredentialsResponse
     ListServiceSpecificCredentialsResponse
     (Maybe [ServiceSpecificCredentialMetadata])
     (Maybe [ServiceSpecificCredentialMetadata])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListServiceSpecificCredentialsResponse' {Maybe [ServiceSpecificCredentialMetadata]
serviceSpecificCredentials :: Maybe [ServiceSpecificCredentialMetadata]
$sel:serviceSpecificCredentials:ListServiceSpecificCredentialsResponse' :: ListServiceSpecificCredentialsResponse
-> Maybe [ServiceSpecificCredentialMetadata]
serviceSpecificCredentials} -> Maybe [ServiceSpecificCredentialMetadata]
serviceSpecificCredentials) (\s :: ListServiceSpecificCredentialsResponse
s@ListServiceSpecificCredentialsResponse' {} Maybe [ServiceSpecificCredentialMetadata]
a -> ListServiceSpecificCredentialsResponse
s {$sel:serviceSpecificCredentials:ListServiceSpecificCredentialsResponse' :: Maybe [ServiceSpecificCredentialMetadata]
serviceSpecificCredentials = Maybe [ServiceSpecificCredentialMetadata]
a} :: ListServiceSpecificCredentialsResponse) ((Maybe [ServiceSpecificCredentialMetadata]
  -> f (Maybe [ServiceSpecificCredentialMetadata]))
 -> ListServiceSpecificCredentialsResponse
 -> f ListServiceSpecificCredentialsResponse)
-> ((Maybe [ServiceSpecificCredentialMetadata]
     -> f (Maybe [ServiceSpecificCredentialMetadata]))
    -> Maybe [ServiceSpecificCredentialMetadata]
    -> f (Maybe [ServiceSpecificCredentialMetadata]))
-> (Maybe [ServiceSpecificCredentialMetadata]
    -> f (Maybe [ServiceSpecificCredentialMetadata]))
-> ListServiceSpecificCredentialsResponse
-> f ListServiceSpecificCredentialsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [ServiceSpecificCredentialMetadata]
  [ServiceSpecificCredentialMetadata]
  [ServiceSpecificCredentialMetadata]
  [ServiceSpecificCredentialMetadata]
-> Iso
     (Maybe [ServiceSpecificCredentialMetadata])
     (Maybe [ServiceSpecificCredentialMetadata])
     (Maybe [ServiceSpecificCredentialMetadata])
     (Maybe [ServiceSpecificCredentialMetadata])
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
  [ServiceSpecificCredentialMetadata]
  [ServiceSpecificCredentialMetadata]
  [ServiceSpecificCredentialMetadata]
  [ServiceSpecificCredentialMetadata]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    ListServiceSpecificCredentialsResponse