{-# 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.WorkSpaces.DescribeAccountModifications
(
DescribeAccountModifications (..),
newDescribeAccountModifications,
describeAccountModifications_nextToken,
DescribeAccountModificationsResponse (..),
newDescribeAccountModificationsResponse,
describeAccountModificationsResponse_accountModifications,
describeAccountModificationsResponse_nextToken,
describeAccountModificationsResponse_httpStatus,
)
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.WorkSpaces.Types
data DescribeAccountModifications = DescribeAccountModifications'
{
DescribeAccountModifications -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
}
deriving (DescribeAccountModifications
-> DescribeAccountModifications -> Bool
(DescribeAccountModifications
-> DescribeAccountModifications -> Bool)
-> (DescribeAccountModifications
-> DescribeAccountModifications -> Bool)
-> Eq DescribeAccountModifications
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeAccountModifications
-> DescribeAccountModifications -> Bool
$c/= :: DescribeAccountModifications
-> DescribeAccountModifications -> Bool
== :: DescribeAccountModifications
-> DescribeAccountModifications -> Bool
$c== :: DescribeAccountModifications
-> DescribeAccountModifications -> Bool
Prelude.Eq, ReadPrec [DescribeAccountModifications]
ReadPrec DescribeAccountModifications
Int -> ReadS DescribeAccountModifications
ReadS [DescribeAccountModifications]
(Int -> ReadS DescribeAccountModifications)
-> ReadS [DescribeAccountModifications]
-> ReadPrec DescribeAccountModifications
-> ReadPrec [DescribeAccountModifications]
-> Read DescribeAccountModifications
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeAccountModifications]
$creadListPrec :: ReadPrec [DescribeAccountModifications]
readPrec :: ReadPrec DescribeAccountModifications
$creadPrec :: ReadPrec DescribeAccountModifications
readList :: ReadS [DescribeAccountModifications]
$creadList :: ReadS [DescribeAccountModifications]
readsPrec :: Int -> ReadS DescribeAccountModifications
$creadsPrec :: Int -> ReadS DescribeAccountModifications
Prelude.Read, Int -> DescribeAccountModifications -> ShowS
[DescribeAccountModifications] -> ShowS
DescribeAccountModifications -> String
(Int -> DescribeAccountModifications -> ShowS)
-> (DescribeAccountModifications -> String)
-> ([DescribeAccountModifications] -> ShowS)
-> Show DescribeAccountModifications
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeAccountModifications] -> ShowS
$cshowList :: [DescribeAccountModifications] -> ShowS
show :: DescribeAccountModifications -> String
$cshow :: DescribeAccountModifications -> String
showsPrec :: Int -> DescribeAccountModifications -> ShowS
$cshowsPrec :: Int -> DescribeAccountModifications -> ShowS
Prelude.Show, (forall x.
DescribeAccountModifications -> Rep DescribeAccountModifications x)
-> (forall x.
Rep DescribeAccountModifications x -> DescribeAccountModifications)
-> Generic DescribeAccountModifications
forall x.
Rep DescribeAccountModifications x -> DescribeAccountModifications
forall x.
DescribeAccountModifications -> Rep DescribeAccountModifications x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeAccountModifications x -> DescribeAccountModifications
$cfrom :: forall x.
DescribeAccountModifications -> Rep DescribeAccountModifications x
Prelude.Generic)
newDescribeAccountModifications ::
DescribeAccountModifications
newDescribeAccountModifications :: DescribeAccountModifications
newDescribeAccountModifications =
DescribeAccountModifications' :: Maybe Text -> DescribeAccountModifications
DescribeAccountModifications'
{ $sel:nextToken:DescribeAccountModifications' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing
}
describeAccountModifications_nextToken :: Lens.Lens' DescribeAccountModifications (Prelude.Maybe Prelude.Text)
describeAccountModifications_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeAccountModifications -> f DescribeAccountModifications
describeAccountModifications_nextToken = (DescribeAccountModifications -> Maybe Text)
-> (DescribeAccountModifications
-> Maybe Text -> DescribeAccountModifications)
-> Lens
DescribeAccountModifications
DescribeAccountModifications
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAccountModifications' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeAccountModifications' :: DescribeAccountModifications -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeAccountModifications
s@DescribeAccountModifications' {} Maybe Text
a -> DescribeAccountModifications
s {$sel:nextToken:DescribeAccountModifications' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeAccountModifications)
instance Core.AWSPager DescribeAccountModifications where
page :: DescribeAccountModifications
-> AWSResponse DescribeAccountModifications
-> Maybe DescribeAccountModifications
page DescribeAccountModifications
rq AWSResponse DescribeAccountModifications
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeAccountModifications
DescribeAccountModificationsResponse
rs
DescribeAccountModificationsResponse
-> Getting (First Text) DescribeAccountModificationsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeAccountModificationsResponse
-> Const (First Text) DescribeAccountModificationsResponse
Lens' DescribeAccountModificationsResponse (Maybe Text)
describeAccountModificationsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeAccountModificationsResponse
-> Const (First Text) DescribeAccountModificationsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeAccountModificationsResponse 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 DescribeAccountModifications
forall a. Maybe a
Prelude.Nothing
| Maybe [AccountModification] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeAccountModifications
DescribeAccountModificationsResponse
rs
DescribeAccountModificationsResponse
-> Getting
(First [AccountModification])
DescribeAccountModificationsResponse
[AccountModification]
-> Maybe [AccountModification]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [AccountModification]
-> Const
(First [AccountModification]) (Maybe [AccountModification]))
-> DescribeAccountModificationsResponse
-> Const
(First [AccountModification]) DescribeAccountModificationsResponse
Lens'
DescribeAccountModificationsResponse (Maybe [AccountModification])
describeAccountModificationsResponse_accountModifications
((Maybe [AccountModification]
-> Const
(First [AccountModification]) (Maybe [AccountModification]))
-> DescribeAccountModificationsResponse
-> Const
(First [AccountModification]) DescribeAccountModificationsResponse)
-> (([AccountModification]
-> Const (First [AccountModification]) [AccountModification])
-> Maybe [AccountModification]
-> Const
(First [AccountModification]) (Maybe [AccountModification]))
-> Getting
(First [AccountModification])
DescribeAccountModificationsResponse
[AccountModification]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([AccountModification]
-> Const (First [AccountModification]) [AccountModification])
-> Maybe [AccountModification]
-> Const
(First [AccountModification]) (Maybe [AccountModification])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeAccountModifications
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeAccountModifications -> Maybe DescribeAccountModifications
forall a. a -> Maybe a
Prelude.Just (DescribeAccountModifications
-> Maybe DescribeAccountModifications)
-> DescribeAccountModifications
-> Maybe DescribeAccountModifications
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeAccountModifications
rq
DescribeAccountModifications
-> (DescribeAccountModifications -> DescribeAccountModifications)
-> DescribeAccountModifications
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeAccountModifications
-> Identity DescribeAccountModifications
Lens
DescribeAccountModifications
DescribeAccountModifications
(Maybe Text)
(Maybe Text)
describeAccountModifications_nextToken
((Maybe Text -> Identity (Maybe Text))
-> DescribeAccountModifications
-> Identity DescribeAccountModifications)
-> Maybe Text
-> DescribeAccountModifications
-> DescribeAccountModifications
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeAccountModifications
DescribeAccountModificationsResponse
rs
DescribeAccountModificationsResponse
-> Getting (First Text) DescribeAccountModificationsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeAccountModificationsResponse
-> Const (First Text) DescribeAccountModificationsResponse
Lens' DescribeAccountModificationsResponse (Maybe Text)
describeAccountModificationsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeAccountModificationsResponse
-> Const (First Text) DescribeAccountModificationsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeAccountModificationsResponse 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 DescribeAccountModifications where
type
AWSResponse DescribeAccountModifications =
DescribeAccountModificationsResponse
request :: DescribeAccountModifications
-> Request DescribeAccountModifications
request = Service
-> DescribeAccountModifications
-> Request DescribeAccountModifications
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeAccountModifications
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeAccountModifications)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeAccountModifications))
-> Logger
-> Service
-> Proxy DescribeAccountModifications
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeAccountModifications)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe [AccountModification]
-> Maybe Text -> Int -> DescribeAccountModificationsResponse
DescribeAccountModificationsResponse'
(Maybe [AccountModification]
-> Maybe Text -> Int -> DescribeAccountModificationsResponse)
-> Either String (Maybe [AccountModification])
-> Either
String (Maybe Text -> Int -> DescribeAccountModificationsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [AccountModification]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"AccountModifications"
Either String (Maybe (Maybe [AccountModification]))
-> Maybe [AccountModification]
-> Either String (Maybe [AccountModification])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [AccountModification]
forall a. Monoid a => a
Prelude.mempty
)
Either
String (Maybe Text -> Int -> DescribeAccountModificationsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeAccountModificationsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextToken")
Either String (Int -> DescribeAccountModificationsResponse)
-> Either String Int
-> Either String DescribeAccountModificationsResponse
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
DescribeAccountModifications
instance Prelude.NFData DescribeAccountModifications
instance Core.ToHeaders DescribeAccountModifications where
toHeaders :: DescribeAccountModifications -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeAccountModifications -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"WorkspacesService.DescribeAccountModifications" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON DescribeAccountModifications where
toJSON :: DescribeAccountModifications -> Value
toJSON DescribeAccountModifications' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeAccountModifications' :: DescribeAccountModifications -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[(Text
"NextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken]
)
instance Core.ToPath DescribeAccountModifications where
toPath :: DescribeAccountModifications -> ByteString
toPath = ByteString -> DescribeAccountModifications -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeAccountModifications where
toQuery :: DescribeAccountModifications -> QueryString
toQuery = QueryString -> DescribeAccountModifications -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeAccountModificationsResponse = DescribeAccountModificationsResponse'
{
DescribeAccountModificationsResponse -> Maybe [AccountModification]
accountModifications :: Prelude.Maybe [AccountModification],
DescribeAccountModificationsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeAccountModificationsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeAccountModificationsResponse
-> DescribeAccountModificationsResponse -> Bool
(DescribeAccountModificationsResponse
-> DescribeAccountModificationsResponse -> Bool)
-> (DescribeAccountModificationsResponse
-> DescribeAccountModificationsResponse -> Bool)
-> Eq DescribeAccountModificationsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeAccountModificationsResponse
-> DescribeAccountModificationsResponse -> Bool
$c/= :: DescribeAccountModificationsResponse
-> DescribeAccountModificationsResponse -> Bool
== :: DescribeAccountModificationsResponse
-> DescribeAccountModificationsResponse -> Bool
$c== :: DescribeAccountModificationsResponse
-> DescribeAccountModificationsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeAccountModificationsResponse]
ReadPrec DescribeAccountModificationsResponse
Int -> ReadS DescribeAccountModificationsResponse
ReadS [DescribeAccountModificationsResponse]
(Int -> ReadS DescribeAccountModificationsResponse)
-> ReadS [DescribeAccountModificationsResponse]
-> ReadPrec DescribeAccountModificationsResponse
-> ReadPrec [DescribeAccountModificationsResponse]
-> Read DescribeAccountModificationsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeAccountModificationsResponse]
$creadListPrec :: ReadPrec [DescribeAccountModificationsResponse]
readPrec :: ReadPrec DescribeAccountModificationsResponse
$creadPrec :: ReadPrec DescribeAccountModificationsResponse
readList :: ReadS [DescribeAccountModificationsResponse]
$creadList :: ReadS [DescribeAccountModificationsResponse]
readsPrec :: Int -> ReadS DescribeAccountModificationsResponse
$creadsPrec :: Int -> ReadS DescribeAccountModificationsResponse
Prelude.Read, Int -> DescribeAccountModificationsResponse -> ShowS
[DescribeAccountModificationsResponse] -> ShowS
DescribeAccountModificationsResponse -> String
(Int -> DescribeAccountModificationsResponse -> ShowS)
-> (DescribeAccountModificationsResponse -> String)
-> ([DescribeAccountModificationsResponse] -> ShowS)
-> Show DescribeAccountModificationsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeAccountModificationsResponse] -> ShowS
$cshowList :: [DescribeAccountModificationsResponse] -> ShowS
show :: DescribeAccountModificationsResponse -> String
$cshow :: DescribeAccountModificationsResponse -> String
showsPrec :: Int -> DescribeAccountModificationsResponse -> ShowS
$cshowsPrec :: Int -> DescribeAccountModificationsResponse -> ShowS
Prelude.Show, (forall x.
DescribeAccountModificationsResponse
-> Rep DescribeAccountModificationsResponse x)
-> (forall x.
Rep DescribeAccountModificationsResponse x
-> DescribeAccountModificationsResponse)
-> Generic DescribeAccountModificationsResponse
forall x.
Rep DescribeAccountModificationsResponse x
-> DescribeAccountModificationsResponse
forall x.
DescribeAccountModificationsResponse
-> Rep DescribeAccountModificationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeAccountModificationsResponse x
-> DescribeAccountModificationsResponse
$cfrom :: forall x.
DescribeAccountModificationsResponse
-> Rep DescribeAccountModificationsResponse x
Prelude.Generic)
newDescribeAccountModificationsResponse ::
Prelude.Int ->
DescribeAccountModificationsResponse
newDescribeAccountModificationsResponse :: Int -> DescribeAccountModificationsResponse
newDescribeAccountModificationsResponse Int
pHttpStatus_ =
DescribeAccountModificationsResponse' :: Maybe [AccountModification]
-> Maybe Text -> Int -> DescribeAccountModificationsResponse
DescribeAccountModificationsResponse'
{ $sel:accountModifications:DescribeAccountModificationsResponse' :: Maybe [AccountModification]
accountModifications =
Maybe [AccountModification]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeAccountModificationsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeAccountModificationsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeAccountModificationsResponse_accountModifications :: Lens.Lens' DescribeAccountModificationsResponse (Prelude.Maybe [AccountModification])
describeAccountModificationsResponse_accountModifications :: (Maybe [AccountModification] -> f (Maybe [AccountModification]))
-> DescribeAccountModificationsResponse
-> f DescribeAccountModificationsResponse
describeAccountModificationsResponse_accountModifications = (DescribeAccountModificationsResponse
-> Maybe [AccountModification])
-> (DescribeAccountModificationsResponse
-> Maybe [AccountModification]
-> DescribeAccountModificationsResponse)
-> Lens'
DescribeAccountModificationsResponse (Maybe [AccountModification])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAccountModificationsResponse' {Maybe [AccountModification]
accountModifications :: Maybe [AccountModification]
$sel:accountModifications:DescribeAccountModificationsResponse' :: DescribeAccountModificationsResponse -> Maybe [AccountModification]
accountModifications} -> Maybe [AccountModification]
accountModifications) (\s :: DescribeAccountModificationsResponse
s@DescribeAccountModificationsResponse' {} Maybe [AccountModification]
a -> DescribeAccountModificationsResponse
s {$sel:accountModifications:DescribeAccountModificationsResponse' :: Maybe [AccountModification]
accountModifications = Maybe [AccountModification]
a} :: DescribeAccountModificationsResponse) ((Maybe [AccountModification] -> f (Maybe [AccountModification]))
-> DescribeAccountModificationsResponse
-> f DescribeAccountModificationsResponse)
-> ((Maybe [AccountModification]
-> f (Maybe [AccountModification]))
-> Maybe [AccountModification] -> f (Maybe [AccountModification]))
-> (Maybe [AccountModification] -> f (Maybe [AccountModification]))
-> DescribeAccountModificationsResponse
-> f DescribeAccountModificationsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[AccountModification]
[AccountModification]
[AccountModification]
[AccountModification]
-> Iso
(Maybe [AccountModification])
(Maybe [AccountModification])
(Maybe [AccountModification])
(Maybe [AccountModification])
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
[AccountModification]
[AccountModification]
[AccountModification]
[AccountModification]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeAccountModificationsResponse_nextToken :: Lens.Lens' DescribeAccountModificationsResponse (Prelude.Maybe Prelude.Text)
describeAccountModificationsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeAccountModificationsResponse
-> f DescribeAccountModificationsResponse
describeAccountModificationsResponse_nextToken = (DescribeAccountModificationsResponse -> Maybe Text)
-> (DescribeAccountModificationsResponse
-> Maybe Text -> DescribeAccountModificationsResponse)
-> Lens' DescribeAccountModificationsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAccountModificationsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeAccountModificationsResponse' :: DescribeAccountModificationsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeAccountModificationsResponse
s@DescribeAccountModificationsResponse' {} Maybe Text
a -> DescribeAccountModificationsResponse
s {$sel:nextToken:DescribeAccountModificationsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeAccountModificationsResponse)
describeAccountModificationsResponse_httpStatus :: Lens.Lens' DescribeAccountModificationsResponse Prelude.Int
describeAccountModificationsResponse_httpStatus :: (Int -> f Int)
-> DescribeAccountModificationsResponse
-> f DescribeAccountModificationsResponse
describeAccountModificationsResponse_httpStatus = (DescribeAccountModificationsResponse -> Int)
-> (DescribeAccountModificationsResponse
-> Int -> DescribeAccountModificationsResponse)
-> Lens
DescribeAccountModificationsResponse
DescribeAccountModificationsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAccountModificationsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeAccountModificationsResponse' :: DescribeAccountModificationsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeAccountModificationsResponse
s@DescribeAccountModificationsResponse' {} Int
a -> DescribeAccountModificationsResponse
s {$sel:httpStatus:DescribeAccountModificationsResponse' :: Int
httpStatus = Int
a} :: DescribeAccountModificationsResponse)
instance
Prelude.NFData
DescribeAccountModificationsResponse