{-# 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.DescribeProvisionedProductPlan
(
DescribeProvisionedProductPlan (..),
newDescribeProvisionedProductPlan,
describeProvisionedProductPlan_acceptLanguage,
describeProvisionedProductPlan_pageSize,
describeProvisionedProductPlan_pageToken,
describeProvisionedProductPlan_planId,
DescribeProvisionedProductPlanResponse (..),
newDescribeProvisionedProductPlanResponse,
describeProvisionedProductPlanResponse_nextPageToken,
describeProvisionedProductPlanResponse_provisionedProductPlanDetails,
describeProvisionedProductPlanResponse_resourceChanges,
describeProvisionedProductPlanResponse_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 DescribeProvisionedProductPlan = DescribeProvisionedProductPlan'
{
DescribeProvisionedProductPlan -> Maybe Text
acceptLanguage :: Prelude.Maybe Prelude.Text,
DescribeProvisionedProductPlan -> Maybe Natural
pageSize :: Prelude.Maybe Prelude.Natural,
DescribeProvisionedProductPlan -> Maybe Text
pageToken :: Prelude.Maybe Prelude.Text,
DescribeProvisionedProductPlan -> Text
planId :: Prelude.Text
}
deriving (DescribeProvisionedProductPlan
-> DescribeProvisionedProductPlan -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeProvisionedProductPlan
-> DescribeProvisionedProductPlan -> Bool
$c/= :: DescribeProvisionedProductPlan
-> DescribeProvisionedProductPlan -> Bool
== :: DescribeProvisionedProductPlan
-> DescribeProvisionedProductPlan -> Bool
$c== :: DescribeProvisionedProductPlan
-> DescribeProvisionedProductPlan -> Bool
Prelude.Eq, ReadPrec [DescribeProvisionedProductPlan]
ReadPrec DescribeProvisionedProductPlan
Int -> ReadS DescribeProvisionedProductPlan
ReadS [DescribeProvisionedProductPlan]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeProvisionedProductPlan]
$creadListPrec :: ReadPrec [DescribeProvisionedProductPlan]
readPrec :: ReadPrec DescribeProvisionedProductPlan
$creadPrec :: ReadPrec DescribeProvisionedProductPlan
readList :: ReadS [DescribeProvisionedProductPlan]
$creadList :: ReadS [DescribeProvisionedProductPlan]
readsPrec :: Int -> ReadS DescribeProvisionedProductPlan
$creadsPrec :: Int -> ReadS DescribeProvisionedProductPlan
Prelude.Read, Int -> DescribeProvisionedProductPlan -> ShowS
[DescribeProvisionedProductPlan] -> ShowS
DescribeProvisionedProductPlan -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeProvisionedProductPlan] -> ShowS
$cshowList :: [DescribeProvisionedProductPlan] -> ShowS
show :: DescribeProvisionedProductPlan -> String
$cshow :: DescribeProvisionedProductPlan -> String
showsPrec :: Int -> DescribeProvisionedProductPlan -> ShowS
$cshowsPrec :: Int -> DescribeProvisionedProductPlan -> ShowS
Prelude.Show, forall x.
Rep DescribeProvisionedProductPlan x
-> DescribeProvisionedProductPlan
forall x.
DescribeProvisionedProductPlan
-> Rep DescribeProvisionedProductPlan x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeProvisionedProductPlan x
-> DescribeProvisionedProductPlan
$cfrom :: forall x.
DescribeProvisionedProductPlan
-> Rep DescribeProvisionedProductPlan x
Prelude.Generic)
newDescribeProvisionedProductPlan ::
Prelude.Text ->
DescribeProvisionedProductPlan
newDescribeProvisionedProductPlan :: Text -> DescribeProvisionedProductPlan
newDescribeProvisionedProductPlan Text
pPlanId_ =
DescribeProvisionedProductPlan'
{ $sel:acceptLanguage:DescribeProvisionedProductPlan' :: Maybe Text
acceptLanguage =
forall a. Maybe a
Prelude.Nothing,
$sel:pageSize:DescribeProvisionedProductPlan' :: Maybe Natural
pageSize = forall a. Maybe a
Prelude.Nothing,
$sel:pageToken:DescribeProvisionedProductPlan' :: Maybe Text
pageToken = forall a. Maybe a
Prelude.Nothing,
$sel:planId:DescribeProvisionedProductPlan' :: Text
planId = Text
pPlanId_
}
describeProvisionedProductPlan_acceptLanguage :: Lens.Lens' DescribeProvisionedProductPlan (Prelude.Maybe Prelude.Text)
describeProvisionedProductPlan_acceptLanguage :: Lens' DescribeProvisionedProductPlan (Maybe Text)
describeProvisionedProductPlan_acceptLanguage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProvisionedProductPlan' {Maybe Text
acceptLanguage :: Maybe Text
$sel:acceptLanguage:DescribeProvisionedProductPlan' :: DescribeProvisionedProductPlan -> Maybe Text
acceptLanguage} -> Maybe Text
acceptLanguage) (\s :: DescribeProvisionedProductPlan
s@DescribeProvisionedProductPlan' {} Maybe Text
a -> DescribeProvisionedProductPlan
s {$sel:acceptLanguage:DescribeProvisionedProductPlan' :: Maybe Text
acceptLanguage = Maybe Text
a} :: DescribeProvisionedProductPlan)
describeProvisionedProductPlan_pageSize :: Lens.Lens' DescribeProvisionedProductPlan (Prelude.Maybe Prelude.Natural)
describeProvisionedProductPlan_pageSize :: Lens' DescribeProvisionedProductPlan (Maybe Natural)
describeProvisionedProductPlan_pageSize = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProvisionedProductPlan' {Maybe Natural
pageSize :: Maybe Natural
$sel:pageSize:DescribeProvisionedProductPlan' :: DescribeProvisionedProductPlan -> Maybe Natural
pageSize} -> Maybe Natural
pageSize) (\s :: DescribeProvisionedProductPlan
s@DescribeProvisionedProductPlan' {} Maybe Natural
a -> DescribeProvisionedProductPlan
s {$sel:pageSize:DescribeProvisionedProductPlan' :: Maybe Natural
pageSize = Maybe Natural
a} :: DescribeProvisionedProductPlan)
describeProvisionedProductPlan_pageToken :: Lens.Lens' DescribeProvisionedProductPlan (Prelude.Maybe Prelude.Text)
describeProvisionedProductPlan_pageToken :: Lens' DescribeProvisionedProductPlan (Maybe Text)
describeProvisionedProductPlan_pageToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProvisionedProductPlan' {Maybe Text
pageToken :: Maybe Text
$sel:pageToken:DescribeProvisionedProductPlan' :: DescribeProvisionedProductPlan -> Maybe Text
pageToken} -> Maybe Text
pageToken) (\s :: DescribeProvisionedProductPlan
s@DescribeProvisionedProductPlan' {} Maybe Text
a -> DescribeProvisionedProductPlan
s {$sel:pageToken:DescribeProvisionedProductPlan' :: Maybe Text
pageToken = Maybe Text
a} :: DescribeProvisionedProductPlan)
describeProvisionedProductPlan_planId :: Lens.Lens' DescribeProvisionedProductPlan Prelude.Text
describeProvisionedProductPlan_planId :: Lens' DescribeProvisionedProductPlan Text
describeProvisionedProductPlan_planId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProvisionedProductPlan' {Text
planId :: Text
$sel:planId:DescribeProvisionedProductPlan' :: DescribeProvisionedProductPlan -> Text
planId} -> Text
planId) (\s :: DescribeProvisionedProductPlan
s@DescribeProvisionedProductPlan' {} Text
a -> DescribeProvisionedProductPlan
s {$sel:planId:DescribeProvisionedProductPlan' :: Text
planId = Text
a} :: DescribeProvisionedProductPlan)
instance
Core.AWSRequest
DescribeProvisionedProductPlan
where
type
AWSResponse DescribeProvisionedProductPlan =
DescribeProvisionedProductPlanResponse
request :: (Service -> Service)
-> DescribeProvisionedProductPlan
-> Request DescribeProvisionedProductPlan
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 DescribeProvisionedProductPlan
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeProvisionedProductPlan)))
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 ProvisionedProductPlanDetails
-> Maybe [ResourceChange]
-> Int
-> DescribeProvisionedProductPlanResponse
DescribeProvisionedProductPlanResponse'
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
"NextPageToken")
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
"ProvisionedProductPlanDetails")
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
"ResourceChanges"
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
DescribeProvisionedProductPlan
where
hashWithSalt :: Int -> DescribeProvisionedProductPlan -> Int
hashWithSalt
Int
_salt
DescribeProvisionedProductPlan' {Maybe Natural
Maybe Text
Text
planId :: Text
pageToken :: Maybe Text
pageSize :: Maybe Natural
acceptLanguage :: Maybe Text
$sel:planId:DescribeProvisionedProductPlan' :: DescribeProvisionedProductPlan -> Text
$sel:pageToken:DescribeProvisionedProductPlan' :: DescribeProvisionedProductPlan -> Maybe Text
$sel:pageSize:DescribeProvisionedProductPlan' :: DescribeProvisionedProductPlan -> Maybe Natural
$sel:acceptLanguage:DescribeProvisionedProductPlan' :: DescribeProvisionedProductPlan -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
acceptLanguage
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` Text
planId
instance
Prelude.NFData
DescribeProvisionedProductPlan
where
rnf :: DescribeProvisionedProductPlan -> ()
rnf DescribeProvisionedProductPlan' {Maybe Natural
Maybe Text
Text
planId :: Text
pageToken :: Maybe Text
pageSize :: Maybe Natural
acceptLanguage :: Maybe Text
$sel:planId:DescribeProvisionedProductPlan' :: DescribeProvisionedProductPlan -> Text
$sel:pageToken:DescribeProvisionedProductPlan' :: DescribeProvisionedProductPlan -> Maybe Text
$sel:pageSize:DescribeProvisionedProductPlan' :: DescribeProvisionedProductPlan -> Maybe Natural
$sel:acceptLanguage:DescribeProvisionedProductPlan' :: DescribeProvisionedProductPlan -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
acceptLanguage
seq :: forall a b. a -> b -> b
`Prelude.seq` 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 Text
planId
instance
Data.ToHeaders
DescribeProvisionedProductPlan
where
toHeaders :: DescribeProvisionedProductPlan -> 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.DescribeProvisionedProductPlan" ::
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 DescribeProvisionedProductPlan where
toJSON :: DescribeProvisionedProductPlan -> Value
toJSON DescribeProvisionedProductPlan' {Maybe Natural
Maybe Text
Text
planId :: Text
pageToken :: Maybe Text
pageSize :: Maybe Natural
acceptLanguage :: Maybe Text
$sel:planId:DescribeProvisionedProductPlan' :: DescribeProvisionedProductPlan -> Text
$sel:pageToken:DescribeProvisionedProductPlan' :: DescribeProvisionedProductPlan -> Maybe Text
$sel:pageSize:DescribeProvisionedProductPlan' :: DescribeProvisionedProductPlan -> Maybe Natural
$sel:acceptLanguage:DescribeProvisionedProductPlan' :: DescribeProvisionedProductPlan -> Maybe Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"AcceptLanguage" 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
acceptLanguage,
(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,
forall a. a -> Maybe a
Prelude.Just (Key
"PlanId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
planId)
]
)
instance Data.ToPath DescribeProvisionedProductPlan where
toPath :: DescribeProvisionedProductPlan -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery DescribeProvisionedProductPlan where
toQuery :: DescribeProvisionedProductPlan -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data DescribeProvisionedProductPlanResponse = DescribeProvisionedProductPlanResponse'
{
DescribeProvisionedProductPlanResponse -> Maybe Text
nextPageToken :: Prelude.Maybe Prelude.Text,
DescribeProvisionedProductPlanResponse
-> Maybe ProvisionedProductPlanDetails
provisionedProductPlanDetails :: Prelude.Maybe ProvisionedProductPlanDetails,
DescribeProvisionedProductPlanResponse -> Maybe [ResourceChange]
resourceChanges :: Prelude.Maybe [ResourceChange],
DescribeProvisionedProductPlanResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeProvisionedProductPlanResponse
-> DescribeProvisionedProductPlanResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeProvisionedProductPlanResponse
-> DescribeProvisionedProductPlanResponse -> Bool
$c/= :: DescribeProvisionedProductPlanResponse
-> DescribeProvisionedProductPlanResponse -> Bool
== :: DescribeProvisionedProductPlanResponse
-> DescribeProvisionedProductPlanResponse -> Bool
$c== :: DescribeProvisionedProductPlanResponse
-> DescribeProvisionedProductPlanResponse -> Bool
Prelude.Eq, ReadPrec [DescribeProvisionedProductPlanResponse]
ReadPrec DescribeProvisionedProductPlanResponse
Int -> ReadS DescribeProvisionedProductPlanResponse
ReadS [DescribeProvisionedProductPlanResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeProvisionedProductPlanResponse]
$creadListPrec :: ReadPrec [DescribeProvisionedProductPlanResponse]
readPrec :: ReadPrec DescribeProvisionedProductPlanResponse
$creadPrec :: ReadPrec DescribeProvisionedProductPlanResponse
readList :: ReadS [DescribeProvisionedProductPlanResponse]
$creadList :: ReadS [DescribeProvisionedProductPlanResponse]
readsPrec :: Int -> ReadS DescribeProvisionedProductPlanResponse
$creadsPrec :: Int -> ReadS DescribeProvisionedProductPlanResponse
Prelude.Read, Int -> DescribeProvisionedProductPlanResponse -> ShowS
[DescribeProvisionedProductPlanResponse] -> ShowS
DescribeProvisionedProductPlanResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeProvisionedProductPlanResponse] -> ShowS
$cshowList :: [DescribeProvisionedProductPlanResponse] -> ShowS
show :: DescribeProvisionedProductPlanResponse -> String
$cshow :: DescribeProvisionedProductPlanResponse -> String
showsPrec :: Int -> DescribeProvisionedProductPlanResponse -> ShowS
$cshowsPrec :: Int -> DescribeProvisionedProductPlanResponse -> ShowS
Prelude.Show, forall x.
Rep DescribeProvisionedProductPlanResponse x
-> DescribeProvisionedProductPlanResponse
forall x.
DescribeProvisionedProductPlanResponse
-> Rep DescribeProvisionedProductPlanResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeProvisionedProductPlanResponse x
-> DescribeProvisionedProductPlanResponse
$cfrom :: forall x.
DescribeProvisionedProductPlanResponse
-> Rep DescribeProvisionedProductPlanResponse x
Prelude.Generic)
newDescribeProvisionedProductPlanResponse ::
Prelude.Int ->
DescribeProvisionedProductPlanResponse
newDescribeProvisionedProductPlanResponse :: Int -> DescribeProvisionedProductPlanResponse
newDescribeProvisionedProductPlanResponse
Int
pHttpStatus_ =
DescribeProvisionedProductPlanResponse'
{ $sel:nextPageToken:DescribeProvisionedProductPlanResponse' :: Maybe Text
nextPageToken =
forall a. Maybe a
Prelude.Nothing,
$sel:provisionedProductPlanDetails:DescribeProvisionedProductPlanResponse' :: Maybe ProvisionedProductPlanDetails
provisionedProductPlanDetails =
forall a. Maybe a
Prelude.Nothing,
$sel:resourceChanges:DescribeProvisionedProductPlanResponse' :: Maybe [ResourceChange]
resourceChanges = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeProvisionedProductPlanResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeProvisionedProductPlanResponse_nextPageToken :: Lens.Lens' DescribeProvisionedProductPlanResponse (Prelude.Maybe Prelude.Text)
describeProvisionedProductPlanResponse_nextPageToken :: Lens' DescribeProvisionedProductPlanResponse (Maybe Text)
describeProvisionedProductPlanResponse_nextPageToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProvisionedProductPlanResponse' {Maybe Text
nextPageToken :: Maybe Text
$sel:nextPageToken:DescribeProvisionedProductPlanResponse' :: DescribeProvisionedProductPlanResponse -> Maybe Text
nextPageToken} -> Maybe Text
nextPageToken) (\s :: DescribeProvisionedProductPlanResponse
s@DescribeProvisionedProductPlanResponse' {} Maybe Text
a -> DescribeProvisionedProductPlanResponse
s {$sel:nextPageToken:DescribeProvisionedProductPlanResponse' :: Maybe Text
nextPageToken = Maybe Text
a} :: DescribeProvisionedProductPlanResponse)
describeProvisionedProductPlanResponse_provisionedProductPlanDetails :: Lens.Lens' DescribeProvisionedProductPlanResponse (Prelude.Maybe ProvisionedProductPlanDetails)
describeProvisionedProductPlanResponse_provisionedProductPlanDetails :: Lens'
DescribeProvisionedProductPlanResponse
(Maybe ProvisionedProductPlanDetails)
describeProvisionedProductPlanResponse_provisionedProductPlanDetails = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProvisionedProductPlanResponse' {Maybe ProvisionedProductPlanDetails
provisionedProductPlanDetails :: Maybe ProvisionedProductPlanDetails
$sel:provisionedProductPlanDetails:DescribeProvisionedProductPlanResponse' :: DescribeProvisionedProductPlanResponse
-> Maybe ProvisionedProductPlanDetails
provisionedProductPlanDetails} -> Maybe ProvisionedProductPlanDetails
provisionedProductPlanDetails) (\s :: DescribeProvisionedProductPlanResponse
s@DescribeProvisionedProductPlanResponse' {} Maybe ProvisionedProductPlanDetails
a -> DescribeProvisionedProductPlanResponse
s {$sel:provisionedProductPlanDetails:DescribeProvisionedProductPlanResponse' :: Maybe ProvisionedProductPlanDetails
provisionedProductPlanDetails = Maybe ProvisionedProductPlanDetails
a} :: DescribeProvisionedProductPlanResponse)
describeProvisionedProductPlanResponse_resourceChanges :: Lens.Lens' DescribeProvisionedProductPlanResponse (Prelude.Maybe [ResourceChange])
describeProvisionedProductPlanResponse_resourceChanges :: Lens'
DescribeProvisionedProductPlanResponse (Maybe [ResourceChange])
describeProvisionedProductPlanResponse_resourceChanges = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProvisionedProductPlanResponse' {Maybe [ResourceChange]
resourceChanges :: Maybe [ResourceChange]
$sel:resourceChanges:DescribeProvisionedProductPlanResponse' :: DescribeProvisionedProductPlanResponse -> Maybe [ResourceChange]
resourceChanges} -> Maybe [ResourceChange]
resourceChanges) (\s :: DescribeProvisionedProductPlanResponse
s@DescribeProvisionedProductPlanResponse' {} Maybe [ResourceChange]
a -> DescribeProvisionedProductPlanResponse
s {$sel:resourceChanges:DescribeProvisionedProductPlanResponse' :: Maybe [ResourceChange]
resourceChanges = Maybe [ResourceChange]
a} :: DescribeProvisionedProductPlanResponse) 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
describeProvisionedProductPlanResponse_httpStatus :: Lens.Lens' DescribeProvisionedProductPlanResponse Prelude.Int
describeProvisionedProductPlanResponse_httpStatus :: Lens' DescribeProvisionedProductPlanResponse Int
describeProvisionedProductPlanResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeProvisionedProductPlanResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeProvisionedProductPlanResponse' :: DescribeProvisionedProductPlanResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeProvisionedProductPlanResponse
s@DescribeProvisionedProductPlanResponse' {} Int
a -> DescribeProvisionedProductPlanResponse
s {$sel:httpStatus:DescribeProvisionedProductPlanResponse' :: Int
httpStatus = Int
a} :: DescribeProvisionedProductPlanResponse)
instance
Prelude.NFData
DescribeProvisionedProductPlanResponse
where
rnf :: DescribeProvisionedProductPlanResponse -> ()
rnf DescribeProvisionedProductPlanResponse' {Int
Maybe [ResourceChange]
Maybe Text
Maybe ProvisionedProductPlanDetails
httpStatus :: Int
resourceChanges :: Maybe [ResourceChange]
provisionedProductPlanDetails :: Maybe ProvisionedProductPlanDetails
nextPageToken :: Maybe Text
$sel:httpStatus:DescribeProvisionedProductPlanResponse' :: DescribeProvisionedProductPlanResponse -> Int
$sel:resourceChanges:DescribeProvisionedProductPlanResponse' :: DescribeProvisionedProductPlanResponse -> Maybe [ResourceChange]
$sel:provisionedProductPlanDetails:DescribeProvisionedProductPlanResponse' :: DescribeProvisionedProductPlanResponse
-> Maybe ProvisionedProductPlanDetails
$sel:nextPageToken:DescribeProvisionedProductPlanResponse' :: DescribeProvisionedProductPlanResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextPageToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ProvisionedProductPlanDetails
provisionedProductPlanDetails
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [ResourceChange]
resourceChanges
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus