{-# 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 #-}
module Amazonka.Route53.GetReusableDelegationSetLimit
(
GetReusableDelegationSetLimit (..),
newGetReusableDelegationSetLimit,
getReusableDelegationSetLimit_type,
getReusableDelegationSetLimit_delegationSetId,
GetReusableDelegationSetLimitResponse (..),
newGetReusableDelegationSetLimitResponse,
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
data GetReusableDelegationSetLimit = GetReusableDelegationSetLimit'
{
GetReusableDelegationSetLimit -> ReusableDelegationSetLimitType
type' :: ReusableDelegationSetLimitType,
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)
newGetReusableDelegationSetLimit ::
ReusableDelegationSetLimitType ->
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_
}
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)
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
data GetReusableDelegationSetLimitResponse = GetReusableDelegationSetLimitResponse'
{
GetReusableDelegationSetLimitResponse -> Int
httpStatus :: Prelude.Int,
GetReusableDelegationSetLimitResponse -> ReusableDelegationSetLimit
limit :: ReusableDelegationSetLimit,
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)
newGetReusableDelegationSetLimitResponse ::
Prelude.Int ->
ReusableDelegationSetLimit ->
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_
}
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)
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)
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