{-# 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.IAM.GetServiceLastAccessedDetails
(
GetServiceLastAccessedDetails (..),
newGetServiceLastAccessedDetails,
getServiceLastAccessedDetails_marker,
getServiceLastAccessedDetails_maxItems,
getServiceLastAccessedDetails_jobId,
GetServiceLastAccessedDetailsResponse (..),
newGetServiceLastAccessedDetailsResponse,
getServiceLastAccessedDetailsResponse_jobType,
getServiceLastAccessedDetailsResponse_error,
getServiceLastAccessedDetailsResponse_marker,
getServiceLastAccessedDetailsResponse_isTruncated,
getServiceLastAccessedDetailsResponse_httpStatus,
getServiceLastAccessedDetailsResponse_jobStatus,
getServiceLastAccessedDetailsResponse_jobCreationDate,
getServiceLastAccessedDetailsResponse_servicesLastAccessed,
getServiceLastAccessedDetailsResponse_jobCompletionDate,
)
where
import qualified Amazonka.Core as Core
import Amazonka.IAM.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data GetServiceLastAccessedDetails = GetServiceLastAccessedDetails'
{
GetServiceLastAccessedDetails -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
GetServiceLastAccessedDetails -> Maybe Natural
maxItems :: Prelude.Maybe Prelude.Natural,
GetServiceLastAccessedDetails -> Text
jobId :: Prelude.Text
}
deriving (GetServiceLastAccessedDetails
-> GetServiceLastAccessedDetails -> Bool
(GetServiceLastAccessedDetails
-> GetServiceLastAccessedDetails -> Bool)
-> (GetServiceLastAccessedDetails
-> GetServiceLastAccessedDetails -> Bool)
-> Eq GetServiceLastAccessedDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetServiceLastAccessedDetails
-> GetServiceLastAccessedDetails -> Bool
$c/= :: GetServiceLastAccessedDetails
-> GetServiceLastAccessedDetails -> Bool
== :: GetServiceLastAccessedDetails
-> GetServiceLastAccessedDetails -> Bool
$c== :: GetServiceLastAccessedDetails
-> GetServiceLastAccessedDetails -> Bool
Prelude.Eq, ReadPrec [GetServiceLastAccessedDetails]
ReadPrec GetServiceLastAccessedDetails
Int -> ReadS GetServiceLastAccessedDetails
ReadS [GetServiceLastAccessedDetails]
(Int -> ReadS GetServiceLastAccessedDetails)
-> ReadS [GetServiceLastAccessedDetails]
-> ReadPrec GetServiceLastAccessedDetails
-> ReadPrec [GetServiceLastAccessedDetails]
-> Read GetServiceLastAccessedDetails
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetServiceLastAccessedDetails]
$creadListPrec :: ReadPrec [GetServiceLastAccessedDetails]
readPrec :: ReadPrec GetServiceLastAccessedDetails
$creadPrec :: ReadPrec GetServiceLastAccessedDetails
readList :: ReadS [GetServiceLastAccessedDetails]
$creadList :: ReadS [GetServiceLastAccessedDetails]
readsPrec :: Int -> ReadS GetServiceLastAccessedDetails
$creadsPrec :: Int -> ReadS GetServiceLastAccessedDetails
Prelude.Read, Int -> GetServiceLastAccessedDetails -> ShowS
[GetServiceLastAccessedDetails] -> ShowS
GetServiceLastAccessedDetails -> String
(Int -> GetServiceLastAccessedDetails -> ShowS)
-> (GetServiceLastAccessedDetails -> String)
-> ([GetServiceLastAccessedDetails] -> ShowS)
-> Show GetServiceLastAccessedDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetServiceLastAccessedDetails] -> ShowS
$cshowList :: [GetServiceLastAccessedDetails] -> ShowS
show :: GetServiceLastAccessedDetails -> String
$cshow :: GetServiceLastAccessedDetails -> String
showsPrec :: Int -> GetServiceLastAccessedDetails -> ShowS
$cshowsPrec :: Int -> GetServiceLastAccessedDetails -> ShowS
Prelude.Show, (forall x.
GetServiceLastAccessedDetails
-> Rep GetServiceLastAccessedDetails x)
-> (forall x.
Rep GetServiceLastAccessedDetails x
-> GetServiceLastAccessedDetails)
-> Generic GetServiceLastAccessedDetails
forall x.
Rep GetServiceLastAccessedDetails x
-> GetServiceLastAccessedDetails
forall x.
GetServiceLastAccessedDetails
-> Rep GetServiceLastAccessedDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetServiceLastAccessedDetails x
-> GetServiceLastAccessedDetails
$cfrom :: forall x.
GetServiceLastAccessedDetails
-> Rep GetServiceLastAccessedDetails x
Prelude.Generic)
newGetServiceLastAccessedDetails ::
Prelude.Text ->
GetServiceLastAccessedDetails
newGetServiceLastAccessedDetails :: Text -> GetServiceLastAccessedDetails
newGetServiceLastAccessedDetails Text
pJobId_ =
GetServiceLastAccessedDetails' :: Maybe Text
-> Maybe Natural -> Text -> GetServiceLastAccessedDetails
GetServiceLastAccessedDetails'
{ $sel:marker:GetServiceLastAccessedDetails' :: Maybe Text
marker =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxItems:GetServiceLastAccessedDetails' :: Maybe Natural
maxItems = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:jobId:GetServiceLastAccessedDetails' :: Text
jobId = Text
pJobId_
}
getServiceLastAccessedDetails_marker :: Lens.Lens' GetServiceLastAccessedDetails (Prelude.Maybe Prelude.Text)
getServiceLastAccessedDetails_marker :: (Maybe Text -> f (Maybe Text))
-> GetServiceLastAccessedDetails -> f GetServiceLastAccessedDetails
getServiceLastAccessedDetails_marker = (GetServiceLastAccessedDetails -> Maybe Text)
-> (GetServiceLastAccessedDetails
-> Maybe Text -> GetServiceLastAccessedDetails)
-> Lens
GetServiceLastAccessedDetails
GetServiceLastAccessedDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetServiceLastAccessedDetails' {Maybe Text
marker :: Maybe Text
$sel:marker:GetServiceLastAccessedDetails' :: GetServiceLastAccessedDetails -> Maybe Text
marker} -> Maybe Text
marker) (\s :: GetServiceLastAccessedDetails
s@GetServiceLastAccessedDetails' {} Maybe Text
a -> GetServiceLastAccessedDetails
s {$sel:marker:GetServiceLastAccessedDetails' :: Maybe Text
marker = Maybe Text
a} :: GetServiceLastAccessedDetails)
getServiceLastAccessedDetails_maxItems :: Lens.Lens' GetServiceLastAccessedDetails (Prelude.Maybe Prelude.Natural)
getServiceLastAccessedDetails_maxItems :: (Maybe Natural -> f (Maybe Natural))
-> GetServiceLastAccessedDetails -> f GetServiceLastAccessedDetails
getServiceLastAccessedDetails_maxItems = (GetServiceLastAccessedDetails -> Maybe Natural)
-> (GetServiceLastAccessedDetails
-> Maybe Natural -> GetServiceLastAccessedDetails)
-> Lens
GetServiceLastAccessedDetails
GetServiceLastAccessedDetails
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetServiceLastAccessedDetails' {Maybe Natural
maxItems :: Maybe Natural
$sel:maxItems:GetServiceLastAccessedDetails' :: GetServiceLastAccessedDetails -> Maybe Natural
maxItems} -> Maybe Natural
maxItems) (\s :: GetServiceLastAccessedDetails
s@GetServiceLastAccessedDetails' {} Maybe Natural
a -> GetServiceLastAccessedDetails
s {$sel:maxItems:GetServiceLastAccessedDetails' :: Maybe Natural
maxItems = Maybe Natural
a} :: GetServiceLastAccessedDetails)
getServiceLastAccessedDetails_jobId :: Lens.Lens' GetServiceLastAccessedDetails Prelude.Text
getServiceLastAccessedDetails_jobId :: (Text -> f Text)
-> GetServiceLastAccessedDetails -> f GetServiceLastAccessedDetails
getServiceLastAccessedDetails_jobId = (GetServiceLastAccessedDetails -> Text)
-> (GetServiceLastAccessedDetails
-> Text -> GetServiceLastAccessedDetails)
-> Lens
GetServiceLastAccessedDetails
GetServiceLastAccessedDetails
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetServiceLastAccessedDetails' {Text
jobId :: Text
$sel:jobId:GetServiceLastAccessedDetails' :: GetServiceLastAccessedDetails -> Text
jobId} -> Text
jobId) (\s :: GetServiceLastAccessedDetails
s@GetServiceLastAccessedDetails' {} Text
a -> GetServiceLastAccessedDetails
s {$sel:jobId:GetServiceLastAccessedDetails' :: Text
jobId = Text
a} :: GetServiceLastAccessedDetails)
instance
Core.AWSRequest
GetServiceLastAccessedDetails
where
type
AWSResponse GetServiceLastAccessedDetails =
GetServiceLastAccessedDetailsResponse
request :: GetServiceLastAccessedDetails
-> Request GetServiceLastAccessedDetails
request = Service
-> GetServiceLastAccessedDetails
-> Request GetServiceLastAccessedDetails
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy GetServiceLastAccessedDetails
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetServiceLastAccessedDetails)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse GetServiceLastAccessedDetails))
-> Logger
-> Service
-> Proxy GetServiceLastAccessedDetails
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetServiceLastAccessedDetails)))
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
"GetServiceLastAccessedDetailsResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe AccessAdvisorUsageGranularityType
-> Maybe ErrorDetails
-> Maybe Text
-> Maybe Bool
-> Int
-> JobStatusType
-> ISO8601
-> [ServiceLastAccessed]
-> ISO8601
-> GetServiceLastAccessedDetailsResponse
GetServiceLastAccessedDetailsResponse'
(Maybe AccessAdvisorUsageGranularityType
-> Maybe ErrorDetails
-> Maybe Text
-> Maybe Bool
-> Int
-> JobStatusType
-> ISO8601
-> [ServiceLastAccessed]
-> ISO8601
-> GetServiceLastAccessedDetailsResponse)
-> Either String (Maybe AccessAdvisorUsageGranularityType)
-> Either
String
(Maybe ErrorDetails
-> Maybe Text
-> Maybe Bool
-> Int
-> JobStatusType
-> ISO8601
-> [ServiceLastAccessed]
-> ISO8601
-> GetServiceLastAccessedDetailsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node]
-> Text -> Either String (Maybe AccessAdvisorUsageGranularityType)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"JobType")
Either
String
(Maybe ErrorDetails
-> Maybe Text
-> Maybe Bool
-> Int
-> JobStatusType
-> ISO8601
-> [ServiceLastAccessed]
-> ISO8601
-> GetServiceLastAccessedDetailsResponse)
-> Either String (Maybe ErrorDetails)
-> Either
String
(Maybe Text
-> Maybe Bool
-> Int
-> JobStatusType
-> ISO8601
-> [ServiceLastAccessed]
-> ISO8601
-> GetServiceLastAccessedDetailsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe ErrorDetails)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Error")
Either
String
(Maybe Text
-> Maybe Bool
-> Int
-> JobStatusType
-> ISO8601
-> [ServiceLastAccessed]
-> ISO8601
-> GetServiceLastAccessedDetailsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Bool
-> Int
-> JobStatusType
-> ISO8601
-> [ServiceLastAccessed]
-> ISO8601
-> GetServiceLastAccessedDetailsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Marker")
Either
String
(Maybe Bool
-> Int
-> JobStatusType
-> ISO8601
-> [ServiceLastAccessed]
-> ISO8601
-> GetServiceLastAccessedDetailsResponse)
-> Either String (Maybe Bool)
-> Either
String
(Int
-> JobStatusType
-> ISO8601
-> [ServiceLastAccessed]
-> ISO8601
-> GetServiceLastAccessedDetailsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Bool)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"IsTruncated")
Either
String
(Int
-> JobStatusType
-> ISO8601
-> [ServiceLastAccessed]
-> ISO8601
-> GetServiceLastAccessedDetailsResponse)
-> Either String Int
-> Either
String
(JobStatusType
-> ISO8601
-> [ServiceLastAccessed]
-> ISO8601
-> GetServiceLastAccessedDetailsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
Either
String
(JobStatusType
-> ISO8601
-> [ServiceLastAccessed]
-> ISO8601
-> GetServiceLastAccessedDetailsResponse)
-> Either String JobStatusType
-> Either
String
(ISO8601
-> [ServiceLastAccessed]
-> ISO8601
-> GetServiceLastAccessedDetailsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String JobStatusType
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"JobStatus")
Either
String
(ISO8601
-> [ServiceLastAccessed]
-> ISO8601
-> GetServiceLastAccessedDetailsResponse)
-> Either String ISO8601
-> Either
String
([ServiceLastAccessed]
-> ISO8601 -> GetServiceLastAccessedDetailsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String ISO8601
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"JobCreationDate")
Either
String
([ServiceLastAccessed]
-> ISO8601 -> GetServiceLastAccessedDetailsResponse)
-> Either String [ServiceLastAccessed]
-> Either String (ISO8601 -> GetServiceLastAccessedDetailsResponse)
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
"ServicesLastAccessed"
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 [ServiceLastAccessed])
-> Either String [ServiceLastAccessed]
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= Text -> [Node] -> Either String [ServiceLastAccessed]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member"
)
Either String (ISO8601 -> GetServiceLastAccessedDetailsResponse)
-> Either String ISO8601
-> Either String GetServiceLastAccessedDetailsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String ISO8601
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"JobCompletionDate")
)
instance
Prelude.Hashable
GetServiceLastAccessedDetails
instance Prelude.NFData GetServiceLastAccessedDetails
instance Core.ToHeaders GetServiceLastAccessedDetails where
toHeaders :: GetServiceLastAccessedDetails -> ResponseHeaders
toHeaders = ResponseHeaders -> GetServiceLastAccessedDetails -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath GetServiceLastAccessedDetails where
toPath :: GetServiceLastAccessedDetails -> ByteString
toPath = ByteString -> GetServiceLastAccessedDetails -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetServiceLastAccessedDetails where
toQuery :: GetServiceLastAccessedDetails -> QueryString
toQuery GetServiceLastAccessedDetails' {Maybe Natural
Maybe Text
Text
jobId :: Text
maxItems :: Maybe Natural
marker :: Maybe Text
$sel:jobId:GetServiceLastAccessedDetails' :: GetServiceLastAccessedDetails -> Text
$sel:maxItems:GetServiceLastAccessedDetails' :: GetServiceLastAccessedDetails -> Maybe Natural
$sel:marker:GetServiceLastAccessedDetails' :: GetServiceLastAccessedDetails -> 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
"GetServiceLastAccessedDetails" ::
Prelude.ByteString
),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-05-08" :: Prelude.ByteString),
ByteString
"Marker" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
marker,
ByteString
"MaxItems" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxItems,
ByteString
"JobId" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
jobId
]
data GetServiceLastAccessedDetailsResponse = GetServiceLastAccessedDetailsResponse'
{
GetServiceLastAccessedDetailsResponse
-> Maybe AccessAdvisorUsageGranularityType
jobType :: Prelude.Maybe AccessAdvisorUsageGranularityType,
GetServiceLastAccessedDetailsResponse -> Maybe ErrorDetails
error :: Prelude.Maybe ErrorDetails,
GetServiceLastAccessedDetailsResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
GetServiceLastAccessedDetailsResponse -> Maybe Bool
isTruncated :: Prelude.Maybe Prelude.Bool,
GetServiceLastAccessedDetailsResponse -> Int
httpStatus :: Prelude.Int,
GetServiceLastAccessedDetailsResponse -> JobStatusType
jobStatus :: JobStatusType,
GetServiceLastAccessedDetailsResponse -> ISO8601
jobCreationDate :: Core.ISO8601,
GetServiceLastAccessedDetailsResponse -> [ServiceLastAccessed]
servicesLastAccessed :: [ServiceLastAccessed],
GetServiceLastAccessedDetailsResponse -> ISO8601
jobCompletionDate :: Core.ISO8601
}
deriving (GetServiceLastAccessedDetailsResponse
-> GetServiceLastAccessedDetailsResponse -> Bool
(GetServiceLastAccessedDetailsResponse
-> GetServiceLastAccessedDetailsResponse -> Bool)
-> (GetServiceLastAccessedDetailsResponse
-> GetServiceLastAccessedDetailsResponse -> Bool)
-> Eq GetServiceLastAccessedDetailsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetServiceLastAccessedDetailsResponse
-> GetServiceLastAccessedDetailsResponse -> Bool
$c/= :: GetServiceLastAccessedDetailsResponse
-> GetServiceLastAccessedDetailsResponse -> Bool
== :: GetServiceLastAccessedDetailsResponse
-> GetServiceLastAccessedDetailsResponse -> Bool
$c== :: GetServiceLastAccessedDetailsResponse
-> GetServiceLastAccessedDetailsResponse -> Bool
Prelude.Eq, ReadPrec [GetServiceLastAccessedDetailsResponse]
ReadPrec GetServiceLastAccessedDetailsResponse
Int -> ReadS GetServiceLastAccessedDetailsResponse
ReadS [GetServiceLastAccessedDetailsResponse]
(Int -> ReadS GetServiceLastAccessedDetailsResponse)
-> ReadS [GetServiceLastAccessedDetailsResponse]
-> ReadPrec GetServiceLastAccessedDetailsResponse
-> ReadPrec [GetServiceLastAccessedDetailsResponse]
-> Read GetServiceLastAccessedDetailsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetServiceLastAccessedDetailsResponse]
$creadListPrec :: ReadPrec [GetServiceLastAccessedDetailsResponse]
readPrec :: ReadPrec GetServiceLastAccessedDetailsResponse
$creadPrec :: ReadPrec GetServiceLastAccessedDetailsResponse
readList :: ReadS [GetServiceLastAccessedDetailsResponse]
$creadList :: ReadS [GetServiceLastAccessedDetailsResponse]
readsPrec :: Int -> ReadS GetServiceLastAccessedDetailsResponse
$creadsPrec :: Int -> ReadS GetServiceLastAccessedDetailsResponse
Prelude.Read, Int -> GetServiceLastAccessedDetailsResponse -> ShowS
[GetServiceLastAccessedDetailsResponse] -> ShowS
GetServiceLastAccessedDetailsResponse -> String
(Int -> GetServiceLastAccessedDetailsResponse -> ShowS)
-> (GetServiceLastAccessedDetailsResponse -> String)
-> ([GetServiceLastAccessedDetailsResponse] -> ShowS)
-> Show GetServiceLastAccessedDetailsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetServiceLastAccessedDetailsResponse] -> ShowS
$cshowList :: [GetServiceLastAccessedDetailsResponse] -> ShowS
show :: GetServiceLastAccessedDetailsResponse -> String
$cshow :: GetServiceLastAccessedDetailsResponse -> String
showsPrec :: Int -> GetServiceLastAccessedDetailsResponse -> ShowS
$cshowsPrec :: Int -> GetServiceLastAccessedDetailsResponse -> ShowS
Prelude.Show, (forall x.
GetServiceLastAccessedDetailsResponse
-> Rep GetServiceLastAccessedDetailsResponse x)
-> (forall x.
Rep GetServiceLastAccessedDetailsResponse x
-> GetServiceLastAccessedDetailsResponse)
-> Generic GetServiceLastAccessedDetailsResponse
forall x.
Rep GetServiceLastAccessedDetailsResponse x
-> GetServiceLastAccessedDetailsResponse
forall x.
GetServiceLastAccessedDetailsResponse
-> Rep GetServiceLastAccessedDetailsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetServiceLastAccessedDetailsResponse x
-> GetServiceLastAccessedDetailsResponse
$cfrom :: forall x.
GetServiceLastAccessedDetailsResponse
-> Rep GetServiceLastAccessedDetailsResponse x
Prelude.Generic)
newGetServiceLastAccessedDetailsResponse ::
Prelude.Int ->
JobStatusType ->
Prelude.UTCTime ->
Prelude.UTCTime ->
GetServiceLastAccessedDetailsResponse
newGetServiceLastAccessedDetailsResponse :: Int
-> JobStatusType
-> UTCTime
-> UTCTime
-> GetServiceLastAccessedDetailsResponse
newGetServiceLastAccessedDetailsResponse
Int
pHttpStatus_
JobStatusType
pJobStatus_
UTCTime
pJobCreationDate_
UTCTime
pJobCompletionDate_ =
GetServiceLastAccessedDetailsResponse' :: Maybe AccessAdvisorUsageGranularityType
-> Maybe ErrorDetails
-> Maybe Text
-> Maybe Bool
-> Int
-> JobStatusType
-> ISO8601
-> [ServiceLastAccessed]
-> ISO8601
-> GetServiceLastAccessedDetailsResponse
GetServiceLastAccessedDetailsResponse'
{ $sel:jobType:GetServiceLastAccessedDetailsResponse' :: Maybe AccessAdvisorUsageGranularityType
jobType =
Maybe AccessAdvisorUsageGranularityType
forall a. Maybe a
Prelude.Nothing,
$sel:error:GetServiceLastAccessedDetailsResponse' :: Maybe ErrorDetails
error = Maybe ErrorDetails
forall a. Maybe a
Prelude.Nothing,
$sel:marker:GetServiceLastAccessedDetailsResponse' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:isTruncated:GetServiceLastAccessedDetailsResponse' :: Maybe Bool
isTruncated = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetServiceLastAccessedDetailsResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:jobStatus:GetServiceLastAccessedDetailsResponse' :: JobStatusType
jobStatus = JobStatusType
pJobStatus_,
$sel:jobCreationDate:GetServiceLastAccessedDetailsResponse' :: ISO8601
jobCreationDate =
Tagged UTCTime (Identity UTCTime)
-> Tagged ISO8601 (Identity ISO8601)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
(Tagged UTCTime (Identity UTCTime)
-> Tagged ISO8601 (Identity ISO8601))
-> UTCTime -> ISO8601
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pJobCreationDate_,
$sel:servicesLastAccessed:GetServiceLastAccessedDetailsResponse' :: [ServiceLastAccessed]
servicesLastAccessed =
[ServiceLastAccessed]
forall a. Monoid a => a
Prelude.mempty,
$sel:jobCompletionDate:GetServiceLastAccessedDetailsResponse' :: ISO8601
jobCompletionDate =
Tagged UTCTime (Identity UTCTime)
-> Tagged ISO8601 (Identity ISO8601)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
(Tagged UTCTime (Identity UTCTime)
-> Tagged ISO8601 (Identity ISO8601))
-> UTCTime -> ISO8601
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pJobCompletionDate_
}
getServiceLastAccessedDetailsResponse_jobType :: Lens.Lens' GetServiceLastAccessedDetailsResponse (Prelude.Maybe AccessAdvisorUsageGranularityType)
getServiceLastAccessedDetailsResponse_jobType :: (Maybe AccessAdvisorUsageGranularityType
-> f (Maybe AccessAdvisorUsageGranularityType))
-> GetServiceLastAccessedDetailsResponse
-> f GetServiceLastAccessedDetailsResponse
getServiceLastAccessedDetailsResponse_jobType = (GetServiceLastAccessedDetailsResponse
-> Maybe AccessAdvisorUsageGranularityType)
-> (GetServiceLastAccessedDetailsResponse
-> Maybe AccessAdvisorUsageGranularityType
-> GetServiceLastAccessedDetailsResponse)
-> Lens
GetServiceLastAccessedDetailsResponse
GetServiceLastAccessedDetailsResponse
(Maybe AccessAdvisorUsageGranularityType)
(Maybe AccessAdvisorUsageGranularityType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetServiceLastAccessedDetailsResponse' {Maybe AccessAdvisorUsageGranularityType
jobType :: Maybe AccessAdvisorUsageGranularityType
$sel:jobType:GetServiceLastAccessedDetailsResponse' :: GetServiceLastAccessedDetailsResponse
-> Maybe AccessAdvisorUsageGranularityType
jobType} -> Maybe AccessAdvisorUsageGranularityType
jobType) (\s :: GetServiceLastAccessedDetailsResponse
s@GetServiceLastAccessedDetailsResponse' {} Maybe AccessAdvisorUsageGranularityType
a -> GetServiceLastAccessedDetailsResponse
s {$sel:jobType:GetServiceLastAccessedDetailsResponse' :: Maybe AccessAdvisorUsageGranularityType
jobType = Maybe AccessAdvisorUsageGranularityType
a} :: GetServiceLastAccessedDetailsResponse)
getServiceLastAccessedDetailsResponse_error :: Lens.Lens' GetServiceLastAccessedDetailsResponse (Prelude.Maybe ErrorDetails)
getServiceLastAccessedDetailsResponse_error :: (Maybe ErrorDetails -> f (Maybe ErrorDetails))
-> GetServiceLastAccessedDetailsResponse
-> f GetServiceLastAccessedDetailsResponse
getServiceLastAccessedDetailsResponse_error = (GetServiceLastAccessedDetailsResponse -> Maybe ErrorDetails)
-> (GetServiceLastAccessedDetailsResponse
-> Maybe ErrorDetails -> GetServiceLastAccessedDetailsResponse)
-> Lens
GetServiceLastAccessedDetailsResponse
GetServiceLastAccessedDetailsResponse
(Maybe ErrorDetails)
(Maybe ErrorDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetServiceLastAccessedDetailsResponse' {Maybe ErrorDetails
error :: Maybe ErrorDetails
$sel:error:GetServiceLastAccessedDetailsResponse' :: GetServiceLastAccessedDetailsResponse -> Maybe ErrorDetails
error} -> Maybe ErrorDetails
error) (\s :: GetServiceLastAccessedDetailsResponse
s@GetServiceLastAccessedDetailsResponse' {} Maybe ErrorDetails
a -> GetServiceLastAccessedDetailsResponse
s {$sel:error:GetServiceLastAccessedDetailsResponse' :: Maybe ErrorDetails
error = Maybe ErrorDetails
a} :: GetServiceLastAccessedDetailsResponse)
getServiceLastAccessedDetailsResponse_marker :: Lens.Lens' GetServiceLastAccessedDetailsResponse (Prelude.Maybe Prelude.Text)
getServiceLastAccessedDetailsResponse_marker :: (Maybe Text -> f (Maybe Text))
-> GetServiceLastAccessedDetailsResponse
-> f GetServiceLastAccessedDetailsResponse
getServiceLastAccessedDetailsResponse_marker = (GetServiceLastAccessedDetailsResponse -> Maybe Text)
-> (GetServiceLastAccessedDetailsResponse
-> Maybe Text -> GetServiceLastAccessedDetailsResponse)
-> Lens
GetServiceLastAccessedDetailsResponse
GetServiceLastAccessedDetailsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetServiceLastAccessedDetailsResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:GetServiceLastAccessedDetailsResponse' :: GetServiceLastAccessedDetailsResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: GetServiceLastAccessedDetailsResponse
s@GetServiceLastAccessedDetailsResponse' {} Maybe Text
a -> GetServiceLastAccessedDetailsResponse
s {$sel:marker:GetServiceLastAccessedDetailsResponse' :: Maybe Text
marker = Maybe Text
a} :: GetServiceLastAccessedDetailsResponse)
getServiceLastAccessedDetailsResponse_isTruncated :: Lens.Lens' GetServiceLastAccessedDetailsResponse (Prelude.Maybe Prelude.Bool)
getServiceLastAccessedDetailsResponse_isTruncated :: (Maybe Bool -> f (Maybe Bool))
-> GetServiceLastAccessedDetailsResponse
-> f GetServiceLastAccessedDetailsResponse
getServiceLastAccessedDetailsResponse_isTruncated = (GetServiceLastAccessedDetailsResponse -> Maybe Bool)
-> (GetServiceLastAccessedDetailsResponse
-> Maybe Bool -> GetServiceLastAccessedDetailsResponse)
-> Lens
GetServiceLastAccessedDetailsResponse
GetServiceLastAccessedDetailsResponse
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetServiceLastAccessedDetailsResponse' {Maybe Bool
isTruncated :: Maybe Bool
$sel:isTruncated:GetServiceLastAccessedDetailsResponse' :: GetServiceLastAccessedDetailsResponse -> Maybe Bool
isTruncated} -> Maybe Bool
isTruncated) (\s :: GetServiceLastAccessedDetailsResponse
s@GetServiceLastAccessedDetailsResponse' {} Maybe Bool
a -> GetServiceLastAccessedDetailsResponse
s {$sel:isTruncated:GetServiceLastAccessedDetailsResponse' :: Maybe Bool
isTruncated = Maybe Bool
a} :: GetServiceLastAccessedDetailsResponse)
getServiceLastAccessedDetailsResponse_httpStatus :: Lens.Lens' GetServiceLastAccessedDetailsResponse Prelude.Int
getServiceLastAccessedDetailsResponse_httpStatus :: (Int -> f Int)
-> GetServiceLastAccessedDetailsResponse
-> f GetServiceLastAccessedDetailsResponse
getServiceLastAccessedDetailsResponse_httpStatus = (GetServiceLastAccessedDetailsResponse -> Int)
-> (GetServiceLastAccessedDetailsResponse
-> Int -> GetServiceLastAccessedDetailsResponse)
-> Lens
GetServiceLastAccessedDetailsResponse
GetServiceLastAccessedDetailsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetServiceLastAccessedDetailsResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetServiceLastAccessedDetailsResponse' :: GetServiceLastAccessedDetailsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetServiceLastAccessedDetailsResponse
s@GetServiceLastAccessedDetailsResponse' {} Int
a -> GetServiceLastAccessedDetailsResponse
s {$sel:httpStatus:GetServiceLastAccessedDetailsResponse' :: Int
httpStatus = Int
a} :: GetServiceLastAccessedDetailsResponse)
getServiceLastAccessedDetailsResponse_jobStatus :: Lens.Lens' GetServiceLastAccessedDetailsResponse JobStatusType
getServiceLastAccessedDetailsResponse_jobStatus :: (JobStatusType -> f JobStatusType)
-> GetServiceLastAccessedDetailsResponse
-> f GetServiceLastAccessedDetailsResponse
getServiceLastAccessedDetailsResponse_jobStatus = (GetServiceLastAccessedDetailsResponse -> JobStatusType)
-> (GetServiceLastAccessedDetailsResponse
-> JobStatusType -> GetServiceLastAccessedDetailsResponse)
-> Lens
GetServiceLastAccessedDetailsResponse
GetServiceLastAccessedDetailsResponse
JobStatusType
JobStatusType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetServiceLastAccessedDetailsResponse' {JobStatusType
jobStatus :: JobStatusType
$sel:jobStatus:GetServiceLastAccessedDetailsResponse' :: GetServiceLastAccessedDetailsResponse -> JobStatusType
jobStatus} -> JobStatusType
jobStatus) (\s :: GetServiceLastAccessedDetailsResponse
s@GetServiceLastAccessedDetailsResponse' {} JobStatusType
a -> GetServiceLastAccessedDetailsResponse
s {$sel:jobStatus:GetServiceLastAccessedDetailsResponse' :: JobStatusType
jobStatus = JobStatusType
a} :: GetServiceLastAccessedDetailsResponse)
getServiceLastAccessedDetailsResponse_jobCreationDate :: Lens.Lens' GetServiceLastAccessedDetailsResponse Prelude.UTCTime
getServiceLastAccessedDetailsResponse_jobCreationDate :: (UTCTime -> f UTCTime)
-> GetServiceLastAccessedDetailsResponse
-> f GetServiceLastAccessedDetailsResponse
getServiceLastAccessedDetailsResponse_jobCreationDate = (GetServiceLastAccessedDetailsResponse -> ISO8601)
-> (GetServiceLastAccessedDetailsResponse
-> ISO8601 -> GetServiceLastAccessedDetailsResponse)
-> Lens
GetServiceLastAccessedDetailsResponse
GetServiceLastAccessedDetailsResponse
ISO8601
ISO8601
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetServiceLastAccessedDetailsResponse' {ISO8601
jobCreationDate :: ISO8601
$sel:jobCreationDate:GetServiceLastAccessedDetailsResponse' :: GetServiceLastAccessedDetailsResponse -> ISO8601
jobCreationDate} -> ISO8601
jobCreationDate) (\s :: GetServiceLastAccessedDetailsResponse
s@GetServiceLastAccessedDetailsResponse' {} ISO8601
a -> GetServiceLastAccessedDetailsResponse
s {$sel:jobCreationDate:GetServiceLastAccessedDetailsResponse' :: ISO8601
jobCreationDate = ISO8601
a} :: GetServiceLastAccessedDetailsResponse) ((ISO8601 -> f ISO8601)
-> GetServiceLastAccessedDetailsResponse
-> f GetServiceLastAccessedDetailsResponse)
-> ((UTCTime -> f UTCTime) -> ISO8601 -> f ISO8601)
-> (UTCTime -> f UTCTime)
-> GetServiceLastAccessedDetailsResponse
-> f GetServiceLastAccessedDetailsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> ISO8601 -> f ISO8601
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
getServiceLastAccessedDetailsResponse_servicesLastAccessed :: Lens.Lens' GetServiceLastAccessedDetailsResponse [ServiceLastAccessed]
getServiceLastAccessedDetailsResponse_servicesLastAccessed :: ([ServiceLastAccessed] -> f [ServiceLastAccessed])
-> GetServiceLastAccessedDetailsResponse
-> f GetServiceLastAccessedDetailsResponse
getServiceLastAccessedDetailsResponse_servicesLastAccessed = (GetServiceLastAccessedDetailsResponse -> [ServiceLastAccessed])
-> (GetServiceLastAccessedDetailsResponse
-> [ServiceLastAccessed] -> GetServiceLastAccessedDetailsResponse)
-> Lens
GetServiceLastAccessedDetailsResponse
GetServiceLastAccessedDetailsResponse
[ServiceLastAccessed]
[ServiceLastAccessed]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetServiceLastAccessedDetailsResponse' {[ServiceLastAccessed]
servicesLastAccessed :: [ServiceLastAccessed]
$sel:servicesLastAccessed:GetServiceLastAccessedDetailsResponse' :: GetServiceLastAccessedDetailsResponse -> [ServiceLastAccessed]
servicesLastAccessed} -> [ServiceLastAccessed]
servicesLastAccessed) (\s :: GetServiceLastAccessedDetailsResponse
s@GetServiceLastAccessedDetailsResponse' {} [ServiceLastAccessed]
a -> GetServiceLastAccessedDetailsResponse
s {$sel:servicesLastAccessed:GetServiceLastAccessedDetailsResponse' :: [ServiceLastAccessed]
servicesLastAccessed = [ServiceLastAccessed]
a} :: GetServiceLastAccessedDetailsResponse) (([ServiceLastAccessed] -> f [ServiceLastAccessed])
-> GetServiceLastAccessedDetailsResponse
-> f GetServiceLastAccessedDetailsResponse)
-> (([ServiceLastAccessed] -> f [ServiceLastAccessed])
-> [ServiceLastAccessed] -> f [ServiceLastAccessed])
-> ([ServiceLastAccessed] -> f [ServiceLastAccessed])
-> GetServiceLastAccessedDetailsResponse
-> f GetServiceLastAccessedDetailsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ServiceLastAccessed] -> f [ServiceLastAccessed])
-> [ServiceLastAccessed] -> f [ServiceLastAccessed]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getServiceLastAccessedDetailsResponse_jobCompletionDate :: Lens.Lens' GetServiceLastAccessedDetailsResponse Prelude.UTCTime
getServiceLastAccessedDetailsResponse_jobCompletionDate :: (UTCTime -> f UTCTime)
-> GetServiceLastAccessedDetailsResponse
-> f GetServiceLastAccessedDetailsResponse
getServiceLastAccessedDetailsResponse_jobCompletionDate = (GetServiceLastAccessedDetailsResponse -> ISO8601)
-> (GetServiceLastAccessedDetailsResponse
-> ISO8601 -> GetServiceLastAccessedDetailsResponse)
-> Lens
GetServiceLastAccessedDetailsResponse
GetServiceLastAccessedDetailsResponse
ISO8601
ISO8601
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetServiceLastAccessedDetailsResponse' {ISO8601
jobCompletionDate :: ISO8601
$sel:jobCompletionDate:GetServiceLastAccessedDetailsResponse' :: GetServiceLastAccessedDetailsResponse -> ISO8601
jobCompletionDate} -> ISO8601
jobCompletionDate) (\s :: GetServiceLastAccessedDetailsResponse
s@GetServiceLastAccessedDetailsResponse' {} ISO8601
a -> GetServiceLastAccessedDetailsResponse
s {$sel:jobCompletionDate:GetServiceLastAccessedDetailsResponse' :: ISO8601
jobCompletionDate = ISO8601
a} :: GetServiceLastAccessedDetailsResponse) ((ISO8601 -> f ISO8601)
-> GetServiceLastAccessedDetailsResponse
-> f GetServiceLastAccessedDetailsResponse)
-> ((UTCTime -> f UTCTime) -> ISO8601 -> f ISO8601)
-> (UTCTime -> f UTCTime)
-> GetServiceLastAccessedDetailsResponse
-> f GetServiceLastAccessedDetailsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> ISO8601 -> f ISO8601
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
instance
Prelude.NFData
GetServiceLastAccessedDetailsResponse