{-# 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.ServiceCatalog.ListResourcesForTagOption
(
ListResourcesForTagOption (..),
newListResourcesForTagOption,
listResourcesForTagOption_pageSize,
listResourcesForTagOption_pageToken,
listResourcesForTagOption_resourceType,
listResourcesForTagOption_tagOptionId,
ListResourcesForTagOptionResponse (..),
newListResourcesForTagOptionResponse,
listResourcesForTagOptionResponse_pageToken,
listResourcesForTagOptionResponse_resourceDetails,
listResourcesForTagOptionResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.ServiceCatalog.Types
data ListResourcesForTagOption = ListResourcesForTagOption'
{
ListResourcesForTagOption -> Maybe Natural
pageSize :: Prelude.Maybe Prelude.Natural,
ListResourcesForTagOption -> Maybe Text
pageToken :: Prelude.Maybe Prelude.Text,
ListResourcesForTagOption -> Maybe Text
resourceType :: Prelude.Maybe Prelude.Text,
ListResourcesForTagOption -> Text
tagOptionId :: Prelude.Text
}
deriving (ListResourcesForTagOption -> ListResourcesForTagOption -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListResourcesForTagOption -> ListResourcesForTagOption -> Bool
$c/= :: ListResourcesForTagOption -> ListResourcesForTagOption -> Bool
== :: ListResourcesForTagOption -> ListResourcesForTagOption -> Bool
$c== :: ListResourcesForTagOption -> ListResourcesForTagOption -> Bool
Prelude.Eq, ReadPrec [ListResourcesForTagOption]
ReadPrec ListResourcesForTagOption
Int -> ReadS ListResourcesForTagOption
ReadS [ListResourcesForTagOption]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListResourcesForTagOption]
$creadListPrec :: ReadPrec [ListResourcesForTagOption]
readPrec :: ReadPrec ListResourcesForTagOption
$creadPrec :: ReadPrec ListResourcesForTagOption
readList :: ReadS [ListResourcesForTagOption]
$creadList :: ReadS [ListResourcesForTagOption]
readsPrec :: Int -> ReadS ListResourcesForTagOption
$creadsPrec :: Int -> ReadS ListResourcesForTagOption
Prelude.Read, Int -> ListResourcesForTagOption -> ShowS
[ListResourcesForTagOption] -> ShowS
ListResourcesForTagOption -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListResourcesForTagOption] -> ShowS
$cshowList :: [ListResourcesForTagOption] -> ShowS
show :: ListResourcesForTagOption -> String
$cshow :: ListResourcesForTagOption -> String
showsPrec :: Int -> ListResourcesForTagOption -> ShowS
$cshowsPrec :: Int -> ListResourcesForTagOption -> ShowS
Prelude.Show, forall x.
Rep ListResourcesForTagOption x -> ListResourcesForTagOption
forall x.
ListResourcesForTagOption -> Rep ListResourcesForTagOption x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListResourcesForTagOption x -> ListResourcesForTagOption
$cfrom :: forall x.
ListResourcesForTagOption -> Rep ListResourcesForTagOption x
Prelude.Generic)
newListResourcesForTagOption ::
Prelude.Text ->
ListResourcesForTagOption
newListResourcesForTagOption :: Text -> ListResourcesForTagOption
newListResourcesForTagOption Text
pTagOptionId_ =
ListResourcesForTagOption'
{ $sel:pageSize:ListResourcesForTagOption' :: Maybe Natural
pageSize =
forall a. Maybe a
Prelude.Nothing,
$sel:pageToken:ListResourcesForTagOption' :: Maybe Text
pageToken = forall a. Maybe a
Prelude.Nothing,
$sel:resourceType:ListResourcesForTagOption' :: Maybe Text
resourceType = forall a. Maybe a
Prelude.Nothing,
$sel:tagOptionId:ListResourcesForTagOption' :: Text
tagOptionId = Text
pTagOptionId_
}
listResourcesForTagOption_pageSize :: Lens.Lens' ListResourcesForTagOption (Prelude.Maybe Prelude.Natural)
listResourcesForTagOption_pageSize :: Lens' ListResourcesForTagOption (Maybe Natural)
listResourcesForTagOption_pageSize = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResourcesForTagOption' {Maybe Natural
pageSize :: Maybe Natural
$sel:pageSize:ListResourcesForTagOption' :: ListResourcesForTagOption -> Maybe Natural
pageSize} -> Maybe Natural
pageSize) (\s :: ListResourcesForTagOption
s@ListResourcesForTagOption' {} Maybe Natural
a -> ListResourcesForTagOption
s {$sel:pageSize:ListResourcesForTagOption' :: Maybe Natural
pageSize = Maybe Natural
a} :: ListResourcesForTagOption)
listResourcesForTagOption_pageToken :: Lens.Lens' ListResourcesForTagOption (Prelude.Maybe Prelude.Text)
listResourcesForTagOption_pageToken :: Lens' ListResourcesForTagOption (Maybe Text)
listResourcesForTagOption_pageToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResourcesForTagOption' {Maybe Text
pageToken :: Maybe Text
$sel:pageToken:ListResourcesForTagOption' :: ListResourcesForTagOption -> Maybe Text
pageToken} -> Maybe Text
pageToken) (\s :: ListResourcesForTagOption
s@ListResourcesForTagOption' {} Maybe Text
a -> ListResourcesForTagOption
s {$sel:pageToken:ListResourcesForTagOption' :: Maybe Text
pageToken = Maybe Text
a} :: ListResourcesForTagOption)
listResourcesForTagOption_resourceType :: Lens.Lens' ListResourcesForTagOption (Prelude.Maybe Prelude.Text)
listResourcesForTagOption_resourceType :: Lens' ListResourcesForTagOption (Maybe Text)
listResourcesForTagOption_resourceType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResourcesForTagOption' {Maybe Text
resourceType :: Maybe Text
$sel:resourceType:ListResourcesForTagOption' :: ListResourcesForTagOption -> Maybe Text
resourceType} -> Maybe Text
resourceType) (\s :: ListResourcesForTagOption
s@ListResourcesForTagOption' {} Maybe Text
a -> ListResourcesForTagOption
s {$sel:resourceType:ListResourcesForTagOption' :: Maybe Text
resourceType = Maybe Text
a} :: ListResourcesForTagOption)
listResourcesForTagOption_tagOptionId :: Lens.Lens' ListResourcesForTagOption Prelude.Text
listResourcesForTagOption_tagOptionId :: Lens' ListResourcesForTagOption Text
listResourcesForTagOption_tagOptionId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResourcesForTagOption' {Text
tagOptionId :: Text
$sel:tagOptionId:ListResourcesForTagOption' :: ListResourcesForTagOption -> Text
tagOptionId} -> Text
tagOptionId) (\s :: ListResourcesForTagOption
s@ListResourcesForTagOption' {} Text
a -> ListResourcesForTagOption
s {$sel:tagOptionId:ListResourcesForTagOption' :: Text
tagOptionId = Text
a} :: ListResourcesForTagOption)
instance Core.AWSPager ListResourcesForTagOption where
page :: ListResourcesForTagOption
-> AWSResponse ListResourcesForTagOption
-> Maybe ListResourcesForTagOption
page ListResourcesForTagOption
rq AWSResponse ListResourcesForTagOption
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListResourcesForTagOption
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListResourcesForTagOptionResponse (Maybe Text)
listResourcesForTagOptionResponse_pageToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListResourcesForTagOption
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListResourcesForTagOptionResponse (Maybe [ResourceDetail])
listResourcesForTagOptionResponse_resourceDetails
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
forall a. a -> Maybe a
Prelude.Just
forall a b. (a -> b) -> a -> b
Prelude.$ ListResourcesForTagOption
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListResourcesForTagOption (Maybe Text)
listResourcesForTagOption_pageToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListResourcesForTagOption
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListResourcesForTagOptionResponse (Maybe Text)
listResourcesForTagOptionResponse_pageToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest ListResourcesForTagOption where
type
AWSResponse ListResourcesForTagOption =
ListResourcesForTagOptionResponse
request :: (Service -> Service)
-> ListResourcesForTagOption -> Request ListResourcesForTagOption
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListResourcesForTagOption
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListResourcesForTagOption)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe [ResourceDetail]
-> Int
-> ListResourcesForTagOptionResponse
ListResourcesForTagOptionResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"PageToken")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"ResourceDetails"
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable ListResourcesForTagOption where
hashWithSalt :: Int -> ListResourcesForTagOption -> Int
hashWithSalt Int
_salt ListResourcesForTagOption' {Maybe Natural
Maybe Text
Text
tagOptionId :: Text
resourceType :: Maybe Text
pageToken :: Maybe Text
pageSize :: Maybe Natural
$sel:tagOptionId:ListResourcesForTagOption' :: ListResourcesForTagOption -> Text
$sel:resourceType:ListResourcesForTagOption' :: ListResourcesForTagOption -> Maybe Text
$sel:pageToken:ListResourcesForTagOption' :: ListResourcesForTagOption -> Maybe Text
$sel:pageSize:ListResourcesForTagOption' :: ListResourcesForTagOption -> Maybe Natural
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
pageSize
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
pageToken
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
resourceType
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
tagOptionId
instance Prelude.NFData ListResourcesForTagOption where
rnf :: ListResourcesForTagOption -> ()
rnf ListResourcesForTagOption' {Maybe Natural
Maybe Text
Text
tagOptionId :: Text
resourceType :: Maybe Text
pageToken :: Maybe Text
pageSize :: Maybe Natural
$sel:tagOptionId:ListResourcesForTagOption' :: ListResourcesForTagOption -> Text
$sel:resourceType:ListResourcesForTagOption' :: ListResourcesForTagOption -> Maybe Text
$sel:pageToken:ListResourcesForTagOption' :: ListResourcesForTagOption -> Maybe Text
$sel:pageSize:ListResourcesForTagOption' :: ListResourcesForTagOption -> Maybe Natural
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
pageSize
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
pageToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
resourceType
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
tagOptionId
instance Data.ToHeaders ListResourcesForTagOption where
toHeaders :: ListResourcesForTagOption -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"AWS242ServiceCatalogService.ListResourcesForTagOption" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON ListResourcesForTagOption where
toJSON :: ListResourcesForTagOption -> Value
toJSON ListResourcesForTagOption' {Maybe Natural
Maybe Text
Text
tagOptionId :: Text
resourceType :: Maybe Text
pageToken :: Maybe Text
pageSize :: Maybe Natural
$sel:tagOptionId:ListResourcesForTagOption' :: ListResourcesForTagOption -> Text
$sel:resourceType:ListResourcesForTagOption' :: ListResourcesForTagOption -> Maybe Text
$sel:pageToken:ListResourcesForTagOption' :: ListResourcesForTagOption -> Maybe Text
$sel:pageSize:ListResourcesForTagOption' :: ListResourcesForTagOption -> Maybe Natural
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"PageSize" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
pageSize,
(Key
"PageToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
pageToken,
(Key
"ResourceType" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
resourceType,
forall a. a -> Maybe a
Prelude.Just (Key
"TagOptionId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
tagOptionId)
]
)
instance Data.ToPath ListResourcesForTagOption where
toPath :: ListResourcesForTagOption -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery ListResourcesForTagOption where
toQuery :: ListResourcesForTagOption -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data ListResourcesForTagOptionResponse = ListResourcesForTagOptionResponse'
{
ListResourcesForTagOptionResponse -> Maybe Text
pageToken :: Prelude.Maybe Prelude.Text,
ListResourcesForTagOptionResponse -> Maybe [ResourceDetail]
resourceDetails :: Prelude.Maybe [ResourceDetail],
ListResourcesForTagOptionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListResourcesForTagOptionResponse
-> ListResourcesForTagOptionResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListResourcesForTagOptionResponse
-> ListResourcesForTagOptionResponse -> Bool
$c/= :: ListResourcesForTagOptionResponse
-> ListResourcesForTagOptionResponse -> Bool
== :: ListResourcesForTagOptionResponse
-> ListResourcesForTagOptionResponse -> Bool
$c== :: ListResourcesForTagOptionResponse
-> ListResourcesForTagOptionResponse -> Bool
Prelude.Eq, ReadPrec [ListResourcesForTagOptionResponse]
ReadPrec ListResourcesForTagOptionResponse
Int -> ReadS ListResourcesForTagOptionResponse
ReadS [ListResourcesForTagOptionResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListResourcesForTagOptionResponse]
$creadListPrec :: ReadPrec [ListResourcesForTagOptionResponse]
readPrec :: ReadPrec ListResourcesForTagOptionResponse
$creadPrec :: ReadPrec ListResourcesForTagOptionResponse
readList :: ReadS [ListResourcesForTagOptionResponse]
$creadList :: ReadS [ListResourcesForTagOptionResponse]
readsPrec :: Int -> ReadS ListResourcesForTagOptionResponse
$creadsPrec :: Int -> ReadS ListResourcesForTagOptionResponse
Prelude.Read, Int -> ListResourcesForTagOptionResponse -> ShowS
[ListResourcesForTagOptionResponse] -> ShowS
ListResourcesForTagOptionResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListResourcesForTagOptionResponse] -> ShowS
$cshowList :: [ListResourcesForTagOptionResponse] -> ShowS
show :: ListResourcesForTagOptionResponse -> String
$cshow :: ListResourcesForTagOptionResponse -> String
showsPrec :: Int -> ListResourcesForTagOptionResponse -> ShowS
$cshowsPrec :: Int -> ListResourcesForTagOptionResponse -> ShowS
Prelude.Show, forall x.
Rep ListResourcesForTagOptionResponse x
-> ListResourcesForTagOptionResponse
forall x.
ListResourcesForTagOptionResponse
-> Rep ListResourcesForTagOptionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListResourcesForTagOptionResponse x
-> ListResourcesForTagOptionResponse
$cfrom :: forall x.
ListResourcesForTagOptionResponse
-> Rep ListResourcesForTagOptionResponse x
Prelude.Generic)
newListResourcesForTagOptionResponse ::
Prelude.Int ->
ListResourcesForTagOptionResponse
newListResourcesForTagOptionResponse :: Int -> ListResourcesForTagOptionResponse
newListResourcesForTagOptionResponse Int
pHttpStatus_ =
ListResourcesForTagOptionResponse'
{ $sel:pageToken:ListResourcesForTagOptionResponse' :: Maybe Text
pageToken =
forall a. Maybe a
Prelude.Nothing,
$sel:resourceDetails:ListResourcesForTagOptionResponse' :: Maybe [ResourceDetail]
resourceDetails = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListResourcesForTagOptionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listResourcesForTagOptionResponse_pageToken :: Lens.Lens' ListResourcesForTagOptionResponse (Prelude.Maybe Prelude.Text)
listResourcesForTagOptionResponse_pageToken :: Lens' ListResourcesForTagOptionResponse (Maybe Text)
listResourcesForTagOptionResponse_pageToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResourcesForTagOptionResponse' {Maybe Text
pageToken :: Maybe Text
$sel:pageToken:ListResourcesForTagOptionResponse' :: ListResourcesForTagOptionResponse -> Maybe Text
pageToken} -> Maybe Text
pageToken) (\s :: ListResourcesForTagOptionResponse
s@ListResourcesForTagOptionResponse' {} Maybe Text
a -> ListResourcesForTagOptionResponse
s {$sel:pageToken:ListResourcesForTagOptionResponse' :: Maybe Text
pageToken = Maybe Text
a} :: ListResourcesForTagOptionResponse)
listResourcesForTagOptionResponse_resourceDetails :: Lens.Lens' ListResourcesForTagOptionResponse (Prelude.Maybe [ResourceDetail])
listResourcesForTagOptionResponse_resourceDetails :: Lens' ListResourcesForTagOptionResponse (Maybe [ResourceDetail])
listResourcesForTagOptionResponse_resourceDetails = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResourcesForTagOptionResponse' {Maybe [ResourceDetail]
resourceDetails :: Maybe [ResourceDetail]
$sel:resourceDetails:ListResourcesForTagOptionResponse' :: ListResourcesForTagOptionResponse -> Maybe [ResourceDetail]
resourceDetails} -> Maybe [ResourceDetail]
resourceDetails) (\s :: ListResourcesForTagOptionResponse
s@ListResourcesForTagOptionResponse' {} Maybe [ResourceDetail]
a -> ListResourcesForTagOptionResponse
s {$sel:resourceDetails:ListResourcesForTagOptionResponse' :: Maybe [ResourceDetail]
resourceDetails = Maybe [ResourceDetail]
a} :: ListResourcesForTagOptionResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listResourcesForTagOptionResponse_httpStatus :: Lens.Lens' ListResourcesForTagOptionResponse Prelude.Int
listResourcesForTagOptionResponse_httpStatus :: Lens' ListResourcesForTagOptionResponse Int
listResourcesForTagOptionResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResourcesForTagOptionResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListResourcesForTagOptionResponse' :: ListResourcesForTagOptionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListResourcesForTagOptionResponse
s@ListResourcesForTagOptionResponse' {} Int
a -> ListResourcesForTagOptionResponse
s {$sel:httpStatus:ListResourcesForTagOptionResponse' :: Int
httpStatus = Int
a} :: ListResourcesForTagOptionResponse)
instance
Prelude.NFData
ListResourcesForTagOptionResponse
where
rnf :: ListResourcesForTagOptionResponse -> ()
rnf ListResourcesForTagOptionResponse' {Int
Maybe [ResourceDetail]
Maybe Text
httpStatus :: Int
resourceDetails :: Maybe [ResourceDetail]
pageToken :: Maybe Text
$sel:httpStatus:ListResourcesForTagOptionResponse' :: ListResourcesForTagOptionResponse -> Int
$sel:resourceDetails:ListResourcesForTagOptionResponse' :: ListResourcesForTagOptionResponse -> Maybe [ResourceDetail]
$sel:pageToken:ListResourcesForTagOptionResponse' :: ListResourcesForTagOptionResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
pageToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [ResourceDetail]
resourceDetails
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus