{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Chime.CreateAppInstanceAdmin
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Promotes an @AppInstanceUser@ to an @AppInstanceAdmin@. The promoted
-- user can perform the following actions.
--
-- -   @ChannelModerator@ actions across all channels in the @AppInstance@.
--
-- -   @DeleteChannelMessage@ actions.
--
-- Only an @AppInstanceUser@ can be promoted to an @AppInstanceAdmin@ role.
module Amazonka.Chime.CreateAppInstanceAdmin
  ( -- * Creating a Request
    CreateAppInstanceAdmin (..),
    newCreateAppInstanceAdmin,

    -- * Request Lenses
    createAppInstanceAdmin_appInstanceAdminArn,
    createAppInstanceAdmin_appInstanceArn,

    -- * Destructuring the Response
    CreateAppInstanceAdminResponse (..),
    newCreateAppInstanceAdminResponse,

    -- * Response Lenses
    createAppInstanceAdminResponse_appInstanceAdmin,
    createAppInstanceAdminResponse_appInstanceArn,
    createAppInstanceAdminResponse_httpStatus,
  )
where

import Amazonka.Chime.Types
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

-- | /See:/ 'newCreateAppInstanceAdmin' smart constructor.
data CreateAppInstanceAdmin = CreateAppInstanceAdmin'
  { -- | The ARN of the administrator of the current @AppInstance@.
    CreateAppInstanceAdmin -> Text
appInstanceAdminArn :: Prelude.Text,
    -- | The ARN of the @AppInstance@.
    CreateAppInstanceAdmin -> Text
appInstanceArn :: Prelude.Text
  }
  deriving (CreateAppInstanceAdmin -> CreateAppInstanceAdmin -> Bool
(CreateAppInstanceAdmin -> CreateAppInstanceAdmin -> Bool)
-> (CreateAppInstanceAdmin -> CreateAppInstanceAdmin -> Bool)
-> Eq CreateAppInstanceAdmin
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateAppInstanceAdmin -> CreateAppInstanceAdmin -> Bool
$c/= :: CreateAppInstanceAdmin -> CreateAppInstanceAdmin -> Bool
== :: CreateAppInstanceAdmin -> CreateAppInstanceAdmin -> Bool
$c== :: CreateAppInstanceAdmin -> CreateAppInstanceAdmin -> Bool
Prelude.Eq, ReadPrec [CreateAppInstanceAdmin]
ReadPrec CreateAppInstanceAdmin
Int -> ReadS CreateAppInstanceAdmin
ReadS [CreateAppInstanceAdmin]
(Int -> ReadS CreateAppInstanceAdmin)
-> ReadS [CreateAppInstanceAdmin]
-> ReadPrec CreateAppInstanceAdmin
-> ReadPrec [CreateAppInstanceAdmin]
-> Read CreateAppInstanceAdmin
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateAppInstanceAdmin]
$creadListPrec :: ReadPrec [CreateAppInstanceAdmin]
readPrec :: ReadPrec CreateAppInstanceAdmin
$creadPrec :: ReadPrec CreateAppInstanceAdmin
readList :: ReadS [CreateAppInstanceAdmin]
$creadList :: ReadS [CreateAppInstanceAdmin]
readsPrec :: Int -> ReadS CreateAppInstanceAdmin
$creadsPrec :: Int -> ReadS CreateAppInstanceAdmin
Prelude.Read, Int -> CreateAppInstanceAdmin -> ShowS
[CreateAppInstanceAdmin] -> ShowS
CreateAppInstanceAdmin -> String
(Int -> CreateAppInstanceAdmin -> ShowS)
-> (CreateAppInstanceAdmin -> String)
-> ([CreateAppInstanceAdmin] -> ShowS)
-> Show CreateAppInstanceAdmin
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateAppInstanceAdmin] -> ShowS
$cshowList :: [CreateAppInstanceAdmin] -> ShowS
show :: CreateAppInstanceAdmin -> String
$cshow :: CreateAppInstanceAdmin -> String
showsPrec :: Int -> CreateAppInstanceAdmin -> ShowS
$cshowsPrec :: Int -> CreateAppInstanceAdmin -> ShowS
Prelude.Show, (forall x. CreateAppInstanceAdmin -> Rep CreateAppInstanceAdmin x)
-> (forall x.
    Rep CreateAppInstanceAdmin x -> CreateAppInstanceAdmin)
-> Generic CreateAppInstanceAdmin
forall x. Rep CreateAppInstanceAdmin x -> CreateAppInstanceAdmin
forall x. CreateAppInstanceAdmin -> Rep CreateAppInstanceAdmin x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateAppInstanceAdmin x -> CreateAppInstanceAdmin
$cfrom :: forall x. CreateAppInstanceAdmin -> Rep CreateAppInstanceAdmin x
Prelude.Generic)

-- |
-- Create a value of 'CreateAppInstanceAdmin' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'appInstanceAdminArn', 'createAppInstanceAdmin_appInstanceAdminArn' - The ARN of the administrator of the current @AppInstance@.
--
-- 'appInstanceArn', 'createAppInstanceAdmin_appInstanceArn' - The ARN of the @AppInstance@.
newCreateAppInstanceAdmin ::
  -- | 'appInstanceAdminArn'
  Prelude.Text ->
  -- | 'appInstanceArn'
  Prelude.Text ->
  CreateAppInstanceAdmin
newCreateAppInstanceAdmin :: Text -> Text -> CreateAppInstanceAdmin
newCreateAppInstanceAdmin
  Text
pAppInstanceAdminArn_
  Text
pAppInstanceArn_ =
    CreateAppInstanceAdmin' :: Text -> Text -> CreateAppInstanceAdmin
CreateAppInstanceAdmin'
      { $sel:appInstanceAdminArn:CreateAppInstanceAdmin' :: Text
appInstanceAdminArn =
          Text
pAppInstanceAdminArn_,
        $sel:appInstanceArn:CreateAppInstanceAdmin' :: Text
appInstanceArn = Text
pAppInstanceArn_
      }

-- | The ARN of the administrator of the current @AppInstance@.
createAppInstanceAdmin_appInstanceAdminArn :: Lens.Lens' CreateAppInstanceAdmin Prelude.Text
createAppInstanceAdmin_appInstanceAdminArn :: (Text -> f Text)
-> CreateAppInstanceAdmin -> f CreateAppInstanceAdmin
createAppInstanceAdmin_appInstanceAdminArn = (CreateAppInstanceAdmin -> Text)
-> (CreateAppInstanceAdmin -> Text -> CreateAppInstanceAdmin)
-> Lens CreateAppInstanceAdmin CreateAppInstanceAdmin Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAppInstanceAdmin' {Text
appInstanceAdminArn :: Text
$sel:appInstanceAdminArn:CreateAppInstanceAdmin' :: CreateAppInstanceAdmin -> Text
appInstanceAdminArn} -> Text
appInstanceAdminArn) (\s :: CreateAppInstanceAdmin
s@CreateAppInstanceAdmin' {} Text
a -> CreateAppInstanceAdmin
s {$sel:appInstanceAdminArn:CreateAppInstanceAdmin' :: Text
appInstanceAdminArn = Text
a} :: CreateAppInstanceAdmin)

-- | The ARN of the @AppInstance@.
createAppInstanceAdmin_appInstanceArn :: Lens.Lens' CreateAppInstanceAdmin Prelude.Text
createAppInstanceAdmin_appInstanceArn :: (Text -> f Text)
-> CreateAppInstanceAdmin -> f CreateAppInstanceAdmin
createAppInstanceAdmin_appInstanceArn = (CreateAppInstanceAdmin -> Text)
-> (CreateAppInstanceAdmin -> Text -> CreateAppInstanceAdmin)
-> Lens CreateAppInstanceAdmin CreateAppInstanceAdmin Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAppInstanceAdmin' {Text
appInstanceArn :: Text
$sel:appInstanceArn:CreateAppInstanceAdmin' :: CreateAppInstanceAdmin -> Text
appInstanceArn} -> Text
appInstanceArn) (\s :: CreateAppInstanceAdmin
s@CreateAppInstanceAdmin' {} Text
a -> CreateAppInstanceAdmin
s {$sel:appInstanceArn:CreateAppInstanceAdmin' :: Text
appInstanceArn = Text
a} :: CreateAppInstanceAdmin)

instance Core.AWSRequest CreateAppInstanceAdmin where
  type
    AWSResponse CreateAppInstanceAdmin =
      CreateAppInstanceAdminResponse
  request :: CreateAppInstanceAdmin -> Request CreateAppInstanceAdmin
request = Service -> CreateAppInstanceAdmin -> Request CreateAppInstanceAdmin
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy CreateAppInstanceAdmin
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreateAppInstanceAdmin)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse CreateAppInstanceAdmin))
-> Logger
-> Service
-> Proxy CreateAppInstanceAdmin
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreateAppInstanceAdmin)))
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 Identity
-> Maybe Text -> Int -> CreateAppInstanceAdminResponse
CreateAppInstanceAdminResponse'
            (Maybe Identity
 -> Maybe Text -> Int -> CreateAppInstanceAdminResponse)
-> Either String (Maybe Identity)
-> Either
     String (Maybe Text -> Int -> CreateAppInstanceAdminResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Identity)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"AppInstanceAdmin")
            Either String (Maybe Text -> Int -> CreateAppInstanceAdminResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateAppInstanceAdminResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"AppInstanceArn")
            Either String (Int -> CreateAppInstanceAdminResponse)
-> Either String Int
-> Either String CreateAppInstanceAdminResponse
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 CreateAppInstanceAdmin

instance Prelude.NFData CreateAppInstanceAdmin

instance Core.ToHeaders CreateAppInstanceAdmin where
  toHeaders :: CreateAppInstanceAdmin -> ResponseHeaders
toHeaders = ResponseHeaders -> CreateAppInstanceAdmin -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

instance Core.ToJSON CreateAppInstanceAdmin where
  toJSON :: CreateAppInstanceAdmin -> Value
toJSON CreateAppInstanceAdmin' {Text
appInstanceArn :: Text
appInstanceAdminArn :: Text
$sel:appInstanceArn:CreateAppInstanceAdmin' :: CreateAppInstanceAdmin -> Text
$sel:appInstanceAdminArn:CreateAppInstanceAdmin' :: CreateAppInstanceAdmin -> Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"AppInstanceAdminArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
appInstanceAdminArn)
          ]
      )

instance Core.ToPath CreateAppInstanceAdmin where
  toPath :: CreateAppInstanceAdmin -> ByteString
toPath CreateAppInstanceAdmin' {Text
appInstanceArn :: Text
appInstanceAdminArn :: Text
$sel:appInstanceArn:CreateAppInstanceAdmin' :: CreateAppInstanceAdmin -> Text
$sel:appInstanceAdminArn:CreateAppInstanceAdmin' :: CreateAppInstanceAdmin -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/app-instances/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
appInstanceArn,
        ByteString
"/admins"
      ]

instance Core.ToQuery CreateAppInstanceAdmin where
  toQuery :: CreateAppInstanceAdmin -> QueryString
toQuery = QueryString -> CreateAppInstanceAdmin -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newCreateAppInstanceAdminResponse' smart constructor.
data CreateAppInstanceAdminResponse = CreateAppInstanceAdminResponse'
  { -- | The name and ARN of the admin for the @AppInstance@.
    CreateAppInstanceAdminResponse -> Maybe Identity
appInstanceAdmin :: Prelude.Maybe Identity,
    -- | The ARN of the of the admin for the @AppInstance@.
    CreateAppInstanceAdminResponse -> Maybe Text
appInstanceArn :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    CreateAppInstanceAdminResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (CreateAppInstanceAdminResponse
-> CreateAppInstanceAdminResponse -> Bool
(CreateAppInstanceAdminResponse
 -> CreateAppInstanceAdminResponse -> Bool)
-> (CreateAppInstanceAdminResponse
    -> CreateAppInstanceAdminResponse -> Bool)
-> Eq CreateAppInstanceAdminResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateAppInstanceAdminResponse
-> CreateAppInstanceAdminResponse -> Bool
$c/= :: CreateAppInstanceAdminResponse
-> CreateAppInstanceAdminResponse -> Bool
== :: CreateAppInstanceAdminResponse
-> CreateAppInstanceAdminResponse -> Bool
$c== :: CreateAppInstanceAdminResponse
-> CreateAppInstanceAdminResponse -> Bool
Prelude.Eq, Int -> CreateAppInstanceAdminResponse -> ShowS
[CreateAppInstanceAdminResponse] -> ShowS
CreateAppInstanceAdminResponse -> String
(Int -> CreateAppInstanceAdminResponse -> ShowS)
-> (CreateAppInstanceAdminResponse -> String)
-> ([CreateAppInstanceAdminResponse] -> ShowS)
-> Show CreateAppInstanceAdminResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateAppInstanceAdminResponse] -> ShowS
$cshowList :: [CreateAppInstanceAdminResponse] -> ShowS
show :: CreateAppInstanceAdminResponse -> String
$cshow :: CreateAppInstanceAdminResponse -> String
showsPrec :: Int -> CreateAppInstanceAdminResponse -> ShowS
$cshowsPrec :: Int -> CreateAppInstanceAdminResponse -> ShowS
Prelude.Show, (forall x.
 CreateAppInstanceAdminResponse
 -> Rep CreateAppInstanceAdminResponse x)
-> (forall x.
    Rep CreateAppInstanceAdminResponse x
    -> CreateAppInstanceAdminResponse)
-> Generic CreateAppInstanceAdminResponse
forall x.
Rep CreateAppInstanceAdminResponse x
-> CreateAppInstanceAdminResponse
forall x.
CreateAppInstanceAdminResponse
-> Rep CreateAppInstanceAdminResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateAppInstanceAdminResponse x
-> CreateAppInstanceAdminResponse
$cfrom :: forall x.
CreateAppInstanceAdminResponse
-> Rep CreateAppInstanceAdminResponse x
Prelude.Generic)

-- |
-- Create a value of 'CreateAppInstanceAdminResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'appInstanceAdmin', 'createAppInstanceAdminResponse_appInstanceAdmin' - The name and ARN of the admin for the @AppInstance@.
--
-- 'appInstanceArn', 'createAppInstanceAdminResponse_appInstanceArn' - The ARN of the of the admin for the @AppInstance@.
--
-- 'httpStatus', 'createAppInstanceAdminResponse_httpStatus' - The response's http status code.
newCreateAppInstanceAdminResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  CreateAppInstanceAdminResponse
newCreateAppInstanceAdminResponse :: Int -> CreateAppInstanceAdminResponse
newCreateAppInstanceAdminResponse Int
pHttpStatus_ =
  CreateAppInstanceAdminResponse' :: Maybe Identity
-> Maybe Text -> Int -> CreateAppInstanceAdminResponse
CreateAppInstanceAdminResponse'
    { $sel:appInstanceAdmin:CreateAppInstanceAdminResponse' :: Maybe Identity
appInstanceAdmin =
        Maybe Identity
forall a. Maybe a
Prelude.Nothing,
      $sel:appInstanceArn:CreateAppInstanceAdminResponse' :: Maybe Text
appInstanceArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:CreateAppInstanceAdminResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The name and ARN of the admin for the @AppInstance@.
createAppInstanceAdminResponse_appInstanceAdmin :: Lens.Lens' CreateAppInstanceAdminResponse (Prelude.Maybe Identity)
createAppInstanceAdminResponse_appInstanceAdmin :: (Maybe Identity -> f (Maybe Identity))
-> CreateAppInstanceAdminResponse
-> f CreateAppInstanceAdminResponse
createAppInstanceAdminResponse_appInstanceAdmin = (CreateAppInstanceAdminResponse -> Maybe Identity)
-> (CreateAppInstanceAdminResponse
    -> Maybe Identity -> CreateAppInstanceAdminResponse)
-> Lens
     CreateAppInstanceAdminResponse
     CreateAppInstanceAdminResponse
     (Maybe Identity)
     (Maybe Identity)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAppInstanceAdminResponse' {Maybe Identity
appInstanceAdmin :: Maybe Identity
$sel:appInstanceAdmin:CreateAppInstanceAdminResponse' :: CreateAppInstanceAdminResponse -> Maybe Identity
appInstanceAdmin} -> Maybe Identity
appInstanceAdmin) (\s :: CreateAppInstanceAdminResponse
s@CreateAppInstanceAdminResponse' {} Maybe Identity
a -> CreateAppInstanceAdminResponse
s {$sel:appInstanceAdmin:CreateAppInstanceAdminResponse' :: Maybe Identity
appInstanceAdmin = Maybe Identity
a} :: CreateAppInstanceAdminResponse)

-- | The ARN of the of the admin for the @AppInstance@.
createAppInstanceAdminResponse_appInstanceArn :: Lens.Lens' CreateAppInstanceAdminResponse (Prelude.Maybe Prelude.Text)
createAppInstanceAdminResponse_appInstanceArn :: (Maybe Text -> f (Maybe Text))
-> CreateAppInstanceAdminResponse
-> f CreateAppInstanceAdminResponse
createAppInstanceAdminResponse_appInstanceArn = (CreateAppInstanceAdminResponse -> Maybe Text)
-> (CreateAppInstanceAdminResponse
    -> Maybe Text -> CreateAppInstanceAdminResponse)
-> Lens
     CreateAppInstanceAdminResponse
     CreateAppInstanceAdminResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAppInstanceAdminResponse' {Maybe Text
appInstanceArn :: Maybe Text
$sel:appInstanceArn:CreateAppInstanceAdminResponse' :: CreateAppInstanceAdminResponse -> Maybe Text
appInstanceArn} -> Maybe Text
appInstanceArn) (\s :: CreateAppInstanceAdminResponse
s@CreateAppInstanceAdminResponse' {} Maybe Text
a -> CreateAppInstanceAdminResponse
s {$sel:appInstanceArn:CreateAppInstanceAdminResponse' :: Maybe Text
appInstanceArn = Maybe Text
a} :: CreateAppInstanceAdminResponse)

-- | The response's http status code.
createAppInstanceAdminResponse_httpStatus :: Lens.Lens' CreateAppInstanceAdminResponse Prelude.Int
createAppInstanceAdminResponse_httpStatus :: (Int -> f Int)
-> CreateAppInstanceAdminResponse
-> f CreateAppInstanceAdminResponse
createAppInstanceAdminResponse_httpStatus = (CreateAppInstanceAdminResponse -> Int)
-> (CreateAppInstanceAdminResponse
    -> Int -> CreateAppInstanceAdminResponse)
-> Lens
     CreateAppInstanceAdminResponse
     CreateAppInstanceAdminResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateAppInstanceAdminResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateAppInstanceAdminResponse' :: CreateAppInstanceAdminResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateAppInstanceAdminResponse
s@CreateAppInstanceAdminResponse' {} Int
a -> CreateAppInstanceAdminResponse
s {$sel:httpStatus:CreateAppInstanceAdminResponse' :: Int
httpStatus = Int
a} :: CreateAppInstanceAdminResponse)

instance
  Prelude.NFData
    CreateAppInstanceAdminResponse