{-# 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.Outposts.CreateOutpost
(
CreateOutpost (..),
newCreateOutpost,
createOutpost_availabilityZoneId,
createOutpost_availabilityZone,
createOutpost_description,
createOutpost_tags,
createOutpost_name,
createOutpost_siteId,
CreateOutpostResponse (..),
newCreateOutpostResponse,
createOutpostResponse_outpost,
createOutpostResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Outposts.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CreateOutpost = CreateOutpost'
{ CreateOutpost -> Maybe Text
availabilityZoneId :: Prelude.Maybe Prelude.Text,
CreateOutpost -> Maybe Text
availabilityZone :: Prelude.Maybe Prelude.Text,
CreateOutpost -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
CreateOutpost -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreateOutpost -> Text
name :: Prelude.Text,
CreateOutpost -> Text
siteId :: Prelude.Text
}
deriving (CreateOutpost -> CreateOutpost -> Bool
(CreateOutpost -> CreateOutpost -> Bool)
-> (CreateOutpost -> CreateOutpost -> Bool) -> Eq CreateOutpost
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateOutpost -> CreateOutpost -> Bool
$c/= :: CreateOutpost -> CreateOutpost -> Bool
== :: CreateOutpost -> CreateOutpost -> Bool
$c== :: CreateOutpost -> CreateOutpost -> Bool
Prelude.Eq, ReadPrec [CreateOutpost]
ReadPrec CreateOutpost
Int -> ReadS CreateOutpost
ReadS [CreateOutpost]
(Int -> ReadS CreateOutpost)
-> ReadS [CreateOutpost]
-> ReadPrec CreateOutpost
-> ReadPrec [CreateOutpost]
-> Read CreateOutpost
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateOutpost]
$creadListPrec :: ReadPrec [CreateOutpost]
readPrec :: ReadPrec CreateOutpost
$creadPrec :: ReadPrec CreateOutpost
readList :: ReadS [CreateOutpost]
$creadList :: ReadS [CreateOutpost]
readsPrec :: Int -> ReadS CreateOutpost
$creadsPrec :: Int -> ReadS CreateOutpost
Prelude.Read, Int -> CreateOutpost -> ShowS
[CreateOutpost] -> ShowS
CreateOutpost -> String
(Int -> CreateOutpost -> ShowS)
-> (CreateOutpost -> String)
-> ([CreateOutpost] -> ShowS)
-> Show CreateOutpost
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateOutpost] -> ShowS
$cshowList :: [CreateOutpost] -> ShowS
show :: CreateOutpost -> String
$cshow :: CreateOutpost -> String
showsPrec :: Int -> CreateOutpost -> ShowS
$cshowsPrec :: Int -> CreateOutpost -> ShowS
Prelude.Show, (forall x. CreateOutpost -> Rep CreateOutpost x)
-> (forall x. Rep CreateOutpost x -> CreateOutpost)
-> Generic CreateOutpost
forall x. Rep CreateOutpost x -> CreateOutpost
forall x. CreateOutpost -> Rep CreateOutpost x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateOutpost x -> CreateOutpost
$cfrom :: forall x. CreateOutpost -> Rep CreateOutpost x
Prelude.Generic)
newCreateOutpost ::
Prelude.Text ->
Prelude.Text ->
CreateOutpost
newCreateOutpost :: Text -> Text -> CreateOutpost
newCreateOutpost Text
pName_ Text
pSiteId_ =
CreateOutpost' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> Text
-> CreateOutpost
CreateOutpost'
{ $sel:availabilityZoneId:CreateOutpost' :: Maybe Text
availabilityZoneId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:availabilityZone:CreateOutpost' :: Maybe Text
availabilityZone = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:CreateOutpost' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateOutpost' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:name:CreateOutpost' :: Text
name = Text
pName_,
$sel:siteId:CreateOutpost' :: Text
siteId = Text
pSiteId_
}
createOutpost_availabilityZoneId :: Lens.Lens' CreateOutpost (Prelude.Maybe Prelude.Text)
createOutpost_availabilityZoneId :: (Maybe Text -> f (Maybe Text)) -> CreateOutpost -> f CreateOutpost
createOutpost_availabilityZoneId = (CreateOutpost -> Maybe Text)
-> (CreateOutpost -> Maybe Text -> CreateOutpost)
-> Lens CreateOutpost CreateOutpost (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateOutpost' {Maybe Text
availabilityZoneId :: Maybe Text
$sel:availabilityZoneId:CreateOutpost' :: CreateOutpost -> Maybe Text
availabilityZoneId} -> Maybe Text
availabilityZoneId) (\s :: CreateOutpost
s@CreateOutpost' {} Maybe Text
a -> CreateOutpost
s {$sel:availabilityZoneId:CreateOutpost' :: Maybe Text
availabilityZoneId = Maybe Text
a} :: CreateOutpost)
createOutpost_availabilityZone :: Lens.Lens' CreateOutpost (Prelude.Maybe Prelude.Text)
createOutpost_availabilityZone :: (Maybe Text -> f (Maybe Text)) -> CreateOutpost -> f CreateOutpost
createOutpost_availabilityZone = (CreateOutpost -> Maybe Text)
-> (CreateOutpost -> Maybe Text -> CreateOutpost)
-> Lens CreateOutpost CreateOutpost (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateOutpost' {Maybe Text
availabilityZone :: Maybe Text
$sel:availabilityZone:CreateOutpost' :: CreateOutpost -> Maybe Text
availabilityZone} -> Maybe Text
availabilityZone) (\s :: CreateOutpost
s@CreateOutpost' {} Maybe Text
a -> CreateOutpost
s {$sel:availabilityZone:CreateOutpost' :: Maybe Text
availabilityZone = Maybe Text
a} :: CreateOutpost)
createOutpost_description :: Lens.Lens' CreateOutpost (Prelude.Maybe Prelude.Text)
createOutpost_description :: (Maybe Text -> f (Maybe Text)) -> CreateOutpost -> f CreateOutpost
createOutpost_description = (CreateOutpost -> Maybe Text)
-> (CreateOutpost -> Maybe Text -> CreateOutpost)
-> Lens CreateOutpost CreateOutpost (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateOutpost' {Maybe Text
description :: Maybe Text
$sel:description:CreateOutpost' :: CreateOutpost -> Maybe Text
description} -> Maybe Text
description) (\s :: CreateOutpost
s@CreateOutpost' {} Maybe Text
a -> CreateOutpost
s {$sel:description:CreateOutpost' :: Maybe Text
description = Maybe Text
a} :: CreateOutpost)
createOutpost_tags :: Lens.Lens' CreateOutpost (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createOutpost_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateOutpost -> f CreateOutpost
createOutpost_tags = (CreateOutpost -> Maybe (HashMap Text Text))
-> (CreateOutpost -> Maybe (HashMap Text Text) -> CreateOutpost)
-> Lens
CreateOutpost
CreateOutpost
(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 (\CreateOutpost' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:CreateOutpost' :: CreateOutpost -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: CreateOutpost
s@CreateOutpost' {} Maybe (HashMap Text Text)
a -> CreateOutpost
s {$sel:tags:CreateOutpost' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: CreateOutpost) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateOutpost -> f CreateOutpost)
-> ((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)))
-> CreateOutpost
-> f CreateOutpost
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
createOutpost_name :: Lens.Lens' CreateOutpost Prelude.Text
createOutpost_name :: (Text -> f Text) -> CreateOutpost -> f CreateOutpost
createOutpost_name = (CreateOutpost -> Text)
-> (CreateOutpost -> Text -> CreateOutpost)
-> Lens CreateOutpost CreateOutpost Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateOutpost' {Text
name :: Text
$sel:name:CreateOutpost' :: CreateOutpost -> Text
name} -> Text
name) (\s :: CreateOutpost
s@CreateOutpost' {} Text
a -> CreateOutpost
s {$sel:name:CreateOutpost' :: Text
name = Text
a} :: CreateOutpost)
createOutpost_siteId :: Lens.Lens' CreateOutpost Prelude.Text
createOutpost_siteId :: (Text -> f Text) -> CreateOutpost -> f CreateOutpost
createOutpost_siteId = (CreateOutpost -> Text)
-> (CreateOutpost -> Text -> CreateOutpost)
-> Lens CreateOutpost CreateOutpost Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateOutpost' {Text
siteId :: Text
$sel:siteId:CreateOutpost' :: CreateOutpost -> Text
siteId} -> Text
siteId) (\s :: CreateOutpost
s@CreateOutpost' {} Text
a -> CreateOutpost
s {$sel:siteId:CreateOutpost' :: Text
siteId = Text
a} :: CreateOutpost)
instance Core.AWSRequest CreateOutpost where
type
AWSResponse CreateOutpost =
CreateOutpostResponse
request :: CreateOutpost -> Request CreateOutpost
request = Service -> CreateOutpost -> Request CreateOutpost
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateOutpost
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateOutpost)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateOutpost))
-> Logger
-> Service
-> Proxy CreateOutpost
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateOutpost)))
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 Outpost -> Int -> CreateOutpostResponse
CreateOutpostResponse'
(Maybe Outpost -> Int -> CreateOutpostResponse)
-> Either String (Maybe Outpost)
-> Either String (Int -> CreateOutpostResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Outpost)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Outpost")
Either String (Int -> CreateOutpostResponse)
-> Either String Int -> Either String CreateOutpostResponse
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 CreateOutpost
instance Prelude.NFData CreateOutpost
instance Core.ToHeaders CreateOutpost where
toHeaders :: CreateOutpost -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateOutpost -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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 CreateOutpost where
toJSON :: CreateOutpost -> Value
toJSON CreateOutpost' {Maybe Text
Maybe (HashMap Text Text)
Text
siteId :: Text
name :: Text
tags :: Maybe (HashMap Text Text)
description :: Maybe Text
availabilityZone :: Maybe Text
availabilityZoneId :: Maybe Text
$sel:siteId:CreateOutpost' :: CreateOutpost -> Text
$sel:name:CreateOutpost' :: CreateOutpost -> Text
$sel:tags:CreateOutpost' :: CreateOutpost -> Maybe (HashMap Text Text)
$sel:description:CreateOutpost' :: CreateOutpost -> Maybe Text
$sel:availabilityZone:CreateOutpost' :: CreateOutpost -> Maybe Text
$sel:availabilityZoneId:CreateOutpost' :: CreateOutpost -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"AvailabilityZoneId" 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
availabilityZoneId,
(Text
"AvailabilityZone" 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
availabilityZone,
(Text
"Description" 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
description,
(Text
"Tags" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
tags,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
name),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"SiteId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
siteId)
]
)
instance Core.ToPath CreateOutpost where
toPath :: CreateOutpost -> ByteString
toPath = ByteString -> CreateOutpost -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/outposts"
instance Core.ToQuery CreateOutpost where
toQuery :: CreateOutpost -> QueryString
toQuery = QueryString -> CreateOutpost -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateOutpostResponse = CreateOutpostResponse'
{ CreateOutpostResponse -> Maybe Outpost
outpost :: Prelude.Maybe Outpost,
CreateOutpostResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateOutpostResponse -> CreateOutpostResponse -> Bool
(CreateOutpostResponse -> CreateOutpostResponse -> Bool)
-> (CreateOutpostResponse -> CreateOutpostResponse -> Bool)
-> Eq CreateOutpostResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateOutpostResponse -> CreateOutpostResponse -> Bool
$c/= :: CreateOutpostResponse -> CreateOutpostResponse -> Bool
== :: CreateOutpostResponse -> CreateOutpostResponse -> Bool
$c== :: CreateOutpostResponse -> CreateOutpostResponse -> Bool
Prelude.Eq, ReadPrec [CreateOutpostResponse]
ReadPrec CreateOutpostResponse
Int -> ReadS CreateOutpostResponse
ReadS [CreateOutpostResponse]
(Int -> ReadS CreateOutpostResponse)
-> ReadS [CreateOutpostResponse]
-> ReadPrec CreateOutpostResponse
-> ReadPrec [CreateOutpostResponse]
-> Read CreateOutpostResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateOutpostResponse]
$creadListPrec :: ReadPrec [CreateOutpostResponse]
readPrec :: ReadPrec CreateOutpostResponse
$creadPrec :: ReadPrec CreateOutpostResponse
readList :: ReadS [CreateOutpostResponse]
$creadList :: ReadS [CreateOutpostResponse]
readsPrec :: Int -> ReadS CreateOutpostResponse
$creadsPrec :: Int -> ReadS CreateOutpostResponse
Prelude.Read, Int -> CreateOutpostResponse -> ShowS
[CreateOutpostResponse] -> ShowS
CreateOutpostResponse -> String
(Int -> CreateOutpostResponse -> ShowS)
-> (CreateOutpostResponse -> String)
-> ([CreateOutpostResponse] -> ShowS)
-> Show CreateOutpostResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateOutpostResponse] -> ShowS
$cshowList :: [CreateOutpostResponse] -> ShowS
show :: CreateOutpostResponse -> String
$cshow :: CreateOutpostResponse -> String
showsPrec :: Int -> CreateOutpostResponse -> ShowS
$cshowsPrec :: Int -> CreateOutpostResponse -> ShowS
Prelude.Show, (forall x. CreateOutpostResponse -> Rep CreateOutpostResponse x)
-> (forall x. Rep CreateOutpostResponse x -> CreateOutpostResponse)
-> Generic CreateOutpostResponse
forall x. Rep CreateOutpostResponse x -> CreateOutpostResponse
forall x. CreateOutpostResponse -> Rep CreateOutpostResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateOutpostResponse x -> CreateOutpostResponse
$cfrom :: forall x. CreateOutpostResponse -> Rep CreateOutpostResponse x
Prelude.Generic)
newCreateOutpostResponse ::
Prelude.Int ->
CreateOutpostResponse
newCreateOutpostResponse :: Int -> CreateOutpostResponse
newCreateOutpostResponse Int
pHttpStatus_ =
CreateOutpostResponse' :: Maybe Outpost -> Int -> CreateOutpostResponse
CreateOutpostResponse'
{ $sel:outpost:CreateOutpostResponse' :: Maybe Outpost
outpost = Maybe Outpost
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateOutpostResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createOutpostResponse_outpost :: Lens.Lens' CreateOutpostResponse (Prelude.Maybe Outpost)
createOutpostResponse_outpost :: (Maybe Outpost -> f (Maybe Outpost))
-> CreateOutpostResponse -> f CreateOutpostResponse
createOutpostResponse_outpost = (CreateOutpostResponse -> Maybe Outpost)
-> (CreateOutpostResponse
-> Maybe Outpost -> CreateOutpostResponse)
-> Lens
CreateOutpostResponse
CreateOutpostResponse
(Maybe Outpost)
(Maybe Outpost)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateOutpostResponse' {Maybe Outpost
outpost :: Maybe Outpost
$sel:outpost:CreateOutpostResponse' :: CreateOutpostResponse -> Maybe Outpost
outpost} -> Maybe Outpost
outpost) (\s :: CreateOutpostResponse
s@CreateOutpostResponse' {} Maybe Outpost
a -> CreateOutpostResponse
s {$sel:outpost:CreateOutpostResponse' :: Maybe Outpost
outpost = Maybe Outpost
a} :: CreateOutpostResponse)
createOutpostResponse_httpStatus :: Lens.Lens' CreateOutpostResponse Prelude.Int
createOutpostResponse_httpStatus :: (Int -> f Int) -> CreateOutpostResponse -> f CreateOutpostResponse
createOutpostResponse_httpStatus = (CreateOutpostResponse -> Int)
-> (CreateOutpostResponse -> Int -> CreateOutpostResponse)
-> Lens CreateOutpostResponse CreateOutpostResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateOutpostResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateOutpostResponse' :: CreateOutpostResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateOutpostResponse
s@CreateOutpostResponse' {} Int
a -> CreateOutpostResponse
s {$sel:httpStatus:CreateOutpostResponse' :: Int
httpStatus = Int
a} :: CreateOutpostResponse)
instance Prelude.NFData CreateOutpostResponse