{-# 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.SMS.PutAppLaunchConfiguration
-- 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)
--
-- Creates or updates the launch configuration for the specified
-- application.
module Amazonka.SMS.PutAppLaunchConfiguration
  ( -- * Creating a Request
    PutAppLaunchConfiguration (..),
    newPutAppLaunchConfiguration,

    -- * Request Lenses
    putAppLaunchConfiguration_serverGroupLaunchConfigurations,
    putAppLaunchConfiguration_autoLaunch,
    putAppLaunchConfiguration_roleName,
    putAppLaunchConfiguration_appId,

    -- * Destructuring the Response
    PutAppLaunchConfigurationResponse (..),
    newPutAppLaunchConfigurationResponse,

    -- * Response Lenses
    putAppLaunchConfigurationResponse_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.SMS.Types

-- | /See:/ 'newPutAppLaunchConfiguration' smart constructor.
data PutAppLaunchConfiguration = PutAppLaunchConfiguration'
  { -- | Information about the launch configurations for server groups in the
    -- application.
    PutAppLaunchConfiguration -> Maybe [ServerGroupLaunchConfiguration]
serverGroupLaunchConfigurations :: Prelude.Maybe [ServerGroupLaunchConfiguration],
    -- | Indicates whether the application is configured to launch automatically
    -- after replication is complete.
    PutAppLaunchConfiguration -> Maybe Bool
autoLaunch :: Prelude.Maybe Prelude.Bool,
    -- | The name of service role in the customer\'s account that AWS
    -- CloudFormation uses to launch the application.
    PutAppLaunchConfiguration -> Maybe Text
roleName :: Prelude.Maybe Prelude.Text,
    -- | The ID of the application.
    PutAppLaunchConfiguration -> Maybe Text
appId :: Prelude.Maybe Prelude.Text
  }
  deriving (PutAppLaunchConfiguration -> PutAppLaunchConfiguration -> Bool
(PutAppLaunchConfiguration -> PutAppLaunchConfiguration -> Bool)
-> (PutAppLaunchConfiguration -> PutAppLaunchConfiguration -> Bool)
-> Eq PutAppLaunchConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutAppLaunchConfiguration -> PutAppLaunchConfiguration -> Bool
$c/= :: PutAppLaunchConfiguration -> PutAppLaunchConfiguration -> Bool
== :: PutAppLaunchConfiguration -> PutAppLaunchConfiguration -> Bool
$c== :: PutAppLaunchConfiguration -> PutAppLaunchConfiguration -> Bool
Prelude.Eq, ReadPrec [PutAppLaunchConfiguration]
ReadPrec PutAppLaunchConfiguration
Int -> ReadS PutAppLaunchConfiguration
ReadS [PutAppLaunchConfiguration]
(Int -> ReadS PutAppLaunchConfiguration)
-> ReadS [PutAppLaunchConfiguration]
-> ReadPrec PutAppLaunchConfiguration
-> ReadPrec [PutAppLaunchConfiguration]
-> Read PutAppLaunchConfiguration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutAppLaunchConfiguration]
$creadListPrec :: ReadPrec [PutAppLaunchConfiguration]
readPrec :: ReadPrec PutAppLaunchConfiguration
$creadPrec :: ReadPrec PutAppLaunchConfiguration
readList :: ReadS [PutAppLaunchConfiguration]
$creadList :: ReadS [PutAppLaunchConfiguration]
readsPrec :: Int -> ReadS PutAppLaunchConfiguration
$creadsPrec :: Int -> ReadS PutAppLaunchConfiguration
Prelude.Read, Int -> PutAppLaunchConfiguration -> ShowS
[PutAppLaunchConfiguration] -> ShowS
PutAppLaunchConfiguration -> String
(Int -> PutAppLaunchConfiguration -> ShowS)
-> (PutAppLaunchConfiguration -> String)
-> ([PutAppLaunchConfiguration] -> ShowS)
-> Show PutAppLaunchConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutAppLaunchConfiguration] -> ShowS
$cshowList :: [PutAppLaunchConfiguration] -> ShowS
show :: PutAppLaunchConfiguration -> String
$cshow :: PutAppLaunchConfiguration -> String
showsPrec :: Int -> PutAppLaunchConfiguration -> ShowS
$cshowsPrec :: Int -> PutAppLaunchConfiguration -> ShowS
Prelude.Show, (forall x.
 PutAppLaunchConfiguration -> Rep PutAppLaunchConfiguration x)
-> (forall x.
    Rep PutAppLaunchConfiguration x -> PutAppLaunchConfiguration)
-> Generic PutAppLaunchConfiguration
forall x.
Rep PutAppLaunchConfiguration x -> PutAppLaunchConfiguration
forall x.
PutAppLaunchConfiguration -> Rep PutAppLaunchConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PutAppLaunchConfiguration x -> PutAppLaunchConfiguration
$cfrom :: forall x.
PutAppLaunchConfiguration -> Rep PutAppLaunchConfiguration x
Prelude.Generic)

-- |
-- Create a value of 'PutAppLaunchConfiguration' 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:
--
-- 'serverGroupLaunchConfigurations', 'putAppLaunchConfiguration_serverGroupLaunchConfigurations' - Information about the launch configurations for server groups in the
-- application.
--
-- 'autoLaunch', 'putAppLaunchConfiguration_autoLaunch' - Indicates whether the application is configured to launch automatically
-- after replication is complete.
--
-- 'roleName', 'putAppLaunchConfiguration_roleName' - The name of service role in the customer\'s account that AWS
-- CloudFormation uses to launch the application.
--
-- 'appId', 'putAppLaunchConfiguration_appId' - The ID of the application.
newPutAppLaunchConfiguration ::
  PutAppLaunchConfiguration
newPutAppLaunchConfiguration :: PutAppLaunchConfiguration
newPutAppLaunchConfiguration =
  PutAppLaunchConfiguration' :: Maybe [ServerGroupLaunchConfiguration]
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> PutAppLaunchConfiguration
PutAppLaunchConfiguration'
    { $sel:serverGroupLaunchConfigurations:PutAppLaunchConfiguration' :: Maybe [ServerGroupLaunchConfiguration]
serverGroupLaunchConfigurations =
        Maybe [ServerGroupLaunchConfiguration]
forall a. Maybe a
Prelude.Nothing,
      $sel:autoLaunch:PutAppLaunchConfiguration' :: Maybe Bool
autoLaunch = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:roleName:PutAppLaunchConfiguration' :: Maybe Text
roleName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:appId:PutAppLaunchConfiguration' :: Maybe Text
appId = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | Information about the launch configurations for server groups in the
-- application.
putAppLaunchConfiguration_serverGroupLaunchConfigurations :: Lens.Lens' PutAppLaunchConfiguration (Prelude.Maybe [ServerGroupLaunchConfiguration])
putAppLaunchConfiguration_serverGroupLaunchConfigurations :: (Maybe [ServerGroupLaunchConfiguration]
 -> f (Maybe [ServerGroupLaunchConfiguration]))
-> PutAppLaunchConfiguration -> f PutAppLaunchConfiguration
putAppLaunchConfiguration_serverGroupLaunchConfigurations = (PutAppLaunchConfiguration
 -> Maybe [ServerGroupLaunchConfiguration])
-> (PutAppLaunchConfiguration
    -> Maybe [ServerGroupLaunchConfiguration]
    -> PutAppLaunchConfiguration)
-> Lens
     PutAppLaunchConfiguration
     PutAppLaunchConfiguration
     (Maybe [ServerGroupLaunchConfiguration])
     (Maybe [ServerGroupLaunchConfiguration])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutAppLaunchConfiguration' {Maybe [ServerGroupLaunchConfiguration]
serverGroupLaunchConfigurations :: Maybe [ServerGroupLaunchConfiguration]
$sel:serverGroupLaunchConfigurations:PutAppLaunchConfiguration' :: PutAppLaunchConfiguration -> Maybe [ServerGroupLaunchConfiguration]
serverGroupLaunchConfigurations} -> Maybe [ServerGroupLaunchConfiguration]
serverGroupLaunchConfigurations) (\s :: PutAppLaunchConfiguration
s@PutAppLaunchConfiguration' {} Maybe [ServerGroupLaunchConfiguration]
a -> PutAppLaunchConfiguration
s {$sel:serverGroupLaunchConfigurations:PutAppLaunchConfiguration' :: Maybe [ServerGroupLaunchConfiguration]
serverGroupLaunchConfigurations = Maybe [ServerGroupLaunchConfiguration]
a} :: PutAppLaunchConfiguration) ((Maybe [ServerGroupLaunchConfiguration]
  -> f (Maybe [ServerGroupLaunchConfiguration]))
 -> PutAppLaunchConfiguration -> f PutAppLaunchConfiguration)
-> ((Maybe [ServerGroupLaunchConfiguration]
     -> f (Maybe [ServerGroupLaunchConfiguration]))
    -> Maybe [ServerGroupLaunchConfiguration]
    -> f (Maybe [ServerGroupLaunchConfiguration]))
-> (Maybe [ServerGroupLaunchConfiguration]
    -> f (Maybe [ServerGroupLaunchConfiguration]))
-> PutAppLaunchConfiguration
-> f PutAppLaunchConfiguration
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [ServerGroupLaunchConfiguration]
  [ServerGroupLaunchConfiguration]
  [ServerGroupLaunchConfiguration]
  [ServerGroupLaunchConfiguration]
-> Iso
     (Maybe [ServerGroupLaunchConfiguration])
     (Maybe [ServerGroupLaunchConfiguration])
     (Maybe [ServerGroupLaunchConfiguration])
     (Maybe [ServerGroupLaunchConfiguration])
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
  [ServerGroupLaunchConfiguration]
  [ServerGroupLaunchConfiguration]
  [ServerGroupLaunchConfiguration]
  [ServerGroupLaunchConfiguration]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Indicates whether the application is configured to launch automatically
-- after replication is complete.
putAppLaunchConfiguration_autoLaunch :: Lens.Lens' PutAppLaunchConfiguration (Prelude.Maybe Prelude.Bool)
putAppLaunchConfiguration_autoLaunch :: (Maybe Bool -> f (Maybe Bool))
-> PutAppLaunchConfiguration -> f PutAppLaunchConfiguration
putAppLaunchConfiguration_autoLaunch = (PutAppLaunchConfiguration -> Maybe Bool)
-> (PutAppLaunchConfiguration
    -> Maybe Bool -> PutAppLaunchConfiguration)
-> Lens
     PutAppLaunchConfiguration
     PutAppLaunchConfiguration
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutAppLaunchConfiguration' {Maybe Bool
autoLaunch :: Maybe Bool
$sel:autoLaunch:PutAppLaunchConfiguration' :: PutAppLaunchConfiguration -> Maybe Bool
autoLaunch} -> Maybe Bool
autoLaunch) (\s :: PutAppLaunchConfiguration
s@PutAppLaunchConfiguration' {} Maybe Bool
a -> PutAppLaunchConfiguration
s {$sel:autoLaunch:PutAppLaunchConfiguration' :: Maybe Bool
autoLaunch = Maybe Bool
a} :: PutAppLaunchConfiguration)

-- | The name of service role in the customer\'s account that AWS
-- CloudFormation uses to launch the application.
putAppLaunchConfiguration_roleName :: Lens.Lens' PutAppLaunchConfiguration (Prelude.Maybe Prelude.Text)
putAppLaunchConfiguration_roleName :: (Maybe Text -> f (Maybe Text))
-> PutAppLaunchConfiguration -> f PutAppLaunchConfiguration
putAppLaunchConfiguration_roleName = (PutAppLaunchConfiguration -> Maybe Text)
-> (PutAppLaunchConfiguration
    -> Maybe Text -> PutAppLaunchConfiguration)
-> Lens
     PutAppLaunchConfiguration
     PutAppLaunchConfiguration
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutAppLaunchConfiguration' {Maybe Text
roleName :: Maybe Text
$sel:roleName:PutAppLaunchConfiguration' :: PutAppLaunchConfiguration -> Maybe Text
roleName} -> Maybe Text
roleName) (\s :: PutAppLaunchConfiguration
s@PutAppLaunchConfiguration' {} Maybe Text
a -> PutAppLaunchConfiguration
s {$sel:roleName:PutAppLaunchConfiguration' :: Maybe Text
roleName = Maybe Text
a} :: PutAppLaunchConfiguration)

-- | The ID of the application.
putAppLaunchConfiguration_appId :: Lens.Lens' PutAppLaunchConfiguration (Prelude.Maybe Prelude.Text)
putAppLaunchConfiguration_appId :: (Maybe Text -> f (Maybe Text))
-> PutAppLaunchConfiguration -> f PutAppLaunchConfiguration
putAppLaunchConfiguration_appId = (PutAppLaunchConfiguration -> Maybe Text)
-> (PutAppLaunchConfiguration
    -> Maybe Text -> PutAppLaunchConfiguration)
-> Lens
     PutAppLaunchConfiguration
     PutAppLaunchConfiguration
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutAppLaunchConfiguration' {Maybe Text
appId :: Maybe Text
$sel:appId:PutAppLaunchConfiguration' :: PutAppLaunchConfiguration -> Maybe Text
appId} -> Maybe Text
appId) (\s :: PutAppLaunchConfiguration
s@PutAppLaunchConfiguration' {} Maybe Text
a -> PutAppLaunchConfiguration
s {$sel:appId:PutAppLaunchConfiguration' :: Maybe Text
appId = Maybe Text
a} :: PutAppLaunchConfiguration)

instance Core.AWSRequest PutAppLaunchConfiguration where
  type
    AWSResponse PutAppLaunchConfiguration =
      PutAppLaunchConfigurationResponse
  request :: PutAppLaunchConfiguration -> Request PutAppLaunchConfiguration
request = Service
-> PutAppLaunchConfiguration -> Request PutAppLaunchConfiguration
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy PutAppLaunchConfiguration
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse PutAppLaunchConfiguration)))
response =
    (Int
 -> ResponseHeaders
 -> ()
 -> Either String (AWSResponse PutAppLaunchConfiguration))
-> Logger
-> Service
-> Proxy PutAppLaunchConfiguration
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse PutAppLaunchConfiguration)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
      ( \Int
s ResponseHeaders
h ()
x ->
          Int -> PutAppLaunchConfigurationResponse
PutAppLaunchConfigurationResponse'
            (Int -> PutAppLaunchConfigurationResponse)
-> Either String Int
-> Either String PutAppLaunchConfigurationResponse
forall (f :: * -> *) a b. Functor 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 PutAppLaunchConfiguration

instance Prelude.NFData PutAppLaunchConfiguration

instance Core.ToHeaders PutAppLaunchConfiguration where
  toHeaders :: PutAppLaunchConfiguration -> ResponseHeaders
toHeaders =
    ResponseHeaders -> PutAppLaunchConfiguration -> 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
"AWSServerMigrationService_V2016_10_24.PutAppLaunchConfiguration" ::
                          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 PutAppLaunchConfiguration where
  toJSON :: PutAppLaunchConfiguration -> Value
toJSON PutAppLaunchConfiguration' {Maybe Bool
Maybe [ServerGroupLaunchConfiguration]
Maybe Text
appId :: Maybe Text
roleName :: Maybe Text
autoLaunch :: Maybe Bool
serverGroupLaunchConfigurations :: Maybe [ServerGroupLaunchConfiguration]
$sel:appId:PutAppLaunchConfiguration' :: PutAppLaunchConfiguration -> Maybe Text
$sel:roleName:PutAppLaunchConfiguration' :: PutAppLaunchConfiguration -> Maybe Text
$sel:autoLaunch:PutAppLaunchConfiguration' :: PutAppLaunchConfiguration -> Maybe Bool
$sel:serverGroupLaunchConfigurations:PutAppLaunchConfiguration' :: PutAppLaunchConfiguration -> Maybe [ServerGroupLaunchConfiguration]
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"serverGroupLaunchConfigurations" Text -> [ServerGroupLaunchConfiguration] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              ([ServerGroupLaunchConfiguration] -> Pair)
-> Maybe [ServerGroupLaunchConfiguration] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ServerGroupLaunchConfiguration]
serverGroupLaunchConfigurations,
            (Text
"autoLaunch" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
autoLaunch,
            (Text
"roleName" 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
roleName,
            (Text
"appId" 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
appId
          ]
      )

instance Core.ToPath PutAppLaunchConfiguration where
  toPath :: PutAppLaunchConfiguration -> ByteString
toPath = ByteString -> PutAppLaunchConfiguration -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

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

-- | /See:/ 'newPutAppLaunchConfigurationResponse' smart constructor.
data PutAppLaunchConfigurationResponse = PutAppLaunchConfigurationResponse'
  { -- | The response's http status code.
    PutAppLaunchConfigurationResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (PutAppLaunchConfigurationResponse
-> PutAppLaunchConfigurationResponse -> Bool
(PutAppLaunchConfigurationResponse
 -> PutAppLaunchConfigurationResponse -> Bool)
-> (PutAppLaunchConfigurationResponse
    -> PutAppLaunchConfigurationResponse -> Bool)
-> Eq PutAppLaunchConfigurationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutAppLaunchConfigurationResponse
-> PutAppLaunchConfigurationResponse -> Bool
$c/= :: PutAppLaunchConfigurationResponse
-> PutAppLaunchConfigurationResponse -> Bool
== :: PutAppLaunchConfigurationResponse
-> PutAppLaunchConfigurationResponse -> Bool
$c== :: PutAppLaunchConfigurationResponse
-> PutAppLaunchConfigurationResponse -> Bool
Prelude.Eq, ReadPrec [PutAppLaunchConfigurationResponse]
ReadPrec PutAppLaunchConfigurationResponse
Int -> ReadS PutAppLaunchConfigurationResponse
ReadS [PutAppLaunchConfigurationResponse]
(Int -> ReadS PutAppLaunchConfigurationResponse)
-> ReadS [PutAppLaunchConfigurationResponse]
-> ReadPrec PutAppLaunchConfigurationResponse
-> ReadPrec [PutAppLaunchConfigurationResponse]
-> Read PutAppLaunchConfigurationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutAppLaunchConfigurationResponse]
$creadListPrec :: ReadPrec [PutAppLaunchConfigurationResponse]
readPrec :: ReadPrec PutAppLaunchConfigurationResponse
$creadPrec :: ReadPrec PutAppLaunchConfigurationResponse
readList :: ReadS [PutAppLaunchConfigurationResponse]
$creadList :: ReadS [PutAppLaunchConfigurationResponse]
readsPrec :: Int -> ReadS PutAppLaunchConfigurationResponse
$creadsPrec :: Int -> ReadS PutAppLaunchConfigurationResponse
Prelude.Read, Int -> PutAppLaunchConfigurationResponse -> ShowS
[PutAppLaunchConfigurationResponse] -> ShowS
PutAppLaunchConfigurationResponse -> String
(Int -> PutAppLaunchConfigurationResponse -> ShowS)
-> (PutAppLaunchConfigurationResponse -> String)
-> ([PutAppLaunchConfigurationResponse] -> ShowS)
-> Show PutAppLaunchConfigurationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutAppLaunchConfigurationResponse] -> ShowS
$cshowList :: [PutAppLaunchConfigurationResponse] -> ShowS
show :: PutAppLaunchConfigurationResponse -> String
$cshow :: PutAppLaunchConfigurationResponse -> String
showsPrec :: Int -> PutAppLaunchConfigurationResponse -> ShowS
$cshowsPrec :: Int -> PutAppLaunchConfigurationResponse -> ShowS
Prelude.Show, (forall x.
 PutAppLaunchConfigurationResponse
 -> Rep PutAppLaunchConfigurationResponse x)
-> (forall x.
    Rep PutAppLaunchConfigurationResponse x
    -> PutAppLaunchConfigurationResponse)
-> Generic PutAppLaunchConfigurationResponse
forall x.
Rep PutAppLaunchConfigurationResponse x
-> PutAppLaunchConfigurationResponse
forall x.
PutAppLaunchConfigurationResponse
-> Rep PutAppLaunchConfigurationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PutAppLaunchConfigurationResponse x
-> PutAppLaunchConfigurationResponse
$cfrom :: forall x.
PutAppLaunchConfigurationResponse
-> Rep PutAppLaunchConfigurationResponse x
Prelude.Generic)

-- |
-- Create a value of 'PutAppLaunchConfigurationResponse' 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:
--
-- 'httpStatus', 'putAppLaunchConfigurationResponse_httpStatus' - The response's http status code.
newPutAppLaunchConfigurationResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  PutAppLaunchConfigurationResponse
newPutAppLaunchConfigurationResponse :: Int -> PutAppLaunchConfigurationResponse
newPutAppLaunchConfigurationResponse Int
pHttpStatus_ =
  PutAppLaunchConfigurationResponse' :: Int -> PutAppLaunchConfigurationResponse
PutAppLaunchConfigurationResponse'
    { $sel:httpStatus:PutAppLaunchConfigurationResponse' :: Int
httpStatus =
        Int
pHttpStatus_
    }

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

instance
  Prelude.NFData
    PutAppLaunchConfigurationResponse