{-# 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.ListSAMLProviderTags
-- 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 tags that are attached to the specified Security Assertion
-- Markup Language (SAML) identity provider. The returned list of tags is
-- sorted by tag key. For more information, see
-- <https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_saml.html About SAML 2.0-based federation>.
--
-- For more information about tagging, see
-- <https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html Tagging IAM resources>
-- in the /IAM User Guide/.
module Amazonka.IAM.ListSAMLProviderTags
  ( -- * Creating a Request
    ListSAMLProviderTags (..),
    newListSAMLProviderTags,

    -- * Request Lenses
    listSAMLProviderTags_marker,
    listSAMLProviderTags_maxItems,
    listSAMLProviderTags_sAMLProviderArn,

    -- * Destructuring the Response
    ListSAMLProviderTagsResponse (..),
    newListSAMLProviderTagsResponse,

    -- * Response Lenses
    listSAMLProviderTagsResponse_marker,
    listSAMLProviderTagsResponse_isTruncated,
    listSAMLProviderTagsResponse_httpStatus,
    listSAMLProviderTagsResponse_tags,
  )
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:/ 'newListSAMLProviderTags' smart constructor.
data ListSAMLProviderTags = ListSAMLProviderTags'
  { -- | Use this parameter only when paginating results and only after you
    -- receive a response indicating that the results are truncated. Set it to
    -- the value of the @Marker@ element in the response that you received to
    -- indicate where the next call should start.
    ListSAMLProviderTags -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
    -- | Use this only when paginating results to indicate the maximum number of
    -- items you want in the response. If additional items exist beyond the
    -- maximum you specify, the @IsTruncated@ response element is @true@.
    --
    -- If you do not include this parameter, the number of items defaults to
    -- 100. Note that IAM might return fewer results, even when there are more
    -- results available. In that case, the @IsTruncated@ response element
    -- returns @true@, and @Marker@ contains a value to include in the
    -- subsequent call that tells the service where to continue from.
    ListSAMLProviderTags -> Maybe Natural
maxItems :: Prelude.Maybe Prelude.Natural,
    -- | The ARN of the Security Assertion Markup Language (SAML) identity
    -- provider whose tags you want to see.
    --
    -- 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: _+=,.\@-
    ListSAMLProviderTags -> Text
sAMLProviderArn :: Prelude.Text
  }
  deriving (ListSAMLProviderTags -> ListSAMLProviderTags -> Bool
(ListSAMLProviderTags -> ListSAMLProviderTags -> Bool)
-> (ListSAMLProviderTags -> ListSAMLProviderTags -> Bool)
-> Eq ListSAMLProviderTags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSAMLProviderTags -> ListSAMLProviderTags -> Bool
$c/= :: ListSAMLProviderTags -> ListSAMLProviderTags -> Bool
== :: ListSAMLProviderTags -> ListSAMLProviderTags -> Bool
$c== :: ListSAMLProviderTags -> ListSAMLProviderTags -> Bool
Prelude.Eq, ReadPrec [ListSAMLProviderTags]
ReadPrec ListSAMLProviderTags
Int -> ReadS ListSAMLProviderTags
ReadS [ListSAMLProviderTags]
(Int -> ReadS ListSAMLProviderTags)
-> ReadS [ListSAMLProviderTags]
-> ReadPrec ListSAMLProviderTags
-> ReadPrec [ListSAMLProviderTags]
-> Read ListSAMLProviderTags
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSAMLProviderTags]
$creadListPrec :: ReadPrec [ListSAMLProviderTags]
readPrec :: ReadPrec ListSAMLProviderTags
$creadPrec :: ReadPrec ListSAMLProviderTags
readList :: ReadS [ListSAMLProviderTags]
$creadList :: ReadS [ListSAMLProviderTags]
readsPrec :: Int -> ReadS ListSAMLProviderTags
$creadsPrec :: Int -> ReadS ListSAMLProviderTags
Prelude.Read, Int -> ListSAMLProviderTags -> ShowS
[ListSAMLProviderTags] -> ShowS
ListSAMLProviderTags -> String
(Int -> ListSAMLProviderTags -> ShowS)
-> (ListSAMLProviderTags -> String)
-> ([ListSAMLProviderTags] -> ShowS)
-> Show ListSAMLProviderTags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSAMLProviderTags] -> ShowS
$cshowList :: [ListSAMLProviderTags] -> ShowS
show :: ListSAMLProviderTags -> String
$cshow :: ListSAMLProviderTags -> String
showsPrec :: Int -> ListSAMLProviderTags -> ShowS
$cshowsPrec :: Int -> ListSAMLProviderTags -> ShowS
Prelude.Show, (forall x. ListSAMLProviderTags -> Rep ListSAMLProviderTags x)
-> (forall x. Rep ListSAMLProviderTags x -> ListSAMLProviderTags)
-> Generic ListSAMLProviderTags
forall x. Rep ListSAMLProviderTags x -> ListSAMLProviderTags
forall x. ListSAMLProviderTags -> Rep ListSAMLProviderTags x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListSAMLProviderTags x -> ListSAMLProviderTags
$cfrom :: forall x. ListSAMLProviderTags -> Rep ListSAMLProviderTags x
Prelude.Generic)

-- |
-- Create a value of 'ListSAMLProviderTags' 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:
--
-- 'marker', 'listSAMLProviderTags_marker' - Use this parameter only when paginating results and only after you
-- receive a response indicating that the results are truncated. Set it to
-- the value of the @Marker@ element in the response that you received to
-- indicate where the next call should start.
--
-- 'maxItems', 'listSAMLProviderTags_maxItems' - Use this only when paginating results to indicate the maximum number of
-- items you want in the response. If additional items exist beyond the
-- maximum you specify, the @IsTruncated@ response element is @true@.
--
-- If you do not include this parameter, the number of items defaults to
-- 100. Note that IAM might return fewer results, even when there are more
-- results available. In that case, the @IsTruncated@ response element
-- returns @true@, and @Marker@ contains a value to include in the
-- subsequent call that tells the service where to continue from.
--
-- 'sAMLProviderArn', 'listSAMLProviderTags_sAMLProviderArn' - The ARN of the Security Assertion Markup Language (SAML) identity
-- provider whose tags you want to see.
--
-- 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: _+=,.\@-
newListSAMLProviderTags ::
  -- | 'sAMLProviderArn'
  Prelude.Text ->
  ListSAMLProviderTags
newListSAMLProviderTags :: Text -> ListSAMLProviderTags
newListSAMLProviderTags Text
pSAMLProviderArn_ =
  ListSAMLProviderTags' :: Maybe Text -> Maybe Natural -> Text -> ListSAMLProviderTags
ListSAMLProviderTags'
    { $sel:marker:ListSAMLProviderTags' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxItems:ListSAMLProviderTags' :: Maybe Natural
maxItems = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:sAMLProviderArn:ListSAMLProviderTags' :: Text
sAMLProviderArn = Text
pSAMLProviderArn_
    }

-- | Use this parameter only when paginating results and only after you
-- receive a response indicating that the results are truncated. Set it to
-- the value of the @Marker@ element in the response that you received to
-- indicate where the next call should start.
listSAMLProviderTags_marker :: Lens.Lens' ListSAMLProviderTags (Prelude.Maybe Prelude.Text)
listSAMLProviderTags_marker :: (Maybe Text -> f (Maybe Text))
-> ListSAMLProviderTags -> f ListSAMLProviderTags
listSAMLProviderTags_marker = (ListSAMLProviderTags -> Maybe Text)
-> (ListSAMLProviderTags -> Maybe Text -> ListSAMLProviderTags)
-> Lens
     ListSAMLProviderTags ListSAMLProviderTags (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSAMLProviderTags' {Maybe Text
marker :: Maybe Text
$sel:marker:ListSAMLProviderTags' :: ListSAMLProviderTags -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListSAMLProviderTags
s@ListSAMLProviderTags' {} Maybe Text
a -> ListSAMLProviderTags
s {$sel:marker:ListSAMLProviderTags' :: Maybe Text
marker = Maybe Text
a} :: ListSAMLProviderTags)

-- | Use this only when paginating results to indicate the maximum number of
-- items you want in the response. If additional items exist beyond the
-- maximum you specify, the @IsTruncated@ response element is @true@.
--
-- If you do not include this parameter, the number of items defaults to
-- 100. Note that IAM might return fewer results, even when there are more
-- results available. In that case, the @IsTruncated@ response element
-- returns @true@, and @Marker@ contains a value to include in the
-- subsequent call that tells the service where to continue from.
listSAMLProviderTags_maxItems :: Lens.Lens' ListSAMLProviderTags (Prelude.Maybe Prelude.Natural)
listSAMLProviderTags_maxItems :: (Maybe Natural -> f (Maybe Natural))
-> ListSAMLProviderTags -> f ListSAMLProviderTags
listSAMLProviderTags_maxItems = (ListSAMLProviderTags -> Maybe Natural)
-> (ListSAMLProviderTags -> Maybe Natural -> ListSAMLProviderTags)
-> Lens
     ListSAMLProviderTags
     ListSAMLProviderTags
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSAMLProviderTags' {Maybe Natural
maxItems :: Maybe Natural
$sel:maxItems:ListSAMLProviderTags' :: ListSAMLProviderTags -> Maybe Natural
maxItems} -> Maybe Natural
maxItems) (\s :: ListSAMLProviderTags
s@ListSAMLProviderTags' {} Maybe Natural
a -> ListSAMLProviderTags
s {$sel:maxItems:ListSAMLProviderTags' :: Maybe Natural
maxItems = Maybe Natural
a} :: ListSAMLProviderTags)

-- | The ARN of the Security Assertion Markup Language (SAML) identity
-- provider whose tags you want to see.
--
-- 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: _+=,.\@-
listSAMLProviderTags_sAMLProviderArn :: Lens.Lens' ListSAMLProviderTags Prelude.Text
listSAMLProviderTags_sAMLProviderArn :: (Text -> f Text) -> ListSAMLProviderTags -> f ListSAMLProviderTags
listSAMLProviderTags_sAMLProviderArn = (ListSAMLProviderTags -> Text)
-> (ListSAMLProviderTags -> Text -> ListSAMLProviderTags)
-> Lens ListSAMLProviderTags ListSAMLProviderTags Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSAMLProviderTags' {Text
sAMLProviderArn :: Text
$sel:sAMLProviderArn:ListSAMLProviderTags' :: ListSAMLProviderTags -> Text
sAMLProviderArn} -> Text
sAMLProviderArn) (\s :: ListSAMLProviderTags
s@ListSAMLProviderTags' {} Text
a -> ListSAMLProviderTags
s {$sel:sAMLProviderArn:ListSAMLProviderTags' :: Text
sAMLProviderArn = Text
a} :: ListSAMLProviderTags)

instance Core.AWSRequest ListSAMLProviderTags where
  type
    AWSResponse ListSAMLProviderTags =
      ListSAMLProviderTagsResponse
  request :: ListSAMLProviderTags -> Request ListSAMLProviderTags
request = Service -> ListSAMLProviderTags -> Request ListSAMLProviderTags
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
  response :: Logger
-> Service
-> Proxy ListSAMLProviderTags
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListSAMLProviderTags)))
response =
    Text
-> (Int
    -> ResponseHeaders
    -> [Node]
    -> Either String (AWSResponse ListSAMLProviderTags))
-> Logger
-> Service
-> Proxy ListSAMLProviderTags
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListSAMLProviderTags)))
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
"ListSAMLProviderTagsResult"
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Maybe Text
-> Maybe Bool -> Int -> [Tag] -> ListSAMLProviderTagsResponse
ListSAMLProviderTagsResponse'
            (Maybe Text
 -> Maybe Bool -> Int -> [Tag] -> ListSAMLProviderTagsResponse)
-> Either String (Maybe Text)
-> Either
     String (Maybe Bool -> Int -> [Tag] -> ListSAMLProviderTagsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Marker")
            Either
  String (Maybe Bool -> Int -> [Tag] -> ListSAMLProviderTagsResponse)
-> Either String (Maybe Bool)
-> Either String (Int -> [Tag] -> ListSAMLProviderTagsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Bool)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"IsTruncated")
            Either String (Int -> [Tag] -> ListSAMLProviderTagsResponse)
-> Either String Int
-> Either String ([Tag] -> ListSAMLProviderTagsResponse)
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 ([Tag] -> ListSAMLProviderTagsResponse)
-> Either String [Tag]
-> Either String ListSAMLProviderTagsResponse
forall (f :: * -> *) a b. Applicative f => 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
"Tags" 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 [Tag]) -> Either String [Tag]
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= Text -> [Node] -> Either String [Tag]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member"
                        )
      )

instance Prelude.Hashable ListSAMLProviderTags

instance Prelude.NFData ListSAMLProviderTags

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

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

instance Core.ToQuery ListSAMLProviderTags where
  toQuery :: ListSAMLProviderTags -> QueryString
toQuery ListSAMLProviderTags' {Maybe Natural
Maybe Text
Text
sAMLProviderArn :: Text
maxItems :: Maybe Natural
marker :: Maybe Text
$sel:sAMLProviderArn:ListSAMLProviderTags' :: ListSAMLProviderTags -> Text
$sel:maxItems:ListSAMLProviderTags' :: ListSAMLProviderTags -> Maybe Natural
$sel:marker:ListSAMLProviderTags' :: ListSAMLProviderTags -> 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
"ListSAMLProviderTags" :: Prelude.ByteString),
        ByteString
"Version"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-05-08" :: Prelude.ByteString),
        ByteString
"Marker" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
marker,
        ByteString
"MaxItems" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxItems,
        ByteString
"SAMLProviderArn" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
sAMLProviderArn
      ]

-- | /See:/ 'newListSAMLProviderTagsResponse' smart constructor.
data ListSAMLProviderTagsResponse = ListSAMLProviderTagsResponse'
  { -- | When @IsTruncated@ is @true@, this element is present and contains the
    -- value to use for the @Marker@ parameter in a subsequent pagination
    -- request.
    ListSAMLProviderTagsResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
    -- | A flag that indicates whether there are more items to return. If your
    -- results were truncated, you can make a subsequent pagination request
    -- using the @Marker@ request parameter to retrieve more items. Note that
    -- IAM might return fewer than the @MaxItems@ number of results even when
    -- there are more results available. We recommend that you check
    -- @IsTruncated@ after every call to ensure that you receive all your
    -- results.
    ListSAMLProviderTagsResponse -> Maybe Bool
isTruncated :: Prelude.Maybe Prelude.Bool,
    -- | The response's http status code.
    ListSAMLProviderTagsResponse -> Int
httpStatus :: Prelude.Int,
    -- | The list of tags that are currently attached to the Security Assertion
    -- Markup Language (SAML) identity provider. Each tag consists of a key
    -- name and an associated value. If no tags are attached to the specified
    -- resource, the response contains an empty list.
    ListSAMLProviderTagsResponse -> [Tag]
tags :: [Tag]
  }
  deriving (ListSAMLProviderTagsResponse
-> ListSAMLProviderTagsResponse -> Bool
(ListSAMLProviderTagsResponse
 -> ListSAMLProviderTagsResponse -> Bool)
-> (ListSAMLProviderTagsResponse
    -> ListSAMLProviderTagsResponse -> Bool)
-> Eq ListSAMLProviderTagsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSAMLProviderTagsResponse
-> ListSAMLProviderTagsResponse -> Bool
$c/= :: ListSAMLProviderTagsResponse
-> ListSAMLProviderTagsResponse -> Bool
== :: ListSAMLProviderTagsResponse
-> ListSAMLProviderTagsResponse -> Bool
$c== :: ListSAMLProviderTagsResponse
-> ListSAMLProviderTagsResponse -> Bool
Prelude.Eq, ReadPrec [ListSAMLProviderTagsResponse]
ReadPrec ListSAMLProviderTagsResponse
Int -> ReadS ListSAMLProviderTagsResponse
ReadS [ListSAMLProviderTagsResponse]
(Int -> ReadS ListSAMLProviderTagsResponse)
-> ReadS [ListSAMLProviderTagsResponse]
-> ReadPrec ListSAMLProviderTagsResponse
-> ReadPrec [ListSAMLProviderTagsResponse]
-> Read ListSAMLProviderTagsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSAMLProviderTagsResponse]
$creadListPrec :: ReadPrec [ListSAMLProviderTagsResponse]
readPrec :: ReadPrec ListSAMLProviderTagsResponse
$creadPrec :: ReadPrec ListSAMLProviderTagsResponse
readList :: ReadS [ListSAMLProviderTagsResponse]
$creadList :: ReadS [ListSAMLProviderTagsResponse]
readsPrec :: Int -> ReadS ListSAMLProviderTagsResponse
$creadsPrec :: Int -> ReadS ListSAMLProviderTagsResponse
Prelude.Read, Int -> ListSAMLProviderTagsResponse -> ShowS
[ListSAMLProviderTagsResponse] -> ShowS
ListSAMLProviderTagsResponse -> String
(Int -> ListSAMLProviderTagsResponse -> ShowS)
-> (ListSAMLProviderTagsResponse -> String)
-> ([ListSAMLProviderTagsResponse] -> ShowS)
-> Show ListSAMLProviderTagsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSAMLProviderTagsResponse] -> ShowS
$cshowList :: [ListSAMLProviderTagsResponse] -> ShowS
show :: ListSAMLProviderTagsResponse -> String
$cshow :: ListSAMLProviderTagsResponse -> String
showsPrec :: Int -> ListSAMLProviderTagsResponse -> ShowS
$cshowsPrec :: Int -> ListSAMLProviderTagsResponse -> ShowS
Prelude.Show, (forall x.
 ListSAMLProviderTagsResponse -> Rep ListSAMLProviderTagsResponse x)
-> (forall x.
    Rep ListSAMLProviderTagsResponse x -> ListSAMLProviderTagsResponse)
-> Generic ListSAMLProviderTagsResponse
forall x.
Rep ListSAMLProviderTagsResponse x -> ListSAMLProviderTagsResponse
forall x.
ListSAMLProviderTagsResponse -> Rep ListSAMLProviderTagsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListSAMLProviderTagsResponse x -> ListSAMLProviderTagsResponse
$cfrom :: forall x.
ListSAMLProviderTagsResponse -> Rep ListSAMLProviderTagsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListSAMLProviderTagsResponse' 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:
--
-- 'marker', 'listSAMLProviderTagsResponse_marker' - When @IsTruncated@ is @true@, this element is present and contains the
-- value to use for the @Marker@ parameter in a subsequent pagination
-- request.
--
-- 'isTruncated', 'listSAMLProviderTagsResponse_isTruncated' - A flag that indicates whether there are more items to return. If your
-- results were truncated, you can make a subsequent pagination request
-- using the @Marker@ request parameter to retrieve more items. Note that
-- IAM might return fewer than the @MaxItems@ number of results even when
-- there are more results available. We recommend that you check
-- @IsTruncated@ after every call to ensure that you receive all your
-- results.
--
-- 'httpStatus', 'listSAMLProviderTagsResponse_httpStatus' - The response's http status code.
--
-- 'tags', 'listSAMLProviderTagsResponse_tags' - The list of tags that are currently attached to the Security Assertion
-- Markup Language (SAML) identity provider. Each tag consists of a key
-- name and an associated value. If no tags are attached to the specified
-- resource, the response contains an empty list.
newListSAMLProviderTagsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListSAMLProviderTagsResponse
newListSAMLProviderTagsResponse :: Int -> ListSAMLProviderTagsResponse
newListSAMLProviderTagsResponse Int
pHttpStatus_ =
  ListSAMLProviderTagsResponse' :: Maybe Text
-> Maybe Bool -> Int -> [Tag] -> ListSAMLProviderTagsResponse
ListSAMLProviderTagsResponse'
    { $sel:marker:ListSAMLProviderTagsResponse' :: Maybe Text
marker =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:isTruncated:ListSAMLProviderTagsResponse' :: Maybe Bool
isTruncated = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListSAMLProviderTagsResponse' :: Int
httpStatus = Int
pHttpStatus_,
      $sel:tags:ListSAMLProviderTagsResponse' :: [Tag]
tags = [Tag]
forall a. Monoid a => a
Prelude.mempty
    }

-- | When @IsTruncated@ is @true@, this element is present and contains the
-- value to use for the @Marker@ parameter in a subsequent pagination
-- request.
listSAMLProviderTagsResponse_marker :: Lens.Lens' ListSAMLProviderTagsResponse (Prelude.Maybe Prelude.Text)
listSAMLProviderTagsResponse_marker :: (Maybe Text -> f (Maybe Text))
-> ListSAMLProviderTagsResponse -> f ListSAMLProviderTagsResponse
listSAMLProviderTagsResponse_marker = (ListSAMLProviderTagsResponse -> Maybe Text)
-> (ListSAMLProviderTagsResponse
    -> Maybe Text -> ListSAMLProviderTagsResponse)
-> Lens
     ListSAMLProviderTagsResponse
     ListSAMLProviderTagsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSAMLProviderTagsResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:ListSAMLProviderTagsResponse' :: ListSAMLProviderTagsResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListSAMLProviderTagsResponse
s@ListSAMLProviderTagsResponse' {} Maybe Text
a -> ListSAMLProviderTagsResponse
s {$sel:marker:ListSAMLProviderTagsResponse' :: Maybe Text
marker = Maybe Text
a} :: ListSAMLProviderTagsResponse)

-- | A flag that indicates whether there are more items to return. If your
-- results were truncated, you can make a subsequent pagination request
-- using the @Marker@ request parameter to retrieve more items. Note that
-- IAM might return fewer than the @MaxItems@ number of results even when
-- there are more results available. We recommend that you check
-- @IsTruncated@ after every call to ensure that you receive all your
-- results.
listSAMLProviderTagsResponse_isTruncated :: Lens.Lens' ListSAMLProviderTagsResponse (Prelude.Maybe Prelude.Bool)
listSAMLProviderTagsResponse_isTruncated :: (Maybe Bool -> f (Maybe Bool))
-> ListSAMLProviderTagsResponse -> f ListSAMLProviderTagsResponse
listSAMLProviderTagsResponse_isTruncated = (ListSAMLProviderTagsResponse -> Maybe Bool)
-> (ListSAMLProviderTagsResponse
    -> Maybe Bool -> ListSAMLProviderTagsResponse)
-> Lens
     ListSAMLProviderTagsResponse
     ListSAMLProviderTagsResponse
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSAMLProviderTagsResponse' {Maybe Bool
isTruncated :: Maybe Bool
$sel:isTruncated:ListSAMLProviderTagsResponse' :: ListSAMLProviderTagsResponse -> Maybe Bool
isTruncated} -> Maybe Bool
isTruncated) (\s :: ListSAMLProviderTagsResponse
s@ListSAMLProviderTagsResponse' {} Maybe Bool
a -> ListSAMLProviderTagsResponse
s {$sel:isTruncated:ListSAMLProviderTagsResponse' :: Maybe Bool
isTruncated = Maybe Bool
a} :: ListSAMLProviderTagsResponse)

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

-- | The list of tags that are currently attached to the Security Assertion
-- Markup Language (SAML) identity provider. Each tag consists of a key
-- name and an associated value. If no tags are attached to the specified
-- resource, the response contains an empty list.
listSAMLProviderTagsResponse_tags :: Lens.Lens' ListSAMLProviderTagsResponse [Tag]
listSAMLProviderTagsResponse_tags :: ([Tag] -> f [Tag])
-> ListSAMLProviderTagsResponse -> f ListSAMLProviderTagsResponse
listSAMLProviderTagsResponse_tags = (ListSAMLProviderTagsResponse -> [Tag])
-> (ListSAMLProviderTagsResponse
    -> [Tag] -> ListSAMLProviderTagsResponse)
-> Lens
     ListSAMLProviderTagsResponse
     ListSAMLProviderTagsResponse
     [Tag]
     [Tag]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSAMLProviderTagsResponse' {[Tag]
tags :: [Tag]
$sel:tags:ListSAMLProviderTagsResponse' :: ListSAMLProviderTagsResponse -> [Tag]
tags} -> [Tag]
tags) (\s :: ListSAMLProviderTagsResponse
s@ListSAMLProviderTagsResponse' {} [Tag]
a -> ListSAMLProviderTagsResponse
s {$sel:tags:ListSAMLProviderTagsResponse' :: [Tag]
tags = [Tag]
a} :: ListSAMLProviderTagsResponse) (([Tag] -> f [Tag])
 -> ListSAMLProviderTagsResponse -> f ListSAMLProviderTagsResponse)
-> (([Tag] -> f [Tag]) -> [Tag] -> f [Tag])
-> ([Tag] -> f [Tag])
-> ListSAMLProviderTagsResponse
-> f ListSAMLProviderTagsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Tag] -> f [Tag]) -> [Tag] -> f [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Prelude.NFData ListSAMLProviderTagsResponse