{-# 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.ListServiceActionsForProvisioningArtifact
(
ListServiceActionsForProvisioningArtifact (..),
newListServiceActionsForProvisioningArtifact,
listServiceActionsForProvisioningArtifact_acceptLanguage,
listServiceActionsForProvisioningArtifact_pageToken,
listServiceActionsForProvisioningArtifact_pageSize,
listServiceActionsForProvisioningArtifact_productId,
listServiceActionsForProvisioningArtifact_provisioningArtifactId,
ListServiceActionsForProvisioningArtifactResponse (..),
newListServiceActionsForProvisioningArtifactResponse,
listServiceActionsForProvisioningArtifactResponse_nextPageToken,
listServiceActionsForProvisioningArtifactResponse_serviceActionSummaries,
listServiceActionsForProvisioningArtifactResponse_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 ListServiceActionsForProvisioningArtifact = ListServiceActionsForProvisioningArtifact'
{
ListServiceActionsForProvisioningArtifact -> Maybe Text
acceptLanguage :: Prelude.Maybe Prelude.Text,
ListServiceActionsForProvisioningArtifact -> Maybe Text
pageToken :: Prelude.Maybe Prelude.Text,
ListServiceActionsForProvisioningArtifact -> Maybe Natural
pageSize :: Prelude.Maybe Prelude.Natural,
ListServiceActionsForProvisioningArtifact -> Text
productId :: Prelude.Text,
ListServiceActionsForProvisioningArtifact -> Text
provisioningArtifactId :: Prelude.Text
}
deriving (ListServiceActionsForProvisioningArtifact
-> ListServiceActionsForProvisioningArtifact -> Bool
(ListServiceActionsForProvisioningArtifact
-> ListServiceActionsForProvisioningArtifact -> Bool)
-> (ListServiceActionsForProvisioningArtifact
-> ListServiceActionsForProvisioningArtifact -> Bool)
-> Eq ListServiceActionsForProvisioningArtifact
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListServiceActionsForProvisioningArtifact
-> ListServiceActionsForProvisioningArtifact -> Bool
$c/= :: ListServiceActionsForProvisioningArtifact
-> ListServiceActionsForProvisioningArtifact -> Bool
== :: ListServiceActionsForProvisioningArtifact
-> ListServiceActionsForProvisioningArtifact -> Bool
$c== :: ListServiceActionsForProvisioningArtifact
-> ListServiceActionsForProvisioningArtifact -> Bool
Prelude.Eq, ReadPrec [ListServiceActionsForProvisioningArtifact]
ReadPrec ListServiceActionsForProvisioningArtifact
Int -> ReadS ListServiceActionsForProvisioningArtifact
ReadS [ListServiceActionsForProvisioningArtifact]
(Int -> ReadS ListServiceActionsForProvisioningArtifact)
-> ReadS [ListServiceActionsForProvisioningArtifact]
-> ReadPrec ListServiceActionsForProvisioningArtifact
-> ReadPrec [ListServiceActionsForProvisioningArtifact]
-> Read ListServiceActionsForProvisioningArtifact
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListServiceActionsForProvisioningArtifact]
$creadListPrec :: ReadPrec [ListServiceActionsForProvisioningArtifact]
readPrec :: ReadPrec ListServiceActionsForProvisioningArtifact
$creadPrec :: ReadPrec ListServiceActionsForProvisioningArtifact
readList :: ReadS [ListServiceActionsForProvisioningArtifact]
$creadList :: ReadS [ListServiceActionsForProvisioningArtifact]
readsPrec :: Int -> ReadS ListServiceActionsForProvisioningArtifact
$creadsPrec :: Int -> ReadS ListServiceActionsForProvisioningArtifact
Prelude.Read, Int -> ListServiceActionsForProvisioningArtifact -> ShowS
[ListServiceActionsForProvisioningArtifact] -> ShowS
ListServiceActionsForProvisioningArtifact -> String
(Int -> ListServiceActionsForProvisioningArtifact -> ShowS)
-> (ListServiceActionsForProvisioningArtifact -> String)
-> ([ListServiceActionsForProvisioningArtifact] -> ShowS)
-> Show ListServiceActionsForProvisioningArtifact
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListServiceActionsForProvisioningArtifact] -> ShowS
$cshowList :: [ListServiceActionsForProvisioningArtifact] -> ShowS
show :: ListServiceActionsForProvisioningArtifact -> String
$cshow :: ListServiceActionsForProvisioningArtifact -> String
showsPrec :: Int -> ListServiceActionsForProvisioningArtifact -> ShowS
$cshowsPrec :: Int -> ListServiceActionsForProvisioningArtifact -> ShowS
Prelude.Show, (forall x.
ListServiceActionsForProvisioningArtifact
-> Rep ListServiceActionsForProvisioningArtifact x)
-> (forall x.
Rep ListServiceActionsForProvisioningArtifact x
-> ListServiceActionsForProvisioningArtifact)
-> Generic ListServiceActionsForProvisioningArtifact
forall x.
Rep ListServiceActionsForProvisioningArtifact x
-> ListServiceActionsForProvisioningArtifact
forall x.
ListServiceActionsForProvisioningArtifact
-> Rep ListServiceActionsForProvisioningArtifact x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListServiceActionsForProvisioningArtifact x
-> ListServiceActionsForProvisioningArtifact
$cfrom :: forall x.
ListServiceActionsForProvisioningArtifact
-> Rep ListServiceActionsForProvisioningArtifact x
Prelude.Generic)
newListServiceActionsForProvisioningArtifact ::
Prelude.Text ->
Prelude.Text ->
ListServiceActionsForProvisioningArtifact
newListServiceActionsForProvisioningArtifact :: Text -> Text -> ListServiceActionsForProvisioningArtifact
newListServiceActionsForProvisioningArtifact
Text
pProductId_
Text
pProvisioningArtifactId_ =
ListServiceActionsForProvisioningArtifact' :: Maybe Text
-> Maybe Text
-> Maybe Natural
-> Text
-> Text
-> ListServiceActionsForProvisioningArtifact
ListServiceActionsForProvisioningArtifact'
{ $sel:acceptLanguage:ListServiceActionsForProvisioningArtifact' :: Maybe Text
acceptLanguage =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:pageToken:ListServiceActionsForProvisioningArtifact' :: Maybe Text
pageToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:pageSize:ListServiceActionsForProvisioningArtifact' :: Maybe Natural
pageSize = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:productId:ListServiceActionsForProvisioningArtifact' :: Text
productId = Text
pProductId_,
$sel:provisioningArtifactId:ListServiceActionsForProvisioningArtifact' :: Text
provisioningArtifactId =
Text
pProvisioningArtifactId_
}
listServiceActionsForProvisioningArtifact_acceptLanguage :: Lens.Lens' ListServiceActionsForProvisioningArtifact (Prelude.Maybe Prelude.Text)
listServiceActionsForProvisioningArtifact_acceptLanguage :: (Maybe Text -> f (Maybe Text))
-> ListServiceActionsForProvisioningArtifact
-> f ListServiceActionsForProvisioningArtifact
listServiceActionsForProvisioningArtifact_acceptLanguage = (ListServiceActionsForProvisioningArtifact -> Maybe Text)
-> (ListServiceActionsForProvisioningArtifact
-> Maybe Text -> ListServiceActionsForProvisioningArtifact)
-> Lens
ListServiceActionsForProvisioningArtifact
ListServiceActionsForProvisioningArtifact
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListServiceActionsForProvisioningArtifact' {Maybe Text
acceptLanguage :: Maybe Text
$sel:acceptLanguage:ListServiceActionsForProvisioningArtifact' :: ListServiceActionsForProvisioningArtifact -> Maybe Text
acceptLanguage} -> Maybe Text
acceptLanguage) (\s :: ListServiceActionsForProvisioningArtifact
s@ListServiceActionsForProvisioningArtifact' {} Maybe Text
a -> ListServiceActionsForProvisioningArtifact
s {$sel:acceptLanguage:ListServiceActionsForProvisioningArtifact' :: Maybe Text
acceptLanguage = Maybe Text
a} :: ListServiceActionsForProvisioningArtifact)
listServiceActionsForProvisioningArtifact_pageToken :: Lens.Lens' ListServiceActionsForProvisioningArtifact (Prelude.Maybe Prelude.Text)
listServiceActionsForProvisioningArtifact_pageToken :: (Maybe Text -> f (Maybe Text))
-> ListServiceActionsForProvisioningArtifact
-> f ListServiceActionsForProvisioningArtifact
listServiceActionsForProvisioningArtifact_pageToken = (ListServiceActionsForProvisioningArtifact -> Maybe Text)
-> (ListServiceActionsForProvisioningArtifact
-> Maybe Text -> ListServiceActionsForProvisioningArtifact)
-> Lens
ListServiceActionsForProvisioningArtifact
ListServiceActionsForProvisioningArtifact
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListServiceActionsForProvisioningArtifact' {Maybe Text
pageToken :: Maybe Text
$sel:pageToken:ListServiceActionsForProvisioningArtifact' :: ListServiceActionsForProvisioningArtifact -> Maybe Text
pageToken} -> Maybe Text
pageToken) (\s :: ListServiceActionsForProvisioningArtifact
s@ListServiceActionsForProvisioningArtifact' {} Maybe Text
a -> ListServiceActionsForProvisioningArtifact
s {$sel:pageToken:ListServiceActionsForProvisioningArtifact' :: Maybe Text
pageToken = Maybe Text
a} :: ListServiceActionsForProvisioningArtifact)
listServiceActionsForProvisioningArtifact_pageSize :: Lens.Lens' ListServiceActionsForProvisioningArtifact (Prelude.Maybe Prelude.Natural)
listServiceActionsForProvisioningArtifact_pageSize :: (Maybe Natural -> f (Maybe Natural))
-> ListServiceActionsForProvisioningArtifact
-> f ListServiceActionsForProvisioningArtifact
listServiceActionsForProvisioningArtifact_pageSize = (ListServiceActionsForProvisioningArtifact -> Maybe Natural)
-> (ListServiceActionsForProvisioningArtifact
-> Maybe Natural -> ListServiceActionsForProvisioningArtifact)
-> Lens
ListServiceActionsForProvisioningArtifact
ListServiceActionsForProvisioningArtifact
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListServiceActionsForProvisioningArtifact' {Maybe Natural
pageSize :: Maybe Natural
$sel:pageSize:ListServiceActionsForProvisioningArtifact' :: ListServiceActionsForProvisioningArtifact -> Maybe Natural
pageSize} -> Maybe Natural
pageSize) (\s :: ListServiceActionsForProvisioningArtifact
s@ListServiceActionsForProvisioningArtifact' {} Maybe Natural
a -> ListServiceActionsForProvisioningArtifact
s {$sel:pageSize:ListServiceActionsForProvisioningArtifact' :: Maybe Natural
pageSize = Maybe Natural
a} :: ListServiceActionsForProvisioningArtifact)
listServiceActionsForProvisioningArtifact_productId :: Lens.Lens' ListServiceActionsForProvisioningArtifact Prelude.Text
listServiceActionsForProvisioningArtifact_productId :: (Text -> f Text)
-> ListServiceActionsForProvisioningArtifact
-> f ListServiceActionsForProvisioningArtifact
listServiceActionsForProvisioningArtifact_productId = (ListServiceActionsForProvisioningArtifact -> Text)
-> (ListServiceActionsForProvisioningArtifact
-> Text -> ListServiceActionsForProvisioningArtifact)
-> Lens
ListServiceActionsForProvisioningArtifact
ListServiceActionsForProvisioningArtifact
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListServiceActionsForProvisioningArtifact' {Text
productId :: Text
$sel:productId:ListServiceActionsForProvisioningArtifact' :: ListServiceActionsForProvisioningArtifact -> Text
productId} -> Text
productId) (\s :: ListServiceActionsForProvisioningArtifact
s@ListServiceActionsForProvisioningArtifact' {} Text
a -> ListServiceActionsForProvisioningArtifact
s {$sel:productId:ListServiceActionsForProvisioningArtifact' :: Text
productId = Text
a} :: ListServiceActionsForProvisioningArtifact)
listServiceActionsForProvisioningArtifact_provisioningArtifactId :: Lens.Lens' ListServiceActionsForProvisioningArtifact Prelude.Text
listServiceActionsForProvisioningArtifact_provisioningArtifactId :: (Text -> f Text)
-> ListServiceActionsForProvisioningArtifact
-> f ListServiceActionsForProvisioningArtifact
listServiceActionsForProvisioningArtifact_provisioningArtifactId = (ListServiceActionsForProvisioningArtifact -> Text)
-> (ListServiceActionsForProvisioningArtifact
-> Text -> ListServiceActionsForProvisioningArtifact)
-> Lens
ListServiceActionsForProvisioningArtifact
ListServiceActionsForProvisioningArtifact
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListServiceActionsForProvisioningArtifact' {Text
provisioningArtifactId :: Text
$sel:provisioningArtifactId:ListServiceActionsForProvisioningArtifact' :: ListServiceActionsForProvisioningArtifact -> Text
provisioningArtifactId} -> Text
provisioningArtifactId) (\s :: ListServiceActionsForProvisioningArtifact
s@ListServiceActionsForProvisioningArtifact' {} Text
a -> ListServiceActionsForProvisioningArtifact
s {$sel:provisioningArtifactId:ListServiceActionsForProvisioningArtifact' :: Text
provisioningArtifactId = Text
a} :: ListServiceActionsForProvisioningArtifact)
instance
Core.AWSPager
ListServiceActionsForProvisioningArtifact
where
page :: ListServiceActionsForProvisioningArtifact
-> AWSResponse ListServiceActionsForProvisioningArtifact
-> Maybe ListServiceActionsForProvisioningArtifact
page ListServiceActionsForProvisioningArtifact
rq AWSResponse ListServiceActionsForProvisioningArtifact
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListServiceActionsForProvisioningArtifact
ListServiceActionsForProvisioningArtifactResponse
rs
ListServiceActionsForProvisioningArtifactResponse
-> Getting
(First Text) ListServiceActionsForProvisioningArtifactResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListServiceActionsForProvisioningArtifactResponse
-> Const
(First Text) ListServiceActionsForProvisioningArtifactResponse
Lens'
ListServiceActionsForProvisioningArtifactResponse (Maybe Text)
listServiceActionsForProvisioningArtifactResponse_nextPageToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListServiceActionsForProvisioningArtifactResponse
-> Const
(First Text) ListServiceActionsForProvisioningArtifactResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) ListServiceActionsForProvisioningArtifactResponse 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 ListServiceActionsForProvisioningArtifact
forall a. Maybe a
Prelude.Nothing
| Maybe [ServiceActionSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListServiceActionsForProvisioningArtifact
ListServiceActionsForProvisioningArtifactResponse
rs
ListServiceActionsForProvisioningArtifactResponse
-> Getting
(First [ServiceActionSummary])
ListServiceActionsForProvisioningArtifactResponse
[ServiceActionSummary]
-> Maybe [ServiceActionSummary]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [ServiceActionSummary]
-> Const
(First [ServiceActionSummary]) (Maybe [ServiceActionSummary]))
-> ListServiceActionsForProvisioningArtifactResponse
-> Const
(First [ServiceActionSummary])
ListServiceActionsForProvisioningArtifactResponse
Lens'
ListServiceActionsForProvisioningArtifactResponse
(Maybe [ServiceActionSummary])
listServiceActionsForProvisioningArtifactResponse_serviceActionSummaries
((Maybe [ServiceActionSummary]
-> Const
(First [ServiceActionSummary]) (Maybe [ServiceActionSummary]))
-> ListServiceActionsForProvisioningArtifactResponse
-> Const
(First [ServiceActionSummary])
ListServiceActionsForProvisioningArtifactResponse)
-> (([ServiceActionSummary]
-> Const (First [ServiceActionSummary]) [ServiceActionSummary])
-> Maybe [ServiceActionSummary]
-> Const
(First [ServiceActionSummary]) (Maybe [ServiceActionSummary]))
-> Getting
(First [ServiceActionSummary])
ListServiceActionsForProvisioningArtifactResponse
[ServiceActionSummary]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ServiceActionSummary]
-> Const (First [ServiceActionSummary]) [ServiceActionSummary])
-> Maybe [ServiceActionSummary]
-> Const
(First [ServiceActionSummary]) (Maybe [ServiceActionSummary])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListServiceActionsForProvisioningArtifact
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListServiceActionsForProvisioningArtifact
-> Maybe ListServiceActionsForProvisioningArtifact
forall a. a -> Maybe a
Prelude.Just (ListServiceActionsForProvisioningArtifact
-> Maybe ListServiceActionsForProvisioningArtifact)
-> ListServiceActionsForProvisioningArtifact
-> Maybe ListServiceActionsForProvisioningArtifact
forall a b. (a -> b) -> a -> b
Prelude.$
ListServiceActionsForProvisioningArtifact
rq
ListServiceActionsForProvisioningArtifact
-> (ListServiceActionsForProvisioningArtifact
-> ListServiceActionsForProvisioningArtifact)
-> ListServiceActionsForProvisioningArtifact
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListServiceActionsForProvisioningArtifact
-> Identity ListServiceActionsForProvisioningArtifact
Lens
ListServiceActionsForProvisioningArtifact
ListServiceActionsForProvisioningArtifact
(Maybe Text)
(Maybe Text)
listServiceActionsForProvisioningArtifact_pageToken
((Maybe Text -> Identity (Maybe Text))
-> ListServiceActionsForProvisioningArtifact
-> Identity ListServiceActionsForProvisioningArtifact)
-> Maybe Text
-> ListServiceActionsForProvisioningArtifact
-> ListServiceActionsForProvisioningArtifact
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListServiceActionsForProvisioningArtifact
ListServiceActionsForProvisioningArtifactResponse
rs
ListServiceActionsForProvisioningArtifactResponse
-> Getting
(First Text) ListServiceActionsForProvisioningArtifactResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListServiceActionsForProvisioningArtifactResponse
-> Const
(First Text) ListServiceActionsForProvisioningArtifactResponse
Lens'
ListServiceActionsForProvisioningArtifactResponse (Maybe Text)
listServiceActionsForProvisioningArtifactResponse_nextPageToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListServiceActionsForProvisioningArtifactResponse
-> Const
(First Text) ListServiceActionsForProvisioningArtifactResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) ListServiceActionsForProvisioningArtifactResponse 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
ListServiceActionsForProvisioningArtifact
where
type
AWSResponse
ListServiceActionsForProvisioningArtifact =
ListServiceActionsForProvisioningArtifactResponse
request :: ListServiceActionsForProvisioningArtifact
-> Request ListServiceActionsForProvisioningArtifact
request = Service
-> ListServiceActionsForProvisioningArtifact
-> Request ListServiceActionsForProvisioningArtifact
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListServiceActionsForProvisioningArtifact
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse ListServiceActionsForProvisioningArtifact)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either
String (AWSResponse ListServiceActionsForProvisioningArtifact))
-> Logger
-> Service
-> Proxy ListServiceActionsForProvisioningArtifact
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse ListServiceActionsForProvisioningArtifact)))
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 [ServiceActionSummary]
-> Int
-> ListServiceActionsForProvisioningArtifactResponse
ListServiceActionsForProvisioningArtifactResponse'
(Maybe Text
-> Maybe [ServiceActionSummary]
-> Int
-> ListServiceActionsForProvisioningArtifactResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [ServiceActionSummary]
-> Int -> ListServiceActionsForProvisioningArtifactResponse)
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 [ServiceActionSummary]
-> Int -> ListServiceActionsForProvisioningArtifactResponse)
-> Either String (Maybe [ServiceActionSummary])
-> Either
String (Int -> ListServiceActionsForProvisioningArtifactResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [ServiceActionSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ServiceActionSummaries"
Either String (Maybe (Maybe [ServiceActionSummary]))
-> Maybe [ServiceActionSummary]
-> Either String (Maybe [ServiceActionSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ServiceActionSummary]
forall a. Monoid a => a
Prelude.mempty
)
Either
String (Int -> ListServiceActionsForProvisioningArtifactResponse)
-> Either String Int
-> Either String ListServiceActionsForProvisioningArtifactResponse
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
ListServiceActionsForProvisioningArtifact
instance
Prelude.NFData
ListServiceActionsForProvisioningArtifact
instance
Core.ToHeaders
ListServiceActionsForProvisioningArtifact
where
toHeaders :: ListServiceActionsForProvisioningArtifact -> ResponseHeaders
toHeaders =
ResponseHeaders
-> ListServiceActionsForProvisioningArtifact -> 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.ListServiceActionsForProvisioningArtifact" ::
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
ListServiceActionsForProvisioningArtifact
where
toJSON :: ListServiceActionsForProvisioningArtifact -> Value
toJSON ListServiceActionsForProvisioningArtifact' {Maybe Natural
Maybe Text
Text
provisioningArtifactId :: Text
productId :: Text
pageSize :: Maybe Natural
pageToken :: Maybe Text
acceptLanguage :: Maybe Text
$sel:provisioningArtifactId:ListServiceActionsForProvisioningArtifact' :: ListServiceActionsForProvisioningArtifact -> Text
$sel:productId:ListServiceActionsForProvisioningArtifact' :: ListServiceActionsForProvisioningArtifact -> Text
$sel:pageSize:ListServiceActionsForProvisioningArtifact' :: ListServiceActionsForProvisioningArtifact -> Maybe Natural
$sel:pageToken:ListServiceActionsForProvisioningArtifact' :: ListServiceActionsForProvisioningArtifact -> Maybe Text
$sel:acceptLanguage:ListServiceActionsForProvisioningArtifact' :: ListServiceActionsForProvisioningArtifact -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (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,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ProductId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
productId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"ProvisioningArtifactId"
Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
provisioningArtifactId
)
]
)
instance
Core.ToPath
ListServiceActionsForProvisioningArtifact
where
toPath :: ListServiceActionsForProvisioningArtifact -> ByteString
toPath = ByteString
-> ListServiceActionsForProvisioningArtifact -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
ListServiceActionsForProvisioningArtifact
where
toQuery :: ListServiceActionsForProvisioningArtifact -> QueryString
toQuery = QueryString
-> ListServiceActionsForProvisioningArtifact -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListServiceActionsForProvisioningArtifactResponse = ListServiceActionsForProvisioningArtifactResponse'
{
ListServiceActionsForProvisioningArtifactResponse -> Maybe Text
nextPageToken :: Prelude.Maybe Prelude.Text,
ListServiceActionsForProvisioningArtifactResponse
-> Maybe [ServiceActionSummary]
serviceActionSummaries :: Prelude.Maybe [ServiceActionSummary],
ListServiceActionsForProvisioningArtifactResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListServiceActionsForProvisioningArtifactResponse
-> ListServiceActionsForProvisioningArtifactResponse -> Bool
(ListServiceActionsForProvisioningArtifactResponse
-> ListServiceActionsForProvisioningArtifactResponse -> Bool)
-> (ListServiceActionsForProvisioningArtifactResponse
-> ListServiceActionsForProvisioningArtifactResponse -> Bool)
-> Eq ListServiceActionsForProvisioningArtifactResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListServiceActionsForProvisioningArtifactResponse
-> ListServiceActionsForProvisioningArtifactResponse -> Bool
$c/= :: ListServiceActionsForProvisioningArtifactResponse
-> ListServiceActionsForProvisioningArtifactResponse -> Bool
== :: ListServiceActionsForProvisioningArtifactResponse
-> ListServiceActionsForProvisioningArtifactResponse -> Bool
$c== :: ListServiceActionsForProvisioningArtifactResponse
-> ListServiceActionsForProvisioningArtifactResponse -> Bool
Prelude.Eq, ReadPrec [ListServiceActionsForProvisioningArtifactResponse]
ReadPrec ListServiceActionsForProvisioningArtifactResponse
Int -> ReadS ListServiceActionsForProvisioningArtifactResponse
ReadS [ListServiceActionsForProvisioningArtifactResponse]
(Int -> ReadS ListServiceActionsForProvisioningArtifactResponse)
-> ReadS [ListServiceActionsForProvisioningArtifactResponse]
-> ReadPrec ListServiceActionsForProvisioningArtifactResponse
-> ReadPrec [ListServiceActionsForProvisioningArtifactResponse]
-> Read ListServiceActionsForProvisioningArtifactResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListServiceActionsForProvisioningArtifactResponse]
$creadListPrec :: ReadPrec [ListServiceActionsForProvisioningArtifactResponse]
readPrec :: ReadPrec ListServiceActionsForProvisioningArtifactResponse
$creadPrec :: ReadPrec ListServiceActionsForProvisioningArtifactResponse
readList :: ReadS [ListServiceActionsForProvisioningArtifactResponse]
$creadList :: ReadS [ListServiceActionsForProvisioningArtifactResponse]
readsPrec :: Int -> ReadS ListServiceActionsForProvisioningArtifactResponse
$creadsPrec :: Int -> ReadS ListServiceActionsForProvisioningArtifactResponse
Prelude.Read, Int -> ListServiceActionsForProvisioningArtifactResponse -> ShowS
[ListServiceActionsForProvisioningArtifactResponse] -> ShowS
ListServiceActionsForProvisioningArtifactResponse -> String
(Int -> ListServiceActionsForProvisioningArtifactResponse -> ShowS)
-> (ListServiceActionsForProvisioningArtifactResponse -> String)
-> ([ListServiceActionsForProvisioningArtifactResponse] -> ShowS)
-> Show ListServiceActionsForProvisioningArtifactResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListServiceActionsForProvisioningArtifactResponse] -> ShowS
$cshowList :: [ListServiceActionsForProvisioningArtifactResponse] -> ShowS
show :: ListServiceActionsForProvisioningArtifactResponse -> String
$cshow :: ListServiceActionsForProvisioningArtifactResponse -> String
showsPrec :: Int -> ListServiceActionsForProvisioningArtifactResponse -> ShowS
$cshowsPrec :: Int -> ListServiceActionsForProvisioningArtifactResponse -> ShowS
Prelude.Show, (forall x.
ListServiceActionsForProvisioningArtifactResponse
-> Rep ListServiceActionsForProvisioningArtifactResponse x)
-> (forall x.
Rep ListServiceActionsForProvisioningArtifactResponse x
-> ListServiceActionsForProvisioningArtifactResponse)
-> Generic ListServiceActionsForProvisioningArtifactResponse
forall x.
Rep ListServiceActionsForProvisioningArtifactResponse x
-> ListServiceActionsForProvisioningArtifactResponse
forall x.
ListServiceActionsForProvisioningArtifactResponse
-> Rep ListServiceActionsForProvisioningArtifactResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListServiceActionsForProvisioningArtifactResponse x
-> ListServiceActionsForProvisioningArtifactResponse
$cfrom :: forall x.
ListServiceActionsForProvisioningArtifactResponse
-> Rep ListServiceActionsForProvisioningArtifactResponse x
Prelude.Generic)
newListServiceActionsForProvisioningArtifactResponse ::
Prelude.Int ->
ListServiceActionsForProvisioningArtifactResponse
newListServiceActionsForProvisioningArtifactResponse :: Int -> ListServiceActionsForProvisioningArtifactResponse
newListServiceActionsForProvisioningArtifactResponse
Int
pHttpStatus_ =
ListServiceActionsForProvisioningArtifactResponse' :: Maybe Text
-> Maybe [ServiceActionSummary]
-> Int
-> ListServiceActionsForProvisioningArtifactResponse
ListServiceActionsForProvisioningArtifactResponse'
{ $sel:nextPageToken:ListServiceActionsForProvisioningArtifactResponse' :: Maybe Text
nextPageToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:serviceActionSummaries:ListServiceActionsForProvisioningArtifactResponse' :: Maybe [ServiceActionSummary]
serviceActionSummaries =
Maybe [ServiceActionSummary]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListServiceActionsForProvisioningArtifactResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
listServiceActionsForProvisioningArtifactResponse_nextPageToken :: Lens.Lens' ListServiceActionsForProvisioningArtifactResponse (Prelude.Maybe Prelude.Text)
listServiceActionsForProvisioningArtifactResponse_nextPageToken :: (Maybe Text -> f (Maybe Text))
-> ListServiceActionsForProvisioningArtifactResponse
-> f ListServiceActionsForProvisioningArtifactResponse
listServiceActionsForProvisioningArtifactResponse_nextPageToken = (ListServiceActionsForProvisioningArtifactResponse -> Maybe Text)
-> (ListServiceActionsForProvisioningArtifactResponse
-> Maybe Text -> ListServiceActionsForProvisioningArtifactResponse)
-> Lens'
ListServiceActionsForProvisioningArtifactResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListServiceActionsForProvisioningArtifactResponse' {Maybe Text
nextPageToken :: Maybe Text
$sel:nextPageToken:ListServiceActionsForProvisioningArtifactResponse' :: ListServiceActionsForProvisioningArtifactResponse -> Maybe Text
nextPageToken} -> Maybe Text
nextPageToken) (\s :: ListServiceActionsForProvisioningArtifactResponse
s@ListServiceActionsForProvisioningArtifactResponse' {} Maybe Text
a -> ListServiceActionsForProvisioningArtifactResponse
s {$sel:nextPageToken:ListServiceActionsForProvisioningArtifactResponse' :: Maybe Text
nextPageToken = Maybe Text
a} :: ListServiceActionsForProvisioningArtifactResponse)
listServiceActionsForProvisioningArtifactResponse_serviceActionSummaries :: Lens.Lens' ListServiceActionsForProvisioningArtifactResponse (Prelude.Maybe [ServiceActionSummary])
listServiceActionsForProvisioningArtifactResponse_serviceActionSummaries :: (Maybe [ServiceActionSummary] -> f (Maybe [ServiceActionSummary]))
-> ListServiceActionsForProvisioningArtifactResponse
-> f ListServiceActionsForProvisioningArtifactResponse
listServiceActionsForProvisioningArtifactResponse_serviceActionSummaries = (ListServiceActionsForProvisioningArtifactResponse
-> Maybe [ServiceActionSummary])
-> (ListServiceActionsForProvisioningArtifactResponse
-> Maybe [ServiceActionSummary]
-> ListServiceActionsForProvisioningArtifactResponse)
-> Lens'
ListServiceActionsForProvisioningArtifactResponse
(Maybe [ServiceActionSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListServiceActionsForProvisioningArtifactResponse' {Maybe [ServiceActionSummary]
serviceActionSummaries :: Maybe [ServiceActionSummary]
$sel:serviceActionSummaries:ListServiceActionsForProvisioningArtifactResponse' :: ListServiceActionsForProvisioningArtifactResponse
-> Maybe [ServiceActionSummary]
serviceActionSummaries} -> Maybe [ServiceActionSummary]
serviceActionSummaries) (\s :: ListServiceActionsForProvisioningArtifactResponse
s@ListServiceActionsForProvisioningArtifactResponse' {} Maybe [ServiceActionSummary]
a -> ListServiceActionsForProvisioningArtifactResponse
s {$sel:serviceActionSummaries:ListServiceActionsForProvisioningArtifactResponse' :: Maybe [ServiceActionSummary]
serviceActionSummaries = Maybe [ServiceActionSummary]
a} :: ListServiceActionsForProvisioningArtifactResponse) ((Maybe [ServiceActionSummary] -> f (Maybe [ServiceActionSummary]))
-> ListServiceActionsForProvisioningArtifactResponse
-> f ListServiceActionsForProvisioningArtifactResponse)
-> ((Maybe [ServiceActionSummary]
-> f (Maybe [ServiceActionSummary]))
-> Maybe [ServiceActionSummary]
-> f (Maybe [ServiceActionSummary]))
-> (Maybe [ServiceActionSummary]
-> f (Maybe [ServiceActionSummary]))
-> ListServiceActionsForProvisioningArtifactResponse
-> f ListServiceActionsForProvisioningArtifactResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ServiceActionSummary]
[ServiceActionSummary]
[ServiceActionSummary]
[ServiceActionSummary]
-> Iso
(Maybe [ServiceActionSummary])
(Maybe [ServiceActionSummary])
(Maybe [ServiceActionSummary])
(Maybe [ServiceActionSummary])
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
[ServiceActionSummary]
[ServiceActionSummary]
[ServiceActionSummary]
[ServiceActionSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listServiceActionsForProvisioningArtifactResponse_httpStatus :: Lens.Lens' ListServiceActionsForProvisioningArtifactResponse Prelude.Int
listServiceActionsForProvisioningArtifactResponse_httpStatus :: (Int -> f Int)
-> ListServiceActionsForProvisioningArtifactResponse
-> f ListServiceActionsForProvisioningArtifactResponse
listServiceActionsForProvisioningArtifactResponse_httpStatus = (ListServiceActionsForProvisioningArtifactResponse -> Int)
-> (ListServiceActionsForProvisioningArtifactResponse
-> Int -> ListServiceActionsForProvisioningArtifactResponse)
-> Lens
ListServiceActionsForProvisioningArtifactResponse
ListServiceActionsForProvisioningArtifactResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListServiceActionsForProvisioningArtifactResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListServiceActionsForProvisioningArtifactResponse' :: ListServiceActionsForProvisioningArtifactResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListServiceActionsForProvisioningArtifactResponse
s@ListServiceActionsForProvisioningArtifactResponse' {} Int
a -> ListServiceActionsForProvisioningArtifactResponse
s {$sel:httpStatus:ListServiceActionsForProvisioningArtifactResponse' :: Int
httpStatus = Int
a} :: ListServiceActionsForProvisioningArtifactResponse)
instance
Prelude.NFData
ListServiceActionsForProvisioningArtifactResponse