{-# 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.GetProvisionedProductOutputs
(
GetProvisionedProductOutputs (..),
newGetProvisionedProductOutputs,
getProvisionedProductOutputs_provisionedProductName,
getProvisionedProductOutputs_outputKeys,
getProvisionedProductOutputs_acceptLanguage,
getProvisionedProductOutputs_pageToken,
getProvisionedProductOutputs_pageSize,
getProvisionedProductOutputs_provisionedProductId,
GetProvisionedProductOutputsResponse (..),
newGetProvisionedProductOutputsResponse,
getProvisionedProductOutputsResponse_nextPageToken,
getProvisionedProductOutputsResponse_outputs,
getProvisionedProductOutputsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.ServiceCatalog.Types
data GetProvisionedProductOutputs = GetProvisionedProductOutputs'
{
GetProvisionedProductOutputs -> Maybe Text
provisionedProductName :: Prelude.Maybe Prelude.Text,
GetProvisionedProductOutputs -> Maybe [Text]
outputKeys :: Prelude.Maybe [Prelude.Text],
GetProvisionedProductOutputs -> Maybe Text
acceptLanguage :: Prelude.Maybe Prelude.Text,
GetProvisionedProductOutputs -> Maybe Text
pageToken :: Prelude.Maybe Prelude.Text,
GetProvisionedProductOutputs -> Maybe Natural
pageSize :: Prelude.Maybe Prelude.Natural,
GetProvisionedProductOutputs -> Maybe Text
provisionedProductId :: Prelude.Maybe Prelude.Text
}
deriving (GetProvisionedProductOutputs
-> GetProvisionedProductOutputs -> Bool
(GetProvisionedProductOutputs
-> GetProvisionedProductOutputs -> Bool)
-> (GetProvisionedProductOutputs
-> GetProvisionedProductOutputs -> Bool)
-> Eq GetProvisionedProductOutputs
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetProvisionedProductOutputs
-> GetProvisionedProductOutputs -> Bool
$c/= :: GetProvisionedProductOutputs
-> GetProvisionedProductOutputs -> Bool
== :: GetProvisionedProductOutputs
-> GetProvisionedProductOutputs -> Bool
$c== :: GetProvisionedProductOutputs
-> GetProvisionedProductOutputs -> Bool
Prelude.Eq, ReadPrec [GetProvisionedProductOutputs]
ReadPrec GetProvisionedProductOutputs
Int -> ReadS GetProvisionedProductOutputs
ReadS [GetProvisionedProductOutputs]
(Int -> ReadS GetProvisionedProductOutputs)
-> ReadS [GetProvisionedProductOutputs]
-> ReadPrec GetProvisionedProductOutputs
-> ReadPrec [GetProvisionedProductOutputs]
-> Read GetProvisionedProductOutputs
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetProvisionedProductOutputs]
$creadListPrec :: ReadPrec [GetProvisionedProductOutputs]
readPrec :: ReadPrec GetProvisionedProductOutputs
$creadPrec :: ReadPrec GetProvisionedProductOutputs
readList :: ReadS [GetProvisionedProductOutputs]
$creadList :: ReadS [GetProvisionedProductOutputs]
readsPrec :: Int -> ReadS GetProvisionedProductOutputs
$creadsPrec :: Int -> ReadS GetProvisionedProductOutputs
Prelude.Read, Int -> GetProvisionedProductOutputs -> ShowS
[GetProvisionedProductOutputs] -> ShowS
GetProvisionedProductOutputs -> String
(Int -> GetProvisionedProductOutputs -> ShowS)
-> (GetProvisionedProductOutputs -> String)
-> ([GetProvisionedProductOutputs] -> ShowS)
-> Show GetProvisionedProductOutputs
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetProvisionedProductOutputs] -> ShowS
$cshowList :: [GetProvisionedProductOutputs] -> ShowS
show :: GetProvisionedProductOutputs -> String
$cshow :: GetProvisionedProductOutputs -> String
showsPrec :: Int -> GetProvisionedProductOutputs -> ShowS
$cshowsPrec :: Int -> GetProvisionedProductOutputs -> ShowS
Prelude.Show, (forall x.
GetProvisionedProductOutputs -> Rep GetProvisionedProductOutputs x)
-> (forall x.
Rep GetProvisionedProductOutputs x -> GetProvisionedProductOutputs)
-> Generic GetProvisionedProductOutputs
forall x.
Rep GetProvisionedProductOutputs x -> GetProvisionedProductOutputs
forall x.
GetProvisionedProductOutputs -> Rep GetProvisionedProductOutputs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetProvisionedProductOutputs x -> GetProvisionedProductOutputs
$cfrom :: forall x.
GetProvisionedProductOutputs -> Rep GetProvisionedProductOutputs x
Prelude.Generic)
newGetProvisionedProductOutputs ::
GetProvisionedProductOutputs
newGetProvisionedProductOutputs :: GetProvisionedProductOutputs
newGetProvisionedProductOutputs =
GetProvisionedProductOutputs' :: Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> GetProvisionedProductOutputs
GetProvisionedProductOutputs'
{ $sel:provisionedProductName:GetProvisionedProductOutputs' :: Maybe Text
provisionedProductName =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:outputKeys:GetProvisionedProductOutputs' :: Maybe [Text]
outputKeys = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:acceptLanguage:GetProvisionedProductOutputs' :: Maybe Text
acceptLanguage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:pageToken:GetProvisionedProductOutputs' :: Maybe Text
pageToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:pageSize:GetProvisionedProductOutputs' :: Maybe Natural
pageSize = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:provisionedProductId:GetProvisionedProductOutputs' :: Maybe Text
provisionedProductId = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
getProvisionedProductOutputs_provisionedProductName :: Lens.Lens' GetProvisionedProductOutputs (Prelude.Maybe Prelude.Text)
getProvisionedProductOutputs_provisionedProductName :: (Maybe Text -> f (Maybe Text))
-> GetProvisionedProductOutputs -> f GetProvisionedProductOutputs
getProvisionedProductOutputs_provisionedProductName = (GetProvisionedProductOutputs -> Maybe Text)
-> (GetProvisionedProductOutputs
-> Maybe Text -> GetProvisionedProductOutputs)
-> Lens
GetProvisionedProductOutputs
GetProvisionedProductOutputs
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProvisionedProductOutputs' {Maybe Text
provisionedProductName :: Maybe Text
$sel:provisionedProductName:GetProvisionedProductOutputs' :: GetProvisionedProductOutputs -> Maybe Text
provisionedProductName} -> Maybe Text
provisionedProductName) (\s :: GetProvisionedProductOutputs
s@GetProvisionedProductOutputs' {} Maybe Text
a -> GetProvisionedProductOutputs
s {$sel:provisionedProductName:GetProvisionedProductOutputs' :: Maybe Text
provisionedProductName = Maybe Text
a} :: GetProvisionedProductOutputs)
getProvisionedProductOutputs_outputKeys :: Lens.Lens' GetProvisionedProductOutputs (Prelude.Maybe [Prelude.Text])
getProvisionedProductOutputs_outputKeys :: (Maybe [Text] -> f (Maybe [Text]))
-> GetProvisionedProductOutputs -> f GetProvisionedProductOutputs
getProvisionedProductOutputs_outputKeys = (GetProvisionedProductOutputs -> Maybe [Text])
-> (GetProvisionedProductOutputs
-> Maybe [Text] -> GetProvisionedProductOutputs)
-> Lens
GetProvisionedProductOutputs
GetProvisionedProductOutputs
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProvisionedProductOutputs' {Maybe [Text]
outputKeys :: Maybe [Text]
$sel:outputKeys:GetProvisionedProductOutputs' :: GetProvisionedProductOutputs -> Maybe [Text]
outputKeys} -> Maybe [Text]
outputKeys) (\s :: GetProvisionedProductOutputs
s@GetProvisionedProductOutputs' {} Maybe [Text]
a -> GetProvisionedProductOutputs
s {$sel:outputKeys:GetProvisionedProductOutputs' :: Maybe [Text]
outputKeys = Maybe [Text]
a} :: GetProvisionedProductOutputs) ((Maybe [Text] -> f (Maybe [Text]))
-> GetProvisionedProductOutputs -> f GetProvisionedProductOutputs)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> GetProvisionedProductOutputs
-> f GetProvisionedProductOutputs
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getProvisionedProductOutputs_acceptLanguage :: Lens.Lens' GetProvisionedProductOutputs (Prelude.Maybe Prelude.Text)
getProvisionedProductOutputs_acceptLanguage :: (Maybe Text -> f (Maybe Text))
-> GetProvisionedProductOutputs -> f GetProvisionedProductOutputs
getProvisionedProductOutputs_acceptLanguage = (GetProvisionedProductOutputs -> Maybe Text)
-> (GetProvisionedProductOutputs
-> Maybe Text -> GetProvisionedProductOutputs)
-> Lens
GetProvisionedProductOutputs
GetProvisionedProductOutputs
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProvisionedProductOutputs' {Maybe Text
acceptLanguage :: Maybe Text
$sel:acceptLanguage:GetProvisionedProductOutputs' :: GetProvisionedProductOutputs -> Maybe Text
acceptLanguage} -> Maybe Text
acceptLanguage) (\s :: GetProvisionedProductOutputs
s@GetProvisionedProductOutputs' {} Maybe Text
a -> GetProvisionedProductOutputs
s {$sel:acceptLanguage:GetProvisionedProductOutputs' :: Maybe Text
acceptLanguage = Maybe Text
a} :: GetProvisionedProductOutputs)
getProvisionedProductOutputs_pageToken :: Lens.Lens' GetProvisionedProductOutputs (Prelude.Maybe Prelude.Text)
getProvisionedProductOutputs_pageToken :: (Maybe Text -> f (Maybe Text))
-> GetProvisionedProductOutputs -> f GetProvisionedProductOutputs
getProvisionedProductOutputs_pageToken = (GetProvisionedProductOutputs -> Maybe Text)
-> (GetProvisionedProductOutputs
-> Maybe Text -> GetProvisionedProductOutputs)
-> Lens
GetProvisionedProductOutputs
GetProvisionedProductOutputs
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProvisionedProductOutputs' {Maybe Text
pageToken :: Maybe Text
$sel:pageToken:GetProvisionedProductOutputs' :: GetProvisionedProductOutputs -> Maybe Text
pageToken} -> Maybe Text
pageToken) (\s :: GetProvisionedProductOutputs
s@GetProvisionedProductOutputs' {} Maybe Text
a -> GetProvisionedProductOutputs
s {$sel:pageToken:GetProvisionedProductOutputs' :: Maybe Text
pageToken = Maybe Text
a} :: GetProvisionedProductOutputs)
getProvisionedProductOutputs_pageSize :: Lens.Lens' GetProvisionedProductOutputs (Prelude.Maybe Prelude.Natural)
getProvisionedProductOutputs_pageSize :: (Maybe Natural -> f (Maybe Natural))
-> GetProvisionedProductOutputs -> f GetProvisionedProductOutputs
getProvisionedProductOutputs_pageSize = (GetProvisionedProductOutputs -> Maybe Natural)
-> (GetProvisionedProductOutputs
-> Maybe Natural -> GetProvisionedProductOutputs)
-> Lens
GetProvisionedProductOutputs
GetProvisionedProductOutputs
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProvisionedProductOutputs' {Maybe Natural
pageSize :: Maybe Natural
$sel:pageSize:GetProvisionedProductOutputs' :: GetProvisionedProductOutputs -> Maybe Natural
pageSize} -> Maybe Natural
pageSize) (\s :: GetProvisionedProductOutputs
s@GetProvisionedProductOutputs' {} Maybe Natural
a -> GetProvisionedProductOutputs
s {$sel:pageSize:GetProvisionedProductOutputs' :: Maybe Natural
pageSize = Maybe Natural
a} :: GetProvisionedProductOutputs)
getProvisionedProductOutputs_provisionedProductId :: Lens.Lens' GetProvisionedProductOutputs (Prelude.Maybe Prelude.Text)
getProvisionedProductOutputs_provisionedProductId :: (Maybe Text -> f (Maybe Text))
-> GetProvisionedProductOutputs -> f GetProvisionedProductOutputs
getProvisionedProductOutputs_provisionedProductId = (GetProvisionedProductOutputs -> Maybe Text)
-> (GetProvisionedProductOutputs
-> Maybe Text -> GetProvisionedProductOutputs)
-> Lens
GetProvisionedProductOutputs
GetProvisionedProductOutputs
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProvisionedProductOutputs' {Maybe Text
provisionedProductId :: Maybe Text
$sel:provisionedProductId:GetProvisionedProductOutputs' :: GetProvisionedProductOutputs -> Maybe Text
provisionedProductId} -> Maybe Text
provisionedProductId) (\s :: GetProvisionedProductOutputs
s@GetProvisionedProductOutputs' {} Maybe Text
a -> GetProvisionedProductOutputs
s {$sel:provisionedProductId:GetProvisionedProductOutputs' :: Maybe Text
provisionedProductId = Maybe Text
a} :: GetProvisionedProductOutputs)
instance Core.AWSRequest GetProvisionedProductOutputs where
type
AWSResponse GetProvisionedProductOutputs =
GetProvisionedProductOutputsResponse
request :: GetProvisionedProductOutputs
-> Request GetProvisionedProductOutputs
request = Service
-> GetProvisionedProductOutputs
-> Request GetProvisionedProductOutputs
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetProvisionedProductOutputs
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetProvisionedProductOutputs)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetProvisionedProductOutputs))
-> Logger
-> Service
-> Proxy GetProvisionedProductOutputs
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetProvisionedProductOutputs)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe [RecordOutput]
-> Int
-> GetProvisionedProductOutputsResponse
GetProvisionedProductOutputsResponse'
(Maybe Text
-> Maybe [RecordOutput]
-> Int
-> GetProvisionedProductOutputsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [RecordOutput]
-> Int -> GetProvisionedProductOutputsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextPageToken")
Either
String
(Maybe [RecordOutput]
-> Int -> GetProvisionedProductOutputsResponse)
-> Either String (Maybe [RecordOutput])
-> Either String (Int -> GetProvisionedProductOutputsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [RecordOutput]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Outputs" Either String (Maybe (Maybe [RecordOutput]))
-> Maybe [RecordOutput] -> Either String (Maybe [RecordOutput])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [RecordOutput]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> GetProvisionedProductOutputsResponse)
-> Either String Int
-> Either String GetProvisionedProductOutputsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance
Prelude.Hashable
GetProvisionedProductOutputs
instance Prelude.NFData GetProvisionedProductOutputs
instance Core.ToHeaders GetProvisionedProductOutputs where
toHeaders :: GetProvisionedProductOutputs -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetProvisionedProductOutputs -> 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
"AWS242ServiceCatalogService.GetProvisionedProductOutputs" ::
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 GetProvisionedProductOutputs where
toJSON :: GetProvisionedProductOutputs -> Value
toJSON GetProvisionedProductOutputs' {Maybe Natural
Maybe [Text]
Maybe Text
provisionedProductId :: Maybe Text
pageSize :: Maybe Natural
pageToken :: Maybe Text
acceptLanguage :: Maybe Text
outputKeys :: Maybe [Text]
provisionedProductName :: Maybe Text
$sel:provisionedProductId:GetProvisionedProductOutputs' :: GetProvisionedProductOutputs -> Maybe Text
$sel:pageSize:GetProvisionedProductOutputs' :: GetProvisionedProductOutputs -> Maybe Natural
$sel:pageToken:GetProvisionedProductOutputs' :: GetProvisionedProductOutputs -> Maybe Text
$sel:acceptLanguage:GetProvisionedProductOutputs' :: GetProvisionedProductOutputs -> Maybe Text
$sel:outputKeys:GetProvisionedProductOutputs' :: GetProvisionedProductOutputs -> Maybe [Text]
$sel:provisionedProductName:GetProvisionedProductOutputs' :: GetProvisionedProductOutputs -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"ProvisionedProductName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
provisionedProductName,
(Text
"OutputKeys" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Text] -> Pair) -> Maybe [Text] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
outputKeys,
(Text
"AcceptLanguage" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
acceptLanguage,
(Text
"PageToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
pageToken,
(Text
"PageSize" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
pageSize,
(Text
"ProvisionedProductId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
provisionedProductId
]
)
instance Core.ToPath GetProvisionedProductOutputs where
toPath :: GetProvisionedProductOutputs -> ByteString
toPath = ByteString -> GetProvisionedProductOutputs -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetProvisionedProductOutputs where
toQuery :: GetProvisionedProductOutputs -> QueryString
toQuery = QueryString -> GetProvisionedProductOutputs -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetProvisionedProductOutputsResponse = GetProvisionedProductOutputsResponse'
{
GetProvisionedProductOutputsResponse -> Maybe Text
nextPageToken :: Prelude.Maybe Prelude.Text,
GetProvisionedProductOutputsResponse -> Maybe [RecordOutput]
outputs :: Prelude.Maybe [RecordOutput],
GetProvisionedProductOutputsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetProvisionedProductOutputsResponse
-> GetProvisionedProductOutputsResponse -> Bool
(GetProvisionedProductOutputsResponse
-> GetProvisionedProductOutputsResponse -> Bool)
-> (GetProvisionedProductOutputsResponse
-> GetProvisionedProductOutputsResponse -> Bool)
-> Eq GetProvisionedProductOutputsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetProvisionedProductOutputsResponse
-> GetProvisionedProductOutputsResponse -> Bool
$c/= :: GetProvisionedProductOutputsResponse
-> GetProvisionedProductOutputsResponse -> Bool
== :: GetProvisionedProductOutputsResponse
-> GetProvisionedProductOutputsResponse -> Bool
$c== :: GetProvisionedProductOutputsResponse
-> GetProvisionedProductOutputsResponse -> Bool
Prelude.Eq, ReadPrec [GetProvisionedProductOutputsResponse]
ReadPrec GetProvisionedProductOutputsResponse
Int -> ReadS GetProvisionedProductOutputsResponse
ReadS [GetProvisionedProductOutputsResponse]
(Int -> ReadS GetProvisionedProductOutputsResponse)
-> ReadS [GetProvisionedProductOutputsResponse]
-> ReadPrec GetProvisionedProductOutputsResponse
-> ReadPrec [GetProvisionedProductOutputsResponse]
-> Read GetProvisionedProductOutputsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetProvisionedProductOutputsResponse]
$creadListPrec :: ReadPrec [GetProvisionedProductOutputsResponse]
readPrec :: ReadPrec GetProvisionedProductOutputsResponse
$creadPrec :: ReadPrec GetProvisionedProductOutputsResponse
readList :: ReadS [GetProvisionedProductOutputsResponse]
$creadList :: ReadS [GetProvisionedProductOutputsResponse]
readsPrec :: Int -> ReadS GetProvisionedProductOutputsResponse
$creadsPrec :: Int -> ReadS GetProvisionedProductOutputsResponse
Prelude.Read, Int -> GetProvisionedProductOutputsResponse -> ShowS
[GetProvisionedProductOutputsResponse] -> ShowS
GetProvisionedProductOutputsResponse -> String
(Int -> GetProvisionedProductOutputsResponse -> ShowS)
-> (GetProvisionedProductOutputsResponse -> String)
-> ([GetProvisionedProductOutputsResponse] -> ShowS)
-> Show GetProvisionedProductOutputsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetProvisionedProductOutputsResponse] -> ShowS
$cshowList :: [GetProvisionedProductOutputsResponse] -> ShowS
show :: GetProvisionedProductOutputsResponse -> String
$cshow :: GetProvisionedProductOutputsResponse -> String
showsPrec :: Int -> GetProvisionedProductOutputsResponse -> ShowS
$cshowsPrec :: Int -> GetProvisionedProductOutputsResponse -> ShowS
Prelude.Show, (forall x.
GetProvisionedProductOutputsResponse
-> Rep GetProvisionedProductOutputsResponse x)
-> (forall x.
Rep GetProvisionedProductOutputsResponse x
-> GetProvisionedProductOutputsResponse)
-> Generic GetProvisionedProductOutputsResponse
forall x.
Rep GetProvisionedProductOutputsResponse x
-> GetProvisionedProductOutputsResponse
forall x.
GetProvisionedProductOutputsResponse
-> Rep GetProvisionedProductOutputsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetProvisionedProductOutputsResponse x
-> GetProvisionedProductOutputsResponse
$cfrom :: forall x.
GetProvisionedProductOutputsResponse
-> Rep GetProvisionedProductOutputsResponse x
Prelude.Generic)
newGetProvisionedProductOutputsResponse ::
Prelude.Int ->
GetProvisionedProductOutputsResponse
newGetProvisionedProductOutputsResponse :: Int -> GetProvisionedProductOutputsResponse
newGetProvisionedProductOutputsResponse Int
pHttpStatus_ =
GetProvisionedProductOutputsResponse' :: Maybe Text
-> Maybe [RecordOutput]
-> Int
-> GetProvisionedProductOutputsResponse
GetProvisionedProductOutputsResponse'
{ $sel:nextPageToken:GetProvisionedProductOutputsResponse' :: Maybe Text
nextPageToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:outputs:GetProvisionedProductOutputsResponse' :: Maybe [RecordOutput]
outputs = Maybe [RecordOutput]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetProvisionedProductOutputsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getProvisionedProductOutputsResponse_nextPageToken :: Lens.Lens' GetProvisionedProductOutputsResponse (Prelude.Maybe Prelude.Text)
getProvisionedProductOutputsResponse_nextPageToken :: (Maybe Text -> f (Maybe Text))
-> GetProvisionedProductOutputsResponse
-> f GetProvisionedProductOutputsResponse
getProvisionedProductOutputsResponse_nextPageToken = (GetProvisionedProductOutputsResponse -> Maybe Text)
-> (GetProvisionedProductOutputsResponse
-> Maybe Text -> GetProvisionedProductOutputsResponse)
-> Lens
GetProvisionedProductOutputsResponse
GetProvisionedProductOutputsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProvisionedProductOutputsResponse' {Maybe Text
nextPageToken :: Maybe Text
$sel:nextPageToken:GetProvisionedProductOutputsResponse' :: GetProvisionedProductOutputsResponse -> Maybe Text
nextPageToken} -> Maybe Text
nextPageToken) (\s :: GetProvisionedProductOutputsResponse
s@GetProvisionedProductOutputsResponse' {} Maybe Text
a -> GetProvisionedProductOutputsResponse
s {$sel:nextPageToken:GetProvisionedProductOutputsResponse' :: Maybe Text
nextPageToken = Maybe Text
a} :: GetProvisionedProductOutputsResponse)
getProvisionedProductOutputsResponse_outputs :: Lens.Lens' GetProvisionedProductOutputsResponse (Prelude.Maybe [RecordOutput])
getProvisionedProductOutputsResponse_outputs :: (Maybe [RecordOutput] -> f (Maybe [RecordOutput]))
-> GetProvisionedProductOutputsResponse
-> f GetProvisionedProductOutputsResponse
getProvisionedProductOutputsResponse_outputs = (GetProvisionedProductOutputsResponse -> Maybe [RecordOutput])
-> (GetProvisionedProductOutputsResponse
-> Maybe [RecordOutput] -> GetProvisionedProductOutputsResponse)
-> Lens
GetProvisionedProductOutputsResponse
GetProvisionedProductOutputsResponse
(Maybe [RecordOutput])
(Maybe [RecordOutput])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProvisionedProductOutputsResponse' {Maybe [RecordOutput]
outputs :: Maybe [RecordOutput]
$sel:outputs:GetProvisionedProductOutputsResponse' :: GetProvisionedProductOutputsResponse -> Maybe [RecordOutput]
outputs} -> Maybe [RecordOutput]
outputs) (\s :: GetProvisionedProductOutputsResponse
s@GetProvisionedProductOutputsResponse' {} Maybe [RecordOutput]
a -> GetProvisionedProductOutputsResponse
s {$sel:outputs:GetProvisionedProductOutputsResponse' :: Maybe [RecordOutput]
outputs = Maybe [RecordOutput]
a} :: GetProvisionedProductOutputsResponse) ((Maybe [RecordOutput] -> f (Maybe [RecordOutput]))
-> GetProvisionedProductOutputsResponse
-> f GetProvisionedProductOutputsResponse)
-> ((Maybe [RecordOutput] -> f (Maybe [RecordOutput]))
-> Maybe [RecordOutput] -> f (Maybe [RecordOutput]))
-> (Maybe [RecordOutput] -> f (Maybe [RecordOutput]))
-> GetProvisionedProductOutputsResponse
-> f GetProvisionedProductOutputsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [RecordOutput] [RecordOutput] [RecordOutput] [RecordOutput]
-> Iso
(Maybe [RecordOutput])
(Maybe [RecordOutput])
(Maybe [RecordOutput])
(Maybe [RecordOutput])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [RecordOutput] [RecordOutput] [RecordOutput] [RecordOutput]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getProvisionedProductOutputsResponse_httpStatus :: Lens.Lens' GetProvisionedProductOutputsResponse Prelude.Int
getProvisionedProductOutputsResponse_httpStatus :: (Int -> f Int)
-> GetProvisionedProductOutputsResponse
-> f GetProvisionedProductOutputsResponse
getProvisionedProductOutputsResponse_httpStatus = (GetProvisionedProductOutputsResponse -> Int)
-> (GetProvisionedProductOutputsResponse
-> Int -> GetProvisionedProductOutputsResponse)
-> Lens
GetProvisionedProductOutputsResponse
GetProvisionedProductOutputsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetProvisionedProductOutputsResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetProvisionedProductOutputsResponse' :: GetProvisionedProductOutputsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetProvisionedProductOutputsResponse
s@GetProvisionedProductOutputsResponse' {} Int
a -> GetProvisionedProductOutputsResponse
s {$sel:httpStatus:GetProvisionedProductOutputsResponse' :: Int
httpStatus = Int
a} :: GetProvisionedProductOutputsResponse)
instance
Prelude.NFData
GetProvisionedProductOutputsResponse