{-# 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.GameLift.CreateBuild
(
CreateBuild (..),
newCreateBuild,
createBuild_storageLocation,
createBuild_operatingSystem,
createBuild_name,
createBuild_version,
createBuild_tags,
CreateBuildResponse (..),
newCreateBuildResponse,
createBuildResponse_storageLocation,
createBuildResponse_uploadCredentials,
createBuildResponse_build,
createBuildResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.GameLift.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CreateBuild = CreateBuild'
{
CreateBuild -> Maybe S3Location
storageLocation :: Prelude.Maybe S3Location,
CreateBuild -> Maybe OperatingSystem
operatingSystem :: Prelude.Maybe OperatingSystem,
CreateBuild -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
CreateBuild -> Maybe Text
version :: Prelude.Maybe Prelude.Text,
CreateBuild -> Maybe [Tag]
tags :: Prelude.Maybe [Tag]
}
deriving (CreateBuild -> CreateBuild -> Bool
(CreateBuild -> CreateBuild -> Bool)
-> (CreateBuild -> CreateBuild -> Bool) -> Eq CreateBuild
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateBuild -> CreateBuild -> Bool
$c/= :: CreateBuild -> CreateBuild -> Bool
== :: CreateBuild -> CreateBuild -> Bool
$c== :: CreateBuild -> CreateBuild -> Bool
Prelude.Eq, ReadPrec [CreateBuild]
ReadPrec CreateBuild
Int -> ReadS CreateBuild
ReadS [CreateBuild]
(Int -> ReadS CreateBuild)
-> ReadS [CreateBuild]
-> ReadPrec CreateBuild
-> ReadPrec [CreateBuild]
-> Read CreateBuild
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateBuild]
$creadListPrec :: ReadPrec [CreateBuild]
readPrec :: ReadPrec CreateBuild
$creadPrec :: ReadPrec CreateBuild
readList :: ReadS [CreateBuild]
$creadList :: ReadS [CreateBuild]
readsPrec :: Int -> ReadS CreateBuild
$creadsPrec :: Int -> ReadS CreateBuild
Prelude.Read, Int -> CreateBuild -> ShowS
[CreateBuild] -> ShowS
CreateBuild -> String
(Int -> CreateBuild -> ShowS)
-> (CreateBuild -> String)
-> ([CreateBuild] -> ShowS)
-> Show CreateBuild
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateBuild] -> ShowS
$cshowList :: [CreateBuild] -> ShowS
show :: CreateBuild -> String
$cshow :: CreateBuild -> String
showsPrec :: Int -> CreateBuild -> ShowS
$cshowsPrec :: Int -> CreateBuild -> ShowS
Prelude.Show, (forall x. CreateBuild -> Rep CreateBuild x)
-> (forall x. Rep CreateBuild x -> CreateBuild)
-> Generic CreateBuild
forall x. Rep CreateBuild x -> CreateBuild
forall x. CreateBuild -> Rep CreateBuild x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateBuild x -> CreateBuild
$cfrom :: forall x. CreateBuild -> Rep CreateBuild x
Prelude.Generic)
newCreateBuild ::
CreateBuild
newCreateBuild :: CreateBuild
newCreateBuild =
CreateBuild' :: Maybe S3Location
-> Maybe OperatingSystem
-> Maybe Text
-> Maybe Text
-> Maybe [Tag]
-> CreateBuild
CreateBuild'
{ $sel:storageLocation:CreateBuild' :: Maybe S3Location
storageLocation = Maybe S3Location
forall a. Maybe a
Prelude.Nothing,
$sel:operatingSystem:CreateBuild' :: Maybe OperatingSystem
operatingSystem = Maybe OperatingSystem
forall a. Maybe a
Prelude.Nothing,
$sel:name:CreateBuild' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:version:CreateBuild' :: Maybe Text
version = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateBuild' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing
}
createBuild_storageLocation :: Lens.Lens' CreateBuild (Prelude.Maybe S3Location)
createBuild_storageLocation :: (Maybe S3Location -> f (Maybe S3Location))
-> CreateBuild -> f CreateBuild
createBuild_storageLocation = (CreateBuild -> Maybe S3Location)
-> (CreateBuild -> Maybe S3Location -> CreateBuild)
-> Lens
CreateBuild CreateBuild (Maybe S3Location) (Maybe S3Location)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBuild' {Maybe S3Location
storageLocation :: Maybe S3Location
$sel:storageLocation:CreateBuild' :: CreateBuild -> Maybe S3Location
storageLocation} -> Maybe S3Location
storageLocation) (\s :: CreateBuild
s@CreateBuild' {} Maybe S3Location
a -> CreateBuild
s {$sel:storageLocation:CreateBuild' :: Maybe S3Location
storageLocation = Maybe S3Location
a} :: CreateBuild)
createBuild_operatingSystem :: Lens.Lens' CreateBuild (Prelude.Maybe OperatingSystem)
createBuild_operatingSystem :: (Maybe OperatingSystem -> f (Maybe OperatingSystem))
-> CreateBuild -> f CreateBuild
createBuild_operatingSystem = (CreateBuild -> Maybe OperatingSystem)
-> (CreateBuild -> Maybe OperatingSystem -> CreateBuild)
-> Lens
CreateBuild
CreateBuild
(Maybe OperatingSystem)
(Maybe OperatingSystem)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBuild' {Maybe OperatingSystem
operatingSystem :: Maybe OperatingSystem
$sel:operatingSystem:CreateBuild' :: CreateBuild -> Maybe OperatingSystem
operatingSystem} -> Maybe OperatingSystem
operatingSystem) (\s :: CreateBuild
s@CreateBuild' {} Maybe OperatingSystem
a -> CreateBuild
s {$sel:operatingSystem:CreateBuild' :: Maybe OperatingSystem
operatingSystem = Maybe OperatingSystem
a} :: CreateBuild)
createBuild_name :: Lens.Lens' CreateBuild (Prelude.Maybe Prelude.Text)
createBuild_name :: (Maybe Text -> f (Maybe Text)) -> CreateBuild -> f CreateBuild
createBuild_name = (CreateBuild -> Maybe Text)
-> (CreateBuild -> Maybe Text -> CreateBuild)
-> Lens CreateBuild CreateBuild (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBuild' {Maybe Text
name :: Maybe Text
$sel:name:CreateBuild' :: CreateBuild -> Maybe Text
name} -> Maybe Text
name) (\s :: CreateBuild
s@CreateBuild' {} Maybe Text
a -> CreateBuild
s {$sel:name:CreateBuild' :: Maybe Text
name = Maybe Text
a} :: CreateBuild)
createBuild_version :: Lens.Lens' CreateBuild (Prelude.Maybe Prelude.Text)
createBuild_version :: (Maybe Text -> f (Maybe Text)) -> CreateBuild -> f CreateBuild
createBuild_version = (CreateBuild -> Maybe Text)
-> (CreateBuild -> Maybe Text -> CreateBuild)
-> Lens CreateBuild CreateBuild (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBuild' {Maybe Text
version :: Maybe Text
$sel:version:CreateBuild' :: CreateBuild -> Maybe Text
version} -> Maybe Text
version) (\s :: CreateBuild
s@CreateBuild' {} Maybe Text
a -> CreateBuild
s {$sel:version:CreateBuild' :: Maybe Text
version = Maybe Text
a} :: CreateBuild)
createBuild_tags :: Lens.Lens' CreateBuild (Prelude.Maybe [Tag])
createBuild_tags :: (Maybe [Tag] -> f (Maybe [Tag])) -> CreateBuild -> f CreateBuild
createBuild_tags = (CreateBuild -> Maybe [Tag])
-> (CreateBuild -> Maybe [Tag] -> CreateBuild)
-> Lens CreateBuild CreateBuild (Maybe [Tag]) (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBuild' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateBuild' :: CreateBuild -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateBuild
s@CreateBuild' {} Maybe [Tag]
a -> CreateBuild
s {$sel:tags:CreateBuild' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateBuild) ((Maybe [Tag] -> f (Maybe [Tag])) -> CreateBuild -> f CreateBuild)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateBuild
-> f CreateBuild
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
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 [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSRequest CreateBuild where
type AWSResponse CreateBuild = CreateBuildResponse
request :: CreateBuild -> Request CreateBuild
request = Service -> CreateBuild -> Request CreateBuild
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateBuild
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateBuild)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateBuild))
-> Logger
-> Service
-> Proxy CreateBuild
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateBuild)))
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 S3Location
-> Maybe (Sensitive AwsCredentials)
-> Maybe Build
-> Int
-> CreateBuildResponse
CreateBuildResponse'
(Maybe S3Location
-> Maybe (Sensitive AwsCredentials)
-> Maybe Build
-> Int
-> CreateBuildResponse)
-> Either String (Maybe S3Location)
-> Either
String
(Maybe (Sensitive AwsCredentials)
-> Maybe Build -> Int -> CreateBuildResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe S3Location)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"StorageLocation")
Either
String
(Maybe (Sensitive AwsCredentials)
-> Maybe Build -> Int -> CreateBuildResponse)
-> Either String (Maybe (Sensitive AwsCredentials))
-> Either String (Maybe Build -> Int -> CreateBuildResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Sensitive AwsCredentials))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"UploadCredentials")
Either String (Maybe Build -> Int -> CreateBuildResponse)
-> Either String (Maybe Build)
-> Either String (Int -> CreateBuildResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Build)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Build")
Either String (Int -> CreateBuildResponse)
-> Either String Int -> Either String CreateBuildResponse
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 CreateBuild
instance Prelude.NFData CreateBuild
instance Core.ToHeaders CreateBuild where
toHeaders :: CreateBuild -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateBuild -> 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
"GameLift.CreateBuild" :: 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 CreateBuild where
toJSON :: CreateBuild -> Value
toJSON CreateBuild' {Maybe [Tag]
Maybe Text
Maybe OperatingSystem
Maybe S3Location
tags :: Maybe [Tag]
version :: Maybe Text
name :: Maybe Text
operatingSystem :: Maybe OperatingSystem
storageLocation :: Maybe S3Location
$sel:tags:CreateBuild' :: CreateBuild -> Maybe [Tag]
$sel:version:CreateBuild' :: CreateBuild -> Maybe Text
$sel:name:CreateBuild' :: CreateBuild -> Maybe Text
$sel:operatingSystem:CreateBuild' :: CreateBuild -> Maybe OperatingSystem
$sel:storageLocation:CreateBuild' :: CreateBuild -> Maybe S3Location
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"StorageLocation" Text -> S3Location -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(S3Location -> Pair) -> Maybe S3Location -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3Location
storageLocation,
(Text
"OperatingSystem" Text -> OperatingSystem -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(OperatingSystem -> Pair) -> Maybe OperatingSystem -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe OperatingSystem
operatingSystem,
(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
"Version" 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
version,
(Text
"Tags" Text -> [Tag] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Tag] -> Pair) -> Maybe [Tag] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags
]
)
instance Core.ToPath CreateBuild where
toPath :: CreateBuild -> ByteString
toPath = ByteString -> CreateBuild -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateBuild where
toQuery :: CreateBuild -> QueryString
toQuery = QueryString -> CreateBuild -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateBuildResponse = CreateBuildResponse'
{
CreateBuildResponse -> Maybe S3Location
storageLocation :: Prelude.Maybe S3Location,
CreateBuildResponse -> Maybe (Sensitive AwsCredentials)
uploadCredentials :: Prelude.Maybe (Core.Sensitive AwsCredentials),
CreateBuildResponse -> Maybe Build
build :: Prelude.Maybe Build,
CreateBuildResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateBuildResponse -> CreateBuildResponse -> Bool
(CreateBuildResponse -> CreateBuildResponse -> Bool)
-> (CreateBuildResponse -> CreateBuildResponse -> Bool)
-> Eq CreateBuildResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateBuildResponse -> CreateBuildResponse -> Bool
$c/= :: CreateBuildResponse -> CreateBuildResponse -> Bool
== :: CreateBuildResponse -> CreateBuildResponse -> Bool
$c== :: CreateBuildResponse -> CreateBuildResponse -> Bool
Prelude.Eq, Int -> CreateBuildResponse -> ShowS
[CreateBuildResponse] -> ShowS
CreateBuildResponse -> String
(Int -> CreateBuildResponse -> ShowS)
-> (CreateBuildResponse -> String)
-> ([CreateBuildResponse] -> ShowS)
-> Show CreateBuildResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateBuildResponse] -> ShowS
$cshowList :: [CreateBuildResponse] -> ShowS
show :: CreateBuildResponse -> String
$cshow :: CreateBuildResponse -> String
showsPrec :: Int -> CreateBuildResponse -> ShowS
$cshowsPrec :: Int -> CreateBuildResponse -> ShowS
Prelude.Show, (forall x. CreateBuildResponse -> Rep CreateBuildResponse x)
-> (forall x. Rep CreateBuildResponse x -> CreateBuildResponse)
-> Generic CreateBuildResponse
forall x. Rep CreateBuildResponse x -> CreateBuildResponse
forall x. CreateBuildResponse -> Rep CreateBuildResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateBuildResponse x -> CreateBuildResponse
$cfrom :: forall x. CreateBuildResponse -> Rep CreateBuildResponse x
Prelude.Generic)
newCreateBuildResponse ::
Prelude.Int ->
CreateBuildResponse
newCreateBuildResponse :: Int -> CreateBuildResponse
newCreateBuildResponse Int
pHttpStatus_ =
CreateBuildResponse' :: Maybe S3Location
-> Maybe (Sensitive AwsCredentials)
-> Maybe Build
-> Int
-> CreateBuildResponse
CreateBuildResponse'
{ $sel:storageLocation:CreateBuildResponse' :: Maybe S3Location
storageLocation =
Maybe S3Location
forall a. Maybe a
Prelude.Nothing,
$sel:uploadCredentials:CreateBuildResponse' :: Maybe (Sensitive AwsCredentials)
uploadCredentials = Maybe (Sensitive AwsCredentials)
forall a. Maybe a
Prelude.Nothing,
$sel:build:CreateBuildResponse' :: Maybe Build
build = Maybe Build
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateBuildResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createBuildResponse_storageLocation :: Lens.Lens' CreateBuildResponse (Prelude.Maybe S3Location)
createBuildResponse_storageLocation :: (Maybe S3Location -> f (Maybe S3Location))
-> CreateBuildResponse -> f CreateBuildResponse
createBuildResponse_storageLocation = (CreateBuildResponse -> Maybe S3Location)
-> (CreateBuildResponse -> Maybe S3Location -> CreateBuildResponse)
-> Lens
CreateBuildResponse
CreateBuildResponse
(Maybe S3Location)
(Maybe S3Location)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBuildResponse' {Maybe S3Location
storageLocation :: Maybe S3Location
$sel:storageLocation:CreateBuildResponse' :: CreateBuildResponse -> Maybe S3Location
storageLocation} -> Maybe S3Location
storageLocation) (\s :: CreateBuildResponse
s@CreateBuildResponse' {} Maybe S3Location
a -> CreateBuildResponse
s {$sel:storageLocation:CreateBuildResponse' :: Maybe S3Location
storageLocation = Maybe S3Location
a} :: CreateBuildResponse)
createBuildResponse_uploadCredentials :: Lens.Lens' CreateBuildResponse (Prelude.Maybe AwsCredentials)
createBuildResponse_uploadCredentials :: (Maybe AwsCredentials -> f (Maybe AwsCredentials))
-> CreateBuildResponse -> f CreateBuildResponse
createBuildResponse_uploadCredentials = (CreateBuildResponse -> Maybe (Sensitive AwsCredentials))
-> (CreateBuildResponse
-> Maybe (Sensitive AwsCredentials) -> CreateBuildResponse)
-> Lens
CreateBuildResponse
CreateBuildResponse
(Maybe (Sensitive AwsCredentials))
(Maybe (Sensitive AwsCredentials))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBuildResponse' {Maybe (Sensitive AwsCredentials)
uploadCredentials :: Maybe (Sensitive AwsCredentials)
$sel:uploadCredentials:CreateBuildResponse' :: CreateBuildResponse -> Maybe (Sensitive AwsCredentials)
uploadCredentials} -> Maybe (Sensitive AwsCredentials)
uploadCredentials) (\s :: CreateBuildResponse
s@CreateBuildResponse' {} Maybe (Sensitive AwsCredentials)
a -> CreateBuildResponse
s {$sel:uploadCredentials:CreateBuildResponse' :: Maybe (Sensitive AwsCredentials)
uploadCredentials = Maybe (Sensitive AwsCredentials)
a} :: CreateBuildResponse) ((Maybe (Sensitive AwsCredentials)
-> f (Maybe (Sensitive AwsCredentials)))
-> CreateBuildResponse -> f CreateBuildResponse)
-> ((Maybe AwsCredentials -> f (Maybe AwsCredentials))
-> Maybe (Sensitive AwsCredentials)
-> f (Maybe (Sensitive AwsCredentials)))
-> (Maybe AwsCredentials -> f (Maybe AwsCredentials))
-> CreateBuildResponse
-> f CreateBuildResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(Sensitive AwsCredentials)
(Sensitive AwsCredentials)
AwsCredentials
AwsCredentials
-> Iso
(Maybe (Sensitive AwsCredentials))
(Maybe (Sensitive AwsCredentials))
(Maybe AwsCredentials)
(Maybe AwsCredentials)
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
(Sensitive AwsCredentials)
(Sensitive AwsCredentials)
AwsCredentials
AwsCredentials
forall a. Iso' (Sensitive a) a
Core._Sensitive
createBuildResponse_build :: Lens.Lens' CreateBuildResponse (Prelude.Maybe Build)
createBuildResponse_build :: (Maybe Build -> f (Maybe Build))
-> CreateBuildResponse -> f CreateBuildResponse
createBuildResponse_build = (CreateBuildResponse -> Maybe Build)
-> (CreateBuildResponse -> Maybe Build -> CreateBuildResponse)
-> Lens
CreateBuildResponse CreateBuildResponse (Maybe Build) (Maybe Build)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBuildResponse' {Maybe Build
build :: Maybe Build
$sel:build:CreateBuildResponse' :: CreateBuildResponse -> Maybe Build
build} -> Maybe Build
build) (\s :: CreateBuildResponse
s@CreateBuildResponse' {} Maybe Build
a -> CreateBuildResponse
s {$sel:build:CreateBuildResponse' :: Maybe Build
build = Maybe Build
a} :: CreateBuildResponse)
createBuildResponse_httpStatus :: Lens.Lens' CreateBuildResponse Prelude.Int
createBuildResponse_httpStatus :: (Int -> f Int) -> CreateBuildResponse -> f CreateBuildResponse
createBuildResponse_httpStatus = (CreateBuildResponse -> Int)
-> (CreateBuildResponse -> Int -> CreateBuildResponse)
-> Lens CreateBuildResponse CreateBuildResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateBuildResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateBuildResponse' :: CreateBuildResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateBuildResponse
s@CreateBuildResponse' {} Int
a -> CreateBuildResponse
s {$sel:httpStatus:CreateBuildResponse' :: Int
httpStatus = Int
a} :: CreateBuildResponse)
instance Prelude.NFData CreateBuildResponse