{-# 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.Redshift.DescribeClusterParameterGroups
-- 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 a list of Amazon Redshift parameter groups, including parameter
-- groups you created and the default parameter group. For each parameter
-- group, the response includes the parameter group name, description, and
-- parameter group family name. You can optionally specify a name to
-- retrieve the description of a specific parameter group.
--
-- For more information about parameters and parameter groups, go to
-- <https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-parameter-groups.html Amazon Redshift Parameter Groups>
-- in the /Amazon Redshift Cluster Management Guide/.
--
-- If you specify both tag keys and tag values in the same request, Amazon
-- Redshift returns all parameter groups that match any combination of the
-- specified keys and values. For example, if you have @owner@ and
-- @environment@ for tag keys, and @admin@ and @test@ for tag values, all
-- parameter groups that have any combination of those values are returned.
--
-- If both tag keys and values are omitted from the request, parameter
-- groups are returned regardless of whether they have tag keys or values
-- associated with them.
--
-- This operation returns paginated results.
module Amazonka.Redshift.DescribeClusterParameterGroups
  ( -- * Creating a Request
    DescribeClusterParameterGroups (..),
    newDescribeClusterParameterGroups,

    -- * Request Lenses
    describeClusterParameterGroups_tagValues,
    describeClusterParameterGroups_tagKeys,
    describeClusterParameterGroups_marker,
    describeClusterParameterGroups_maxRecords,
    describeClusterParameterGroups_parameterGroupName,

    -- * Destructuring the Response
    DescribeClusterParameterGroupsResponse (..),
    newDescribeClusterParameterGroupsResponse,

    -- * Response Lenses
    describeClusterParameterGroupsResponse_marker,
    describeClusterParameterGroupsResponse_parameterGroups,
    describeClusterParameterGroupsResponse_httpStatus,
  )
where

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

-- |
--
-- /See:/ 'newDescribeClusterParameterGroups' smart constructor.
data DescribeClusterParameterGroups = DescribeClusterParameterGroups'
  { -- | A tag value or values for which you want to return all matching cluster
    -- parameter groups that are associated with the specified tag value or
    -- values. For example, suppose that you have parameter groups that are
    -- tagged with values called @admin@ and @test@. If you specify both of
    -- these tag values in the request, Amazon Redshift returns a response with
    -- the parameter groups that have either or both of these tag values
    -- associated with them.
    DescribeClusterParameterGroups -> Maybe [Text]
tagValues :: Prelude.Maybe [Prelude.Text],
    -- | A tag key or keys for which you want to return all matching cluster
    -- parameter groups that are associated with the specified key or keys. For
    -- example, suppose that you have parameter groups that are tagged with
    -- keys called @owner@ and @environment@. If you specify both of these tag
    -- keys in the request, Amazon Redshift returns a response with the
    -- parameter groups that have either or both of these tag keys associated
    -- with them.
    DescribeClusterParameterGroups -> Maybe [Text]
tagKeys :: Prelude.Maybe [Prelude.Text],
    -- | An optional parameter that specifies the starting point to return a set
    -- of response records. When the results of a
    -- DescribeClusterParameterGroups request exceed the value specified in
    -- @MaxRecords@, Amazon Web Services returns a value in the @Marker@ field
    -- of the response. You can retrieve the next set of response records by
    -- providing the returned marker value in the @Marker@ parameter and
    -- retrying the request.
    DescribeClusterParameterGroups -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of response records to return in each call. If the
    -- number of remaining response records exceeds the specified @MaxRecords@
    -- value, a value is returned in a @marker@ field of the response. You can
    -- retrieve the next set of records by retrying the command with the
    -- returned marker value.
    --
    -- Default: @100@
    --
    -- Constraints: minimum 20, maximum 100.
    DescribeClusterParameterGroups -> Maybe Int
maxRecords :: Prelude.Maybe Prelude.Int,
    -- | The name of a specific parameter group for which to return details. By
    -- default, details about all parameter groups and the default parameter
    -- group are returned.
    DescribeClusterParameterGroups -> Maybe Text
parameterGroupName :: Prelude.Maybe Prelude.Text
  }
  deriving (DescribeClusterParameterGroups
-> DescribeClusterParameterGroups -> Bool
(DescribeClusterParameterGroups
 -> DescribeClusterParameterGroups -> Bool)
-> (DescribeClusterParameterGroups
    -> DescribeClusterParameterGroups -> Bool)
-> Eq DescribeClusterParameterGroups
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeClusterParameterGroups
-> DescribeClusterParameterGroups -> Bool
$c/= :: DescribeClusterParameterGroups
-> DescribeClusterParameterGroups -> Bool
== :: DescribeClusterParameterGroups
-> DescribeClusterParameterGroups -> Bool
$c== :: DescribeClusterParameterGroups
-> DescribeClusterParameterGroups -> Bool
Prelude.Eq, ReadPrec [DescribeClusterParameterGroups]
ReadPrec DescribeClusterParameterGroups
Int -> ReadS DescribeClusterParameterGroups
ReadS [DescribeClusterParameterGroups]
(Int -> ReadS DescribeClusterParameterGroups)
-> ReadS [DescribeClusterParameterGroups]
-> ReadPrec DescribeClusterParameterGroups
-> ReadPrec [DescribeClusterParameterGroups]
-> Read DescribeClusterParameterGroups
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeClusterParameterGroups]
$creadListPrec :: ReadPrec [DescribeClusterParameterGroups]
readPrec :: ReadPrec DescribeClusterParameterGroups
$creadPrec :: ReadPrec DescribeClusterParameterGroups
readList :: ReadS [DescribeClusterParameterGroups]
$creadList :: ReadS [DescribeClusterParameterGroups]
readsPrec :: Int -> ReadS DescribeClusterParameterGroups
$creadsPrec :: Int -> ReadS DescribeClusterParameterGroups
Prelude.Read, Int -> DescribeClusterParameterGroups -> ShowS
[DescribeClusterParameterGroups] -> ShowS
DescribeClusterParameterGroups -> String
(Int -> DescribeClusterParameterGroups -> ShowS)
-> (DescribeClusterParameterGroups -> String)
-> ([DescribeClusterParameterGroups] -> ShowS)
-> Show DescribeClusterParameterGroups
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeClusterParameterGroups] -> ShowS
$cshowList :: [DescribeClusterParameterGroups] -> ShowS
show :: DescribeClusterParameterGroups -> String
$cshow :: DescribeClusterParameterGroups -> String
showsPrec :: Int -> DescribeClusterParameterGroups -> ShowS
$cshowsPrec :: Int -> DescribeClusterParameterGroups -> ShowS
Prelude.Show, (forall x.
 DescribeClusterParameterGroups
 -> Rep DescribeClusterParameterGroups x)
-> (forall x.
    Rep DescribeClusterParameterGroups x
    -> DescribeClusterParameterGroups)
-> Generic DescribeClusterParameterGroups
forall x.
Rep DescribeClusterParameterGroups x
-> DescribeClusterParameterGroups
forall x.
DescribeClusterParameterGroups
-> Rep DescribeClusterParameterGroups x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeClusterParameterGroups x
-> DescribeClusterParameterGroups
$cfrom :: forall x.
DescribeClusterParameterGroups
-> Rep DescribeClusterParameterGroups x
Prelude.Generic)

-- |
-- Create a value of 'DescribeClusterParameterGroups' 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:
--
-- 'tagValues', 'describeClusterParameterGroups_tagValues' - A tag value or values for which you want to return all matching cluster
-- parameter groups that are associated with the specified tag value or
-- values. For example, suppose that you have parameter groups that are
-- tagged with values called @admin@ and @test@. If you specify both of
-- these tag values in the request, Amazon Redshift returns a response with
-- the parameter groups that have either or both of these tag values
-- associated with them.
--
-- 'tagKeys', 'describeClusterParameterGroups_tagKeys' - A tag key or keys for which you want to return all matching cluster
-- parameter groups that are associated with the specified key or keys. For
-- example, suppose that you have parameter groups that are tagged with
-- keys called @owner@ and @environment@. If you specify both of these tag
-- keys in the request, Amazon Redshift returns a response with the
-- parameter groups that have either or both of these tag keys associated
-- with them.
--
-- 'marker', 'describeClusterParameterGroups_marker' - An optional parameter that specifies the starting point to return a set
-- of response records. When the results of a
-- DescribeClusterParameterGroups request exceed the value specified in
-- @MaxRecords@, Amazon Web Services returns a value in the @Marker@ field
-- of the response. You can retrieve the next set of response records by
-- providing the returned marker value in the @Marker@ parameter and
-- retrying the request.
--
-- 'maxRecords', 'describeClusterParameterGroups_maxRecords' - The maximum number of response records to return in each call. If the
-- number of remaining response records exceeds the specified @MaxRecords@
-- value, a value is returned in a @marker@ field of the response. You can
-- retrieve the next set of records by retrying the command with the
-- returned marker value.
--
-- Default: @100@
--
-- Constraints: minimum 20, maximum 100.
--
-- 'parameterGroupName', 'describeClusterParameterGroups_parameterGroupName' - The name of a specific parameter group for which to return details. By
-- default, details about all parameter groups and the default parameter
-- group are returned.
newDescribeClusterParameterGroups ::
  DescribeClusterParameterGroups
newDescribeClusterParameterGroups :: DescribeClusterParameterGroups
newDescribeClusterParameterGroups =
  DescribeClusterParameterGroups' :: Maybe [Text]
-> Maybe [Text]
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> DescribeClusterParameterGroups
DescribeClusterParameterGroups'
    { $sel:tagValues:DescribeClusterParameterGroups' :: Maybe [Text]
tagValues =
        Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:tagKeys:DescribeClusterParameterGroups' :: Maybe [Text]
tagKeys = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:marker:DescribeClusterParameterGroups' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxRecords:DescribeClusterParameterGroups' :: Maybe Int
maxRecords = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:parameterGroupName:DescribeClusterParameterGroups' :: Maybe Text
parameterGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | A tag value or values for which you want to return all matching cluster
-- parameter groups that are associated with the specified tag value or
-- values. For example, suppose that you have parameter groups that are
-- tagged with values called @admin@ and @test@. If you specify both of
-- these tag values in the request, Amazon Redshift returns a response with
-- the parameter groups that have either or both of these tag values
-- associated with them.
describeClusterParameterGroups_tagValues :: Lens.Lens' DescribeClusterParameterGroups (Prelude.Maybe [Prelude.Text])
describeClusterParameterGroups_tagValues :: (Maybe [Text] -> f (Maybe [Text]))
-> DescribeClusterParameterGroups
-> f DescribeClusterParameterGroups
describeClusterParameterGroups_tagValues = (DescribeClusterParameterGroups -> Maybe [Text])
-> (DescribeClusterParameterGroups
    -> Maybe [Text] -> DescribeClusterParameterGroups)
-> Lens
     DescribeClusterParameterGroups
     DescribeClusterParameterGroups
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClusterParameterGroups' {Maybe [Text]
tagValues :: Maybe [Text]
$sel:tagValues:DescribeClusterParameterGroups' :: DescribeClusterParameterGroups -> Maybe [Text]
tagValues} -> Maybe [Text]
tagValues) (\s :: DescribeClusterParameterGroups
s@DescribeClusterParameterGroups' {} Maybe [Text]
a -> DescribeClusterParameterGroups
s {$sel:tagValues:DescribeClusterParameterGroups' :: Maybe [Text]
tagValues = Maybe [Text]
a} :: DescribeClusterParameterGroups) ((Maybe [Text] -> f (Maybe [Text]))
 -> DescribeClusterParameterGroups
 -> f DescribeClusterParameterGroups)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DescribeClusterParameterGroups
-> f DescribeClusterParameterGroups
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A tag key or keys for which you want to return all matching cluster
-- parameter groups that are associated with the specified key or keys. For
-- example, suppose that you have parameter groups that are tagged with
-- keys called @owner@ and @environment@. If you specify both of these tag
-- keys in the request, Amazon Redshift returns a response with the
-- parameter groups that have either or both of these tag keys associated
-- with them.
describeClusterParameterGroups_tagKeys :: Lens.Lens' DescribeClusterParameterGroups (Prelude.Maybe [Prelude.Text])
describeClusterParameterGroups_tagKeys :: (Maybe [Text] -> f (Maybe [Text]))
-> DescribeClusterParameterGroups
-> f DescribeClusterParameterGroups
describeClusterParameterGroups_tagKeys = (DescribeClusterParameterGroups -> Maybe [Text])
-> (DescribeClusterParameterGroups
    -> Maybe [Text] -> DescribeClusterParameterGroups)
-> Lens
     DescribeClusterParameterGroups
     DescribeClusterParameterGroups
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClusterParameterGroups' {Maybe [Text]
tagKeys :: Maybe [Text]
$sel:tagKeys:DescribeClusterParameterGroups' :: DescribeClusterParameterGroups -> Maybe [Text]
tagKeys} -> Maybe [Text]
tagKeys) (\s :: DescribeClusterParameterGroups
s@DescribeClusterParameterGroups' {} Maybe [Text]
a -> DescribeClusterParameterGroups
s {$sel:tagKeys:DescribeClusterParameterGroups' :: Maybe [Text]
tagKeys = Maybe [Text]
a} :: DescribeClusterParameterGroups) ((Maybe [Text] -> f (Maybe [Text]))
 -> DescribeClusterParameterGroups
 -> f DescribeClusterParameterGroups)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DescribeClusterParameterGroups
-> f DescribeClusterParameterGroups
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | An optional parameter that specifies the starting point to return a set
-- of response records. When the results of a
-- DescribeClusterParameterGroups request exceed the value specified in
-- @MaxRecords@, Amazon Web Services returns a value in the @Marker@ field
-- of the response. You can retrieve the next set of response records by
-- providing the returned marker value in the @Marker@ parameter and
-- retrying the request.
describeClusterParameterGroups_marker :: Lens.Lens' DescribeClusterParameterGroups (Prelude.Maybe Prelude.Text)
describeClusterParameterGroups_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeClusterParameterGroups
-> f DescribeClusterParameterGroups
describeClusterParameterGroups_marker = (DescribeClusterParameterGroups -> Maybe Text)
-> (DescribeClusterParameterGroups
    -> Maybe Text -> DescribeClusterParameterGroups)
-> Lens
     DescribeClusterParameterGroups
     DescribeClusterParameterGroups
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClusterParameterGroups' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeClusterParameterGroups' :: DescribeClusterParameterGroups -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeClusterParameterGroups
s@DescribeClusterParameterGroups' {} Maybe Text
a -> DescribeClusterParameterGroups
s {$sel:marker:DescribeClusterParameterGroups' :: Maybe Text
marker = Maybe Text
a} :: DescribeClusterParameterGroups)

-- | The maximum number of response records to return in each call. If the
-- number of remaining response records exceeds the specified @MaxRecords@
-- value, a value is returned in a @marker@ field of the response. You can
-- retrieve the next set of records by retrying the command with the
-- returned marker value.
--
-- Default: @100@
--
-- Constraints: minimum 20, maximum 100.
describeClusterParameterGroups_maxRecords :: Lens.Lens' DescribeClusterParameterGroups (Prelude.Maybe Prelude.Int)
describeClusterParameterGroups_maxRecords :: (Maybe Int -> f (Maybe Int))
-> DescribeClusterParameterGroups
-> f DescribeClusterParameterGroups
describeClusterParameterGroups_maxRecords = (DescribeClusterParameterGroups -> Maybe Int)
-> (DescribeClusterParameterGroups
    -> Maybe Int -> DescribeClusterParameterGroups)
-> Lens
     DescribeClusterParameterGroups
     DescribeClusterParameterGroups
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClusterParameterGroups' {Maybe Int
maxRecords :: Maybe Int
$sel:maxRecords:DescribeClusterParameterGroups' :: DescribeClusterParameterGroups -> Maybe Int
maxRecords} -> Maybe Int
maxRecords) (\s :: DescribeClusterParameterGroups
s@DescribeClusterParameterGroups' {} Maybe Int
a -> DescribeClusterParameterGroups
s {$sel:maxRecords:DescribeClusterParameterGroups' :: Maybe Int
maxRecords = Maybe Int
a} :: DescribeClusterParameterGroups)

-- | The name of a specific parameter group for which to return details. By
-- default, details about all parameter groups and the default parameter
-- group are returned.
describeClusterParameterGroups_parameterGroupName :: Lens.Lens' DescribeClusterParameterGroups (Prelude.Maybe Prelude.Text)
describeClusterParameterGroups_parameterGroupName :: (Maybe Text -> f (Maybe Text))
-> DescribeClusterParameterGroups
-> f DescribeClusterParameterGroups
describeClusterParameterGroups_parameterGroupName = (DescribeClusterParameterGroups -> Maybe Text)
-> (DescribeClusterParameterGroups
    -> Maybe Text -> DescribeClusterParameterGroups)
-> Lens
     DescribeClusterParameterGroups
     DescribeClusterParameterGroups
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClusterParameterGroups' {Maybe Text
parameterGroupName :: Maybe Text
$sel:parameterGroupName:DescribeClusterParameterGroups' :: DescribeClusterParameterGroups -> Maybe Text
parameterGroupName} -> Maybe Text
parameterGroupName) (\s :: DescribeClusterParameterGroups
s@DescribeClusterParameterGroups' {} Maybe Text
a -> DescribeClusterParameterGroups
s {$sel:parameterGroupName:DescribeClusterParameterGroups' :: Maybe Text
parameterGroupName = Maybe Text
a} :: DescribeClusterParameterGroups)

instance Core.AWSPager DescribeClusterParameterGroups where
  page :: DescribeClusterParameterGroups
-> AWSResponse DescribeClusterParameterGroups
-> Maybe DescribeClusterParameterGroups
page DescribeClusterParameterGroups
rq AWSResponse DescribeClusterParameterGroups
rs
    | Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse DescribeClusterParameterGroups
DescribeClusterParameterGroupsResponse
rs
            DescribeClusterParameterGroupsResponse
-> Getting (First Text) DescribeClusterParameterGroupsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeClusterParameterGroupsResponse
-> Const (First Text) DescribeClusterParameterGroupsResponse
Lens' DescribeClusterParameterGroupsResponse (Maybe Text)
describeClusterParameterGroupsResponse_marker
              ((Maybe Text -> Const (First Text) (Maybe Text))
 -> DescribeClusterParameterGroupsResponse
 -> Const (First Text) DescribeClusterParameterGroupsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeClusterParameterGroupsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe DescribeClusterParameterGroups
forall a. Maybe a
Prelude.Nothing
    | Maybe [ClusterParameterGroup] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse DescribeClusterParameterGroups
DescribeClusterParameterGroupsResponse
rs
            DescribeClusterParameterGroupsResponse
-> Getting
     (First [ClusterParameterGroup])
     DescribeClusterParameterGroupsResponse
     [ClusterParameterGroup]
-> Maybe [ClusterParameterGroup]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [ClusterParameterGroup]
 -> Const
      (First [ClusterParameterGroup]) (Maybe [ClusterParameterGroup]))
-> DescribeClusterParameterGroupsResponse
-> Const
     (First [ClusterParameterGroup])
     DescribeClusterParameterGroupsResponse
Lens'
  DescribeClusterParameterGroupsResponse
  (Maybe [ClusterParameterGroup])
describeClusterParameterGroupsResponse_parameterGroups
              ((Maybe [ClusterParameterGroup]
  -> Const
       (First [ClusterParameterGroup]) (Maybe [ClusterParameterGroup]))
 -> DescribeClusterParameterGroupsResponse
 -> Const
      (First [ClusterParameterGroup])
      DescribeClusterParameterGroupsResponse)
-> (([ClusterParameterGroup]
     -> Const (First [ClusterParameterGroup]) [ClusterParameterGroup])
    -> Maybe [ClusterParameterGroup]
    -> Const
         (First [ClusterParameterGroup]) (Maybe [ClusterParameterGroup]))
-> Getting
     (First [ClusterParameterGroup])
     DescribeClusterParameterGroupsResponse
     [ClusterParameterGroup]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ClusterParameterGroup]
 -> Const (First [ClusterParameterGroup]) [ClusterParameterGroup])
-> Maybe [ClusterParameterGroup]
-> Const
     (First [ClusterParameterGroup]) (Maybe [ClusterParameterGroup])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe DescribeClusterParameterGroups
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      DescribeClusterParameterGroups
-> Maybe DescribeClusterParameterGroups
forall a. a -> Maybe a
Prelude.Just (DescribeClusterParameterGroups
 -> Maybe DescribeClusterParameterGroups)
-> DescribeClusterParameterGroups
-> Maybe DescribeClusterParameterGroups
forall a b. (a -> b) -> a -> b
Prelude.$
        DescribeClusterParameterGroups
rq
          DescribeClusterParameterGroups
-> (DescribeClusterParameterGroups
    -> DescribeClusterParameterGroups)
-> DescribeClusterParameterGroups
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeClusterParameterGroups
-> Identity DescribeClusterParameterGroups
Lens
  DescribeClusterParameterGroups
  DescribeClusterParameterGroups
  (Maybe Text)
  (Maybe Text)
describeClusterParameterGroups_marker
          ((Maybe Text -> Identity (Maybe Text))
 -> DescribeClusterParameterGroups
 -> Identity DescribeClusterParameterGroups)
-> Maybe Text
-> DescribeClusterParameterGroups
-> DescribeClusterParameterGroups
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeClusterParameterGroups
DescribeClusterParameterGroupsResponse
rs
          DescribeClusterParameterGroupsResponse
-> Getting (First Text) DescribeClusterParameterGroupsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeClusterParameterGroupsResponse
-> Const (First Text) DescribeClusterParameterGroupsResponse
Lens' DescribeClusterParameterGroupsResponse (Maybe Text)
describeClusterParameterGroupsResponse_marker
            ((Maybe Text -> Const (First Text) (Maybe Text))
 -> DescribeClusterParameterGroupsResponse
 -> Const (First Text) DescribeClusterParameterGroupsResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeClusterParameterGroupsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance
  Core.AWSRequest
    DescribeClusterParameterGroups
  where
  type
    AWSResponse DescribeClusterParameterGroups =
      DescribeClusterParameterGroupsResponse
  request :: DescribeClusterParameterGroups
-> Request DescribeClusterParameterGroups
request = Service
-> DescribeClusterParameterGroups
-> Request DescribeClusterParameterGroups
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeClusterParameterGroups
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse DescribeClusterParameterGroups)))
response =
    Text
-> (Int
    -> ResponseHeaders
    -> [Node]
    -> Either String (AWSResponse DescribeClusterParameterGroups))
-> Logger
-> Service
-> Proxy DescribeClusterParameterGroups
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse DescribeClusterParameterGroups)))
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
"DescribeClusterParameterGroupsResult"
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Maybe Text
-> Maybe [ClusterParameterGroup]
-> Int
-> DescribeClusterParameterGroupsResponse
DescribeClusterParameterGroupsResponse'
            (Maybe Text
 -> Maybe [ClusterParameterGroup]
 -> Int
 -> DescribeClusterParameterGroupsResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe [ClusterParameterGroup]
      -> Int -> DescribeClusterParameterGroupsResponse)
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 [ClusterParameterGroup]
   -> Int -> DescribeClusterParameterGroupsResponse)
-> Either String (Maybe [ClusterParameterGroup])
-> Either String (Int -> DescribeClusterParameterGroupsResponse)
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
"ParameterGroups" 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 [ClusterParameterGroup]))
-> Either String (Maybe [ClusterParameterGroup])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [ClusterParameterGroup])
-> [Node] -> Either String (Maybe [ClusterParameterGroup])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [ClusterParameterGroup]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"ClusterParameterGroup")
                        )
            Either String (Int -> DescribeClusterParameterGroupsResponse)
-> Either String Int
-> Either String DescribeClusterParameterGroupsResponse
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
    DescribeClusterParameterGroups

instance
  Prelude.NFData
    DescribeClusterParameterGroups

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

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

instance Core.ToQuery DescribeClusterParameterGroups where
  toQuery :: DescribeClusterParameterGroups -> QueryString
toQuery DescribeClusterParameterGroups' {Maybe Int
Maybe [Text]
Maybe Text
parameterGroupName :: Maybe Text
maxRecords :: Maybe Int
marker :: Maybe Text
tagKeys :: Maybe [Text]
tagValues :: Maybe [Text]
$sel:parameterGroupName:DescribeClusterParameterGroups' :: DescribeClusterParameterGroups -> Maybe Text
$sel:maxRecords:DescribeClusterParameterGroups' :: DescribeClusterParameterGroups -> Maybe Int
$sel:marker:DescribeClusterParameterGroups' :: DescribeClusterParameterGroups -> Maybe Text
$sel:tagKeys:DescribeClusterParameterGroups' :: DescribeClusterParameterGroups -> Maybe [Text]
$sel:tagValues:DescribeClusterParameterGroups' :: DescribeClusterParameterGroups -> 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
"DescribeClusterParameterGroups" ::
                      Prelude.ByteString
                  ),
        ByteString
"Version"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2012-12-01" :: Prelude.ByteString),
        ByteString
"TagValues"
          ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
            (ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"TagValue" ([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
tagValues),
        ByteString
"TagKeys"
          ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
            (ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"TagKey" ([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
tagKeys),
        ByteString
"Marker" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
marker,
        ByteString
"MaxRecords" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
maxRecords,
        ByteString
"ParameterGroupName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
parameterGroupName
      ]

-- | Contains the output from the DescribeClusterParameterGroups action.
--
-- /See:/ 'newDescribeClusterParameterGroupsResponse' smart constructor.
data DescribeClusterParameterGroupsResponse = DescribeClusterParameterGroupsResponse'
  { -- | A value that indicates the starting point for the next set of response
    -- records in a subsequent request. If a value is returned in a response,
    -- you can retrieve the next set of records by providing this returned
    -- marker value in the @Marker@ parameter and retrying the command. If the
    -- @Marker@ field is empty, all response records have been retrieved for
    -- the request.
    DescribeClusterParameterGroupsResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
    -- | A list of ClusterParameterGroup instances. Each instance describes one
    -- cluster parameter group.
    DescribeClusterParameterGroupsResponse
-> Maybe [ClusterParameterGroup]
parameterGroups :: Prelude.Maybe [ClusterParameterGroup],
    -- | The response's http status code.
    DescribeClusterParameterGroupsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeClusterParameterGroupsResponse
-> DescribeClusterParameterGroupsResponse -> Bool
(DescribeClusterParameterGroupsResponse
 -> DescribeClusterParameterGroupsResponse -> Bool)
-> (DescribeClusterParameterGroupsResponse
    -> DescribeClusterParameterGroupsResponse -> Bool)
-> Eq DescribeClusterParameterGroupsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeClusterParameterGroupsResponse
-> DescribeClusterParameterGroupsResponse -> Bool
$c/= :: DescribeClusterParameterGroupsResponse
-> DescribeClusterParameterGroupsResponse -> Bool
== :: DescribeClusterParameterGroupsResponse
-> DescribeClusterParameterGroupsResponse -> Bool
$c== :: DescribeClusterParameterGroupsResponse
-> DescribeClusterParameterGroupsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeClusterParameterGroupsResponse]
ReadPrec DescribeClusterParameterGroupsResponse
Int -> ReadS DescribeClusterParameterGroupsResponse
ReadS [DescribeClusterParameterGroupsResponse]
(Int -> ReadS DescribeClusterParameterGroupsResponse)
-> ReadS [DescribeClusterParameterGroupsResponse]
-> ReadPrec DescribeClusterParameterGroupsResponse
-> ReadPrec [DescribeClusterParameterGroupsResponse]
-> Read DescribeClusterParameterGroupsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeClusterParameterGroupsResponse]
$creadListPrec :: ReadPrec [DescribeClusterParameterGroupsResponse]
readPrec :: ReadPrec DescribeClusterParameterGroupsResponse
$creadPrec :: ReadPrec DescribeClusterParameterGroupsResponse
readList :: ReadS [DescribeClusterParameterGroupsResponse]
$creadList :: ReadS [DescribeClusterParameterGroupsResponse]
readsPrec :: Int -> ReadS DescribeClusterParameterGroupsResponse
$creadsPrec :: Int -> ReadS DescribeClusterParameterGroupsResponse
Prelude.Read, Int -> DescribeClusterParameterGroupsResponse -> ShowS
[DescribeClusterParameterGroupsResponse] -> ShowS
DescribeClusterParameterGroupsResponse -> String
(Int -> DescribeClusterParameterGroupsResponse -> ShowS)
-> (DescribeClusterParameterGroupsResponse -> String)
-> ([DescribeClusterParameterGroupsResponse] -> ShowS)
-> Show DescribeClusterParameterGroupsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeClusterParameterGroupsResponse] -> ShowS
$cshowList :: [DescribeClusterParameterGroupsResponse] -> ShowS
show :: DescribeClusterParameterGroupsResponse -> String
$cshow :: DescribeClusterParameterGroupsResponse -> String
showsPrec :: Int -> DescribeClusterParameterGroupsResponse -> ShowS
$cshowsPrec :: Int -> DescribeClusterParameterGroupsResponse -> ShowS
Prelude.Show, (forall x.
 DescribeClusterParameterGroupsResponse
 -> Rep DescribeClusterParameterGroupsResponse x)
-> (forall x.
    Rep DescribeClusterParameterGroupsResponse x
    -> DescribeClusterParameterGroupsResponse)
-> Generic DescribeClusterParameterGroupsResponse
forall x.
Rep DescribeClusterParameterGroupsResponse x
-> DescribeClusterParameterGroupsResponse
forall x.
DescribeClusterParameterGroupsResponse
-> Rep DescribeClusterParameterGroupsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeClusterParameterGroupsResponse x
-> DescribeClusterParameterGroupsResponse
$cfrom :: forall x.
DescribeClusterParameterGroupsResponse
-> Rep DescribeClusterParameterGroupsResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeClusterParameterGroupsResponse' 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', 'describeClusterParameterGroupsResponse_marker' - A value that indicates the starting point for the next set of response
-- records in a subsequent request. If a value is returned in a response,
-- you can retrieve the next set of records by providing this returned
-- marker value in the @Marker@ parameter and retrying the command. If the
-- @Marker@ field is empty, all response records have been retrieved for
-- the request.
--
-- 'parameterGroups', 'describeClusterParameterGroupsResponse_parameterGroups' - A list of ClusterParameterGroup instances. Each instance describes one
-- cluster parameter group.
--
-- 'httpStatus', 'describeClusterParameterGroupsResponse_httpStatus' - The response's http status code.
newDescribeClusterParameterGroupsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeClusterParameterGroupsResponse
newDescribeClusterParameterGroupsResponse :: Int -> DescribeClusterParameterGroupsResponse
newDescribeClusterParameterGroupsResponse
  Int
pHttpStatus_ =
    DescribeClusterParameterGroupsResponse' :: Maybe Text
-> Maybe [ClusterParameterGroup]
-> Int
-> DescribeClusterParameterGroupsResponse
DescribeClusterParameterGroupsResponse'
      { $sel:marker:DescribeClusterParameterGroupsResponse' :: Maybe Text
marker =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:parameterGroups:DescribeClusterParameterGroupsResponse' :: Maybe [ClusterParameterGroup]
parameterGroups = Maybe [ClusterParameterGroup]
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeClusterParameterGroupsResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | A value that indicates the starting point for the next set of response
-- records in a subsequent request. If a value is returned in a response,
-- you can retrieve the next set of records by providing this returned
-- marker value in the @Marker@ parameter and retrying the command. If the
-- @Marker@ field is empty, all response records have been retrieved for
-- the request.
describeClusterParameterGroupsResponse_marker :: Lens.Lens' DescribeClusterParameterGroupsResponse (Prelude.Maybe Prelude.Text)
describeClusterParameterGroupsResponse_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeClusterParameterGroupsResponse
-> f DescribeClusterParameterGroupsResponse
describeClusterParameterGroupsResponse_marker = (DescribeClusterParameterGroupsResponse -> Maybe Text)
-> (DescribeClusterParameterGroupsResponse
    -> Maybe Text -> DescribeClusterParameterGroupsResponse)
-> Lens' DescribeClusterParameterGroupsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClusterParameterGroupsResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeClusterParameterGroupsResponse' :: DescribeClusterParameterGroupsResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeClusterParameterGroupsResponse
s@DescribeClusterParameterGroupsResponse' {} Maybe Text
a -> DescribeClusterParameterGroupsResponse
s {$sel:marker:DescribeClusterParameterGroupsResponse' :: Maybe Text
marker = Maybe Text
a} :: DescribeClusterParameterGroupsResponse)

-- | A list of ClusterParameterGroup instances. Each instance describes one
-- cluster parameter group.
describeClusterParameterGroupsResponse_parameterGroups :: Lens.Lens' DescribeClusterParameterGroupsResponse (Prelude.Maybe [ClusterParameterGroup])
describeClusterParameterGroupsResponse_parameterGroups :: (Maybe [ClusterParameterGroup]
 -> f (Maybe [ClusterParameterGroup]))
-> DescribeClusterParameterGroupsResponse
-> f DescribeClusterParameterGroupsResponse
describeClusterParameterGroupsResponse_parameterGroups = (DescribeClusterParameterGroupsResponse
 -> Maybe [ClusterParameterGroup])
-> (DescribeClusterParameterGroupsResponse
    -> Maybe [ClusterParameterGroup]
    -> DescribeClusterParameterGroupsResponse)
-> Lens'
     DescribeClusterParameterGroupsResponse
     (Maybe [ClusterParameterGroup])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeClusterParameterGroupsResponse' {Maybe [ClusterParameterGroup]
parameterGroups :: Maybe [ClusterParameterGroup]
$sel:parameterGroups:DescribeClusterParameterGroupsResponse' :: DescribeClusterParameterGroupsResponse
-> Maybe [ClusterParameterGroup]
parameterGroups} -> Maybe [ClusterParameterGroup]
parameterGroups) (\s :: DescribeClusterParameterGroupsResponse
s@DescribeClusterParameterGroupsResponse' {} Maybe [ClusterParameterGroup]
a -> DescribeClusterParameterGroupsResponse
s {$sel:parameterGroups:DescribeClusterParameterGroupsResponse' :: Maybe [ClusterParameterGroup]
parameterGroups = Maybe [ClusterParameterGroup]
a} :: DescribeClusterParameterGroupsResponse) ((Maybe [ClusterParameterGroup]
  -> f (Maybe [ClusterParameterGroup]))
 -> DescribeClusterParameterGroupsResponse
 -> f DescribeClusterParameterGroupsResponse)
-> ((Maybe [ClusterParameterGroup]
     -> f (Maybe [ClusterParameterGroup]))
    -> Maybe [ClusterParameterGroup]
    -> f (Maybe [ClusterParameterGroup]))
-> (Maybe [ClusterParameterGroup]
    -> f (Maybe [ClusterParameterGroup]))
-> DescribeClusterParameterGroupsResponse
-> f DescribeClusterParameterGroupsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [ClusterParameterGroup]
  [ClusterParameterGroup]
  [ClusterParameterGroup]
  [ClusterParameterGroup]
-> Iso
     (Maybe [ClusterParameterGroup])
     (Maybe [ClusterParameterGroup])
     (Maybe [ClusterParameterGroup])
     (Maybe [ClusterParameterGroup])
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
  [ClusterParameterGroup]
  [ClusterParameterGroup]
  [ClusterParameterGroup]
  [ClusterParameterGroup]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    DescribeClusterParameterGroupsResponse