{-# 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.Panorama.CreateApplicationInstance
(
CreateApplicationInstance (..),
newCreateApplicationInstance,
createApplicationInstance_applicationInstanceIdToReplace,
createApplicationInstance_description,
createApplicationInstance_manifestOverridesPayload,
createApplicationInstance_name,
createApplicationInstance_runtimeRoleArn,
createApplicationInstance_tags,
createApplicationInstance_defaultRuntimeContextDevice,
createApplicationInstance_manifestPayload,
CreateApplicationInstanceResponse (..),
newCreateApplicationInstanceResponse,
createApplicationInstanceResponse_httpStatus,
createApplicationInstanceResponse_applicationInstanceId,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.Panorama.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CreateApplicationInstance = CreateApplicationInstance'
{
CreateApplicationInstance -> Maybe Text
applicationInstanceIdToReplace :: Prelude.Maybe Prelude.Text,
CreateApplicationInstance -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
CreateApplicationInstance -> Maybe ManifestOverridesPayload
manifestOverridesPayload :: Prelude.Maybe ManifestOverridesPayload,
CreateApplicationInstance -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
CreateApplicationInstance -> Maybe Text
runtimeRoleArn :: Prelude.Maybe Prelude.Text,
CreateApplicationInstance -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreateApplicationInstance -> Text
defaultRuntimeContextDevice :: Prelude.Text,
CreateApplicationInstance -> ManifestPayload
manifestPayload :: ManifestPayload
}
deriving (CreateApplicationInstance -> CreateApplicationInstance -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateApplicationInstance -> CreateApplicationInstance -> Bool
$c/= :: CreateApplicationInstance -> CreateApplicationInstance -> Bool
== :: CreateApplicationInstance -> CreateApplicationInstance -> Bool
$c== :: CreateApplicationInstance -> CreateApplicationInstance -> Bool
Prelude.Eq, ReadPrec [CreateApplicationInstance]
ReadPrec CreateApplicationInstance
Int -> ReadS CreateApplicationInstance
ReadS [CreateApplicationInstance]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateApplicationInstance]
$creadListPrec :: ReadPrec [CreateApplicationInstance]
readPrec :: ReadPrec CreateApplicationInstance
$creadPrec :: ReadPrec CreateApplicationInstance
readList :: ReadS [CreateApplicationInstance]
$creadList :: ReadS [CreateApplicationInstance]
readsPrec :: Int -> ReadS CreateApplicationInstance
$creadsPrec :: Int -> ReadS CreateApplicationInstance
Prelude.Read, Int -> CreateApplicationInstance -> ShowS
[CreateApplicationInstance] -> ShowS
CreateApplicationInstance -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateApplicationInstance] -> ShowS
$cshowList :: [CreateApplicationInstance] -> ShowS
show :: CreateApplicationInstance -> String
$cshow :: CreateApplicationInstance -> String
showsPrec :: Int -> CreateApplicationInstance -> ShowS
$cshowsPrec :: Int -> CreateApplicationInstance -> ShowS
Prelude.Show, forall x.
Rep CreateApplicationInstance x -> CreateApplicationInstance
forall x.
CreateApplicationInstance -> Rep CreateApplicationInstance x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateApplicationInstance x -> CreateApplicationInstance
$cfrom :: forall x.
CreateApplicationInstance -> Rep CreateApplicationInstance x
Prelude.Generic)
newCreateApplicationInstance ::
Prelude.Text ->
ManifestPayload ->
CreateApplicationInstance
newCreateApplicationInstance :: Text -> ManifestPayload -> CreateApplicationInstance
newCreateApplicationInstance
Text
pDefaultRuntimeContextDevice_
ManifestPayload
pManifestPayload_ =
CreateApplicationInstance'
{ $sel:applicationInstanceIdToReplace:CreateApplicationInstance' :: Maybe Text
applicationInstanceIdToReplace =
forall a. Maybe a
Prelude.Nothing,
$sel:description:CreateApplicationInstance' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
$sel:manifestOverridesPayload:CreateApplicationInstance' :: Maybe ManifestOverridesPayload
manifestOverridesPayload = forall a. Maybe a
Prelude.Nothing,
$sel:name:CreateApplicationInstance' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
$sel:runtimeRoleArn:CreateApplicationInstance' :: Maybe Text
runtimeRoleArn = forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateApplicationInstance' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
$sel:defaultRuntimeContextDevice:CreateApplicationInstance' :: Text
defaultRuntimeContextDevice =
Text
pDefaultRuntimeContextDevice_,
$sel:manifestPayload:CreateApplicationInstance' :: ManifestPayload
manifestPayload = ManifestPayload
pManifestPayload_
}
createApplicationInstance_applicationInstanceIdToReplace :: Lens.Lens' CreateApplicationInstance (Prelude.Maybe Prelude.Text)
createApplicationInstance_applicationInstanceIdToReplace :: Lens' CreateApplicationInstance (Maybe Text)
createApplicationInstance_applicationInstanceIdToReplace = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApplicationInstance' {Maybe Text
applicationInstanceIdToReplace :: Maybe Text
$sel:applicationInstanceIdToReplace:CreateApplicationInstance' :: CreateApplicationInstance -> Maybe Text
applicationInstanceIdToReplace} -> Maybe Text
applicationInstanceIdToReplace) (\s :: CreateApplicationInstance
s@CreateApplicationInstance' {} Maybe Text
a -> CreateApplicationInstance
s {$sel:applicationInstanceIdToReplace:CreateApplicationInstance' :: Maybe Text
applicationInstanceIdToReplace = Maybe Text
a} :: CreateApplicationInstance)
createApplicationInstance_description :: Lens.Lens' CreateApplicationInstance (Prelude.Maybe Prelude.Text)
createApplicationInstance_description :: Lens' CreateApplicationInstance (Maybe Text)
createApplicationInstance_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApplicationInstance' {Maybe Text
description :: Maybe Text
$sel:description:CreateApplicationInstance' :: CreateApplicationInstance -> Maybe Text
description} -> Maybe Text
description) (\s :: CreateApplicationInstance
s@CreateApplicationInstance' {} Maybe Text
a -> CreateApplicationInstance
s {$sel:description:CreateApplicationInstance' :: Maybe Text
description = Maybe Text
a} :: CreateApplicationInstance)
createApplicationInstance_manifestOverridesPayload :: Lens.Lens' CreateApplicationInstance (Prelude.Maybe ManifestOverridesPayload)
createApplicationInstance_manifestOverridesPayload :: Lens' CreateApplicationInstance (Maybe ManifestOverridesPayload)
createApplicationInstance_manifestOverridesPayload = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApplicationInstance' {Maybe ManifestOverridesPayload
manifestOverridesPayload :: Maybe ManifestOverridesPayload
$sel:manifestOverridesPayload:CreateApplicationInstance' :: CreateApplicationInstance -> Maybe ManifestOverridesPayload
manifestOverridesPayload} -> Maybe ManifestOverridesPayload
manifestOverridesPayload) (\s :: CreateApplicationInstance
s@CreateApplicationInstance' {} Maybe ManifestOverridesPayload
a -> CreateApplicationInstance
s {$sel:manifestOverridesPayload:CreateApplicationInstance' :: Maybe ManifestOverridesPayload
manifestOverridesPayload = Maybe ManifestOverridesPayload
a} :: CreateApplicationInstance)
createApplicationInstance_name :: Lens.Lens' CreateApplicationInstance (Prelude.Maybe Prelude.Text)
createApplicationInstance_name :: Lens' CreateApplicationInstance (Maybe Text)
createApplicationInstance_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApplicationInstance' {Maybe Text
name :: Maybe Text
$sel:name:CreateApplicationInstance' :: CreateApplicationInstance -> Maybe Text
name} -> Maybe Text
name) (\s :: CreateApplicationInstance
s@CreateApplicationInstance' {} Maybe Text
a -> CreateApplicationInstance
s {$sel:name:CreateApplicationInstance' :: Maybe Text
name = Maybe Text
a} :: CreateApplicationInstance)
createApplicationInstance_runtimeRoleArn :: Lens.Lens' CreateApplicationInstance (Prelude.Maybe Prelude.Text)
createApplicationInstance_runtimeRoleArn :: Lens' CreateApplicationInstance (Maybe Text)
createApplicationInstance_runtimeRoleArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApplicationInstance' {Maybe Text
runtimeRoleArn :: Maybe Text
$sel:runtimeRoleArn:CreateApplicationInstance' :: CreateApplicationInstance -> Maybe Text
runtimeRoleArn} -> Maybe Text
runtimeRoleArn) (\s :: CreateApplicationInstance
s@CreateApplicationInstance' {} Maybe Text
a -> CreateApplicationInstance
s {$sel:runtimeRoleArn:CreateApplicationInstance' :: Maybe Text
runtimeRoleArn = Maybe Text
a} :: CreateApplicationInstance)
createApplicationInstance_tags :: Lens.Lens' CreateApplicationInstance (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createApplicationInstance_tags :: Lens' CreateApplicationInstance (Maybe (HashMap Text Text))
createApplicationInstance_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApplicationInstance' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:CreateApplicationInstance' :: CreateApplicationInstance -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: CreateApplicationInstance
s@CreateApplicationInstance' {} Maybe (HashMap Text Text)
a -> CreateApplicationInstance
s {$sel:tags:CreateApplicationInstance' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: CreateApplicationInstance) 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
createApplicationInstance_defaultRuntimeContextDevice :: Lens.Lens' CreateApplicationInstance Prelude.Text
createApplicationInstance_defaultRuntimeContextDevice :: Lens' CreateApplicationInstance Text
createApplicationInstance_defaultRuntimeContextDevice = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApplicationInstance' {Text
defaultRuntimeContextDevice :: Text
$sel:defaultRuntimeContextDevice:CreateApplicationInstance' :: CreateApplicationInstance -> Text
defaultRuntimeContextDevice} -> Text
defaultRuntimeContextDevice) (\s :: CreateApplicationInstance
s@CreateApplicationInstance' {} Text
a -> CreateApplicationInstance
s {$sel:defaultRuntimeContextDevice:CreateApplicationInstance' :: Text
defaultRuntimeContextDevice = Text
a} :: CreateApplicationInstance)
createApplicationInstance_manifestPayload :: Lens.Lens' CreateApplicationInstance ManifestPayload
createApplicationInstance_manifestPayload :: Lens' CreateApplicationInstance ManifestPayload
createApplicationInstance_manifestPayload = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApplicationInstance' {ManifestPayload
manifestPayload :: ManifestPayload
$sel:manifestPayload:CreateApplicationInstance' :: CreateApplicationInstance -> ManifestPayload
manifestPayload} -> ManifestPayload
manifestPayload) (\s :: CreateApplicationInstance
s@CreateApplicationInstance' {} ManifestPayload
a -> CreateApplicationInstance
s {$sel:manifestPayload:CreateApplicationInstance' :: ManifestPayload
manifestPayload = ManifestPayload
a} :: CreateApplicationInstance)
instance Core.AWSRequest CreateApplicationInstance where
type
AWSResponse CreateApplicationInstance =
CreateApplicationInstanceResponse
request :: (Service -> Service)
-> CreateApplicationInstance -> Request CreateApplicationInstance
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 CreateApplicationInstance
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateApplicationInstance)))
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 ->
Int -> Text -> CreateApplicationInstanceResponse
CreateApplicationInstanceResponse'
forall (f :: * -> *) a b. Functor 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))
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String a
Data..:> Key
"ApplicationInstanceId")
)
instance Prelude.Hashable CreateApplicationInstance where
hashWithSalt :: Int -> CreateApplicationInstance -> Int
hashWithSalt Int
_salt CreateApplicationInstance' {Maybe Text
Maybe (HashMap Text Text)
Maybe ManifestOverridesPayload
Text
ManifestPayload
manifestPayload :: ManifestPayload
defaultRuntimeContextDevice :: Text
tags :: Maybe (HashMap Text Text)
runtimeRoleArn :: Maybe Text
name :: Maybe Text
manifestOverridesPayload :: Maybe ManifestOverridesPayload
description :: Maybe Text
applicationInstanceIdToReplace :: Maybe Text
$sel:manifestPayload:CreateApplicationInstance' :: CreateApplicationInstance -> ManifestPayload
$sel:defaultRuntimeContextDevice:CreateApplicationInstance' :: CreateApplicationInstance -> Text
$sel:tags:CreateApplicationInstance' :: CreateApplicationInstance -> Maybe (HashMap Text Text)
$sel:runtimeRoleArn:CreateApplicationInstance' :: CreateApplicationInstance -> Maybe Text
$sel:name:CreateApplicationInstance' :: CreateApplicationInstance -> Maybe Text
$sel:manifestOverridesPayload:CreateApplicationInstance' :: CreateApplicationInstance -> Maybe ManifestOverridesPayload
$sel:description:CreateApplicationInstance' :: CreateApplicationInstance -> Maybe Text
$sel:applicationInstanceIdToReplace:CreateApplicationInstance' :: CreateApplicationInstance -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
applicationInstanceIdToReplace
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
description
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ManifestOverridesPayload
manifestOverridesPayload
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
runtimeRoleArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
tags
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
defaultRuntimeContextDevice
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` ManifestPayload
manifestPayload
instance Prelude.NFData CreateApplicationInstance where
rnf :: CreateApplicationInstance -> ()
rnf CreateApplicationInstance' {Maybe Text
Maybe (HashMap Text Text)
Maybe ManifestOverridesPayload
Text
ManifestPayload
manifestPayload :: ManifestPayload
defaultRuntimeContextDevice :: Text
tags :: Maybe (HashMap Text Text)
runtimeRoleArn :: Maybe Text
name :: Maybe Text
manifestOverridesPayload :: Maybe ManifestOverridesPayload
description :: Maybe Text
applicationInstanceIdToReplace :: Maybe Text
$sel:manifestPayload:CreateApplicationInstance' :: CreateApplicationInstance -> ManifestPayload
$sel:defaultRuntimeContextDevice:CreateApplicationInstance' :: CreateApplicationInstance -> Text
$sel:tags:CreateApplicationInstance' :: CreateApplicationInstance -> Maybe (HashMap Text Text)
$sel:runtimeRoleArn:CreateApplicationInstance' :: CreateApplicationInstance -> Maybe Text
$sel:name:CreateApplicationInstance' :: CreateApplicationInstance -> Maybe Text
$sel:manifestOverridesPayload:CreateApplicationInstance' :: CreateApplicationInstance -> Maybe ManifestOverridesPayload
$sel:description:CreateApplicationInstance' :: CreateApplicationInstance -> Maybe Text
$sel:applicationInstanceIdToReplace:CreateApplicationInstance' :: CreateApplicationInstance -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
applicationInstanceIdToReplace
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
description
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ManifestOverridesPayload
manifestOverridesPayload
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
runtimeRoleArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
tags
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
defaultRuntimeContextDevice
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf ManifestPayload
manifestPayload
instance Data.ToHeaders CreateApplicationInstance where
toHeaders :: CreateApplicationInstance -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON CreateApplicationInstance where
toJSON :: CreateApplicationInstance -> Value
toJSON CreateApplicationInstance' {Maybe Text
Maybe (HashMap Text Text)
Maybe ManifestOverridesPayload
Text
ManifestPayload
manifestPayload :: ManifestPayload
defaultRuntimeContextDevice :: Text
tags :: Maybe (HashMap Text Text)
runtimeRoleArn :: Maybe Text
name :: Maybe Text
manifestOverridesPayload :: Maybe ManifestOverridesPayload
description :: Maybe Text
applicationInstanceIdToReplace :: Maybe Text
$sel:manifestPayload:CreateApplicationInstance' :: CreateApplicationInstance -> ManifestPayload
$sel:defaultRuntimeContextDevice:CreateApplicationInstance' :: CreateApplicationInstance -> Text
$sel:tags:CreateApplicationInstance' :: CreateApplicationInstance -> Maybe (HashMap Text Text)
$sel:runtimeRoleArn:CreateApplicationInstance' :: CreateApplicationInstance -> Maybe Text
$sel:name:CreateApplicationInstance' :: CreateApplicationInstance -> Maybe Text
$sel:manifestOverridesPayload:CreateApplicationInstance' :: CreateApplicationInstance -> Maybe ManifestOverridesPayload
$sel:description:CreateApplicationInstance' :: CreateApplicationInstance -> Maybe Text
$sel:applicationInstanceIdToReplace:CreateApplicationInstance' :: CreateApplicationInstance -> Maybe Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"ApplicationInstanceIdToReplace" 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
applicationInstanceIdToReplace,
(Key
"Description" 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
description,
(Key
"ManifestOverridesPayload" 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 ManifestOverridesPayload
manifestOverridesPayload,
(Key
"Name" 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
name,
(Key
"RuntimeRoleArn" 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
runtimeRoleArn,
(Key
"Tags" 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 (HashMap Text Text)
tags,
forall a. a -> Maybe a
Prelude.Just
( Key
"DefaultRuntimeContextDevice"
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
defaultRuntimeContextDevice
),
forall a. a -> Maybe a
Prelude.Just
(Key
"ManifestPayload" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= ManifestPayload
manifestPayload)
]
)
instance Data.ToPath CreateApplicationInstance where
toPath :: CreateApplicationInstance -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/application-instances"
instance Data.ToQuery CreateApplicationInstance where
toQuery :: CreateApplicationInstance -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data CreateApplicationInstanceResponse = CreateApplicationInstanceResponse'
{
CreateApplicationInstanceResponse -> Int
httpStatus :: Prelude.Int,
CreateApplicationInstanceResponse -> Text
applicationInstanceId :: Prelude.Text
}
deriving (CreateApplicationInstanceResponse
-> CreateApplicationInstanceResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateApplicationInstanceResponse
-> CreateApplicationInstanceResponse -> Bool
$c/= :: CreateApplicationInstanceResponse
-> CreateApplicationInstanceResponse -> Bool
== :: CreateApplicationInstanceResponse
-> CreateApplicationInstanceResponse -> Bool
$c== :: CreateApplicationInstanceResponse
-> CreateApplicationInstanceResponse -> Bool
Prelude.Eq, ReadPrec [CreateApplicationInstanceResponse]
ReadPrec CreateApplicationInstanceResponse
Int -> ReadS CreateApplicationInstanceResponse
ReadS [CreateApplicationInstanceResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateApplicationInstanceResponse]
$creadListPrec :: ReadPrec [CreateApplicationInstanceResponse]
readPrec :: ReadPrec CreateApplicationInstanceResponse
$creadPrec :: ReadPrec CreateApplicationInstanceResponse
readList :: ReadS [CreateApplicationInstanceResponse]
$creadList :: ReadS [CreateApplicationInstanceResponse]
readsPrec :: Int -> ReadS CreateApplicationInstanceResponse
$creadsPrec :: Int -> ReadS CreateApplicationInstanceResponse
Prelude.Read, Int -> CreateApplicationInstanceResponse -> ShowS
[CreateApplicationInstanceResponse] -> ShowS
CreateApplicationInstanceResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateApplicationInstanceResponse] -> ShowS
$cshowList :: [CreateApplicationInstanceResponse] -> ShowS
show :: CreateApplicationInstanceResponse -> String
$cshow :: CreateApplicationInstanceResponse -> String
showsPrec :: Int -> CreateApplicationInstanceResponse -> ShowS
$cshowsPrec :: Int -> CreateApplicationInstanceResponse -> ShowS
Prelude.Show, forall x.
Rep CreateApplicationInstanceResponse x
-> CreateApplicationInstanceResponse
forall x.
CreateApplicationInstanceResponse
-> Rep CreateApplicationInstanceResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateApplicationInstanceResponse x
-> CreateApplicationInstanceResponse
$cfrom :: forall x.
CreateApplicationInstanceResponse
-> Rep CreateApplicationInstanceResponse x
Prelude.Generic)
newCreateApplicationInstanceResponse ::
Prelude.Int ->
Prelude.Text ->
CreateApplicationInstanceResponse
newCreateApplicationInstanceResponse :: Int -> Text -> CreateApplicationInstanceResponse
newCreateApplicationInstanceResponse
Int
pHttpStatus_
Text
pApplicationInstanceId_ =
CreateApplicationInstanceResponse'
{ $sel:httpStatus:CreateApplicationInstanceResponse' :: Int
httpStatus =
Int
pHttpStatus_,
$sel:applicationInstanceId:CreateApplicationInstanceResponse' :: Text
applicationInstanceId =
Text
pApplicationInstanceId_
}
createApplicationInstanceResponse_httpStatus :: Lens.Lens' CreateApplicationInstanceResponse Prelude.Int
createApplicationInstanceResponse_httpStatus :: Lens' CreateApplicationInstanceResponse Int
createApplicationInstanceResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApplicationInstanceResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateApplicationInstanceResponse' :: CreateApplicationInstanceResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateApplicationInstanceResponse
s@CreateApplicationInstanceResponse' {} Int
a -> CreateApplicationInstanceResponse
s {$sel:httpStatus:CreateApplicationInstanceResponse' :: Int
httpStatus = Int
a} :: CreateApplicationInstanceResponse)
createApplicationInstanceResponse_applicationInstanceId :: Lens.Lens' CreateApplicationInstanceResponse Prelude.Text
createApplicationInstanceResponse_applicationInstanceId :: Lens' CreateApplicationInstanceResponse Text
createApplicationInstanceResponse_applicationInstanceId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateApplicationInstanceResponse' {Text
applicationInstanceId :: Text
$sel:applicationInstanceId:CreateApplicationInstanceResponse' :: CreateApplicationInstanceResponse -> Text
applicationInstanceId} -> Text
applicationInstanceId) (\s :: CreateApplicationInstanceResponse
s@CreateApplicationInstanceResponse' {} Text
a -> CreateApplicationInstanceResponse
s {$sel:applicationInstanceId:CreateApplicationInstanceResponse' :: Text
applicationInstanceId = Text
a} :: CreateApplicationInstanceResponse)
instance
Prelude.NFData
CreateApplicationInstanceResponse
where
rnf :: CreateApplicationInstanceResponse -> ()
rnf CreateApplicationInstanceResponse' {Int
Text
applicationInstanceId :: Text
httpStatus :: Int
$sel:applicationInstanceId:CreateApplicationInstanceResponse' :: CreateApplicationInstanceResponse -> Text
$sel:httpStatus:CreateApplicationInstanceResponse' :: CreateApplicationInstanceResponse -> Int
..} =
forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
applicationInstanceId