{-# 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.DescribeProduct
(
DescribeProduct (..),
newDescribeProduct,
describeProduct_name,
describeProduct_acceptLanguage,
describeProduct_id,
DescribeProductResponse (..),
newDescribeProductResponse,
describeProductResponse_productViewSummary,
describeProductResponse_provisioningArtifacts,
describeProductResponse_launchPaths,
describeProductResponse_budgets,
describeProductResponse_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 DescribeProduct = DescribeProduct'
{
DescribeProduct -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
DescribeProduct -> Maybe Text
acceptLanguage :: Prelude.Maybe Prelude.Text,
DescribeProduct -> Maybe Text
id :: Prelude.Maybe Prelude.Text
}
deriving (DescribeProduct -> DescribeProduct -> Bool
(DescribeProduct -> DescribeProduct -> Bool)
-> (DescribeProduct -> DescribeProduct -> Bool)
-> Eq DescribeProduct
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeProduct -> DescribeProduct -> Bool
$c/= :: DescribeProduct -> DescribeProduct -> Bool
== :: DescribeProduct -> DescribeProduct -> Bool
$c== :: DescribeProduct -> DescribeProduct -> Bool
Prelude.Eq, ReadPrec [DescribeProduct]
ReadPrec DescribeProduct
Int -> ReadS DescribeProduct
ReadS [DescribeProduct]
(Int -> ReadS DescribeProduct)
-> ReadS [DescribeProduct]
-> ReadPrec DescribeProduct
-> ReadPrec [DescribeProduct]
-> Read DescribeProduct
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeProduct]
$creadListPrec :: ReadPrec [DescribeProduct]
readPrec :: ReadPrec DescribeProduct
$creadPrec :: ReadPrec DescribeProduct
readList :: ReadS [DescribeProduct]
$creadList :: ReadS [DescribeProduct]
readsPrec :: Int -> ReadS DescribeProduct
$creadsPrec :: Int -> ReadS DescribeProduct
Prelude.Read, Int -> DescribeProduct -> ShowS
[DescribeProduct] -> ShowS
DescribeProduct -> String
(Int -> DescribeProduct -> ShowS)
-> (DescribeProduct -> String)
-> ([DescribeProduct] -> ShowS)
-> Show DescribeProduct
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeProduct] -> ShowS
$cshowList :: [DescribeProduct] -> ShowS
show :: DescribeProduct -> String
$cshow :: DescribeProduct -> String
showsPrec :: Int -> DescribeProduct -> ShowS
$cshowsPrec :: Int -> DescribeProduct -> ShowS
Prelude.Show, (forall x. DescribeProduct -> Rep DescribeProduct x)
-> (forall x. Rep DescribeProduct x -> DescribeProduct)
-> Generic DescribeProduct
forall x. Rep DescribeProduct x -> DescribeProduct
forall x. DescribeProduct -> Rep DescribeProduct x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeProduct x -> DescribeProduct
$cfrom :: forall x. DescribeProduct -> Rep DescribeProduct x
Prelude.Generic)
newDescribeProduct ::
DescribeProduct
newDescribeProduct :: DescribeProduct
newDescribeProduct =
DescribeProduct' :: Maybe Text -> Maybe Text -> Maybe Text -> DescribeProduct
DescribeProduct'
{ $sel:name:DescribeProduct' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:acceptLanguage:DescribeProduct' :: Maybe Text
acceptLanguage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:id:DescribeProduct' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
describeProduct_name :: Lens.Lens' DescribeProduct (Prelude.Maybe Prelude.Text)
describeProduct_name :: (Maybe Text -> f (Maybe Text))
-> DescribeProduct -> f DescribeProduct
describeProduct_name = (DescribeProduct -> Maybe Text)
-> (DescribeProduct -> Maybe Text -> DescribeProduct)
-> Lens DescribeProduct DescribeProduct (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProduct' {Maybe Text
name :: Maybe Text
$sel:name:DescribeProduct' :: DescribeProduct -> Maybe Text
name} -> Maybe Text
name) (\s :: DescribeProduct
s@DescribeProduct' {} Maybe Text
a -> DescribeProduct
s {$sel:name:DescribeProduct' :: Maybe Text
name = Maybe Text
a} :: DescribeProduct)
describeProduct_acceptLanguage :: Lens.Lens' DescribeProduct (Prelude.Maybe Prelude.Text)
describeProduct_acceptLanguage :: (Maybe Text -> f (Maybe Text))
-> DescribeProduct -> f DescribeProduct
describeProduct_acceptLanguage = (DescribeProduct -> Maybe Text)
-> (DescribeProduct -> Maybe Text -> DescribeProduct)
-> Lens DescribeProduct DescribeProduct (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProduct' {Maybe Text
acceptLanguage :: Maybe Text
$sel:acceptLanguage:DescribeProduct' :: DescribeProduct -> Maybe Text
acceptLanguage} -> Maybe Text
acceptLanguage) (\s :: DescribeProduct
s@DescribeProduct' {} Maybe Text
a -> DescribeProduct
s {$sel:acceptLanguage:DescribeProduct' :: Maybe Text
acceptLanguage = Maybe Text
a} :: DescribeProduct)
describeProduct_id :: Lens.Lens' DescribeProduct (Prelude.Maybe Prelude.Text)
describeProduct_id :: (Maybe Text -> f (Maybe Text))
-> DescribeProduct -> f DescribeProduct
describeProduct_id = (DescribeProduct -> Maybe Text)
-> (DescribeProduct -> Maybe Text -> DescribeProduct)
-> Lens DescribeProduct DescribeProduct (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProduct' {Maybe Text
id :: Maybe Text
$sel:id:DescribeProduct' :: DescribeProduct -> Maybe Text
id} -> Maybe Text
id) (\s :: DescribeProduct
s@DescribeProduct' {} Maybe Text
a -> DescribeProduct
s {$sel:id:DescribeProduct' :: Maybe Text
id = Maybe Text
a} :: DescribeProduct)
instance Core.AWSRequest DescribeProduct where
type
AWSResponse DescribeProduct =
DescribeProductResponse
request :: DescribeProduct -> Request DescribeProduct
request = Service -> DescribeProduct -> Request DescribeProduct
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeProduct
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeProduct)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeProduct))
-> Logger
-> Service
-> Proxy DescribeProduct
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeProduct)))
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 ProductViewSummary
-> Maybe [ProvisioningArtifact]
-> Maybe [LaunchPath]
-> Maybe [BudgetDetail]
-> Int
-> DescribeProductResponse
DescribeProductResponse'
(Maybe ProductViewSummary
-> Maybe [ProvisioningArtifact]
-> Maybe [LaunchPath]
-> Maybe [BudgetDetail]
-> Int
-> DescribeProductResponse)
-> Either String (Maybe ProductViewSummary)
-> Either
String
(Maybe [ProvisioningArtifact]
-> Maybe [LaunchPath]
-> Maybe [BudgetDetail]
-> Int
-> DescribeProductResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe ProductViewSummary)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ProductViewSummary")
Either
String
(Maybe [ProvisioningArtifact]
-> Maybe [LaunchPath]
-> Maybe [BudgetDetail]
-> Int
-> DescribeProductResponse)
-> Either String (Maybe [ProvisioningArtifact])
-> Either
String
(Maybe [LaunchPath]
-> Maybe [BudgetDetail] -> Int -> DescribeProductResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [ProvisioningArtifact]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ProvisioningArtifacts"
Either String (Maybe (Maybe [ProvisioningArtifact]))
-> Maybe [ProvisioningArtifact]
-> Either String (Maybe [ProvisioningArtifact])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ProvisioningArtifact]
forall a. Monoid a => a
Prelude.mempty
)
Either
String
(Maybe [LaunchPath]
-> Maybe [BudgetDetail] -> Int -> DescribeProductResponse)
-> Either String (Maybe [LaunchPath])
-> Either
String (Maybe [BudgetDetail] -> Int -> DescribeProductResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [LaunchPath]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LaunchPaths" Either String (Maybe (Maybe [LaunchPath]))
-> Maybe [LaunchPath] -> Either String (Maybe [LaunchPath])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [LaunchPath]
forall a. Monoid a => a
Prelude.mempty)
Either
String (Maybe [BudgetDetail] -> Int -> DescribeProductResponse)
-> Either String (Maybe [BudgetDetail])
-> Either String (Int -> DescribeProductResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [BudgetDetail]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Budgets" Either String (Maybe (Maybe [BudgetDetail]))
-> Maybe [BudgetDetail] -> Either String (Maybe [BudgetDetail])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [BudgetDetail]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> DescribeProductResponse)
-> Either String Int -> Either String DescribeProductResponse
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 DescribeProduct
instance Prelude.NFData DescribeProduct
instance Core.ToHeaders DescribeProduct where
toHeaders :: DescribeProduct -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeProduct -> 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.DescribeProduct" ::
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 DescribeProduct where
toJSON :: DescribeProduct -> Value
toJSON DescribeProduct' {Maybe Text
id :: Maybe Text
acceptLanguage :: Maybe Text
name :: Maybe Text
$sel:id:DescribeProduct' :: DescribeProduct -> Maybe Text
$sel:acceptLanguage:DescribeProduct' :: DescribeProduct -> Maybe Text
$sel:name:DescribeProduct' :: DescribeProduct -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Name" 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
name,
(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
"Id" 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
id
]
)
instance Core.ToPath DescribeProduct where
toPath :: DescribeProduct -> ByteString
toPath = ByteString -> DescribeProduct -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeProduct where
toQuery :: DescribeProduct -> QueryString
toQuery = QueryString -> DescribeProduct -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeProductResponse = DescribeProductResponse'
{
DescribeProductResponse -> Maybe ProductViewSummary
productViewSummary :: Prelude.Maybe ProductViewSummary,
DescribeProductResponse -> Maybe [ProvisioningArtifact]
provisioningArtifacts :: Prelude.Maybe [ProvisioningArtifact],
DescribeProductResponse -> Maybe [LaunchPath]
launchPaths :: Prelude.Maybe [LaunchPath],
DescribeProductResponse -> Maybe [BudgetDetail]
budgets :: Prelude.Maybe [BudgetDetail],
DescribeProductResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeProductResponse -> DescribeProductResponse -> Bool
(DescribeProductResponse -> DescribeProductResponse -> Bool)
-> (DescribeProductResponse -> DescribeProductResponse -> Bool)
-> Eq DescribeProductResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeProductResponse -> DescribeProductResponse -> Bool
$c/= :: DescribeProductResponse -> DescribeProductResponse -> Bool
== :: DescribeProductResponse -> DescribeProductResponse -> Bool
$c== :: DescribeProductResponse -> DescribeProductResponse -> Bool
Prelude.Eq, ReadPrec [DescribeProductResponse]
ReadPrec DescribeProductResponse
Int -> ReadS DescribeProductResponse
ReadS [DescribeProductResponse]
(Int -> ReadS DescribeProductResponse)
-> ReadS [DescribeProductResponse]
-> ReadPrec DescribeProductResponse
-> ReadPrec [DescribeProductResponse]
-> Read DescribeProductResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeProductResponse]
$creadListPrec :: ReadPrec [DescribeProductResponse]
readPrec :: ReadPrec DescribeProductResponse
$creadPrec :: ReadPrec DescribeProductResponse
readList :: ReadS [DescribeProductResponse]
$creadList :: ReadS [DescribeProductResponse]
readsPrec :: Int -> ReadS DescribeProductResponse
$creadsPrec :: Int -> ReadS DescribeProductResponse
Prelude.Read, Int -> DescribeProductResponse -> ShowS
[DescribeProductResponse] -> ShowS
DescribeProductResponse -> String
(Int -> DescribeProductResponse -> ShowS)
-> (DescribeProductResponse -> String)
-> ([DescribeProductResponse] -> ShowS)
-> Show DescribeProductResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeProductResponse] -> ShowS
$cshowList :: [DescribeProductResponse] -> ShowS
show :: DescribeProductResponse -> String
$cshow :: DescribeProductResponse -> String
showsPrec :: Int -> DescribeProductResponse -> ShowS
$cshowsPrec :: Int -> DescribeProductResponse -> ShowS
Prelude.Show, (forall x.
DescribeProductResponse -> Rep DescribeProductResponse x)
-> (forall x.
Rep DescribeProductResponse x -> DescribeProductResponse)
-> Generic DescribeProductResponse
forall x. Rep DescribeProductResponse x -> DescribeProductResponse
forall x. DescribeProductResponse -> Rep DescribeProductResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeProductResponse x -> DescribeProductResponse
$cfrom :: forall x. DescribeProductResponse -> Rep DescribeProductResponse x
Prelude.Generic)
newDescribeProductResponse ::
Prelude.Int ->
DescribeProductResponse
newDescribeProductResponse :: Int -> DescribeProductResponse
newDescribeProductResponse Int
pHttpStatus_ =
DescribeProductResponse' :: Maybe ProductViewSummary
-> Maybe [ProvisioningArtifact]
-> Maybe [LaunchPath]
-> Maybe [BudgetDetail]
-> Int
-> DescribeProductResponse
DescribeProductResponse'
{ $sel:productViewSummary:DescribeProductResponse' :: Maybe ProductViewSummary
productViewSummary =
Maybe ProductViewSummary
forall a. Maybe a
Prelude.Nothing,
$sel:provisioningArtifacts:DescribeProductResponse' :: Maybe [ProvisioningArtifact]
provisioningArtifacts = Maybe [ProvisioningArtifact]
forall a. Maybe a
Prelude.Nothing,
$sel:launchPaths:DescribeProductResponse' :: Maybe [LaunchPath]
launchPaths = Maybe [LaunchPath]
forall a. Maybe a
Prelude.Nothing,
$sel:budgets:DescribeProductResponse' :: Maybe [BudgetDetail]
budgets = Maybe [BudgetDetail]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeProductResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeProductResponse_productViewSummary :: Lens.Lens' DescribeProductResponse (Prelude.Maybe ProductViewSummary)
describeProductResponse_productViewSummary :: (Maybe ProductViewSummary -> f (Maybe ProductViewSummary))
-> DescribeProductResponse -> f DescribeProductResponse
describeProductResponse_productViewSummary = (DescribeProductResponse -> Maybe ProductViewSummary)
-> (DescribeProductResponse
-> Maybe ProductViewSummary -> DescribeProductResponse)
-> Lens
DescribeProductResponse
DescribeProductResponse
(Maybe ProductViewSummary)
(Maybe ProductViewSummary)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProductResponse' {Maybe ProductViewSummary
productViewSummary :: Maybe ProductViewSummary
$sel:productViewSummary:DescribeProductResponse' :: DescribeProductResponse -> Maybe ProductViewSummary
productViewSummary} -> Maybe ProductViewSummary
productViewSummary) (\s :: DescribeProductResponse
s@DescribeProductResponse' {} Maybe ProductViewSummary
a -> DescribeProductResponse
s {$sel:productViewSummary:DescribeProductResponse' :: Maybe ProductViewSummary
productViewSummary = Maybe ProductViewSummary
a} :: DescribeProductResponse)
describeProductResponse_provisioningArtifacts :: Lens.Lens' DescribeProductResponse (Prelude.Maybe [ProvisioningArtifact])
describeProductResponse_provisioningArtifacts :: (Maybe [ProvisioningArtifact] -> f (Maybe [ProvisioningArtifact]))
-> DescribeProductResponse -> f DescribeProductResponse
describeProductResponse_provisioningArtifacts = (DescribeProductResponse -> Maybe [ProvisioningArtifact])
-> (DescribeProductResponse
-> Maybe [ProvisioningArtifact] -> DescribeProductResponse)
-> Lens
DescribeProductResponse
DescribeProductResponse
(Maybe [ProvisioningArtifact])
(Maybe [ProvisioningArtifact])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProductResponse' {Maybe [ProvisioningArtifact]
provisioningArtifacts :: Maybe [ProvisioningArtifact]
$sel:provisioningArtifacts:DescribeProductResponse' :: DescribeProductResponse -> Maybe [ProvisioningArtifact]
provisioningArtifacts} -> Maybe [ProvisioningArtifact]
provisioningArtifacts) (\s :: DescribeProductResponse
s@DescribeProductResponse' {} Maybe [ProvisioningArtifact]
a -> DescribeProductResponse
s {$sel:provisioningArtifacts:DescribeProductResponse' :: Maybe [ProvisioningArtifact]
provisioningArtifacts = Maybe [ProvisioningArtifact]
a} :: DescribeProductResponse) ((Maybe [ProvisioningArtifact] -> f (Maybe [ProvisioningArtifact]))
-> DescribeProductResponse -> f DescribeProductResponse)
-> ((Maybe [ProvisioningArtifact]
-> f (Maybe [ProvisioningArtifact]))
-> Maybe [ProvisioningArtifact]
-> f (Maybe [ProvisioningArtifact]))
-> (Maybe [ProvisioningArtifact]
-> f (Maybe [ProvisioningArtifact]))
-> DescribeProductResponse
-> f DescribeProductResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ProvisioningArtifact]
[ProvisioningArtifact]
[ProvisioningArtifact]
[ProvisioningArtifact]
-> Iso
(Maybe [ProvisioningArtifact])
(Maybe [ProvisioningArtifact])
(Maybe [ProvisioningArtifact])
(Maybe [ProvisioningArtifact])
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
[ProvisioningArtifact]
[ProvisioningArtifact]
[ProvisioningArtifact]
[ProvisioningArtifact]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeProductResponse_launchPaths :: Lens.Lens' DescribeProductResponse (Prelude.Maybe [LaunchPath])
describeProductResponse_launchPaths :: (Maybe [LaunchPath] -> f (Maybe [LaunchPath]))
-> DescribeProductResponse -> f DescribeProductResponse
describeProductResponse_launchPaths = (DescribeProductResponse -> Maybe [LaunchPath])
-> (DescribeProductResponse
-> Maybe [LaunchPath] -> DescribeProductResponse)
-> Lens
DescribeProductResponse
DescribeProductResponse
(Maybe [LaunchPath])
(Maybe [LaunchPath])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProductResponse' {Maybe [LaunchPath]
launchPaths :: Maybe [LaunchPath]
$sel:launchPaths:DescribeProductResponse' :: DescribeProductResponse -> Maybe [LaunchPath]
launchPaths} -> Maybe [LaunchPath]
launchPaths) (\s :: DescribeProductResponse
s@DescribeProductResponse' {} Maybe [LaunchPath]
a -> DescribeProductResponse
s {$sel:launchPaths:DescribeProductResponse' :: Maybe [LaunchPath]
launchPaths = Maybe [LaunchPath]
a} :: DescribeProductResponse) ((Maybe [LaunchPath] -> f (Maybe [LaunchPath]))
-> DescribeProductResponse -> f DescribeProductResponse)
-> ((Maybe [LaunchPath] -> f (Maybe [LaunchPath]))
-> Maybe [LaunchPath] -> f (Maybe [LaunchPath]))
-> (Maybe [LaunchPath] -> f (Maybe [LaunchPath]))
-> DescribeProductResponse
-> f DescribeProductResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [LaunchPath] [LaunchPath] [LaunchPath] [LaunchPath]
-> Iso
(Maybe [LaunchPath])
(Maybe [LaunchPath])
(Maybe [LaunchPath])
(Maybe [LaunchPath])
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 [LaunchPath] [LaunchPath] [LaunchPath] [LaunchPath]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeProductResponse_budgets :: Lens.Lens' DescribeProductResponse (Prelude.Maybe [BudgetDetail])
describeProductResponse_budgets :: (Maybe [BudgetDetail] -> f (Maybe [BudgetDetail]))
-> DescribeProductResponse -> f DescribeProductResponse
describeProductResponse_budgets = (DescribeProductResponse -> Maybe [BudgetDetail])
-> (DescribeProductResponse
-> Maybe [BudgetDetail] -> DescribeProductResponse)
-> Lens
DescribeProductResponse
DescribeProductResponse
(Maybe [BudgetDetail])
(Maybe [BudgetDetail])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProductResponse' {Maybe [BudgetDetail]
budgets :: Maybe [BudgetDetail]
$sel:budgets:DescribeProductResponse' :: DescribeProductResponse -> Maybe [BudgetDetail]
budgets} -> Maybe [BudgetDetail]
budgets) (\s :: DescribeProductResponse
s@DescribeProductResponse' {} Maybe [BudgetDetail]
a -> DescribeProductResponse
s {$sel:budgets:DescribeProductResponse' :: Maybe [BudgetDetail]
budgets = Maybe [BudgetDetail]
a} :: DescribeProductResponse) ((Maybe [BudgetDetail] -> f (Maybe [BudgetDetail]))
-> DescribeProductResponse -> f DescribeProductResponse)
-> ((Maybe [BudgetDetail] -> f (Maybe [BudgetDetail]))
-> Maybe [BudgetDetail] -> f (Maybe [BudgetDetail]))
-> (Maybe [BudgetDetail] -> f (Maybe [BudgetDetail]))
-> DescribeProductResponse
-> f DescribeProductResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [BudgetDetail] [BudgetDetail] [BudgetDetail] [BudgetDetail]
-> Iso
(Maybe [BudgetDetail])
(Maybe [BudgetDetail])
(Maybe [BudgetDetail])
(Maybe [BudgetDetail])
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 [BudgetDetail] [BudgetDetail] [BudgetDetail] [BudgetDetail]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeProductResponse_httpStatus :: Lens.Lens' DescribeProductResponse Prelude.Int
describeProductResponse_httpStatus :: (Int -> f Int)
-> DescribeProductResponse -> f DescribeProductResponse
describeProductResponse_httpStatus = (DescribeProductResponse -> Int)
-> (DescribeProductResponse -> Int -> DescribeProductResponse)
-> Lens DescribeProductResponse DescribeProductResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProductResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeProductResponse' :: DescribeProductResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeProductResponse
s@DescribeProductResponse' {} Int
a -> DescribeProductResponse
s {$sel:httpStatus:DescribeProductResponse' :: Int
httpStatus = Int
a} :: DescribeProductResponse)
instance Prelude.NFData DescribeProductResponse