{-# 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.OpsWorksCM.CreateServer
(
CreateServer (..),
newCreateServer,
createServer_associatePublicIpAddress,
createServer_backupId,
createServer_backupRetentionCount,
createServer_customCertificate,
createServer_customDomain,
createServer_customPrivateKey,
createServer_disableAutomatedBackup,
createServer_engineAttributes,
createServer_engineModel,
createServer_engineVersion,
createServer_keyPair,
createServer_preferredBackupWindow,
createServer_preferredMaintenanceWindow,
createServer_securityGroupIds,
createServer_subnetIds,
createServer_tags,
createServer_engine,
createServer_serverName,
createServer_instanceProfileArn,
createServer_instanceType,
createServer_serviceRoleArn,
CreateServerResponse (..),
newCreateServerResponse,
createServerResponse_server,
createServerResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.OpsWorksCM.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CreateServer = CreateServer'
{
CreateServer -> Maybe Bool
associatePublicIpAddress :: Prelude.Maybe Prelude.Bool,
CreateServer -> Maybe Text
backupId :: Prelude.Maybe Prelude.Text,
CreateServer -> Maybe Natural
backupRetentionCount :: Prelude.Maybe Prelude.Natural,
CreateServer -> Maybe Text
customCertificate :: Prelude.Maybe Prelude.Text,
CreateServer -> Maybe Text
customDomain :: Prelude.Maybe Prelude.Text,
CreateServer -> Maybe (Sensitive Text)
customPrivateKey :: Prelude.Maybe (Data.Sensitive Prelude.Text),
CreateServer -> Maybe Bool
disableAutomatedBackup :: Prelude.Maybe Prelude.Bool,
CreateServer -> Maybe [EngineAttribute]
engineAttributes :: Prelude.Maybe [EngineAttribute],
CreateServer -> Maybe Text
engineModel :: Prelude.Maybe Prelude.Text,
CreateServer -> Maybe Text
engineVersion :: Prelude.Maybe Prelude.Text,
CreateServer -> Maybe Text
keyPair :: Prelude.Maybe Prelude.Text,
CreateServer -> Maybe Text
preferredBackupWindow :: Prelude.Maybe Prelude.Text,
CreateServer -> Maybe Text
preferredMaintenanceWindow :: Prelude.Maybe Prelude.Text,
CreateServer -> Maybe [Text]
securityGroupIds :: Prelude.Maybe [Prelude.Text],
CreateServer -> Maybe [Text]
subnetIds :: Prelude.Maybe [Prelude.Text],
CreateServer -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreateServer -> Text
engine :: Prelude.Text,
CreateServer -> Text
serverName :: Prelude.Text,
CreateServer -> Text
instanceProfileArn :: Prelude.Text,
CreateServer -> Text
instanceType :: Prelude.Text,
CreateServer -> Text
serviceRoleArn :: Prelude.Text
}
deriving (CreateServer -> CreateServer -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateServer -> CreateServer -> Bool
$c/= :: CreateServer -> CreateServer -> Bool
== :: CreateServer -> CreateServer -> Bool
$c== :: CreateServer -> CreateServer -> Bool
Prelude.Eq, Int -> CreateServer -> ShowS
[CreateServer] -> ShowS
CreateServer -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateServer] -> ShowS
$cshowList :: [CreateServer] -> ShowS
show :: CreateServer -> String
$cshow :: CreateServer -> String
showsPrec :: Int -> CreateServer -> ShowS
$cshowsPrec :: Int -> CreateServer -> ShowS
Prelude.Show, forall x. Rep CreateServer x -> CreateServer
forall x. CreateServer -> Rep CreateServer x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateServer x -> CreateServer
$cfrom :: forall x. CreateServer -> Rep CreateServer x
Prelude.Generic)
newCreateServer ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
CreateServer
newCreateServer :: Text -> Text -> Text -> Text -> Text -> CreateServer
newCreateServer
Text
pEngine_
Text
pServerName_
Text
pInstanceProfileArn_
Text
pInstanceType_
Text
pServiceRoleArn_ =
CreateServer'
{ $sel:associatePublicIpAddress:CreateServer' :: Maybe Bool
associatePublicIpAddress =
forall a. Maybe a
Prelude.Nothing,
$sel:backupId:CreateServer' :: Maybe Text
backupId = forall a. Maybe a
Prelude.Nothing,
$sel:backupRetentionCount:CreateServer' :: Maybe Natural
backupRetentionCount = forall a. Maybe a
Prelude.Nothing,
$sel:customCertificate:CreateServer' :: Maybe Text
customCertificate = forall a. Maybe a
Prelude.Nothing,
$sel:customDomain:CreateServer' :: Maybe Text
customDomain = forall a. Maybe a
Prelude.Nothing,
$sel:customPrivateKey:CreateServer' :: Maybe (Sensitive Text)
customPrivateKey = forall a. Maybe a
Prelude.Nothing,
$sel:disableAutomatedBackup:CreateServer' :: Maybe Bool
disableAutomatedBackup = forall a. Maybe a
Prelude.Nothing,
$sel:engineAttributes:CreateServer' :: Maybe [EngineAttribute]
engineAttributes = forall a. Maybe a
Prelude.Nothing,
$sel:engineModel:CreateServer' :: Maybe Text
engineModel = forall a. Maybe a
Prelude.Nothing,
$sel:engineVersion:CreateServer' :: Maybe Text
engineVersion = forall a. Maybe a
Prelude.Nothing,
$sel:keyPair:CreateServer' :: Maybe Text
keyPair = forall a. Maybe a
Prelude.Nothing,
$sel:preferredBackupWindow:CreateServer' :: Maybe Text
preferredBackupWindow = forall a. Maybe a
Prelude.Nothing,
$sel:preferredMaintenanceWindow:CreateServer' :: Maybe Text
preferredMaintenanceWindow = forall a. Maybe a
Prelude.Nothing,
$sel:securityGroupIds:CreateServer' :: Maybe [Text]
securityGroupIds = forall a. Maybe a
Prelude.Nothing,
$sel:subnetIds:CreateServer' :: Maybe [Text]
subnetIds = forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateServer' :: Maybe [Tag]
tags = forall a. Maybe a
Prelude.Nothing,
$sel:engine:CreateServer' :: Text
engine = Text
pEngine_,
$sel:serverName:CreateServer' :: Text
serverName = Text
pServerName_,
$sel:instanceProfileArn:CreateServer' :: Text
instanceProfileArn = Text
pInstanceProfileArn_,
$sel:instanceType:CreateServer' :: Text
instanceType = Text
pInstanceType_,
$sel:serviceRoleArn:CreateServer' :: Text
serviceRoleArn = Text
pServiceRoleArn_
}
createServer_associatePublicIpAddress :: Lens.Lens' CreateServer (Prelude.Maybe Prelude.Bool)
createServer_associatePublicIpAddress :: Lens' CreateServer (Maybe Bool)
createServer_associatePublicIpAddress = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateServer' {Maybe Bool
associatePublicIpAddress :: Maybe Bool
$sel:associatePublicIpAddress:CreateServer' :: CreateServer -> Maybe Bool
associatePublicIpAddress} -> Maybe Bool
associatePublicIpAddress) (\s :: CreateServer
s@CreateServer' {} Maybe Bool
a -> CreateServer
s {$sel:associatePublicIpAddress:CreateServer' :: Maybe Bool
associatePublicIpAddress = Maybe Bool
a} :: CreateServer)
createServer_backupId :: Lens.Lens' CreateServer (Prelude.Maybe Prelude.Text)
createServer_backupId :: Lens' CreateServer (Maybe Text)
createServer_backupId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateServer' {Maybe Text
backupId :: Maybe Text
$sel:backupId:CreateServer' :: CreateServer -> Maybe Text
backupId} -> Maybe Text
backupId) (\s :: CreateServer
s@CreateServer' {} Maybe Text
a -> CreateServer
s {$sel:backupId:CreateServer' :: Maybe Text
backupId = Maybe Text
a} :: CreateServer)
createServer_backupRetentionCount :: Lens.Lens' CreateServer (Prelude.Maybe Prelude.Natural)
createServer_backupRetentionCount :: Lens' CreateServer (Maybe Natural)
createServer_backupRetentionCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateServer' {Maybe Natural
backupRetentionCount :: Maybe Natural
$sel:backupRetentionCount:CreateServer' :: CreateServer -> Maybe Natural
backupRetentionCount} -> Maybe Natural
backupRetentionCount) (\s :: CreateServer
s@CreateServer' {} Maybe Natural
a -> CreateServer
s {$sel:backupRetentionCount:CreateServer' :: Maybe Natural
backupRetentionCount = Maybe Natural
a} :: CreateServer)
createServer_customCertificate :: Lens.Lens' CreateServer (Prelude.Maybe Prelude.Text)
createServer_customCertificate :: Lens' CreateServer (Maybe Text)
createServer_customCertificate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateServer' {Maybe Text
customCertificate :: Maybe Text
$sel:customCertificate:CreateServer' :: CreateServer -> Maybe Text
customCertificate} -> Maybe Text
customCertificate) (\s :: CreateServer
s@CreateServer' {} Maybe Text
a -> CreateServer
s {$sel:customCertificate:CreateServer' :: Maybe Text
customCertificate = Maybe Text
a} :: CreateServer)
createServer_customDomain :: Lens.Lens' CreateServer (Prelude.Maybe Prelude.Text)
createServer_customDomain :: Lens' CreateServer (Maybe Text)
createServer_customDomain = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateServer' {Maybe Text
customDomain :: Maybe Text
$sel:customDomain:CreateServer' :: CreateServer -> Maybe Text
customDomain} -> Maybe Text
customDomain) (\s :: CreateServer
s@CreateServer' {} Maybe Text
a -> CreateServer
s {$sel:customDomain:CreateServer' :: Maybe Text
customDomain = Maybe Text
a} :: CreateServer)
createServer_customPrivateKey :: Lens.Lens' CreateServer (Prelude.Maybe Prelude.Text)
createServer_customPrivateKey :: Lens' CreateServer (Maybe Text)
createServer_customPrivateKey = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateServer' {Maybe (Sensitive Text)
customPrivateKey :: Maybe (Sensitive Text)
$sel:customPrivateKey:CreateServer' :: CreateServer -> Maybe (Sensitive Text)
customPrivateKey} -> Maybe (Sensitive Text)
customPrivateKey) (\s :: CreateServer
s@CreateServer' {} Maybe (Sensitive Text)
a -> CreateServer
s {$sel:customPrivateKey:CreateServer' :: Maybe (Sensitive Text)
customPrivateKey = Maybe (Sensitive Text)
a} :: CreateServer) 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 a. Iso' (Sensitive a) a
Data._Sensitive
createServer_disableAutomatedBackup :: Lens.Lens' CreateServer (Prelude.Maybe Prelude.Bool)
createServer_disableAutomatedBackup :: Lens' CreateServer (Maybe Bool)
createServer_disableAutomatedBackup = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateServer' {Maybe Bool
disableAutomatedBackup :: Maybe Bool
$sel:disableAutomatedBackup:CreateServer' :: CreateServer -> Maybe Bool
disableAutomatedBackup} -> Maybe Bool
disableAutomatedBackup) (\s :: CreateServer
s@CreateServer' {} Maybe Bool
a -> CreateServer
s {$sel:disableAutomatedBackup:CreateServer' :: Maybe Bool
disableAutomatedBackup = Maybe Bool
a} :: CreateServer)
createServer_engineAttributes :: Lens.Lens' CreateServer (Prelude.Maybe [EngineAttribute])
createServer_engineAttributes :: Lens' CreateServer (Maybe [EngineAttribute])
createServer_engineAttributes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateServer' {Maybe [EngineAttribute]
engineAttributes :: Maybe [EngineAttribute]
$sel:engineAttributes:CreateServer' :: CreateServer -> Maybe [EngineAttribute]
engineAttributes} -> Maybe [EngineAttribute]
engineAttributes) (\s :: CreateServer
s@CreateServer' {} Maybe [EngineAttribute]
a -> CreateServer
s {$sel:engineAttributes:CreateServer' :: Maybe [EngineAttribute]
engineAttributes = Maybe [EngineAttribute]
a} :: CreateServer) 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
createServer_engineModel :: Lens.Lens' CreateServer (Prelude.Maybe Prelude.Text)
createServer_engineModel :: Lens' CreateServer (Maybe Text)
createServer_engineModel = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateServer' {Maybe Text
engineModel :: Maybe Text
$sel:engineModel:CreateServer' :: CreateServer -> Maybe Text
engineModel} -> Maybe Text
engineModel) (\s :: CreateServer
s@CreateServer' {} Maybe Text
a -> CreateServer
s {$sel:engineModel:CreateServer' :: Maybe Text
engineModel = Maybe Text
a} :: CreateServer)
createServer_engineVersion :: Lens.Lens' CreateServer (Prelude.Maybe Prelude.Text)
createServer_engineVersion :: Lens' CreateServer (Maybe Text)
createServer_engineVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateServer' {Maybe Text
engineVersion :: Maybe Text
$sel:engineVersion:CreateServer' :: CreateServer -> Maybe Text
engineVersion} -> Maybe Text
engineVersion) (\s :: CreateServer
s@CreateServer' {} Maybe Text
a -> CreateServer
s {$sel:engineVersion:CreateServer' :: Maybe Text
engineVersion = Maybe Text
a} :: CreateServer)
createServer_keyPair :: Lens.Lens' CreateServer (Prelude.Maybe Prelude.Text)
createServer_keyPair :: Lens' CreateServer (Maybe Text)
createServer_keyPair = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateServer' {Maybe Text
keyPair :: Maybe Text
$sel:keyPair:CreateServer' :: CreateServer -> Maybe Text
keyPair} -> Maybe Text
keyPair) (\s :: CreateServer
s@CreateServer' {} Maybe Text
a -> CreateServer
s {$sel:keyPair:CreateServer' :: Maybe Text
keyPair = Maybe Text
a} :: CreateServer)
createServer_preferredBackupWindow :: Lens.Lens' CreateServer (Prelude.Maybe Prelude.Text)
createServer_preferredBackupWindow :: Lens' CreateServer (Maybe Text)
createServer_preferredBackupWindow = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateServer' {Maybe Text
preferredBackupWindow :: Maybe Text
$sel:preferredBackupWindow:CreateServer' :: CreateServer -> Maybe Text
preferredBackupWindow} -> Maybe Text
preferredBackupWindow) (\s :: CreateServer
s@CreateServer' {} Maybe Text
a -> CreateServer
s {$sel:preferredBackupWindow:CreateServer' :: Maybe Text
preferredBackupWindow = Maybe Text
a} :: CreateServer)
createServer_preferredMaintenanceWindow :: Lens.Lens' CreateServer (Prelude.Maybe Prelude.Text)
createServer_preferredMaintenanceWindow :: Lens' CreateServer (Maybe Text)
createServer_preferredMaintenanceWindow = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateServer' {Maybe Text
preferredMaintenanceWindow :: Maybe Text
$sel:preferredMaintenanceWindow:CreateServer' :: CreateServer -> Maybe Text
preferredMaintenanceWindow} -> Maybe Text
preferredMaintenanceWindow) (\s :: CreateServer
s@CreateServer' {} Maybe Text
a -> CreateServer
s {$sel:preferredMaintenanceWindow:CreateServer' :: Maybe Text
preferredMaintenanceWindow = Maybe Text
a} :: CreateServer)
createServer_securityGroupIds :: Lens.Lens' CreateServer (Prelude.Maybe [Prelude.Text])
createServer_securityGroupIds :: Lens' CreateServer (Maybe [Text])
createServer_securityGroupIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateServer' {Maybe [Text]
securityGroupIds :: Maybe [Text]
$sel:securityGroupIds:CreateServer' :: CreateServer -> Maybe [Text]
securityGroupIds} -> Maybe [Text]
securityGroupIds) (\s :: CreateServer
s@CreateServer' {} Maybe [Text]
a -> CreateServer
s {$sel:securityGroupIds:CreateServer' :: Maybe [Text]
securityGroupIds = Maybe [Text]
a} :: CreateServer) 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
createServer_subnetIds :: Lens.Lens' CreateServer (Prelude.Maybe [Prelude.Text])
createServer_subnetIds :: Lens' CreateServer (Maybe [Text])
createServer_subnetIds = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateServer' {Maybe [Text]
subnetIds :: Maybe [Text]
$sel:subnetIds:CreateServer' :: CreateServer -> Maybe [Text]
subnetIds} -> Maybe [Text]
subnetIds) (\s :: CreateServer
s@CreateServer' {} Maybe [Text]
a -> CreateServer
s {$sel:subnetIds:CreateServer' :: Maybe [Text]
subnetIds = Maybe [Text]
a} :: CreateServer) 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
createServer_tags :: Lens.Lens' CreateServer (Prelude.Maybe [Tag])
createServer_tags :: Lens' CreateServer (Maybe [Tag])
createServer_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateServer' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateServer' :: CreateServer -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateServer
s@CreateServer' {} Maybe [Tag]
a -> CreateServer
s {$sel:tags:CreateServer' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateServer) 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
createServer_engine :: Lens.Lens' CreateServer Prelude.Text
createServer_engine :: Lens' CreateServer Text
createServer_engine = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateServer' {Text
engine :: Text
$sel:engine:CreateServer' :: CreateServer -> Text
engine} -> Text
engine) (\s :: CreateServer
s@CreateServer' {} Text
a -> CreateServer
s {$sel:engine:CreateServer' :: Text
engine = Text
a} :: CreateServer)
createServer_serverName :: Lens.Lens' CreateServer Prelude.Text
createServer_serverName :: Lens' CreateServer Text
createServer_serverName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateServer' {Text
serverName :: Text
$sel:serverName:CreateServer' :: CreateServer -> Text
serverName} -> Text
serverName) (\s :: CreateServer
s@CreateServer' {} Text
a -> CreateServer
s {$sel:serverName:CreateServer' :: Text
serverName = Text
a} :: CreateServer)
createServer_instanceProfileArn :: Lens.Lens' CreateServer Prelude.Text
createServer_instanceProfileArn :: Lens' CreateServer Text
createServer_instanceProfileArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateServer' {Text
instanceProfileArn :: Text
$sel:instanceProfileArn:CreateServer' :: CreateServer -> Text
instanceProfileArn} -> Text
instanceProfileArn) (\s :: CreateServer
s@CreateServer' {} Text
a -> CreateServer
s {$sel:instanceProfileArn:CreateServer' :: Text
instanceProfileArn = Text
a} :: CreateServer)
createServer_instanceType :: Lens.Lens' CreateServer Prelude.Text
createServer_instanceType :: Lens' CreateServer Text
createServer_instanceType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateServer' {Text
instanceType :: Text
$sel:instanceType:CreateServer' :: CreateServer -> Text
instanceType} -> Text
instanceType) (\s :: CreateServer
s@CreateServer' {} Text
a -> CreateServer
s {$sel:instanceType:CreateServer' :: Text
instanceType = Text
a} :: CreateServer)
createServer_serviceRoleArn :: Lens.Lens' CreateServer Prelude.Text
createServer_serviceRoleArn :: Lens' CreateServer Text
createServer_serviceRoleArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateServer' {Text
serviceRoleArn :: Text
$sel:serviceRoleArn:CreateServer' :: CreateServer -> Text
serviceRoleArn} -> Text
serviceRoleArn) (\s :: CreateServer
s@CreateServer' {} Text
a -> CreateServer
s {$sel:serviceRoleArn:CreateServer' :: Text
serviceRoleArn = Text
a} :: CreateServer)
instance Core.AWSRequest CreateServer where
type AWSResponse CreateServer = CreateServerResponse
request :: (Service -> Service) -> CreateServer -> Request CreateServer
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 CreateServer
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateServer)))
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 ->
Maybe Server -> Int -> CreateServerResponse
CreateServerResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"Server")
forall (f :: * -> *) a b. Applicative f => 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))
)
instance Prelude.Hashable CreateServer where
hashWithSalt :: Int -> CreateServer -> Int
hashWithSalt Int
_salt CreateServer' {Maybe Bool
Maybe Natural
Maybe [Text]
Maybe [EngineAttribute]
Maybe [Tag]
Maybe Text
Maybe (Sensitive Text)
Text
serviceRoleArn :: Text
instanceType :: Text
instanceProfileArn :: Text
serverName :: Text
engine :: Text
tags :: Maybe [Tag]
subnetIds :: Maybe [Text]
securityGroupIds :: Maybe [Text]
preferredMaintenanceWindow :: Maybe Text
preferredBackupWindow :: Maybe Text
keyPair :: Maybe Text
engineVersion :: Maybe Text
engineModel :: Maybe Text
engineAttributes :: Maybe [EngineAttribute]
disableAutomatedBackup :: Maybe Bool
customPrivateKey :: Maybe (Sensitive Text)
customDomain :: Maybe Text
customCertificate :: Maybe Text
backupRetentionCount :: Maybe Natural
backupId :: Maybe Text
associatePublicIpAddress :: Maybe Bool
$sel:serviceRoleArn:CreateServer' :: CreateServer -> Text
$sel:instanceType:CreateServer' :: CreateServer -> Text
$sel:instanceProfileArn:CreateServer' :: CreateServer -> Text
$sel:serverName:CreateServer' :: CreateServer -> Text
$sel:engine:CreateServer' :: CreateServer -> Text
$sel:tags:CreateServer' :: CreateServer -> Maybe [Tag]
$sel:subnetIds:CreateServer' :: CreateServer -> Maybe [Text]
$sel:securityGroupIds:CreateServer' :: CreateServer -> Maybe [Text]
$sel:preferredMaintenanceWindow:CreateServer' :: CreateServer -> Maybe Text
$sel:preferredBackupWindow:CreateServer' :: CreateServer -> Maybe Text
$sel:keyPair:CreateServer' :: CreateServer -> Maybe Text
$sel:engineVersion:CreateServer' :: CreateServer -> Maybe Text
$sel:engineModel:CreateServer' :: CreateServer -> Maybe Text
$sel:engineAttributes:CreateServer' :: CreateServer -> Maybe [EngineAttribute]
$sel:disableAutomatedBackup:CreateServer' :: CreateServer -> Maybe Bool
$sel:customPrivateKey:CreateServer' :: CreateServer -> Maybe (Sensitive Text)
$sel:customDomain:CreateServer' :: CreateServer -> Maybe Text
$sel:customCertificate:CreateServer' :: CreateServer -> Maybe Text
$sel:backupRetentionCount:CreateServer' :: CreateServer -> Maybe Natural
$sel:backupId:CreateServer' :: CreateServer -> Maybe Text
$sel:associatePublicIpAddress:CreateServer' :: CreateServer -> Maybe Bool
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
associatePublicIpAddress
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
backupId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
backupRetentionCount
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
customCertificate
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
customDomain
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive Text)
customPrivateKey
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
disableAutomatedBackup
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [EngineAttribute]
engineAttributes
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
engineModel
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
engineVersion
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
keyPair
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
preferredBackupWindow
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
preferredMaintenanceWindow
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
securityGroupIds
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
subnetIds
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Tag]
tags
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
engine
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
serverName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
instanceProfileArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
instanceType
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
serviceRoleArn
instance Prelude.NFData CreateServer where
rnf :: CreateServer -> ()
rnf CreateServer' {Maybe Bool
Maybe Natural
Maybe [Text]
Maybe [EngineAttribute]
Maybe [Tag]
Maybe Text
Maybe (Sensitive Text)
Text
serviceRoleArn :: Text
instanceType :: Text
instanceProfileArn :: Text
serverName :: Text
engine :: Text
tags :: Maybe [Tag]
subnetIds :: Maybe [Text]
securityGroupIds :: Maybe [Text]
preferredMaintenanceWindow :: Maybe Text
preferredBackupWindow :: Maybe Text
keyPair :: Maybe Text
engineVersion :: Maybe Text
engineModel :: Maybe Text
engineAttributes :: Maybe [EngineAttribute]
disableAutomatedBackup :: Maybe Bool
customPrivateKey :: Maybe (Sensitive Text)
customDomain :: Maybe Text
customCertificate :: Maybe Text
backupRetentionCount :: Maybe Natural
backupId :: Maybe Text
associatePublicIpAddress :: Maybe Bool
$sel:serviceRoleArn:CreateServer' :: CreateServer -> Text
$sel:instanceType:CreateServer' :: CreateServer -> Text
$sel:instanceProfileArn:CreateServer' :: CreateServer -> Text
$sel:serverName:CreateServer' :: CreateServer -> Text
$sel:engine:CreateServer' :: CreateServer -> Text
$sel:tags:CreateServer' :: CreateServer -> Maybe [Tag]
$sel:subnetIds:CreateServer' :: CreateServer -> Maybe [Text]
$sel:securityGroupIds:CreateServer' :: CreateServer -> Maybe [Text]
$sel:preferredMaintenanceWindow:CreateServer' :: CreateServer -> Maybe Text
$sel:preferredBackupWindow:CreateServer' :: CreateServer -> Maybe Text
$sel:keyPair:CreateServer' :: CreateServer -> Maybe Text
$sel:engineVersion:CreateServer' :: CreateServer -> Maybe Text
$sel:engineModel:CreateServer' :: CreateServer -> Maybe Text
$sel:engineAttributes:CreateServer' :: CreateServer -> Maybe [EngineAttribute]
$sel:disableAutomatedBackup:CreateServer' :: CreateServer -> Maybe Bool
$sel:customPrivateKey:CreateServer' :: CreateServer -> Maybe (Sensitive Text)
$sel:customDomain:CreateServer' :: CreateServer -> Maybe Text
$sel:customCertificate:CreateServer' :: CreateServer -> Maybe Text
$sel:backupRetentionCount:CreateServer' :: CreateServer -> Maybe Natural
$sel:backupId:CreateServer' :: CreateServer -> Maybe Text
$sel:associatePublicIpAddress:CreateServer' :: CreateServer -> Maybe Bool
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
associatePublicIpAddress
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
backupId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
backupRetentionCount
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
customCertificate
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
customDomain
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive Text)
customPrivateKey
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
disableAutomatedBackup
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [EngineAttribute]
engineAttributes
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
engineModel
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
engineVersion
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
keyPair
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
preferredBackupWindow
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
preferredMaintenanceWindow
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
securityGroupIds
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
subnetIds
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Tag]
tags
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
engine
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
serverName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
instanceProfileArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
instanceType
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
serviceRoleArn
instance Data.ToHeaders CreateServer where
toHeaders :: CreateServer -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"OpsWorksCM_V2016_11_01.CreateServer" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON CreateServer where
toJSON :: CreateServer -> Value
toJSON CreateServer' {Maybe Bool
Maybe Natural
Maybe [Text]
Maybe [EngineAttribute]
Maybe [Tag]
Maybe Text
Maybe (Sensitive Text)
Text
serviceRoleArn :: Text
instanceType :: Text
instanceProfileArn :: Text
serverName :: Text
engine :: Text
tags :: Maybe [Tag]
subnetIds :: Maybe [Text]
securityGroupIds :: Maybe [Text]
preferredMaintenanceWindow :: Maybe Text
preferredBackupWindow :: Maybe Text
keyPair :: Maybe Text
engineVersion :: Maybe Text
engineModel :: Maybe Text
engineAttributes :: Maybe [EngineAttribute]
disableAutomatedBackup :: Maybe Bool
customPrivateKey :: Maybe (Sensitive Text)
customDomain :: Maybe Text
customCertificate :: Maybe Text
backupRetentionCount :: Maybe Natural
backupId :: Maybe Text
associatePublicIpAddress :: Maybe Bool
$sel:serviceRoleArn:CreateServer' :: CreateServer -> Text
$sel:instanceType:CreateServer' :: CreateServer -> Text
$sel:instanceProfileArn:CreateServer' :: CreateServer -> Text
$sel:serverName:CreateServer' :: CreateServer -> Text
$sel:engine:CreateServer' :: CreateServer -> Text
$sel:tags:CreateServer' :: CreateServer -> Maybe [Tag]
$sel:subnetIds:CreateServer' :: CreateServer -> Maybe [Text]
$sel:securityGroupIds:CreateServer' :: CreateServer -> Maybe [Text]
$sel:preferredMaintenanceWindow:CreateServer' :: CreateServer -> Maybe Text
$sel:preferredBackupWindow:CreateServer' :: CreateServer -> Maybe Text
$sel:keyPair:CreateServer' :: CreateServer -> Maybe Text
$sel:engineVersion:CreateServer' :: CreateServer -> Maybe Text
$sel:engineModel:CreateServer' :: CreateServer -> Maybe Text
$sel:engineAttributes:CreateServer' :: CreateServer -> Maybe [EngineAttribute]
$sel:disableAutomatedBackup:CreateServer' :: CreateServer -> Maybe Bool
$sel:customPrivateKey:CreateServer' :: CreateServer -> Maybe (Sensitive Text)
$sel:customDomain:CreateServer' :: CreateServer -> Maybe Text
$sel:customCertificate:CreateServer' :: CreateServer -> Maybe Text
$sel:backupRetentionCount:CreateServer' :: CreateServer -> Maybe Natural
$sel:backupId:CreateServer' :: CreateServer -> Maybe Text
$sel:associatePublicIpAddress:CreateServer' :: CreateServer -> Maybe Bool
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"AssociatePublicIpAddress" 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 Bool
associatePublicIpAddress,
(Key
"BackupId" 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
backupId,
(Key
"BackupRetentionCount" 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 Natural
backupRetentionCount,
(Key
"CustomCertificate" 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
customCertificate,
(Key
"CustomDomain" 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
customDomain,
(Key
"CustomPrivateKey" 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 (Sensitive Text)
customPrivateKey,
(Key
"DisableAutomatedBackup" 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 Bool
disableAutomatedBackup,
(Key
"EngineAttributes" 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 [EngineAttribute]
engineAttributes,
(Key
"EngineModel" 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
engineModel,
(Key
"EngineVersion" 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
engineVersion,
(Key
"KeyPair" 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
keyPair,
(Key
"PreferredBackupWindow" 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
preferredBackupWindow,
(Key
"PreferredMaintenanceWindow" 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
preferredMaintenanceWindow,
(Key
"SecurityGroupIds" 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]
securityGroupIds,
(Key
"SubnetIds" 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]
subnetIds,
(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 [Tag]
tags,
forall a. a -> Maybe a
Prelude.Just (Key
"Engine" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
engine),
forall a. a -> Maybe a
Prelude.Just (Key
"ServerName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
serverName),
forall a. a -> Maybe a
Prelude.Just
(Key
"InstanceProfileArn" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
instanceProfileArn),
forall a. a -> Maybe a
Prelude.Just (Key
"InstanceType" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
instanceType),
forall a. a -> Maybe a
Prelude.Just
(Key
"ServiceRoleArn" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
serviceRoleArn)
]
)
instance Data.ToPath CreateServer where
toPath :: CreateServer -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery CreateServer where
toQuery :: CreateServer -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data CreateServerResponse = CreateServerResponse'
{
CreateServerResponse -> Maybe Server
server :: Prelude.Maybe Server,
CreateServerResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateServerResponse -> CreateServerResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateServerResponse -> CreateServerResponse -> Bool
$c/= :: CreateServerResponse -> CreateServerResponse -> Bool
== :: CreateServerResponse -> CreateServerResponse -> Bool
$c== :: CreateServerResponse -> CreateServerResponse -> Bool
Prelude.Eq, Int -> CreateServerResponse -> ShowS
[CreateServerResponse] -> ShowS
CreateServerResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateServerResponse] -> ShowS
$cshowList :: [CreateServerResponse] -> ShowS
show :: CreateServerResponse -> String
$cshow :: CreateServerResponse -> String
showsPrec :: Int -> CreateServerResponse -> ShowS
$cshowsPrec :: Int -> CreateServerResponse -> ShowS
Prelude.Show, forall x. Rep CreateServerResponse x -> CreateServerResponse
forall x. CreateServerResponse -> Rep CreateServerResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateServerResponse x -> CreateServerResponse
$cfrom :: forall x. CreateServerResponse -> Rep CreateServerResponse x
Prelude.Generic)
newCreateServerResponse ::
Prelude.Int ->
CreateServerResponse
newCreateServerResponse :: Int -> CreateServerResponse
newCreateServerResponse Int
pHttpStatus_ =
CreateServerResponse'
{ $sel:server:CreateServerResponse' :: Maybe Server
server = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateServerResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createServerResponse_server :: Lens.Lens' CreateServerResponse (Prelude.Maybe Server)
createServerResponse_server :: Lens' CreateServerResponse (Maybe Server)
createServerResponse_server = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateServerResponse' {Maybe Server
server :: Maybe Server
$sel:server:CreateServerResponse' :: CreateServerResponse -> Maybe Server
server} -> Maybe Server
server) (\s :: CreateServerResponse
s@CreateServerResponse' {} Maybe Server
a -> CreateServerResponse
s {$sel:server:CreateServerResponse' :: Maybe Server
server = Maybe Server
a} :: CreateServerResponse)
createServerResponse_httpStatus :: Lens.Lens' CreateServerResponse Prelude.Int
createServerResponse_httpStatus :: Lens' CreateServerResponse Int
createServerResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateServerResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateServerResponse' :: CreateServerResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateServerResponse
s@CreateServerResponse' {} Int
a -> CreateServerResponse
s {$sel:httpStatus:CreateServerResponse' :: Int
httpStatus = Int
a} :: CreateServerResponse)
instance Prelude.NFData CreateServerResponse where
rnf :: CreateServerResponse -> ()
rnf CreateServerResponse' {Int
Maybe Server
httpStatus :: Int
server :: Maybe Server
$sel:httpStatus:CreateServerResponse' :: CreateServerResponse -> Int
$sel:server:CreateServerResponse' :: CreateServerResponse -> Maybe Server
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Server
server
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus