{-# 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.ListInstanceProfiles
(
ListInstanceProfiles (..),
newListInstanceProfiles,
listInstanceProfiles_pathPrefix,
listInstanceProfiles_marker,
listInstanceProfiles_maxItems,
ListInstanceProfilesResponse (..),
newListInstanceProfilesResponse,
listInstanceProfilesResponse_marker,
listInstanceProfilesResponse_isTruncated,
listInstanceProfilesResponse_httpStatus,
listInstanceProfilesResponse_instanceProfiles,
)
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 ListInstanceProfiles = ListInstanceProfiles'
{
ListInstanceProfiles -> Maybe Text
pathPrefix :: Prelude.Maybe Prelude.Text,
ListInstanceProfiles -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
ListInstanceProfiles -> Maybe Natural
maxItems :: Prelude.Maybe Prelude.Natural
}
deriving (ListInstanceProfiles -> ListInstanceProfiles -> Bool
(ListInstanceProfiles -> ListInstanceProfiles -> Bool)
-> (ListInstanceProfiles -> ListInstanceProfiles -> Bool)
-> Eq ListInstanceProfiles
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListInstanceProfiles -> ListInstanceProfiles -> Bool
$c/= :: ListInstanceProfiles -> ListInstanceProfiles -> Bool
== :: ListInstanceProfiles -> ListInstanceProfiles -> Bool
$c== :: ListInstanceProfiles -> ListInstanceProfiles -> Bool
Prelude.Eq, ReadPrec [ListInstanceProfiles]
ReadPrec ListInstanceProfiles
Int -> ReadS ListInstanceProfiles
ReadS [ListInstanceProfiles]
(Int -> ReadS ListInstanceProfiles)
-> ReadS [ListInstanceProfiles]
-> ReadPrec ListInstanceProfiles
-> ReadPrec [ListInstanceProfiles]
-> Read ListInstanceProfiles
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListInstanceProfiles]
$creadListPrec :: ReadPrec [ListInstanceProfiles]
readPrec :: ReadPrec ListInstanceProfiles
$creadPrec :: ReadPrec ListInstanceProfiles
readList :: ReadS [ListInstanceProfiles]
$creadList :: ReadS [ListInstanceProfiles]
readsPrec :: Int -> ReadS ListInstanceProfiles
$creadsPrec :: Int -> ReadS ListInstanceProfiles
Prelude.Read, Int -> ListInstanceProfiles -> ShowS
[ListInstanceProfiles] -> ShowS
ListInstanceProfiles -> String
(Int -> ListInstanceProfiles -> ShowS)
-> (ListInstanceProfiles -> String)
-> ([ListInstanceProfiles] -> ShowS)
-> Show ListInstanceProfiles
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListInstanceProfiles] -> ShowS
$cshowList :: [ListInstanceProfiles] -> ShowS
show :: ListInstanceProfiles -> String
$cshow :: ListInstanceProfiles -> String
showsPrec :: Int -> ListInstanceProfiles -> ShowS
$cshowsPrec :: Int -> ListInstanceProfiles -> ShowS
Prelude.Show, (forall x. ListInstanceProfiles -> Rep ListInstanceProfiles x)
-> (forall x. Rep ListInstanceProfiles x -> ListInstanceProfiles)
-> Generic ListInstanceProfiles
forall x. Rep ListInstanceProfiles x -> ListInstanceProfiles
forall x. ListInstanceProfiles -> Rep ListInstanceProfiles x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListInstanceProfiles x -> ListInstanceProfiles
$cfrom :: forall x. ListInstanceProfiles -> Rep ListInstanceProfiles x
Prelude.Generic)
newListInstanceProfiles ::
ListInstanceProfiles
newListInstanceProfiles :: ListInstanceProfiles
newListInstanceProfiles =
ListInstanceProfiles' :: Maybe Text -> Maybe Text -> Maybe Natural -> ListInstanceProfiles
ListInstanceProfiles'
{ $sel:pathPrefix:ListInstanceProfiles' :: Maybe Text
pathPrefix = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:marker:ListInstanceProfiles' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxItems:ListInstanceProfiles' :: Maybe Natural
maxItems = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listInstanceProfiles_pathPrefix :: Lens.Lens' ListInstanceProfiles (Prelude.Maybe Prelude.Text)
listInstanceProfiles_pathPrefix :: (Maybe Text -> f (Maybe Text))
-> ListInstanceProfiles -> f ListInstanceProfiles
listInstanceProfiles_pathPrefix = (ListInstanceProfiles -> Maybe Text)
-> (ListInstanceProfiles -> Maybe Text -> ListInstanceProfiles)
-> Lens
ListInstanceProfiles ListInstanceProfiles (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInstanceProfiles' {Maybe Text
pathPrefix :: Maybe Text
$sel:pathPrefix:ListInstanceProfiles' :: ListInstanceProfiles -> Maybe Text
pathPrefix} -> Maybe Text
pathPrefix) (\s :: ListInstanceProfiles
s@ListInstanceProfiles' {} Maybe Text
a -> ListInstanceProfiles
s {$sel:pathPrefix:ListInstanceProfiles' :: Maybe Text
pathPrefix = Maybe Text
a} :: ListInstanceProfiles)
listInstanceProfiles_marker :: Lens.Lens' ListInstanceProfiles (Prelude.Maybe Prelude.Text)
listInstanceProfiles_marker :: (Maybe Text -> f (Maybe Text))
-> ListInstanceProfiles -> f ListInstanceProfiles
listInstanceProfiles_marker = (ListInstanceProfiles -> Maybe Text)
-> (ListInstanceProfiles -> Maybe Text -> ListInstanceProfiles)
-> Lens
ListInstanceProfiles ListInstanceProfiles (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInstanceProfiles' {Maybe Text
marker :: Maybe Text
$sel:marker:ListInstanceProfiles' :: ListInstanceProfiles -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListInstanceProfiles
s@ListInstanceProfiles' {} Maybe Text
a -> ListInstanceProfiles
s {$sel:marker:ListInstanceProfiles' :: Maybe Text
marker = Maybe Text
a} :: ListInstanceProfiles)
listInstanceProfiles_maxItems :: Lens.Lens' ListInstanceProfiles (Prelude.Maybe Prelude.Natural)
listInstanceProfiles_maxItems :: (Maybe Natural -> f (Maybe Natural))
-> ListInstanceProfiles -> f ListInstanceProfiles
listInstanceProfiles_maxItems = (ListInstanceProfiles -> Maybe Natural)
-> (ListInstanceProfiles -> Maybe Natural -> ListInstanceProfiles)
-> Lens
ListInstanceProfiles
ListInstanceProfiles
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInstanceProfiles' {Maybe Natural
maxItems :: Maybe Natural
$sel:maxItems:ListInstanceProfiles' :: ListInstanceProfiles -> Maybe Natural
maxItems} -> Maybe Natural
maxItems) (\s :: ListInstanceProfiles
s@ListInstanceProfiles' {} Maybe Natural
a -> ListInstanceProfiles
s {$sel:maxItems:ListInstanceProfiles' :: Maybe Natural
maxItems = Maybe Natural
a} :: ListInstanceProfiles)
instance Core.AWSPager ListInstanceProfiles where
page :: ListInstanceProfiles
-> AWSResponse ListInstanceProfiles -> Maybe ListInstanceProfiles
page ListInstanceProfiles
rq AWSResponse ListInstanceProfiles
rs
| Maybe Bool -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListInstanceProfiles
ListInstanceProfilesResponse
rs
ListInstanceProfilesResponse
-> Getting (First Bool) ListInstanceProfilesResponse Bool
-> Maybe Bool
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Bool -> Const (First Bool) (Maybe Bool))
-> ListInstanceProfilesResponse
-> Const (First Bool) ListInstanceProfilesResponse
Lens' ListInstanceProfilesResponse (Maybe Bool)
listInstanceProfilesResponse_isTruncated
((Maybe Bool -> Const (First Bool) (Maybe Bool))
-> ListInstanceProfilesResponse
-> Const (First Bool) ListInstanceProfilesResponse)
-> ((Bool -> Const (First Bool) Bool)
-> Maybe Bool -> Const (First Bool) (Maybe Bool))
-> Getting (First Bool) ListInstanceProfilesResponse Bool
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Bool -> Const (First Bool) Bool)
-> Maybe Bool -> Const (First Bool) (Maybe Bool)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListInstanceProfiles
forall a. Maybe a
Prelude.Nothing
| Maybe Text -> Bool
forall a. Maybe a -> Bool
Prelude.isNothing
( AWSResponse ListInstanceProfiles
ListInstanceProfilesResponse
rs
ListInstanceProfilesResponse
-> Getting (First Text) ListInstanceProfilesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListInstanceProfilesResponse
-> Const (First Text) ListInstanceProfilesResponse
Lens' ListInstanceProfilesResponse (Maybe Text)
listInstanceProfilesResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListInstanceProfilesResponse
-> Const (First Text) ListInstanceProfilesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListInstanceProfilesResponse 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 ListInstanceProfiles
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListInstanceProfiles -> Maybe ListInstanceProfiles
forall a. a -> Maybe a
Prelude.Just (ListInstanceProfiles -> Maybe ListInstanceProfiles)
-> ListInstanceProfiles -> Maybe ListInstanceProfiles
forall a b. (a -> b) -> a -> b
Prelude.$
ListInstanceProfiles
rq
ListInstanceProfiles
-> (ListInstanceProfiles -> ListInstanceProfiles)
-> ListInstanceProfiles
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListInstanceProfiles -> Identity ListInstanceProfiles
Lens
ListInstanceProfiles ListInstanceProfiles (Maybe Text) (Maybe Text)
listInstanceProfiles_marker
((Maybe Text -> Identity (Maybe Text))
-> ListInstanceProfiles -> Identity ListInstanceProfiles)
-> Maybe Text -> ListInstanceProfiles -> ListInstanceProfiles
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListInstanceProfiles
ListInstanceProfilesResponse
rs
ListInstanceProfilesResponse
-> Getting (First Text) ListInstanceProfilesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListInstanceProfilesResponse
-> Const (First Text) ListInstanceProfilesResponse
Lens' ListInstanceProfilesResponse (Maybe Text)
listInstanceProfilesResponse_marker
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListInstanceProfilesResponse
-> Const (First Text) ListInstanceProfilesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListInstanceProfilesResponse 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 ListInstanceProfiles where
type
AWSResponse ListInstanceProfiles =
ListInstanceProfilesResponse
request :: ListInstanceProfiles -> Request ListInstanceProfiles
request = Service -> ListInstanceProfiles -> Request ListInstanceProfiles
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy ListInstanceProfiles
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListInstanceProfiles)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse ListInstanceProfiles))
-> Logger
-> Service
-> Proxy ListInstanceProfiles
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListInstanceProfiles)))
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
"ListInstanceProfilesResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe Text
-> Maybe Bool
-> Int
-> [InstanceProfile]
-> ListInstanceProfilesResponse
ListInstanceProfilesResponse'
(Maybe Text
-> Maybe Bool
-> Int
-> [InstanceProfile]
-> ListInstanceProfilesResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Bool
-> Int -> [InstanceProfile] -> ListInstanceProfilesResponse)
forall (f :: * -> *) a b. Functor 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 -> [InstanceProfile] -> ListInstanceProfilesResponse)
-> Either String (Maybe Bool)
-> Either
String (Int -> [InstanceProfile] -> ListInstanceProfilesResponse)
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 -> [InstanceProfile] -> ListInstanceProfilesResponse)
-> Either String Int
-> Either
String ([InstanceProfile] -> ListInstanceProfilesResponse)
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 ([InstanceProfile] -> ListInstanceProfilesResponse)
-> Either String [InstanceProfile]
-> Either String ListInstanceProfilesResponse
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
"InstanceProfiles"
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 [InstanceProfile])
-> Either String [InstanceProfile]
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= Text -> [Node] -> Either String [InstanceProfile]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member"
)
)
instance Prelude.Hashable ListInstanceProfiles
instance Prelude.NFData ListInstanceProfiles
instance Core.ToHeaders ListInstanceProfiles where
toHeaders :: ListInstanceProfiles -> ResponseHeaders
toHeaders = ResponseHeaders -> ListInstanceProfiles -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath ListInstanceProfiles where
toPath :: ListInstanceProfiles -> ByteString
toPath = ByteString -> ListInstanceProfiles -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListInstanceProfiles where
toQuery :: ListInstanceProfiles -> QueryString
toQuery ListInstanceProfiles' {Maybe Natural
Maybe Text
maxItems :: Maybe Natural
marker :: Maybe Text
pathPrefix :: Maybe Text
$sel:maxItems:ListInstanceProfiles' :: ListInstanceProfiles -> Maybe Natural
$sel:marker:ListInstanceProfiles' :: ListInstanceProfiles -> Maybe Text
$sel:pathPrefix:ListInstanceProfiles' :: ListInstanceProfiles -> 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
"ListInstanceProfiles" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-05-08" :: Prelude.ByteString),
ByteString
"PathPrefix" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
pathPrefix,
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
]
data ListInstanceProfilesResponse = ListInstanceProfilesResponse'
{
ListInstanceProfilesResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
ListInstanceProfilesResponse -> Maybe Bool
isTruncated :: Prelude.Maybe Prelude.Bool,
ListInstanceProfilesResponse -> Int
httpStatus :: Prelude.Int,
ListInstanceProfilesResponse -> [InstanceProfile]
instanceProfiles :: [InstanceProfile]
}
deriving (ListInstanceProfilesResponse
-> ListInstanceProfilesResponse -> Bool
(ListInstanceProfilesResponse
-> ListInstanceProfilesResponse -> Bool)
-> (ListInstanceProfilesResponse
-> ListInstanceProfilesResponse -> Bool)
-> Eq ListInstanceProfilesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListInstanceProfilesResponse
-> ListInstanceProfilesResponse -> Bool
$c/= :: ListInstanceProfilesResponse
-> ListInstanceProfilesResponse -> Bool
== :: ListInstanceProfilesResponse
-> ListInstanceProfilesResponse -> Bool
$c== :: ListInstanceProfilesResponse
-> ListInstanceProfilesResponse -> Bool
Prelude.Eq, ReadPrec [ListInstanceProfilesResponse]
ReadPrec ListInstanceProfilesResponse
Int -> ReadS ListInstanceProfilesResponse
ReadS [ListInstanceProfilesResponse]
(Int -> ReadS ListInstanceProfilesResponse)
-> ReadS [ListInstanceProfilesResponse]
-> ReadPrec ListInstanceProfilesResponse
-> ReadPrec [ListInstanceProfilesResponse]
-> Read ListInstanceProfilesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListInstanceProfilesResponse]
$creadListPrec :: ReadPrec [ListInstanceProfilesResponse]
readPrec :: ReadPrec ListInstanceProfilesResponse
$creadPrec :: ReadPrec ListInstanceProfilesResponse
readList :: ReadS [ListInstanceProfilesResponse]
$creadList :: ReadS [ListInstanceProfilesResponse]
readsPrec :: Int -> ReadS ListInstanceProfilesResponse
$creadsPrec :: Int -> ReadS ListInstanceProfilesResponse
Prelude.Read, Int -> ListInstanceProfilesResponse -> ShowS
[ListInstanceProfilesResponse] -> ShowS
ListInstanceProfilesResponse -> String
(Int -> ListInstanceProfilesResponse -> ShowS)
-> (ListInstanceProfilesResponse -> String)
-> ([ListInstanceProfilesResponse] -> ShowS)
-> Show ListInstanceProfilesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListInstanceProfilesResponse] -> ShowS
$cshowList :: [ListInstanceProfilesResponse] -> ShowS
show :: ListInstanceProfilesResponse -> String
$cshow :: ListInstanceProfilesResponse -> String
showsPrec :: Int -> ListInstanceProfilesResponse -> ShowS
$cshowsPrec :: Int -> ListInstanceProfilesResponse -> ShowS
Prelude.Show, (forall x.
ListInstanceProfilesResponse -> Rep ListInstanceProfilesResponse x)
-> (forall x.
Rep ListInstanceProfilesResponse x -> ListInstanceProfilesResponse)
-> Generic ListInstanceProfilesResponse
forall x.
Rep ListInstanceProfilesResponse x -> ListInstanceProfilesResponse
forall x.
ListInstanceProfilesResponse -> Rep ListInstanceProfilesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListInstanceProfilesResponse x -> ListInstanceProfilesResponse
$cfrom :: forall x.
ListInstanceProfilesResponse -> Rep ListInstanceProfilesResponse x
Prelude.Generic)
newListInstanceProfilesResponse ::
Prelude.Int ->
ListInstanceProfilesResponse
newListInstanceProfilesResponse :: Int -> ListInstanceProfilesResponse
newListInstanceProfilesResponse Int
pHttpStatus_ =
ListInstanceProfilesResponse' :: Maybe Text
-> Maybe Bool
-> Int
-> [InstanceProfile]
-> ListInstanceProfilesResponse
ListInstanceProfilesResponse'
{ $sel:marker:ListInstanceProfilesResponse' :: Maybe Text
marker =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:isTruncated:ListInstanceProfilesResponse' :: Maybe Bool
isTruncated = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListInstanceProfilesResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:instanceProfiles:ListInstanceProfilesResponse' :: [InstanceProfile]
instanceProfiles = [InstanceProfile]
forall a. Monoid a => a
Prelude.mempty
}
listInstanceProfilesResponse_marker :: Lens.Lens' ListInstanceProfilesResponse (Prelude.Maybe Prelude.Text)
listInstanceProfilesResponse_marker :: (Maybe Text -> f (Maybe Text))
-> ListInstanceProfilesResponse -> f ListInstanceProfilesResponse
listInstanceProfilesResponse_marker = (ListInstanceProfilesResponse -> Maybe Text)
-> (ListInstanceProfilesResponse
-> Maybe Text -> ListInstanceProfilesResponse)
-> Lens' ListInstanceProfilesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInstanceProfilesResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:ListInstanceProfilesResponse' :: ListInstanceProfilesResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListInstanceProfilesResponse
s@ListInstanceProfilesResponse' {} Maybe Text
a -> ListInstanceProfilesResponse
s {$sel:marker:ListInstanceProfilesResponse' :: Maybe Text
marker = Maybe Text
a} :: ListInstanceProfilesResponse)
listInstanceProfilesResponse_isTruncated :: Lens.Lens' ListInstanceProfilesResponse (Prelude.Maybe Prelude.Bool)
listInstanceProfilesResponse_isTruncated :: (Maybe Bool -> f (Maybe Bool))
-> ListInstanceProfilesResponse -> f ListInstanceProfilesResponse
listInstanceProfilesResponse_isTruncated = (ListInstanceProfilesResponse -> Maybe Bool)
-> (ListInstanceProfilesResponse
-> Maybe Bool -> ListInstanceProfilesResponse)
-> Lens' ListInstanceProfilesResponse (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInstanceProfilesResponse' {Maybe Bool
isTruncated :: Maybe Bool
$sel:isTruncated:ListInstanceProfilesResponse' :: ListInstanceProfilesResponse -> Maybe Bool
isTruncated} -> Maybe Bool
isTruncated) (\s :: ListInstanceProfilesResponse
s@ListInstanceProfilesResponse' {} Maybe Bool
a -> ListInstanceProfilesResponse
s {$sel:isTruncated:ListInstanceProfilesResponse' :: Maybe Bool
isTruncated = Maybe Bool
a} :: ListInstanceProfilesResponse)
listInstanceProfilesResponse_httpStatus :: Lens.Lens' ListInstanceProfilesResponse Prelude.Int
listInstanceProfilesResponse_httpStatus :: (Int -> f Int)
-> ListInstanceProfilesResponse -> f ListInstanceProfilesResponse
listInstanceProfilesResponse_httpStatus = (ListInstanceProfilesResponse -> Int)
-> (ListInstanceProfilesResponse
-> Int -> ListInstanceProfilesResponse)
-> Lens
ListInstanceProfilesResponse ListInstanceProfilesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInstanceProfilesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListInstanceProfilesResponse' :: ListInstanceProfilesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListInstanceProfilesResponse
s@ListInstanceProfilesResponse' {} Int
a -> ListInstanceProfilesResponse
s {$sel:httpStatus:ListInstanceProfilesResponse' :: Int
httpStatus = Int
a} :: ListInstanceProfilesResponse)
listInstanceProfilesResponse_instanceProfiles :: Lens.Lens' ListInstanceProfilesResponse [InstanceProfile]
listInstanceProfilesResponse_instanceProfiles :: ([InstanceProfile] -> f [InstanceProfile])
-> ListInstanceProfilesResponse -> f ListInstanceProfilesResponse
listInstanceProfilesResponse_instanceProfiles = (ListInstanceProfilesResponse -> [InstanceProfile])
-> (ListInstanceProfilesResponse
-> [InstanceProfile] -> ListInstanceProfilesResponse)
-> Lens
ListInstanceProfilesResponse
ListInstanceProfilesResponse
[InstanceProfile]
[InstanceProfile]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInstanceProfilesResponse' {[InstanceProfile]
instanceProfiles :: [InstanceProfile]
$sel:instanceProfiles:ListInstanceProfilesResponse' :: ListInstanceProfilesResponse -> [InstanceProfile]
instanceProfiles} -> [InstanceProfile]
instanceProfiles) (\s :: ListInstanceProfilesResponse
s@ListInstanceProfilesResponse' {} [InstanceProfile]
a -> ListInstanceProfilesResponse
s {$sel:instanceProfiles:ListInstanceProfilesResponse' :: [InstanceProfile]
instanceProfiles = [InstanceProfile]
a} :: ListInstanceProfilesResponse) (([InstanceProfile] -> f [InstanceProfile])
-> ListInstanceProfilesResponse -> f ListInstanceProfilesResponse)
-> (([InstanceProfile] -> f [InstanceProfile])
-> [InstanceProfile] -> f [InstanceProfile])
-> ([InstanceProfile] -> f [InstanceProfile])
-> ListInstanceProfilesResponse
-> f ListInstanceProfilesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([InstanceProfile] -> f [InstanceProfile])
-> [InstanceProfile] -> f [InstanceProfile]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Prelude.NFData ListInstanceProfilesResponse