{-# 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.Route53.GetReusableDelegationSetLimit
-- 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)
--
-- Gets the maximum number of hosted zones that you can associate with the
-- specified reusable delegation set.
--
-- For the default limit, see
-- <https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DNSLimitations.html Limits>
-- in the /Amazon Route 53 Developer Guide/. To request a higher limit,
-- <https://console.aws.amazon.com/support/home#/case/create?issueType=service-limit-increase&limitType=service-code-route53 open a case>.
module Amazonka.Route53.GetReusableDelegationSetLimit
  ( -- * Creating a Request
    GetReusableDelegationSetLimit (..),
    newGetReusableDelegationSetLimit,

    -- * Request Lenses
    getReusableDelegationSetLimit_type,
    getReusableDelegationSetLimit_delegationSetId,

    -- * Destructuring the Response
    GetReusableDelegationSetLimitResponse (..),
    newGetReusableDelegationSetLimitResponse,

    -- * Response Lenses
    getReusableDelegationSetLimitResponse_httpStatus,
    getReusableDelegationSetLimitResponse_limit,
    getReusableDelegationSetLimitResponse_count,
  )
where

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

-- | A complex type that contains information about the request to create a
-- hosted zone.
--
-- /See:/ 'newGetReusableDelegationSetLimit' smart constructor.
data GetReusableDelegationSetLimit = GetReusableDelegationSetLimit'
  { -- | Specify @MAX_ZONES_BY_REUSABLE_DELEGATION_SET@ to get the maximum number
    -- of hosted zones that you can associate with the specified reusable
    -- delegation set.
    GetReusableDelegationSetLimit -> ReusableDelegationSetLimitType
type' :: ReusableDelegationSetLimitType,
    -- | The ID of the delegation set that you want to get the limit for.
    GetReusableDelegationSetLimit -> ResourceId
delegationSetId :: ResourceId
  }
  deriving (GetReusableDelegationSetLimit
-> GetReusableDelegationSetLimit -> Bool
(GetReusableDelegationSetLimit
 -> GetReusableDelegationSetLimit -> Bool)
-> (GetReusableDelegationSetLimit
    -> GetReusableDelegationSetLimit -> Bool)
-> Eq GetReusableDelegationSetLimit
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetReusableDelegationSetLimit
-> GetReusableDelegationSetLimit -> Bool
$c/= :: GetReusableDelegationSetLimit
-> GetReusableDelegationSetLimit -> Bool
== :: GetReusableDelegationSetLimit
-> GetReusableDelegationSetLimit -> Bool
$c== :: GetReusableDelegationSetLimit
-> GetReusableDelegationSetLimit -> Bool
Prelude.Eq, ReadPrec [GetReusableDelegationSetLimit]
ReadPrec GetReusableDelegationSetLimit
Int -> ReadS GetReusableDelegationSetLimit
ReadS [GetReusableDelegationSetLimit]
(Int -> ReadS GetReusableDelegationSetLimit)
-> ReadS [GetReusableDelegationSetLimit]
-> ReadPrec GetReusableDelegationSetLimit
-> ReadPrec [GetReusableDelegationSetLimit]
-> Read GetReusableDelegationSetLimit
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetReusableDelegationSetLimit]
$creadListPrec :: ReadPrec [GetReusableDelegationSetLimit]
readPrec :: ReadPrec GetReusableDelegationSetLimit
$creadPrec :: ReadPrec GetReusableDelegationSetLimit
readList :: ReadS [GetReusableDelegationSetLimit]
$creadList :: ReadS [GetReusableDelegationSetLimit]
readsPrec :: Int -> ReadS GetReusableDelegationSetLimit
$creadsPrec :: Int -> ReadS GetReusableDelegationSetLimit
Prelude.Read, Int -> GetReusableDelegationSetLimit -> ShowS
[GetReusableDelegationSetLimit] -> ShowS
GetReusableDelegationSetLimit -> String
(Int -> GetReusableDelegationSetLimit -> ShowS)
-> (GetReusableDelegationSetLimit -> String)
-> ([GetReusableDelegationSetLimit] -> ShowS)
-> Show GetReusableDelegationSetLimit
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetReusableDelegationSetLimit] -> ShowS
$cshowList :: [GetReusableDelegationSetLimit] -> ShowS
show :: GetReusableDelegationSetLimit -> String
$cshow :: GetReusableDelegationSetLimit -> String
showsPrec :: Int -> GetReusableDelegationSetLimit -> ShowS
$cshowsPrec :: Int -> GetReusableDelegationSetLimit -> ShowS
Prelude.Show, (forall x.
 GetReusableDelegationSetLimit
 -> Rep GetReusableDelegationSetLimit x)
-> (forall x.
    Rep GetReusableDelegationSetLimit x
    -> GetReusableDelegationSetLimit)
-> Generic GetReusableDelegationSetLimit
forall x.
Rep GetReusableDelegationSetLimit x
-> GetReusableDelegationSetLimit
forall x.
GetReusableDelegationSetLimit
-> Rep GetReusableDelegationSetLimit x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetReusableDelegationSetLimit x
-> GetReusableDelegationSetLimit
$cfrom :: forall x.
GetReusableDelegationSetLimit
-> Rep GetReusableDelegationSetLimit x
Prelude.Generic)

-- |
-- Create a value of 'GetReusableDelegationSetLimit' 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:
--
-- 'type'', 'getReusableDelegationSetLimit_type' - Specify @MAX_ZONES_BY_REUSABLE_DELEGATION_SET@ to get the maximum number
-- of hosted zones that you can associate with the specified reusable
-- delegation set.
--
-- 'delegationSetId', 'getReusableDelegationSetLimit_delegationSetId' - The ID of the delegation set that you want to get the limit for.
newGetReusableDelegationSetLimit ::
  -- | 'type''
  ReusableDelegationSetLimitType ->
  -- | 'delegationSetId'
  ResourceId ->
  GetReusableDelegationSetLimit
newGetReusableDelegationSetLimit :: ReusableDelegationSetLimitType
-> ResourceId -> GetReusableDelegationSetLimit
newGetReusableDelegationSetLimit
  ReusableDelegationSetLimitType
pType_
  ResourceId
pDelegationSetId_ =
    GetReusableDelegationSetLimit' :: ReusableDelegationSetLimitType
-> ResourceId -> GetReusableDelegationSetLimit
GetReusableDelegationSetLimit'
      { $sel:type':GetReusableDelegationSetLimit' :: ReusableDelegationSetLimitType
type' = ReusableDelegationSetLimitType
pType_,
        $sel:delegationSetId:GetReusableDelegationSetLimit' :: ResourceId
delegationSetId = ResourceId
pDelegationSetId_
      }

-- | Specify @MAX_ZONES_BY_REUSABLE_DELEGATION_SET@ to get the maximum number
-- of hosted zones that you can associate with the specified reusable
-- delegation set.
getReusableDelegationSetLimit_type :: Lens.Lens' GetReusableDelegationSetLimit ReusableDelegationSetLimitType
getReusableDelegationSetLimit_type :: (ReusableDelegationSetLimitType
 -> f ReusableDelegationSetLimitType)
-> GetReusableDelegationSetLimit -> f GetReusableDelegationSetLimit
getReusableDelegationSetLimit_type = (GetReusableDelegationSetLimit -> ReusableDelegationSetLimitType)
-> (GetReusableDelegationSetLimit
    -> ReusableDelegationSetLimitType -> GetReusableDelegationSetLimit)
-> Lens
     GetReusableDelegationSetLimit
     GetReusableDelegationSetLimit
     ReusableDelegationSetLimitType
     ReusableDelegationSetLimitType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetReusableDelegationSetLimit' {ReusableDelegationSetLimitType
type' :: ReusableDelegationSetLimitType
$sel:type':GetReusableDelegationSetLimit' :: GetReusableDelegationSetLimit -> ReusableDelegationSetLimitType
type'} -> ReusableDelegationSetLimitType
type') (\s :: GetReusableDelegationSetLimit
s@GetReusableDelegationSetLimit' {} ReusableDelegationSetLimitType
a -> GetReusableDelegationSetLimit
s {$sel:type':GetReusableDelegationSetLimit' :: ReusableDelegationSetLimitType
type' = ReusableDelegationSetLimitType
a} :: GetReusableDelegationSetLimit)

-- | The ID of the delegation set that you want to get the limit for.
getReusableDelegationSetLimit_delegationSetId :: Lens.Lens' GetReusableDelegationSetLimit ResourceId
getReusableDelegationSetLimit_delegationSetId :: (ResourceId -> f ResourceId)
-> GetReusableDelegationSetLimit -> f GetReusableDelegationSetLimit
getReusableDelegationSetLimit_delegationSetId = (GetReusableDelegationSetLimit -> ResourceId)
-> (GetReusableDelegationSetLimit
    -> ResourceId -> GetReusableDelegationSetLimit)
-> Lens
     GetReusableDelegationSetLimit
     GetReusableDelegationSetLimit
     ResourceId
     ResourceId
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetReusableDelegationSetLimit' {ResourceId
delegationSetId :: ResourceId
$sel:delegationSetId:GetReusableDelegationSetLimit' :: GetReusableDelegationSetLimit -> ResourceId
delegationSetId} -> ResourceId
delegationSetId) (\s :: GetReusableDelegationSetLimit
s@GetReusableDelegationSetLimit' {} ResourceId
a -> GetReusableDelegationSetLimit
s {$sel:delegationSetId:GetReusableDelegationSetLimit' :: ResourceId
delegationSetId = ResourceId
a} :: GetReusableDelegationSetLimit)

instance
  Core.AWSRequest
    GetReusableDelegationSetLimit
  where
  type
    AWSResponse GetReusableDelegationSetLimit =
      GetReusableDelegationSetLimitResponse
  request :: GetReusableDelegationSetLimit
-> Request GetReusableDelegationSetLimit
request = Service
-> GetReusableDelegationSetLimit
-> Request GetReusableDelegationSetLimit
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy GetReusableDelegationSetLimit
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetReusableDelegationSetLimit)))
response =
    (Int
 -> ResponseHeaders
 -> [Node]
 -> Either String (AWSResponse GetReusableDelegationSetLimit))
-> Logger
-> Service
-> Proxy GetReusableDelegationSetLimit
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetReusableDelegationSetLimit)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXML
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Int
-> ReusableDelegationSetLimit
-> Natural
-> GetReusableDelegationSetLimitResponse
GetReusableDelegationSetLimitResponse'
            (Int
 -> ReusableDelegationSetLimit
 -> Natural
 -> GetReusableDelegationSetLimitResponse)
-> Either String Int
-> Either
     String
     (ReusableDelegationSetLimit
      -> Natural -> GetReusableDelegationSetLimitResponse)
forall (f :: * -> *) a b. Functor 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
  (ReusableDelegationSetLimit
   -> Natural -> GetReusableDelegationSetLimitResponse)
-> Either String ReusableDelegationSetLimit
-> Either String (Natural -> GetReusableDelegationSetLimitResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String ReusableDelegationSetLimit
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"Limit")
            Either String (Natural -> GetReusableDelegationSetLimitResponse)
-> Either String Natural
-> Either String GetReusableDelegationSetLimitResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String Natural
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"Count")
      )

instance
  Prelude.Hashable
    GetReusableDelegationSetLimit

instance Prelude.NFData GetReusableDelegationSetLimit

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

instance Core.ToPath GetReusableDelegationSetLimit where
  toPath :: GetReusableDelegationSetLimit -> ByteString
toPath GetReusableDelegationSetLimit' {ResourceId
ReusableDelegationSetLimitType
delegationSetId :: ResourceId
type' :: ReusableDelegationSetLimitType
$sel:delegationSetId:GetReusableDelegationSetLimit' :: GetReusableDelegationSetLimit -> ResourceId
$sel:type':GetReusableDelegationSetLimit' :: GetReusableDelegationSetLimit -> ReusableDelegationSetLimitType
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/2013-04-01/reusabledelegationsetlimit/",
        ResourceId -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS ResourceId
delegationSetId,
        ByteString
"/",
        ReusableDelegationSetLimitType -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS ReusableDelegationSetLimitType
type'
      ]

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

-- | A complex type that contains the requested limit.
--
-- /See:/ 'newGetReusableDelegationSetLimitResponse' smart constructor.
data GetReusableDelegationSetLimitResponse = GetReusableDelegationSetLimitResponse'
  { -- | The response's http status code.
    GetReusableDelegationSetLimitResponse -> Int
httpStatus :: Prelude.Int,
    -- | The current setting for the limit on hosted zones that you can associate
    -- with the specified reusable delegation set.
    GetReusableDelegationSetLimitResponse -> ReusableDelegationSetLimit
limit :: ReusableDelegationSetLimit,
    -- | The current number of hosted zones that you can associate with the
    -- specified reusable delegation set.
    GetReusableDelegationSetLimitResponse -> Natural
count :: Prelude.Natural
  }
  deriving (GetReusableDelegationSetLimitResponse
-> GetReusableDelegationSetLimitResponse -> Bool
(GetReusableDelegationSetLimitResponse
 -> GetReusableDelegationSetLimitResponse -> Bool)
-> (GetReusableDelegationSetLimitResponse
    -> GetReusableDelegationSetLimitResponse -> Bool)
-> Eq GetReusableDelegationSetLimitResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetReusableDelegationSetLimitResponse
-> GetReusableDelegationSetLimitResponse -> Bool
$c/= :: GetReusableDelegationSetLimitResponse
-> GetReusableDelegationSetLimitResponse -> Bool
== :: GetReusableDelegationSetLimitResponse
-> GetReusableDelegationSetLimitResponse -> Bool
$c== :: GetReusableDelegationSetLimitResponse
-> GetReusableDelegationSetLimitResponse -> Bool
Prelude.Eq, ReadPrec [GetReusableDelegationSetLimitResponse]
ReadPrec GetReusableDelegationSetLimitResponse
Int -> ReadS GetReusableDelegationSetLimitResponse
ReadS [GetReusableDelegationSetLimitResponse]
(Int -> ReadS GetReusableDelegationSetLimitResponse)
-> ReadS [GetReusableDelegationSetLimitResponse]
-> ReadPrec GetReusableDelegationSetLimitResponse
-> ReadPrec [GetReusableDelegationSetLimitResponse]
-> Read GetReusableDelegationSetLimitResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetReusableDelegationSetLimitResponse]
$creadListPrec :: ReadPrec [GetReusableDelegationSetLimitResponse]
readPrec :: ReadPrec GetReusableDelegationSetLimitResponse
$creadPrec :: ReadPrec GetReusableDelegationSetLimitResponse
readList :: ReadS [GetReusableDelegationSetLimitResponse]
$creadList :: ReadS [GetReusableDelegationSetLimitResponse]
readsPrec :: Int -> ReadS GetReusableDelegationSetLimitResponse
$creadsPrec :: Int -> ReadS GetReusableDelegationSetLimitResponse
Prelude.Read, Int -> GetReusableDelegationSetLimitResponse -> ShowS
[GetReusableDelegationSetLimitResponse] -> ShowS
GetReusableDelegationSetLimitResponse -> String
(Int -> GetReusableDelegationSetLimitResponse -> ShowS)
-> (GetReusableDelegationSetLimitResponse -> String)
-> ([GetReusableDelegationSetLimitResponse] -> ShowS)
-> Show GetReusableDelegationSetLimitResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetReusableDelegationSetLimitResponse] -> ShowS
$cshowList :: [GetReusableDelegationSetLimitResponse] -> ShowS
show :: GetReusableDelegationSetLimitResponse -> String
$cshow :: GetReusableDelegationSetLimitResponse -> String
showsPrec :: Int -> GetReusableDelegationSetLimitResponse -> ShowS
$cshowsPrec :: Int -> GetReusableDelegationSetLimitResponse -> ShowS
Prelude.Show, (forall x.
 GetReusableDelegationSetLimitResponse
 -> Rep GetReusableDelegationSetLimitResponse x)
-> (forall x.
    Rep GetReusableDelegationSetLimitResponse x
    -> GetReusableDelegationSetLimitResponse)
-> Generic GetReusableDelegationSetLimitResponse
forall x.
Rep GetReusableDelegationSetLimitResponse x
-> GetReusableDelegationSetLimitResponse
forall x.
GetReusableDelegationSetLimitResponse
-> Rep GetReusableDelegationSetLimitResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetReusableDelegationSetLimitResponse x
-> GetReusableDelegationSetLimitResponse
$cfrom :: forall x.
GetReusableDelegationSetLimitResponse
-> Rep GetReusableDelegationSetLimitResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetReusableDelegationSetLimitResponse' 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:
--
-- 'httpStatus', 'getReusableDelegationSetLimitResponse_httpStatus' - The response's http status code.
--
-- 'limit', 'getReusableDelegationSetLimitResponse_limit' - The current setting for the limit on hosted zones that you can associate
-- with the specified reusable delegation set.
--
-- 'count', 'getReusableDelegationSetLimitResponse_count' - The current number of hosted zones that you can associate with the
-- specified reusable delegation set.
newGetReusableDelegationSetLimitResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'limit'
  ReusableDelegationSetLimit ->
  -- | 'count'
  Prelude.Natural ->
  GetReusableDelegationSetLimitResponse
newGetReusableDelegationSetLimitResponse :: Int
-> ReusableDelegationSetLimit
-> Natural
-> GetReusableDelegationSetLimitResponse
newGetReusableDelegationSetLimitResponse
  Int
pHttpStatus_
  ReusableDelegationSetLimit
pLimit_
  Natural
pCount_ =
    GetReusableDelegationSetLimitResponse' :: Int
-> ReusableDelegationSetLimit
-> Natural
-> GetReusableDelegationSetLimitResponse
GetReusableDelegationSetLimitResponse'
      { $sel:httpStatus:GetReusableDelegationSetLimitResponse' :: Int
httpStatus =
          Int
pHttpStatus_,
        $sel:limit:GetReusableDelegationSetLimitResponse' :: ReusableDelegationSetLimit
limit = ReusableDelegationSetLimit
pLimit_,
        $sel:count:GetReusableDelegationSetLimitResponse' :: Natural
count = Natural
pCount_
      }

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

-- | The current setting for the limit on hosted zones that you can associate
-- with the specified reusable delegation set.
getReusableDelegationSetLimitResponse_limit :: Lens.Lens' GetReusableDelegationSetLimitResponse ReusableDelegationSetLimit
getReusableDelegationSetLimitResponse_limit :: (ReusableDelegationSetLimit -> f ReusableDelegationSetLimit)
-> GetReusableDelegationSetLimitResponse
-> f GetReusableDelegationSetLimitResponse
getReusableDelegationSetLimitResponse_limit = (GetReusableDelegationSetLimitResponse
 -> ReusableDelegationSetLimit)
-> (GetReusableDelegationSetLimitResponse
    -> ReusableDelegationSetLimit
    -> GetReusableDelegationSetLimitResponse)
-> Lens
     GetReusableDelegationSetLimitResponse
     GetReusableDelegationSetLimitResponse
     ReusableDelegationSetLimit
     ReusableDelegationSetLimit
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetReusableDelegationSetLimitResponse' {ReusableDelegationSetLimit
limit :: ReusableDelegationSetLimit
$sel:limit:GetReusableDelegationSetLimitResponse' :: GetReusableDelegationSetLimitResponse -> ReusableDelegationSetLimit
limit} -> ReusableDelegationSetLimit
limit) (\s :: GetReusableDelegationSetLimitResponse
s@GetReusableDelegationSetLimitResponse' {} ReusableDelegationSetLimit
a -> GetReusableDelegationSetLimitResponse
s {$sel:limit:GetReusableDelegationSetLimitResponse' :: ReusableDelegationSetLimit
limit = ReusableDelegationSetLimit
a} :: GetReusableDelegationSetLimitResponse)

-- | The current number of hosted zones that you can associate with the
-- specified reusable delegation set.
getReusableDelegationSetLimitResponse_count :: Lens.Lens' GetReusableDelegationSetLimitResponse Prelude.Natural
getReusableDelegationSetLimitResponse_count :: (Natural -> f Natural)
-> GetReusableDelegationSetLimitResponse
-> f GetReusableDelegationSetLimitResponse
getReusableDelegationSetLimitResponse_count = (GetReusableDelegationSetLimitResponse -> Natural)
-> (GetReusableDelegationSetLimitResponse
    -> Natural -> GetReusableDelegationSetLimitResponse)
-> Lens
     GetReusableDelegationSetLimitResponse
     GetReusableDelegationSetLimitResponse
     Natural
     Natural
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetReusableDelegationSetLimitResponse' {Natural
count :: Natural
$sel:count:GetReusableDelegationSetLimitResponse' :: GetReusableDelegationSetLimitResponse -> Natural
count} -> Natural
count) (\s :: GetReusableDelegationSetLimitResponse
s@GetReusableDelegationSetLimitResponse' {} Natural
a -> GetReusableDelegationSetLimitResponse
s {$sel:count:GetReusableDelegationSetLimitResponse' :: Natural
count = Natural
a} :: GetReusableDelegationSetLimitResponse)

instance
  Prelude.NFData
    GetReusableDelegationSetLimitResponse