{-# 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.CreateProvisioningArtifact
(
CreateProvisioningArtifact (..),
newCreateProvisioningArtifact,
createProvisioningArtifact_acceptLanguage,
createProvisioningArtifact_productId,
createProvisioningArtifact_parameters,
createProvisioningArtifact_idempotencyToken,
CreateProvisioningArtifactResponse (..),
newCreateProvisioningArtifactResponse,
createProvisioningArtifactResponse_status,
createProvisioningArtifactResponse_info,
createProvisioningArtifactResponse_provisioningArtifactDetail,
createProvisioningArtifactResponse_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 CreateProvisioningArtifact = CreateProvisioningArtifact'
{
CreateProvisioningArtifact -> Maybe Text
acceptLanguage :: Prelude.Maybe Prelude.Text,
CreateProvisioningArtifact -> Text
productId :: Prelude.Text,
CreateProvisioningArtifact -> ProvisioningArtifactProperties
parameters :: ProvisioningArtifactProperties,
CreateProvisioningArtifact -> Text
idempotencyToken :: Prelude.Text
}
deriving (CreateProvisioningArtifact -> CreateProvisioningArtifact -> Bool
(CreateProvisioningArtifact -> CreateProvisioningArtifact -> Bool)
-> (CreateProvisioningArtifact
-> CreateProvisioningArtifact -> Bool)
-> Eq CreateProvisioningArtifact
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateProvisioningArtifact -> CreateProvisioningArtifact -> Bool
$c/= :: CreateProvisioningArtifact -> CreateProvisioningArtifact -> Bool
== :: CreateProvisioningArtifact -> CreateProvisioningArtifact -> Bool
$c== :: CreateProvisioningArtifact -> CreateProvisioningArtifact -> Bool
Prelude.Eq, ReadPrec [CreateProvisioningArtifact]
ReadPrec CreateProvisioningArtifact
Int -> ReadS CreateProvisioningArtifact
ReadS [CreateProvisioningArtifact]
(Int -> ReadS CreateProvisioningArtifact)
-> ReadS [CreateProvisioningArtifact]
-> ReadPrec CreateProvisioningArtifact
-> ReadPrec [CreateProvisioningArtifact]
-> Read CreateProvisioningArtifact
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateProvisioningArtifact]
$creadListPrec :: ReadPrec [CreateProvisioningArtifact]
readPrec :: ReadPrec CreateProvisioningArtifact
$creadPrec :: ReadPrec CreateProvisioningArtifact
readList :: ReadS [CreateProvisioningArtifact]
$creadList :: ReadS [CreateProvisioningArtifact]
readsPrec :: Int -> ReadS CreateProvisioningArtifact
$creadsPrec :: Int -> ReadS CreateProvisioningArtifact
Prelude.Read, Int -> CreateProvisioningArtifact -> ShowS
[CreateProvisioningArtifact] -> ShowS
CreateProvisioningArtifact -> String
(Int -> CreateProvisioningArtifact -> ShowS)
-> (CreateProvisioningArtifact -> String)
-> ([CreateProvisioningArtifact] -> ShowS)
-> Show CreateProvisioningArtifact
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateProvisioningArtifact] -> ShowS
$cshowList :: [CreateProvisioningArtifact] -> ShowS
show :: CreateProvisioningArtifact -> String
$cshow :: CreateProvisioningArtifact -> String
showsPrec :: Int -> CreateProvisioningArtifact -> ShowS
$cshowsPrec :: Int -> CreateProvisioningArtifact -> ShowS
Prelude.Show, (forall x.
CreateProvisioningArtifact -> Rep CreateProvisioningArtifact x)
-> (forall x.
Rep CreateProvisioningArtifact x -> CreateProvisioningArtifact)
-> Generic CreateProvisioningArtifact
forall x.
Rep CreateProvisioningArtifact x -> CreateProvisioningArtifact
forall x.
CreateProvisioningArtifact -> Rep CreateProvisioningArtifact x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateProvisioningArtifact x -> CreateProvisioningArtifact
$cfrom :: forall x.
CreateProvisioningArtifact -> Rep CreateProvisioningArtifact x
Prelude.Generic)
newCreateProvisioningArtifact ::
Prelude.Text ->
ProvisioningArtifactProperties ->
Prelude.Text ->
CreateProvisioningArtifact
newCreateProvisioningArtifact :: Text
-> ProvisioningArtifactProperties
-> Text
-> CreateProvisioningArtifact
newCreateProvisioningArtifact
Text
pProductId_
ProvisioningArtifactProperties
pParameters_
Text
pIdempotencyToken_ =
CreateProvisioningArtifact' :: Maybe Text
-> Text
-> ProvisioningArtifactProperties
-> Text
-> CreateProvisioningArtifact
CreateProvisioningArtifact'
{ $sel:acceptLanguage:CreateProvisioningArtifact' :: Maybe Text
acceptLanguage =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:productId:CreateProvisioningArtifact' :: Text
productId = Text
pProductId_,
$sel:parameters:CreateProvisioningArtifact' :: ProvisioningArtifactProperties
parameters = ProvisioningArtifactProperties
pParameters_,
$sel:idempotencyToken:CreateProvisioningArtifact' :: Text
idempotencyToken = Text
pIdempotencyToken_
}
createProvisioningArtifact_acceptLanguage :: Lens.Lens' CreateProvisioningArtifact (Prelude.Maybe Prelude.Text)
createProvisioningArtifact_acceptLanguage :: (Maybe Text -> f (Maybe Text))
-> CreateProvisioningArtifact -> f CreateProvisioningArtifact
createProvisioningArtifact_acceptLanguage = (CreateProvisioningArtifact -> Maybe Text)
-> (CreateProvisioningArtifact
-> Maybe Text -> CreateProvisioningArtifact)
-> Lens
CreateProvisioningArtifact
CreateProvisioningArtifact
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateProvisioningArtifact' {Maybe Text
acceptLanguage :: Maybe Text
$sel:acceptLanguage:CreateProvisioningArtifact' :: CreateProvisioningArtifact -> Maybe Text
acceptLanguage} -> Maybe Text
acceptLanguage) (\s :: CreateProvisioningArtifact
s@CreateProvisioningArtifact' {} Maybe Text
a -> CreateProvisioningArtifact
s {$sel:acceptLanguage:CreateProvisioningArtifact' :: Maybe Text
acceptLanguage = Maybe Text
a} :: CreateProvisioningArtifact)
createProvisioningArtifact_productId :: Lens.Lens' CreateProvisioningArtifact Prelude.Text
createProvisioningArtifact_productId :: (Text -> f Text)
-> CreateProvisioningArtifact -> f CreateProvisioningArtifact
createProvisioningArtifact_productId = (CreateProvisioningArtifact -> Text)
-> (CreateProvisioningArtifact
-> Text -> CreateProvisioningArtifact)
-> Lens
CreateProvisioningArtifact CreateProvisioningArtifact Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateProvisioningArtifact' {Text
productId :: Text
$sel:productId:CreateProvisioningArtifact' :: CreateProvisioningArtifact -> Text
productId} -> Text
productId) (\s :: CreateProvisioningArtifact
s@CreateProvisioningArtifact' {} Text
a -> CreateProvisioningArtifact
s {$sel:productId:CreateProvisioningArtifact' :: Text
productId = Text
a} :: CreateProvisioningArtifact)
createProvisioningArtifact_parameters :: Lens.Lens' CreateProvisioningArtifact ProvisioningArtifactProperties
createProvisioningArtifact_parameters :: (ProvisioningArtifactProperties
-> f ProvisioningArtifactProperties)
-> CreateProvisioningArtifact -> f CreateProvisioningArtifact
createProvisioningArtifact_parameters = (CreateProvisioningArtifact -> ProvisioningArtifactProperties)
-> (CreateProvisioningArtifact
-> ProvisioningArtifactProperties -> CreateProvisioningArtifact)
-> Lens
CreateProvisioningArtifact
CreateProvisioningArtifact
ProvisioningArtifactProperties
ProvisioningArtifactProperties
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateProvisioningArtifact' {ProvisioningArtifactProperties
parameters :: ProvisioningArtifactProperties
$sel:parameters:CreateProvisioningArtifact' :: CreateProvisioningArtifact -> ProvisioningArtifactProperties
parameters} -> ProvisioningArtifactProperties
parameters) (\s :: CreateProvisioningArtifact
s@CreateProvisioningArtifact' {} ProvisioningArtifactProperties
a -> CreateProvisioningArtifact
s {$sel:parameters:CreateProvisioningArtifact' :: ProvisioningArtifactProperties
parameters = ProvisioningArtifactProperties
a} :: CreateProvisioningArtifact)
createProvisioningArtifact_idempotencyToken :: Lens.Lens' CreateProvisioningArtifact Prelude.Text
createProvisioningArtifact_idempotencyToken :: (Text -> f Text)
-> CreateProvisioningArtifact -> f CreateProvisioningArtifact
createProvisioningArtifact_idempotencyToken = (CreateProvisioningArtifact -> Text)
-> (CreateProvisioningArtifact
-> Text -> CreateProvisioningArtifact)
-> Lens
CreateProvisioningArtifact CreateProvisioningArtifact Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateProvisioningArtifact' {Text
idempotencyToken :: Text
$sel:idempotencyToken:CreateProvisioningArtifact' :: CreateProvisioningArtifact -> Text
idempotencyToken} -> Text
idempotencyToken) (\s :: CreateProvisioningArtifact
s@CreateProvisioningArtifact' {} Text
a -> CreateProvisioningArtifact
s {$sel:idempotencyToken:CreateProvisioningArtifact' :: Text
idempotencyToken = Text
a} :: CreateProvisioningArtifact)
instance Core.AWSRequest CreateProvisioningArtifact where
type
AWSResponse CreateProvisioningArtifact =
CreateProvisioningArtifactResponse
request :: CreateProvisioningArtifact -> Request CreateProvisioningArtifact
request = Service
-> CreateProvisioningArtifact -> Request CreateProvisioningArtifact
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateProvisioningArtifact
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateProvisioningArtifact)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateProvisioningArtifact))
-> Logger
-> Service
-> Proxy CreateProvisioningArtifact
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateProvisioningArtifact)))
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 RequestStatus
-> Maybe (HashMap Text Text)
-> Maybe ProvisioningArtifactDetail
-> Int
-> CreateProvisioningArtifactResponse
CreateProvisioningArtifactResponse'
(Maybe RequestStatus
-> Maybe (HashMap Text Text)
-> Maybe ProvisioningArtifactDetail
-> Int
-> CreateProvisioningArtifactResponse)
-> Either String (Maybe RequestStatus)
-> Either
String
(Maybe (HashMap Text Text)
-> Maybe ProvisioningArtifactDetail
-> Int
-> CreateProvisioningArtifactResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe RequestStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Status")
Either
String
(Maybe (HashMap Text Text)
-> Maybe ProvisioningArtifactDetail
-> Int
-> CreateProvisioningArtifactResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either
String
(Maybe ProvisioningArtifactDetail
-> Int -> CreateProvisioningArtifactResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Info" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe ProvisioningArtifactDetail
-> Int -> CreateProvisioningArtifactResponse)
-> Either String (Maybe ProvisioningArtifactDetail)
-> Either String (Int -> CreateProvisioningArtifactResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ProvisioningArtifactDetail)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ProvisioningArtifactDetail")
Either String (Int -> CreateProvisioningArtifactResponse)
-> Either String Int
-> Either String CreateProvisioningArtifactResponse
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 CreateProvisioningArtifact
instance Prelude.NFData CreateProvisioningArtifact
instance Core.ToHeaders CreateProvisioningArtifact where
toHeaders :: CreateProvisioningArtifact -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateProvisioningArtifact -> 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.CreateProvisioningArtifact" ::
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 CreateProvisioningArtifact where
toJSON :: CreateProvisioningArtifact -> Value
toJSON CreateProvisioningArtifact' {Maybe Text
Text
ProvisioningArtifactProperties
idempotencyToken :: Text
parameters :: ProvisioningArtifactProperties
productId :: Text
acceptLanguage :: Maybe Text
$sel:idempotencyToken:CreateProvisioningArtifact' :: CreateProvisioningArtifact -> Text
$sel:parameters:CreateProvisioningArtifact' :: CreateProvisioningArtifact -> ProvisioningArtifactProperties
$sel:productId:CreateProvisioningArtifact' :: CreateProvisioningArtifact -> Text
$sel:acceptLanguage:CreateProvisioningArtifact' :: CreateProvisioningArtifact -> 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,
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
"Parameters" Text -> ProvisioningArtifactProperties -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= ProvisioningArtifactProperties
parameters),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"IdempotencyToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
idempotencyToken)
]
)
instance Core.ToPath CreateProvisioningArtifact where
toPath :: CreateProvisioningArtifact -> ByteString
toPath = ByteString -> CreateProvisioningArtifact -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateProvisioningArtifact where
toQuery :: CreateProvisioningArtifact -> QueryString
toQuery = QueryString -> CreateProvisioningArtifact -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateProvisioningArtifactResponse = CreateProvisioningArtifactResponse'
{
CreateProvisioningArtifactResponse -> Maybe RequestStatus
status :: Prelude.Maybe RequestStatus,
CreateProvisioningArtifactResponse -> Maybe (HashMap Text Text)
info :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreateProvisioningArtifactResponse
-> Maybe ProvisioningArtifactDetail
provisioningArtifactDetail :: Prelude.Maybe ProvisioningArtifactDetail,
CreateProvisioningArtifactResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateProvisioningArtifactResponse
-> CreateProvisioningArtifactResponse -> Bool
(CreateProvisioningArtifactResponse
-> CreateProvisioningArtifactResponse -> Bool)
-> (CreateProvisioningArtifactResponse
-> CreateProvisioningArtifactResponse -> Bool)
-> Eq CreateProvisioningArtifactResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateProvisioningArtifactResponse
-> CreateProvisioningArtifactResponse -> Bool
$c/= :: CreateProvisioningArtifactResponse
-> CreateProvisioningArtifactResponse -> Bool
== :: CreateProvisioningArtifactResponse
-> CreateProvisioningArtifactResponse -> Bool
$c== :: CreateProvisioningArtifactResponse
-> CreateProvisioningArtifactResponse -> Bool
Prelude.Eq, ReadPrec [CreateProvisioningArtifactResponse]
ReadPrec CreateProvisioningArtifactResponse
Int -> ReadS CreateProvisioningArtifactResponse
ReadS [CreateProvisioningArtifactResponse]
(Int -> ReadS CreateProvisioningArtifactResponse)
-> ReadS [CreateProvisioningArtifactResponse]
-> ReadPrec CreateProvisioningArtifactResponse
-> ReadPrec [CreateProvisioningArtifactResponse]
-> Read CreateProvisioningArtifactResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateProvisioningArtifactResponse]
$creadListPrec :: ReadPrec [CreateProvisioningArtifactResponse]
readPrec :: ReadPrec CreateProvisioningArtifactResponse
$creadPrec :: ReadPrec CreateProvisioningArtifactResponse
readList :: ReadS [CreateProvisioningArtifactResponse]
$creadList :: ReadS [CreateProvisioningArtifactResponse]
readsPrec :: Int -> ReadS CreateProvisioningArtifactResponse
$creadsPrec :: Int -> ReadS CreateProvisioningArtifactResponse
Prelude.Read, Int -> CreateProvisioningArtifactResponse -> ShowS
[CreateProvisioningArtifactResponse] -> ShowS
CreateProvisioningArtifactResponse -> String
(Int -> CreateProvisioningArtifactResponse -> ShowS)
-> (CreateProvisioningArtifactResponse -> String)
-> ([CreateProvisioningArtifactResponse] -> ShowS)
-> Show CreateProvisioningArtifactResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateProvisioningArtifactResponse] -> ShowS
$cshowList :: [CreateProvisioningArtifactResponse] -> ShowS
show :: CreateProvisioningArtifactResponse -> String
$cshow :: CreateProvisioningArtifactResponse -> String
showsPrec :: Int -> CreateProvisioningArtifactResponse -> ShowS
$cshowsPrec :: Int -> CreateProvisioningArtifactResponse -> ShowS
Prelude.Show, (forall x.
CreateProvisioningArtifactResponse
-> Rep CreateProvisioningArtifactResponse x)
-> (forall x.
Rep CreateProvisioningArtifactResponse x
-> CreateProvisioningArtifactResponse)
-> Generic CreateProvisioningArtifactResponse
forall x.
Rep CreateProvisioningArtifactResponse x
-> CreateProvisioningArtifactResponse
forall x.
CreateProvisioningArtifactResponse
-> Rep CreateProvisioningArtifactResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateProvisioningArtifactResponse x
-> CreateProvisioningArtifactResponse
$cfrom :: forall x.
CreateProvisioningArtifactResponse
-> Rep CreateProvisioningArtifactResponse x
Prelude.Generic)
newCreateProvisioningArtifactResponse ::
Prelude.Int ->
CreateProvisioningArtifactResponse
newCreateProvisioningArtifactResponse :: Int -> CreateProvisioningArtifactResponse
newCreateProvisioningArtifactResponse Int
pHttpStatus_ =
CreateProvisioningArtifactResponse' :: Maybe RequestStatus
-> Maybe (HashMap Text Text)
-> Maybe ProvisioningArtifactDetail
-> Int
-> CreateProvisioningArtifactResponse
CreateProvisioningArtifactResponse'
{ $sel:status:CreateProvisioningArtifactResponse' :: Maybe RequestStatus
status =
Maybe RequestStatus
forall a. Maybe a
Prelude.Nothing,
$sel:info:CreateProvisioningArtifactResponse' :: Maybe (HashMap Text Text)
info = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:provisioningArtifactDetail:CreateProvisioningArtifactResponse' :: Maybe ProvisioningArtifactDetail
provisioningArtifactDetail =
Maybe ProvisioningArtifactDetail
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateProvisioningArtifactResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createProvisioningArtifactResponse_status :: Lens.Lens' CreateProvisioningArtifactResponse (Prelude.Maybe RequestStatus)
createProvisioningArtifactResponse_status :: (Maybe RequestStatus -> f (Maybe RequestStatus))
-> CreateProvisioningArtifactResponse
-> f CreateProvisioningArtifactResponse
createProvisioningArtifactResponse_status = (CreateProvisioningArtifactResponse -> Maybe RequestStatus)
-> (CreateProvisioningArtifactResponse
-> Maybe RequestStatus -> CreateProvisioningArtifactResponse)
-> Lens
CreateProvisioningArtifactResponse
CreateProvisioningArtifactResponse
(Maybe RequestStatus)
(Maybe RequestStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateProvisioningArtifactResponse' {Maybe RequestStatus
status :: Maybe RequestStatus
$sel:status:CreateProvisioningArtifactResponse' :: CreateProvisioningArtifactResponse -> Maybe RequestStatus
status} -> Maybe RequestStatus
status) (\s :: CreateProvisioningArtifactResponse
s@CreateProvisioningArtifactResponse' {} Maybe RequestStatus
a -> CreateProvisioningArtifactResponse
s {$sel:status:CreateProvisioningArtifactResponse' :: Maybe RequestStatus
status = Maybe RequestStatus
a} :: CreateProvisioningArtifactResponse)
createProvisioningArtifactResponse_info :: Lens.Lens' CreateProvisioningArtifactResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createProvisioningArtifactResponse_info :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateProvisioningArtifactResponse
-> f CreateProvisioningArtifactResponse
createProvisioningArtifactResponse_info = (CreateProvisioningArtifactResponse -> Maybe (HashMap Text Text))
-> (CreateProvisioningArtifactResponse
-> Maybe (HashMap Text Text) -> CreateProvisioningArtifactResponse)
-> Lens
CreateProvisioningArtifactResponse
CreateProvisioningArtifactResponse
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateProvisioningArtifactResponse' {Maybe (HashMap Text Text)
info :: Maybe (HashMap Text Text)
$sel:info:CreateProvisioningArtifactResponse' :: CreateProvisioningArtifactResponse -> Maybe (HashMap Text Text)
info} -> Maybe (HashMap Text Text)
info) (\s :: CreateProvisioningArtifactResponse
s@CreateProvisioningArtifactResponse' {} Maybe (HashMap Text Text)
a -> CreateProvisioningArtifactResponse
s {$sel:info:CreateProvisioningArtifactResponse' :: Maybe (HashMap Text Text)
info = Maybe (HashMap Text Text)
a} :: CreateProvisioningArtifactResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateProvisioningArtifactResponse
-> f CreateProvisioningArtifactResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateProvisioningArtifactResponse
-> f CreateProvisioningArtifactResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text 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
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createProvisioningArtifactResponse_provisioningArtifactDetail :: Lens.Lens' CreateProvisioningArtifactResponse (Prelude.Maybe ProvisioningArtifactDetail)
createProvisioningArtifactResponse_provisioningArtifactDetail :: (Maybe ProvisioningArtifactDetail
-> f (Maybe ProvisioningArtifactDetail))
-> CreateProvisioningArtifactResponse
-> f CreateProvisioningArtifactResponse
createProvisioningArtifactResponse_provisioningArtifactDetail = (CreateProvisioningArtifactResponse
-> Maybe ProvisioningArtifactDetail)
-> (CreateProvisioningArtifactResponse
-> Maybe ProvisioningArtifactDetail
-> CreateProvisioningArtifactResponse)
-> Lens
CreateProvisioningArtifactResponse
CreateProvisioningArtifactResponse
(Maybe ProvisioningArtifactDetail)
(Maybe ProvisioningArtifactDetail)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateProvisioningArtifactResponse' {Maybe ProvisioningArtifactDetail
provisioningArtifactDetail :: Maybe ProvisioningArtifactDetail
$sel:provisioningArtifactDetail:CreateProvisioningArtifactResponse' :: CreateProvisioningArtifactResponse
-> Maybe ProvisioningArtifactDetail
provisioningArtifactDetail} -> Maybe ProvisioningArtifactDetail
provisioningArtifactDetail) (\s :: CreateProvisioningArtifactResponse
s@CreateProvisioningArtifactResponse' {} Maybe ProvisioningArtifactDetail
a -> CreateProvisioningArtifactResponse
s {$sel:provisioningArtifactDetail:CreateProvisioningArtifactResponse' :: Maybe ProvisioningArtifactDetail
provisioningArtifactDetail = Maybe ProvisioningArtifactDetail
a} :: CreateProvisioningArtifactResponse)
createProvisioningArtifactResponse_httpStatus :: Lens.Lens' CreateProvisioningArtifactResponse Prelude.Int
createProvisioningArtifactResponse_httpStatus :: (Int -> f Int)
-> CreateProvisioningArtifactResponse
-> f CreateProvisioningArtifactResponse
createProvisioningArtifactResponse_httpStatus = (CreateProvisioningArtifactResponse -> Int)
-> (CreateProvisioningArtifactResponse
-> Int -> CreateProvisioningArtifactResponse)
-> Lens
CreateProvisioningArtifactResponse
CreateProvisioningArtifactResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateProvisioningArtifactResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateProvisioningArtifactResponse' :: CreateProvisioningArtifactResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateProvisioningArtifactResponse
s@CreateProvisioningArtifactResponse' {} Int
a -> CreateProvisioningArtifactResponse
s {$sel:httpStatus:CreateProvisioningArtifactResponse' :: Int
httpStatus = Int
a} :: CreateProvisioningArtifactResponse)
instance
Prelude.NFData
CreateProvisioningArtifactResponse