{-# 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.Inspector.DescribeAssessmentTemplates
(
DescribeAssessmentTemplates (..),
newDescribeAssessmentTemplates,
describeAssessmentTemplates_assessmentTemplateArns,
DescribeAssessmentTemplatesResponse (..),
newDescribeAssessmentTemplatesResponse,
describeAssessmentTemplatesResponse_httpStatus,
describeAssessmentTemplatesResponse_assessmentTemplates,
describeAssessmentTemplatesResponse_failedItems,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Inspector.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 DescribeAssessmentTemplates = DescribeAssessmentTemplates'
{ DescribeAssessmentTemplates -> NonEmpty Text
assessmentTemplateArns :: Prelude.NonEmpty Prelude.Text
}
deriving (DescribeAssessmentTemplates -> DescribeAssessmentTemplates -> Bool
(DescribeAssessmentTemplates
-> DescribeAssessmentTemplates -> Bool)
-> (DescribeAssessmentTemplates
-> DescribeAssessmentTemplates -> Bool)
-> Eq DescribeAssessmentTemplates
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeAssessmentTemplates -> DescribeAssessmentTemplates -> Bool
$c/= :: DescribeAssessmentTemplates -> DescribeAssessmentTemplates -> Bool
== :: DescribeAssessmentTemplates -> DescribeAssessmentTemplates -> Bool
$c== :: DescribeAssessmentTemplates -> DescribeAssessmentTemplates -> Bool
Prelude.Eq, ReadPrec [DescribeAssessmentTemplates]
ReadPrec DescribeAssessmentTemplates
Int -> ReadS DescribeAssessmentTemplates
ReadS [DescribeAssessmentTemplates]
(Int -> ReadS DescribeAssessmentTemplates)
-> ReadS [DescribeAssessmentTemplates]
-> ReadPrec DescribeAssessmentTemplates
-> ReadPrec [DescribeAssessmentTemplates]
-> Read DescribeAssessmentTemplates
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeAssessmentTemplates]
$creadListPrec :: ReadPrec [DescribeAssessmentTemplates]
readPrec :: ReadPrec DescribeAssessmentTemplates
$creadPrec :: ReadPrec DescribeAssessmentTemplates
readList :: ReadS [DescribeAssessmentTemplates]
$creadList :: ReadS [DescribeAssessmentTemplates]
readsPrec :: Int -> ReadS DescribeAssessmentTemplates
$creadsPrec :: Int -> ReadS DescribeAssessmentTemplates
Prelude.Read, Int -> DescribeAssessmentTemplates -> ShowS
[DescribeAssessmentTemplates] -> ShowS
DescribeAssessmentTemplates -> String
(Int -> DescribeAssessmentTemplates -> ShowS)
-> (DescribeAssessmentTemplates -> String)
-> ([DescribeAssessmentTemplates] -> ShowS)
-> Show DescribeAssessmentTemplates
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeAssessmentTemplates] -> ShowS
$cshowList :: [DescribeAssessmentTemplates] -> ShowS
show :: DescribeAssessmentTemplates -> String
$cshow :: DescribeAssessmentTemplates -> String
showsPrec :: Int -> DescribeAssessmentTemplates -> ShowS
$cshowsPrec :: Int -> DescribeAssessmentTemplates -> ShowS
Prelude.Show, (forall x.
DescribeAssessmentTemplates -> Rep DescribeAssessmentTemplates x)
-> (forall x.
Rep DescribeAssessmentTemplates x -> DescribeAssessmentTemplates)
-> Generic DescribeAssessmentTemplates
forall x.
Rep DescribeAssessmentTemplates x -> DescribeAssessmentTemplates
forall x.
DescribeAssessmentTemplates -> Rep DescribeAssessmentTemplates x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeAssessmentTemplates x -> DescribeAssessmentTemplates
$cfrom :: forall x.
DescribeAssessmentTemplates -> Rep DescribeAssessmentTemplates x
Prelude.Generic)
newDescribeAssessmentTemplates ::
Prelude.NonEmpty Prelude.Text ->
DescribeAssessmentTemplates
newDescribeAssessmentTemplates :: NonEmpty Text -> DescribeAssessmentTemplates
newDescribeAssessmentTemplates
NonEmpty Text
pAssessmentTemplateArns_ =
DescribeAssessmentTemplates' :: NonEmpty Text -> DescribeAssessmentTemplates
DescribeAssessmentTemplates'
{ $sel:assessmentTemplateArns:DescribeAssessmentTemplates' :: NonEmpty Text
assessmentTemplateArns =
Tagged (NonEmpty Text) (Identity (NonEmpty Text))
-> Tagged (NonEmpty Text) (Identity (NonEmpty Text))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced (Tagged (NonEmpty Text) (Identity (NonEmpty Text))
-> Tagged (NonEmpty Text) (Identity (NonEmpty Text)))
-> NonEmpty Text -> NonEmpty Text
forall t b. AReview t b -> b -> t
Lens.# NonEmpty Text
pAssessmentTemplateArns_
}
describeAssessmentTemplates_assessmentTemplateArns :: Lens.Lens' DescribeAssessmentTemplates (Prelude.NonEmpty Prelude.Text)
describeAssessmentTemplates_assessmentTemplateArns :: (NonEmpty Text -> f (NonEmpty Text))
-> DescribeAssessmentTemplates -> f DescribeAssessmentTemplates
describeAssessmentTemplates_assessmentTemplateArns = (DescribeAssessmentTemplates -> NonEmpty Text)
-> (DescribeAssessmentTemplates
-> NonEmpty Text -> DescribeAssessmentTemplates)
-> Lens
DescribeAssessmentTemplates
DescribeAssessmentTemplates
(NonEmpty Text)
(NonEmpty Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAssessmentTemplates' {NonEmpty Text
assessmentTemplateArns :: NonEmpty Text
$sel:assessmentTemplateArns:DescribeAssessmentTemplates' :: DescribeAssessmentTemplates -> NonEmpty Text
assessmentTemplateArns} -> NonEmpty Text
assessmentTemplateArns) (\s :: DescribeAssessmentTemplates
s@DescribeAssessmentTemplates' {} NonEmpty Text
a -> DescribeAssessmentTemplates
s {$sel:assessmentTemplateArns:DescribeAssessmentTemplates' :: NonEmpty Text
assessmentTemplateArns = NonEmpty Text
a} :: DescribeAssessmentTemplates) ((NonEmpty Text -> f (NonEmpty Text))
-> DescribeAssessmentTemplates -> f DescribeAssessmentTemplates)
-> ((NonEmpty Text -> f (NonEmpty Text))
-> NonEmpty Text -> f (NonEmpty Text))
-> (NonEmpty Text -> f (NonEmpty Text))
-> DescribeAssessmentTemplates
-> f DescribeAssessmentTemplates
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty Text -> f (NonEmpty Text))
-> NonEmpty Text -> f (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSRequest DescribeAssessmentTemplates where
type
AWSResponse DescribeAssessmentTemplates =
DescribeAssessmentTemplatesResponse
request :: DescribeAssessmentTemplates -> Request DescribeAssessmentTemplates
request = Service
-> DescribeAssessmentTemplates
-> Request DescribeAssessmentTemplates
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeAssessmentTemplates
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeAssessmentTemplates)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeAssessmentTemplates))
-> Logger
-> Service
-> Proxy DescribeAssessmentTemplates
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeAssessmentTemplates)))
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 ->
Int
-> [AssessmentTemplate]
-> HashMap Text FailedItemDetails
-> DescribeAssessmentTemplatesResponse
DescribeAssessmentTemplatesResponse'
(Int
-> [AssessmentTemplate]
-> HashMap Text FailedItemDetails
-> DescribeAssessmentTemplatesResponse)
-> Either String Int
-> Either
String
([AssessmentTemplate]
-> HashMap Text FailedItemDetails
-> DescribeAssessmentTemplatesResponse)
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
([AssessmentTemplate]
-> HashMap Text FailedItemDetails
-> DescribeAssessmentTemplatesResponse)
-> Either String [AssessmentTemplate]
-> Either
String
(HashMap Text FailedItemDetails
-> DescribeAssessmentTemplatesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe [AssessmentTemplate])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"assessmentTemplates"
Either String (Maybe [AssessmentTemplate])
-> [AssessmentTemplate] -> Either String [AssessmentTemplate]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [AssessmentTemplate]
forall a. Monoid a => a
Prelude.mempty
)
Either
String
(HashMap Text FailedItemDetails
-> DescribeAssessmentTemplatesResponse)
-> Either String (HashMap Text FailedItemDetails)
-> Either String DescribeAssessmentTemplatesResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe (HashMap Text FailedItemDetails))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"failedItems" Either String (Maybe (HashMap Text FailedItemDetails))
-> HashMap Text FailedItemDetails
-> Either String (HashMap Text FailedItemDetails)
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ HashMap Text FailedItemDetails
forall a. Monoid a => a
Prelude.mempty)
)
instance Prelude.Hashable DescribeAssessmentTemplates
instance Prelude.NFData DescribeAssessmentTemplates
instance Core.ToHeaders DescribeAssessmentTemplates where
toHeaders :: DescribeAssessmentTemplates -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeAssessmentTemplates -> 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
"InspectorService.DescribeAssessmentTemplates" ::
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 DescribeAssessmentTemplates where
toJSON :: DescribeAssessmentTemplates -> Value
toJSON DescribeAssessmentTemplates' {NonEmpty Text
assessmentTemplateArns :: NonEmpty Text
$sel:assessmentTemplateArns:DescribeAssessmentTemplates' :: DescribeAssessmentTemplates -> NonEmpty Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"assessmentTemplateArns"
Text -> NonEmpty Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= NonEmpty Text
assessmentTemplateArns
)
]
)
instance Core.ToPath DescribeAssessmentTemplates where
toPath :: DescribeAssessmentTemplates -> ByteString
toPath = ByteString -> DescribeAssessmentTemplates -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeAssessmentTemplates where
toQuery :: DescribeAssessmentTemplates -> QueryString
toQuery = QueryString -> DescribeAssessmentTemplates -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeAssessmentTemplatesResponse = DescribeAssessmentTemplatesResponse'
{
DescribeAssessmentTemplatesResponse -> Int
httpStatus :: Prelude.Int,
DescribeAssessmentTemplatesResponse -> [AssessmentTemplate]
assessmentTemplates :: [AssessmentTemplate],
DescribeAssessmentTemplatesResponse
-> HashMap Text FailedItemDetails
failedItems :: Prelude.HashMap Prelude.Text FailedItemDetails
}
deriving (DescribeAssessmentTemplatesResponse
-> DescribeAssessmentTemplatesResponse -> Bool
(DescribeAssessmentTemplatesResponse
-> DescribeAssessmentTemplatesResponse -> Bool)
-> (DescribeAssessmentTemplatesResponse
-> DescribeAssessmentTemplatesResponse -> Bool)
-> Eq DescribeAssessmentTemplatesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeAssessmentTemplatesResponse
-> DescribeAssessmentTemplatesResponse -> Bool
$c/= :: DescribeAssessmentTemplatesResponse
-> DescribeAssessmentTemplatesResponse -> Bool
== :: DescribeAssessmentTemplatesResponse
-> DescribeAssessmentTemplatesResponse -> Bool
$c== :: DescribeAssessmentTemplatesResponse
-> DescribeAssessmentTemplatesResponse -> Bool
Prelude.Eq, ReadPrec [DescribeAssessmentTemplatesResponse]
ReadPrec DescribeAssessmentTemplatesResponse
Int -> ReadS DescribeAssessmentTemplatesResponse
ReadS [DescribeAssessmentTemplatesResponse]
(Int -> ReadS DescribeAssessmentTemplatesResponse)
-> ReadS [DescribeAssessmentTemplatesResponse]
-> ReadPrec DescribeAssessmentTemplatesResponse
-> ReadPrec [DescribeAssessmentTemplatesResponse]
-> Read DescribeAssessmentTemplatesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeAssessmentTemplatesResponse]
$creadListPrec :: ReadPrec [DescribeAssessmentTemplatesResponse]
readPrec :: ReadPrec DescribeAssessmentTemplatesResponse
$creadPrec :: ReadPrec DescribeAssessmentTemplatesResponse
readList :: ReadS [DescribeAssessmentTemplatesResponse]
$creadList :: ReadS [DescribeAssessmentTemplatesResponse]
readsPrec :: Int -> ReadS DescribeAssessmentTemplatesResponse
$creadsPrec :: Int -> ReadS DescribeAssessmentTemplatesResponse
Prelude.Read, Int -> DescribeAssessmentTemplatesResponse -> ShowS
[DescribeAssessmentTemplatesResponse] -> ShowS
DescribeAssessmentTemplatesResponse -> String
(Int -> DescribeAssessmentTemplatesResponse -> ShowS)
-> (DescribeAssessmentTemplatesResponse -> String)
-> ([DescribeAssessmentTemplatesResponse] -> ShowS)
-> Show DescribeAssessmentTemplatesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeAssessmentTemplatesResponse] -> ShowS
$cshowList :: [DescribeAssessmentTemplatesResponse] -> ShowS
show :: DescribeAssessmentTemplatesResponse -> String
$cshow :: DescribeAssessmentTemplatesResponse -> String
showsPrec :: Int -> DescribeAssessmentTemplatesResponse -> ShowS
$cshowsPrec :: Int -> DescribeAssessmentTemplatesResponse -> ShowS
Prelude.Show, (forall x.
DescribeAssessmentTemplatesResponse
-> Rep DescribeAssessmentTemplatesResponse x)
-> (forall x.
Rep DescribeAssessmentTemplatesResponse x
-> DescribeAssessmentTemplatesResponse)
-> Generic DescribeAssessmentTemplatesResponse
forall x.
Rep DescribeAssessmentTemplatesResponse x
-> DescribeAssessmentTemplatesResponse
forall x.
DescribeAssessmentTemplatesResponse
-> Rep DescribeAssessmentTemplatesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeAssessmentTemplatesResponse x
-> DescribeAssessmentTemplatesResponse
$cfrom :: forall x.
DescribeAssessmentTemplatesResponse
-> Rep DescribeAssessmentTemplatesResponse x
Prelude.Generic)
newDescribeAssessmentTemplatesResponse ::
Prelude.Int ->
DescribeAssessmentTemplatesResponse
newDescribeAssessmentTemplatesResponse :: Int -> DescribeAssessmentTemplatesResponse
newDescribeAssessmentTemplatesResponse Int
pHttpStatus_ =
DescribeAssessmentTemplatesResponse' :: Int
-> [AssessmentTemplate]
-> HashMap Text FailedItemDetails
-> DescribeAssessmentTemplatesResponse
DescribeAssessmentTemplatesResponse'
{ $sel:httpStatus:DescribeAssessmentTemplatesResponse' :: Int
httpStatus =
Int
pHttpStatus_,
$sel:assessmentTemplates:DescribeAssessmentTemplatesResponse' :: [AssessmentTemplate]
assessmentTemplates = [AssessmentTemplate]
forall a. Monoid a => a
Prelude.mempty,
$sel:failedItems:DescribeAssessmentTemplatesResponse' :: HashMap Text FailedItemDetails
failedItems = HashMap Text FailedItemDetails
forall a. Monoid a => a
Prelude.mempty
}
describeAssessmentTemplatesResponse_httpStatus :: Lens.Lens' DescribeAssessmentTemplatesResponse Prelude.Int
describeAssessmentTemplatesResponse_httpStatus :: (Int -> f Int)
-> DescribeAssessmentTemplatesResponse
-> f DescribeAssessmentTemplatesResponse
describeAssessmentTemplatesResponse_httpStatus = (DescribeAssessmentTemplatesResponse -> Int)
-> (DescribeAssessmentTemplatesResponse
-> Int -> DescribeAssessmentTemplatesResponse)
-> Lens
DescribeAssessmentTemplatesResponse
DescribeAssessmentTemplatesResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAssessmentTemplatesResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeAssessmentTemplatesResponse' :: DescribeAssessmentTemplatesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeAssessmentTemplatesResponse
s@DescribeAssessmentTemplatesResponse' {} Int
a -> DescribeAssessmentTemplatesResponse
s {$sel:httpStatus:DescribeAssessmentTemplatesResponse' :: Int
httpStatus = Int
a} :: DescribeAssessmentTemplatesResponse)
describeAssessmentTemplatesResponse_assessmentTemplates :: Lens.Lens' DescribeAssessmentTemplatesResponse [AssessmentTemplate]
describeAssessmentTemplatesResponse_assessmentTemplates :: ([AssessmentTemplate] -> f [AssessmentTemplate])
-> DescribeAssessmentTemplatesResponse
-> f DescribeAssessmentTemplatesResponse
describeAssessmentTemplatesResponse_assessmentTemplates = (DescribeAssessmentTemplatesResponse -> [AssessmentTemplate])
-> (DescribeAssessmentTemplatesResponse
-> [AssessmentTemplate] -> DescribeAssessmentTemplatesResponse)
-> Lens
DescribeAssessmentTemplatesResponse
DescribeAssessmentTemplatesResponse
[AssessmentTemplate]
[AssessmentTemplate]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAssessmentTemplatesResponse' {[AssessmentTemplate]
assessmentTemplates :: [AssessmentTemplate]
$sel:assessmentTemplates:DescribeAssessmentTemplatesResponse' :: DescribeAssessmentTemplatesResponse -> [AssessmentTemplate]
assessmentTemplates} -> [AssessmentTemplate]
assessmentTemplates) (\s :: DescribeAssessmentTemplatesResponse
s@DescribeAssessmentTemplatesResponse' {} [AssessmentTemplate]
a -> DescribeAssessmentTemplatesResponse
s {$sel:assessmentTemplates:DescribeAssessmentTemplatesResponse' :: [AssessmentTemplate]
assessmentTemplates = [AssessmentTemplate]
a} :: DescribeAssessmentTemplatesResponse) (([AssessmentTemplate] -> f [AssessmentTemplate])
-> DescribeAssessmentTemplatesResponse
-> f DescribeAssessmentTemplatesResponse)
-> (([AssessmentTemplate] -> f [AssessmentTemplate])
-> [AssessmentTemplate] -> f [AssessmentTemplate])
-> ([AssessmentTemplate] -> f [AssessmentTemplate])
-> DescribeAssessmentTemplatesResponse
-> f DescribeAssessmentTemplatesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([AssessmentTemplate] -> f [AssessmentTemplate])
-> [AssessmentTemplate] -> f [AssessmentTemplate]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeAssessmentTemplatesResponse_failedItems :: Lens.Lens' DescribeAssessmentTemplatesResponse (Prelude.HashMap Prelude.Text FailedItemDetails)
describeAssessmentTemplatesResponse_failedItems :: (HashMap Text FailedItemDetails
-> f (HashMap Text FailedItemDetails))
-> DescribeAssessmentTemplatesResponse
-> f DescribeAssessmentTemplatesResponse
describeAssessmentTemplatesResponse_failedItems = (DescribeAssessmentTemplatesResponse
-> HashMap Text FailedItemDetails)
-> (DescribeAssessmentTemplatesResponse
-> HashMap Text FailedItemDetails
-> DescribeAssessmentTemplatesResponse)
-> Lens
DescribeAssessmentTemplatesResponse
DescribeAssessmentTemplatesResponse
(HashMap Text FailedItemDetails)
(HashMap Text FailedItemDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAssessmentTemplatesResponse' {HashMap Text FailedItemDetails
failedItems :: HashMap Text FailedItemDetails
$sel:failedItems:DescribeAssessmentTemplatesResponse' :: DescribeAssessmentTemplatesResponse
-> HashMap Text FailedItemDetails
failedItems} -> HashMap Text FailedItemDetails
failedItems) (\s :: DescribeAssessmentTemplatesResponse
s@DescribeAssessmentTemplatesResponse' {} HashMap Text FailedItemDetails
a -> DescribeAssessmentTemplatesResponse
s {$sel:failedItems:DescribeAssessmentTemplatesResponse' :: HashMap Text FailedItemDetails
failedItems = HashMap Text FailedItemDetails
a} :: DescribeAssessmentTemplatesResponse) ((HashMap Text FailedItemDetails
-> f (HashMap Text FailedItemDetails))
-> DescribeAssessmentTemplatesResponse
-> f DescribeAssessmentTemplatesResponse)
-> ((HashMap Text FailedItemDetails
-> f (HashMap Text FailedItemDetails))
-> HashMap Text FailedItemDetails
-> f (HashMap Text FailedItemDetails))
-> (HashMap Text FailedItemDetails
-> f (HashMap Text FailedItemDetails))
-> DescribeAssessmentTemplatesResponse
-> f DescribeAssessmentTemplatesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (HashMap Text FailedItemDetails
-> f (HashMap Text FailedItemDetails))
-> HashMap Text FailedItemDetails
-> f (HashMap Text FailedItemDetails)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance
Prelude.NFData
DescribeAssessmentTemplatesResponse