{-# 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.ListOpenIDConnectProviderTags
-- 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 OpenID Connect
-- (OIDC)-compatible 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_oidc.html About web identity 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.ListOpenIDConnectProviderTags
  ( -- * Creating a Request
    ListOpenIDConnectProviderTags (..),
    newListOpenIDConnectProviderTags,

    -- * Request Lenses
    listOpenIDConnectProviderTags_marker,
    listOpenIDConnectProviderTags_maxItems,
    listOpenIDConnectProviderTags_openIDConnectProviderArn,

    -- * Destructuring the Response
    ListOpenIDConnectProviderTagsResponse (..),
    newListOpenIDConnectProviderTagsResponse,

    -- * Response Lenses
    listOpenIDConnectProviderTagsResponse_marker,
    listOpenIDConnectProviderTagsResponse_isTruncated,
    listOpenIDConnectProviderTagsResponse_httpStatus,
    listOpenIDConnectProviderTagsResponse_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:/ 'newListOpenIDConnectProviderTags' smart constructor.
data ListOpenIDConnectProviderTags = ListOpenIDConnectProviderTags'
  { -- | 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.
    ListOpenIDConnectProviderTags -> 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.
    ListOpenIDConnectProviderTags -> Maybe Natural
maxItems :: Prelude.Maybe Prelude.Natural,
    -- | The ARN of the OpenID Connect (OIDC) 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: _+=,.\@-
    ListOpenIDConnectProviderTags -> Text
openIDConnectProviderArn :: Prelude.Text
  }
  deriving (ListOpenIDConnectProviderTags
-> ListOpenIDConnectProviderTags -> Bool
(ListOpenIDConnectProviderTags
 -> ListOpenIDConnectProviderTags -> Bool)
-> (ListOpenIDConnectProviderTags
    -> ListOpenIDConnectProviderTags -> Bool)
-> Eq ListOpenIDConnectProviderTags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListOpenIDConnectProviderTags
-> ListOpenIDConnectProviderTags -> Bool
$c/= :: ListOpenIDConnectProviderTags
-> ListOpenIDConnectProviderTags -> Bool
== :: ListOpenIDConnectProviderTags
-> ListOpenIDConnectProviderTags -> Bool
$c== :: ListOpenIDConnectProviderTags
-> ListOpenIDConnectProviderTags -> Bool
Prelude.Eq, ReadPrec [ListOpenIDConnectProviderTags]
ReadPrec ListOpenIDConnectProviderTags
Int -> ReadS ListOpenIDConnectProviderTags
ReadS [ListOpenIDConnectProviderTags]
(Int -> ReadS ListOpenIDConnectProviderTags)
-> ReadS [ListOpenIDConnectProviderTags]
-> ReadPrec ListOpenIDConnectProviderTags
-> ReadPrec [ListOpenIDConnectProviderTags]
-> Read ListOpenIDConnectProviderTags
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListOpenIDConnectProviderTags]
$creadListPrec :: ReadPrec [ListOpenIDConnectProviderTags]
readPrec :: ReadPrec ListOpenIDConnectProviderTags
$creadPrec :: ReadPrec ListOpenIDConnectProviderTags
readList :: ReadS [ListOpenIDConnectProviderTags]
$creadList :: ReadS [ListOpenIDConnectProviderTags]
readsPrec :: Int -> ReadS ListOpenIDConnectProviderTags
$creadsPrec :: Int -> ReadS ListOpenIDConnectProviderTags
Prelude.Read, Int -> ListOpenIDConnectProviderTags -> ShowS
[ListOpenIDConnectProviderTags] -> ShowS
ListOpenIDConnectProviderTags -> String
(Int -> ListOpenIDConnectProviderTags -> ShowS)
-> (ListOpenIDConnectProviderTags -> String)
-> ([ListOpenIDConnectProviderTags] -> ShowS)
-> Show ListOpenIDConnectProviderTags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListOpenIDConnectProviderTags] -> ShowS
$cshowList :: [ListOpenIDConnectProviderTags] -> ShowS
show :: ListOpenIDConnectProviderTags -> String
$cshow :: ListOpenIDConnectProviderTags -> String
showsPrec :: Int -> ListOpenIDConnectProviderTags -> ShowS
$cshowsPrec :: Int -> ListOpenIDConnectProviderTags -> ShowS
Prelude.Show, (forall x.
 ListOpenIDConnectProviderTags
 -> Rep ListOpenIDConnectProviderTags x)
-> (forall x.
    Rep ListOpenIDConnectProviderTags x
    -> ListOpenIDConnectProviderTags)
-> Generic ListOpenIDConnectProviderTags
forall x.
Rep ListOpenIDConnectProviderTags x
-> ListOpenIDConnectProviderTags
forall x.
ListOpenIDConnectProviderTags
-> Rep ListOpenIDConnectProviderTags x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListOpenIDConnectProviderTags x
-> ListOpenIDConnectProviderTags
$cfrom :: forall x.
ListOpenIDConnectProviderTags
-> Rep ListOpenIDConnectProviderTags x
Prelude.Generic)

-- |
-- Create a value of 'ListOpenIDConnectProviderTags' 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', 'listOpenIDConnectProviderTags_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', 'listOpenIDConnectProviderTags_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.
--
-- 'openIDConnectProviderArn', 'listOpenIDConnectProviderTags_openIDConnectProviderArn' - The ARN of the OpenID Connect (OIDC) 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: _+=,.\@-
newListOpenIDConnectProviderTags ::
  -- | 'openIDConnectProviderArn'
  Prelude.Text ->
  ListOpenIDConnectProviderTags
newListOpenIDConnectProviderTags :: Text -> ListOpenIDConnectProviderTags
newListOpenIDConnectProviderTags
  Text
pOpenIDConnectProviderArn_ =
    ListOpenIDConnectProviderTags' :: Maybe Text
-> Maybe Natural -> Text -> ListOpenIDConnectProviderTags
ListOpenIDConnectProviderTags'
      { $sel:marker:ListOpenIDConnectProviderTags' :: Maybe Text
marker =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:maxItems:ListOpenIDConnectProviderTags' :: Maybe Natural
maxItems = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:openIDConnectProviderArn:ListOpenIDConnectProviderTags' :: Text
openIDConnectProviderArn =
          Text
pOpenIDConnectProviderArn_
      }

-- | 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.
listOpenIDConnectProviderTags_marker :: Lens.Lens' ListOpenIDConnectProviderTags (Prelude.Maybe Prelude.Text)
listOpenIDConnectProviderTags_marker :: (Maybe Text -> f (Maybe Text))
-> ListOpenIDConnectProviderTags -> f ListOpenIDConnectProviderTags
listOpenIDConnectProviderTags_marker = (ListOpenIDConnectProviderTags -> Maybe Text)
-> (ListOpenIDConnectProviderTags
    -> Maybe Text -> ListOpenIDConnectProviderTags)
-> Lens
     ListOpenIDConnectProviderTags
     ListOpenIDConnectProviderTags
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOpenIDConnectProviderTags' {Maybe Text
marker :: Maybe Text
$sel:marker:ListOpenIDConnectProviderTags' :: ListOpenIDConnectProviderTags -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListOpenIDConnectProviderTags
s@ListOpenIDConnectProviderTags' {} Maybe Text
a -> ListOpenIDConnectProviderTags
s {$sel:marker:ListOpenIDConnectProviderTags' :: Maybe Text
marker = Maybe Text
a} :: ListOpenIDConnectProviderTags)

-- | 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.
listOpenIDConnectProviderTags_maxItems :: Lens.Lens' ListOpenIDConnectProviderTags (Prelude.Maybe Prelude.Natural)
listOpenIDConnectProviderTags_maxItems :: (Maybe Natural -> f (Maybe Natural))
-> ListOpenIDConnectProviderTags -> f ListOpenIDConnectProviderTags
listOpenIDConnectProviderTags_maxItems = (ListOpenIDConnectProviderTags -> Maybe Natural)
-> (ListOpenIDConnectProviderTags
    -> Maybe Natural -> ListOpenIDConnectProviderTags)
-> Lens
     ListOpenIDConnectProviderTags
     ListOpenIDConnectProviderTags
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOpenIDConnectProviderTags' {Maybe Natural
maxItems :: Maybe Natural
$sel:maxItems:ListOpenIDConnectProviderTags' :: ListOpenIDConnectProviderTags -> Maybe Natural
maxItems} -> Maybe Natural
maxItems) (\s :: ListOpenIDConnectProviderTags
s@ListOpenIDConnectProviderTags' {} Maybe Natural
a -> ListOpenIDConnectProviderTags
s {$sel:maxItems:ListOpenIDConnectProviderTags' :: Maybe Natural
maxItems = Maybe Natural
a} :: ListOpenIDConnectProviderTags)

-- | The ARN of the OpenID Connect (OIDC) 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: _+=,.\@-
listOpenIDConnectProviderTags_openIDConnectProviderArn :: Lens.Lens' ListOpenIDConnectProviderTags Prelude.Text
listOpenIDConnectProviderTags_openIDConnectProviderArn :: (Text -> f Text)
-> ListOpenIDConnectProviderTags -> f ListOpenIDConnectProviderTags
listOpenIDConnectProviderTags_openIDConnectProviderArn = (ListOpenIDConnectProviderTags -> Text)
-> (ListOpenIDConnectProviderTags
    -> Text -> ListOpenIDConnectProviderTags)
-> Lens
     ListOpenIDConnectProviderTags
     ListOpenIDConnectProviderTags
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOpenIDConnectProviderTags' {Text
openIDConnectProviderArn :: Text
$sel:openIDConnectProviderArn:ListOpenIDConnectProviderTags' :: ListOpenIDConnectProviderTags -> Text
openIDConnectProviderArn} -> Text
openIDConnectProviderArn) (\s :: ListOpenIDConnectProviderTags
s@ListOpenIDConnectProviderTags' {} Text
a -> ListOpenIDConnectProviderTags
s {$sel:openIDConnectProviderArn:ListOpenIDConnectProviderTags' :: Text
openIDConnectProviderArn = Text
a} :: ListOpenIDConnectProviderTags)

instance
  Core.AWSRequest
    ListOpenIDConnectProviderTags
  where
  type
    AWSResponse ListOpenIDConnectProviderTags =
      ListOpenIDConnectProviderTagsResponse
  request :: ListOpenIDConnectProviderTags
-> Request ListOpenIDConnectProviderTags
request = Service
-> ListOpenIDConnectProviderTags
-> Request ListOpenIDConnectProviderTags
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
  response :: Logger
-> Service
-> Proxy ListOpenIDConnectProviderTags
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListOpenIDConnectProviderTags)))
response =
    Text
-> (Int
    -> ResponseHeaders
    -> [Node]
    -> Either String (AWSResponse ListOpenIDConnectProviderTags))
-> Logger
-> Service
-> Proxy ListOpenIDConnectProviderTags
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListOpenIDConnectProviderTags)))
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
"ListOpenIDConnectProviderTagsResult"
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Maybe Text
-> Maybe Bool
-> Int
-> [Tag]
-> ListOpenIDConnectProviderTagsResponse
ListOpenIDConnectProviderTagsResponse'
            (Maybe Text
 -> Maybe Bool
 -> Int
 -> [Tag]
 -> ListOpenIDConnectProviderTagsResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Bool
      -> Int -> [Tag] -> ListOpenIDConnectProviderTagsResponse)
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] -> ListOpenIDConnectProviderTagsResponse)
-> Either String (Maybe Bool)
-> Either
     String (Int -> [Tag] -> ListOpenIDConnectProviderTagsResponse)
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] -> ListOpenIDConnectProviderTagsResponse)
-> Either String Int
-> Either String ([Tag] -> ListOpenIDConnectProviderTagsResponse)
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] -> ListOpenIDConnectProviderTagsResponse)
-> Either String [Tag]
-> Either String ListOpenIDConnectProviderTagsResponse
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
    ListOpenIDConnectProviderTags

instance Prelude.NFData ListOpenIDConnectProviderTags

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

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

instance Core.ToQuery ListOpenIDConnectProviderTags where
  toQuery :: ListOpenIDConnectProviderTags -> QueryString
toQuery ListOpenIDConnectProviderTags' {Maybe Natural
Maybe Text
Text
openIDConnectProviderArn :: Text
maxItems :: Maybe Natural
marker :: Maybe Text
$sel:openIDConnectProviderArn:ListOpenIDConnectProviderTags' :: ListOpenIDConnectProviderTags -> Text
$sel:maxItems:ListOpenIDConnectProviderTags' :: ListOpenIDConnectProviderTags -> Maybe Natural
$sel:marker:ListOpenIDConnectProviderTags' :: ListOpenIDConnectProviderTags -> 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
"ListOpenIDConnectProviderTags" ::
                      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
"OpenIDConnectProviderArn"
          ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
openIDConnectProviderArn
      ]

-- | /See:/ 'newListOpenIDConnectProviderTagsResponse' smart constructor.
data ListOpenIDConnectProviderTagsResponse = ListOpenIDConnectProviderTagsResponse'
  { -- | When @IsTruncated@ is @true@, this element is present and contains the
    -- value to use for the @Marker@ parameter in a subsequent pagination
    -- request.
    ListOpenIDConnectProviderTagsResponse -> 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.
    ListOpenIDConnectProviderTagsResponse -> Maybe Bool
isTruncated :: Prelude.Maybe Prelude.Bool,
    -- | The response's http status code.
    ListOpenIDConnectProviderTagsResponse -> Int
httpStatus :: Prelude.Int,
    -- | The list of tags that are currently attached to the OpenID Connect
    -- (OIDC) 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.
    ListOpenIDConnectProviderTagsResponse -> [Tag]
tags :: [Tag]
  }
  deriving (ListOpenIDConnectProviderTagsResponse
-> ListOpenIDConnectProviderTagsResponse -> Bool
(ListOpenIDConnectProviderTagsResponse
 -> ListOpenIDConnectProviderTagsResponse -> Bool)
-> (ListOpenIDConnectProviderTagsResponse
    -> ListOpenIDConnectProviderTagsResponse -> Bool)
-> Eq ListOpenIDConnectProviderTagsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListOpenIDConnectProviderTagsResponse
-> ListOpenIDConnectProviderTagsResponse -> Bool
$c/= :: ListOpenIDConnectProviderTagsResponse
-> ListOpenIDConnectProviderTagsResponse -> Bool
== :: ListOpenIDConnectProviderTagsResponse
-> ListOpenIDConnectProviderTagsResponse -> Bool
$c== :: ListOpenIDConnectProviderTagsResponse
-> ListOpenIDConnectProviderTagsResponse -> Bool
Prelude.Eq, ReadPrec [ListOpenIDConnectProviderTagsResponse]
ReadPrec ListOpenIDConnectProviderTagsResponse
Int -> ReadS ListOpenIDConnectProviderTagsResponse
ReadS [ListOpenIDConnectProviderTagsResponse]
(Int -> ReadS ListOpenIDConnectProviderTagsResponse)
-> ReadS [ListOpenIDConnectProviderTagsResponse]
-> ReadPrec ListOpenIDConnectProviderTagsResponse
-> ReadPrec [ListOpenIDConnectProviderTagsResponse]
-> Read ListOpenIDConnectProviderTagsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListOpenIDConnectProviderTagsResponse]
$creadListPrec :: ReadPrec [ListOpenIDConnectProviderTagsResponse]
readPrec :: ReadPrec ListOpenIDConnectProviderTagsResponse
$creadPrec :: ReadPrec ListOpenIDConnectProviderTagsResponse
readList :: ReadS [ListOpenIDConnectProviderTagsResponse]
$creadList :: ReadS [ListOpenIDConnectProviderTagsResponse]
readsPrec :: Int -> ReadS ListOpenIDConnectProviderTagsResponse
$creadsPrec :: Int -> ReadS ListOpenIDConnectProviderTagsResponse
Prelude.Read, Int -> ListOpenIDConnectProviderTagsResponse -> ShowS
[ListOpenIDConnectProviderTagsResponse] -> ShowS
ListOpenIDConnectProviderTagsResponse -> String
(Int -> ListOpenIDConnectProviderTagsResponse -> ShowS)
-> (ListOpenIDConnectProviderTagsResponse -> String)
-> ([ListOpenIDConnectProviderTagsResponse] -> ShowS)
-> Show ListOpenIDConnectProviderTagsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListOpenIDConnectProviderTagsResponse] -> ShowS
$cshowList :: [ListOpenIDConnectProviderTagsResponse] -> ShowS
show :: ListOpenIDConnectProviderTagsResponse -> String
$cshow :: ListOpenIDConnectProviderTagsResponse -> String
showsPrec :: Int -> ListOpenIDConnectProviderTagsResponse -> ShowS
$cshowsPrec :: Int -> ListOpenIDConnectProviderTagsResponse -> ShowS
Prelude.Show, (forall x.
 ListOpenIDConnectProviderTagsResponse
 -> Rep ListOpenIDConnectProviderTagsResponse x)
-> (forall x.
    Rep ListOpenIDConnectProviderTagsResponse x
    -> ListOpenIDConnectProviderTagsResponse)
-> Generic ListOpenIDConnectProviderTagsResponse
forall x.
Rep ListOpenIDConnectProviderTagsResponse x
-> ListOpenIDConnectProviderTagsResponse
forall x.
ListOpenIDConnectProviderTagsResponse
-> Rep ListOpenIDConnectProviderTagsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListOpenIDConnectProviderTagsResponse x
-> ListOpenIDConnectProviderTagsResponse
$cfrom :: forall x.
ListOpenIDConnectProviderTagsResponse
-> Rep ListOpenIDConnectProviderTagsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListOpenIDConnectProviderTagsResponse' 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', 'listOpenIDConnectProviderTagsResponse_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', 'listOpenIDConnectProviderTagsResponse_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', 'listOpenIDConnectProviderTagsResponse_httpStatus' - The response's http status code.
--
-- 'tags', 'listOpenIDConnectProviderTagsResponse_tags' - The list of tags that are currently attached to the OpenID Connect
-- (OIDC) 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.
newListOpenIDConnectProviderTagsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListOpenIDConnectProviderTagsResponse
newListOpenIDConnectProviderTagsResponse :: Int -> ListOpenIDConnectProviderTagsResponse
newListOpenIDConnectProviderTagsResponse Int
pHttpStatus_ =
  ListOpenIDConnectProviderTagsResponse' :: Maybe Text
-> Maybe Bool
-> Int
-> [Tag]
-> ListOpenIDConnectProviderTagsResponse
ListOpenIDConnectProviderTagsResponse'
    { $sel:marker:ListOpenIDConnectProviderTagsResponse' :: Maybe Text
marker =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:isTruncated:ListOpenIDConnectProviderTagsResponse' :: Maybe Bool
isTruncated = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListOpenIDConnectProviderTagsResponse' :: Int
httpStatus = Int
pHttpStatus_,
      $sel:tags:ListOpenIDConnectProviderTagsResponse' :: [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.
listOpenIDConnectProviderTagsResponse_marker :: Lens.Lens' ListOpenIDConnectProviderTagsResponse (Prelude.Maybe Prelude.Text)
listOpenIDConnectProviderTagsResponse_marker :: (Maybe Text -> f (Maybe Text))
-> ListOpenIDConnectProviderTagsResponse
-> f ListOpenIDConnectProviderTagsResponse
listOpenIDConnectProviderTagsResponse_marker = (ListOpenIDConnectProviderTagsResponse -> Maybe Text)
-> (ListOpenIDConnectProviderTagsResponse
    -> Maybe Text -> ListOpenIDConnectProviderTagsResponse)
-> Lens
     ListOpenIDConnectProviderTagsResponse
     ListOpenIDConnectProviderTagsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOpenIDConnectProviderTagsResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:ListOpenIDConnectProviderTagsResponse' :: ListOpenIDConnectProviderTagsResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListOpenIDConnectProviderTagsResponse
s@ListOpenIDConnectProviderTagsResponse' {} Maybe Text
a -> ListOpenIDConnectProviderTagsResponse
s {$sel:marker:ListOpenIDConnectProviderTagsResponse' :: Maybe Text
marker = Maybe Text
a} :: ListOpenIDConnectProviderTagsResponse)

-- | 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.
listOpenIDConnectProviderTagsResponse_isTruncated :: Lens.Lens' ListOpenIDConnectProviderTagsResponse (Prelude.Maybe Prelude.Bool)
listOpenIDConnectProviderTagsResponse_isTruncated :: (Maybe Bool -> f (Maybe Bool))
-> ListOpenIDConnectProviderTagsResponse
-> f ListOpenIDConnectProviderTagsResponse
listOpenIDConnectProviderTagsResponse_isTruncated = (ListOpenIDConnectProviderTagsResponse -> Maybe Bool)
-> (ListOpenIDConnectProviderTagsResponse
    -> Maybe Bool -> ListOpenIDConnectProviderTagsResponse)
-> Lens
     ListOpenIDConnectProviderTagsResponse
     ListOpenIDConnectProviderTagsResponse
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOpenIDConnectProviderTagsResponse' {Maybe Bool
isTruncated :: Maybe Bool
$sel:isTruncated:ListOpenIDConnectProviderTagsResponse' :: ListOpenIDConnectProviderTagsResponse -> Maybe Bool
isTruncated} -> Maybe Bool
isTruncated) (\s :: ListOpenIDConnectProviderTagsResponse
s@ListOpenIDConnectProviderTagsResponse' {} Maybe Bool
a -> ListOpenIDConnectProviderTagsResponse
s {$sel:isTruncated:ListOpenIDConnectProviderTagsResponse' :: Maybe Bool
isTruncated = Maybe Bool
a} :: ListOpenIDConnectProviderTagsResponse)

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

-- | The list of tags that are currently attached to the OpenID Connect
-- (OIDC) 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.
listOpenIDConnectProviderTagsResponse_tags :: Lens.Lens' ListOpenIDConnectProviderTagsResponse [Tag]
listOpenIDConnectProviderTagsResponse_tags :: ([Tag] -> f [Tag])
-> ListOpenIDConnectProviderTagsResponse
-> f ListOpenIDConnectProviderTagsResponse
listOpenIDConnectProviderTagsResponse_tags = (ListOpenIDConnectProviderTagsResponse -> [Tag])
-> (ListOpenIDConnectProviderTagsResponse
    -> [Tag] -> ListOpenIDConnectProviderTagsResponse)
-> Lens
     ListOpenIDConnectProviderTagsResponse
     ListOpenIDConnectProviderTagsResponse
     [Tag]
     [Tag]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListOpenIDConnectProviderTagsResponse' {[Tag]
tags :: [Tag]
$sel:tags:ListOpenIDConnectProviderTagsResponse' :: ListOpenIDConnectProviderTagsResponse -> [Tag]
tags} -> [Tag]
tags) (\s :: ListOpenIDConnectProviderTagsResponse
s@ListOpenIDConnectProviderTagsResponse' {} [Tag]
a -> ListOpenIDConnectProviderTagsResponse
s {$sel:tags:ListOpenIDConnectProviderTagsResponse' :: [Tag]
tags = [Tag]
a} :: ListOpenIDConnectProviderTagsResponse) (([Tag] -> f [Tag])
 -> ListOpenIDConnectProviderTagsResponse
 -> f ListOpenIDConnectProviderTagsResponse)
-> (([Tag] -> f [Tag]) -> [Tag] -> f [Tag])
-> ([Tag] -> f [Tag])
-> ListOpenIDConnectProviderTagsResponse
-> f ListOpenIDConnectProviderTagsResponse
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
    ListOpenIDConnectProviderTagsResponse