{-# 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.GameLift.CreateFleet
(
CreateFleet (..),
newCreateFleet,
createFleet_serverLaunchParameters,
createFleet_logPaths,
createFleet_peerVpcId,
createFleet_buildId,
createFleet_fleetType,
createFleet_peerVpcAwsAccountId,
createFleet_eC2InboundPermissions,
createFleet_runtimeConfiguration,
createFleet_newGameSessionProtectionPolicy,
createFleet_scriptId,
createFleet_certificateConfiguration,
createFleet_serverLaunchPath,
createFleet_instanceRoleArn,
createFleet_metricGroups,
createFleet_description,
createFleet_resourceCreationLimitPolicy,
createFleet_locations,
createFleet_tags,
createFleet_name,
createFleet_eC2InstanceType,
CreateFleetResponse (..),
newCreateFleetResponse,
createFleetResponse_locationStates,
createFleetResponse_fleetAttributes,
createFleetResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.GameLift.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CreateFleet = CreateFleet'
{
CreateFleet -> Maybe Text
serverLaunchParameters :: Prelude.Maybe Prelude.Text,
CreateFleet -> Maybe [Text]
logPaths :: Prelude.Maybe [Prelude.Text],
CreateFleet -> Maybe Text
peerVpcId :: Prelude.Maybe Prelude.Text,
CreateFleet -> Maybe Text
buildId :: Prelude.Maybe Prelude.Text,
CreateFleet -> Maybe FleetType
fleetType :: Prelude.Maybe FleetType,
CreateFleet -> Maybe Text
peerVpcAwsAccountId :: Prelude.Maybe Prelude.Text,
CreateFleet -> Maybe [IpPermission]
eC2InboundPermissions :: Prelude.Maybe [IpPermission],
CreateFleet -> Maybe RuntimeConfiguration
runtimeConfiguration :: Prelude.Maybe RuntimeConfiguration,
CreateFleet -> Maybe ProtectionPolicy
newGameSessionProtectionPolicy' :: Prelude.Maybe ProtectionPolicy,
CreateFleet -> Maybe Text
scriptId :: Prelude.Maybe Prelude.Text,
CreateFleet -> Maybe CertificateConfiguration
certificateConfiguration :: Prelude.Maybe CertificateConfiguration,
CreateFleet -> Maybe Text
serverLaunchPath :: Prelude.Maybe Prelude.Text,
CreateFleet -> Maybe Text
instanceRoleArn :: Prelude.Maybe Prelude.Text,
CreateFleet -> Maybe [Text]
metricGroups :: Prelude.Maybe [Prelude.Text],
CreateFleet -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
CreateFleet -> Maybe ResourceCreationLimitPolicy
resourceCreationLimitPolicy :: Prelude.Maybe ResourceCreationLimitPolicy,
CreateFleet -> Maybe (NonEmpty LocationConfiguration)
locations :: Prelude.Maybe (Prelude.NonEmpty LocationConfiguration),
CreateFleet -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreateFleet -> Text
name :: Prelude.Text,
CreateFleet -> EC2InstanceType
eC2InstanceType :: EC2InstanceType
}
deriving (CreateFleet -> CreateFleet -> Bool
(CreateFleet -> CreateFleet -> Bool)
-> (CreateFleet -> CreateFleet -> Bool) -> Eq CreateFleet
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateFleet -> CreateFleet -> Bool
$c/= :: CreateFleet -> CreateFleet -> Bool
== :: CreateFleet -> CreateFleet -> Bool
$c== :: CreateFleet -> CreateFleet -> Bool
Prelude.Eq, ReadPrec [CreateFleet]
ReadPrec CreateFleet
Int -> ReadS CreateFleet
ReadS [CreateFleet]
(Int -> ReadS CreateFleet)
-> ReadS [CreateFleet]
-> ReadPrec CreateFleet
-> ReadPrec [CreateFleet]
-> Read CreateFleet
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateFleet]
$creadListPrec :: ReadPrec [CreateFleet]
readPrec :: ReadPrec CreateFleet
$creadPrec :: ReadPrec CreateFleet
readList :: ReadS [CreateFleet]
$creadList :: ReadS [CreateFleet]
readsPrec :: Int -> ReadS CreateFleet
$creadsPrec :: Int -> ReadS CreateFleet
Prelude.Read, Int -> CreateFleet -> ShowS
[CreateFleet] -> ShowS
CreateFleet -> String
(Int -> CreateFleet -> ShowS)
-> (CreateFleet -> String)
-> ([CreateFleet] -> ShowS)
-> Show CreateFleet
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateFleet] -> ShowS
$cshowList :: [CreateFleet] -> ShowS
show :: CreateFleet -> String
$cshow :: CreateFleet -> String
showsPrec :: Int -> CreateFleet -> ShowS
$cshowsPrec :: Int -> CreateFleet -> ShowS
Prelude.Show, (forall x. CreateFleet -> Rep CreateFleet x)
-> (forall x. Rep CreateFleet x -> CreateFleet)
-> Generic CreateFleet
forall x. Rep CreateFleet x -> CreateFleet
forall x. CreateFleet -> Rep CreateFleet x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateFleet x -> CreateFleet
$cfrom :: forall x. CreateFleet -> Rep CreateFleet x
Prelude.Generic)
newCreateFleet ::
Prelude.Text ->
EC2InstanceType ->
CreateFleet
newCreateFleet :: Text -> EC2InstanceType -> CreateFleet
newCreateFleet Text
pName_ EC2InstanceType
pEC2InstanceType_ =
CreateFleet' :: Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe FleetType
-> Maybe Text
-> Maybe [IpPermission]
-> Maybe RuntimeConfiguration
-> Maybe ProtectionPolicy
-> Maybe Text
-> Maybe CertificateConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe ResourceCreationLimitPolicy
-> Maybe (NonEmpty LocationConfiguration)
-> Maybe [Tag]
-> Text
-> EC2InstanceType
-> CreateFleet
CreateFleet'
{ $sel:serverLaunchParameters:CreateFleet' :: Maybe Text
serverLaunchParameters =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:logPaths:CreateFleet' :: Maybe [Text]
logPaths = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:peerVpcId:CreateFleet' :: Maybe Text
peerVpcId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:buildId:CreateFleet' :: Maybe Text
buildId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:fleetType:CreateFleet' :: Maybe FleetType
fleetType = Maybe FleetType
forall a. Maybe a
Prelude.Nothing,
$sel:peerVpcAwsAccountId:CreateFleet' :: Maybe Text
peerVpcAwsAccountId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:eC2InboundPermissions:CreateFleet' :: Maybe [IpPermission]
eC2InboundPermissions = Maybe [IpPermission]
forall a. Maybe a
Prelude.Nothing,
$sel:runtimeConfiguration:CreateFleet' :: Maybe RuntimeConfiguration
runtimeConfiguration = Maybe RuntimeConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:newGameSessionProtectionPolicy':CreateFleet' :: Maybe ProtectionPolicy
newGameSessionProtectionPolicy' = Maybe ProtectionPolicy
forall a. Maybe a
Prelude.Nothing,
$sel:scriptId:CreateFleet' :: Maybe Text
scriptId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:certificateConfiguration:CreateFleet' :: Maybe CertificateConfiguration
certificateConfiguration = Maybe CertificateConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:serverLaunchPath:CreateFleet' :: Maybe Text
serverLaunchPath = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:instanceRoleArn:CreateFleet' :: Maybe Text
instanceRoleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:metricGroups:CreateFleet' :: Maybe [Text]
metricGroups = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:description:CreateFleet' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:resourceCreationLimitPolicy:CreateFleet' :: Maybe ResourceCreationLimitPolicy
resourceCreationLimitPolicy = Maybe ResourceCreationLimitPolicy
forall a. Maybe a
Prelude.Nothing,
$sel:locations:CreateFleet' :: Maybe (NonEmpty LocationConfiguration)
locations = Maybe (NonEmpty LocationConfiguration)
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateFleet' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:name:CreateFleet' :: Text
name = Text
pName_,
$sel:eC2InstanceType:CreateFleet' :: EC2InstanceType
eC2InstanceType = EC2InstanceType
pEC2InstanceType_
}
createFleet_serverLaunchParameters :: Lens.Lens' CreateFleet (Prelude.Maybe Prelude.Text)
createFleet_serverLaunchParameters :: (Maybe Text -> f (Maybe Text)) -> CreateFleet -> f CreateFleet
createFleet_serverLaunchParameters = (CreateFleet -> Maybe Text)
-> (CreateFleet -> Maybe Text -> CreateFleet)
-> Lens CreateFleet CreateFleet (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFleet' {Maybe Text
serverLaunchParameters :: Maybe Text
$sel:serverLaunchParameters:CreateFleet' :: CreateFleet -> Maybe Text
serverLaunchParameters} -> Maybe Text
serverLaunchParameters) (\s :: CreateFleet
s@CreateFleet' {} Maybe Text
a -> CreateFleet
s {$sel:serverLaunchParameters:CreateFleet' :: Maybe Text
serverLaunchParameters = Maybe Text
a} :: CreateFleet)
createFleet_logPaths :: Lens.Lens' CreateFleet (Prelude.Maybe [Prelude.Text])
createFleet_logPaths :: (Maybe [Text] -> f (Maybe [Text])) -> CreateFleet -> f CreateFleet
createFleet_logPaths = (CreateFleet -> Maybe [Text])
-> (CreateFleet -> Maybe [Text] -> CreateFleet)
-> Lens CreateFleet CreateFleet (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFleet' {Maybe [Text]
logPaths :: Maybe [Text]
$sel:logPaths:CreateFleet' :: CreateFleet -> Maybe [Text]
logPaths} -> Maybe [Text]
logPaths) (\s :: CreateFleet
s@CreateFleet' {} Maybe [Text]
a -> CreateFleet
s {$sel:logPaths:CreateFleet' :: Maybe [Text]
logPaths = Maybe [Text]
a} :: CreateFleet) ((Maybe [Text] -> f (Maybe [Text]))
-> CreateFleet -> f CreateFleet)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> CreateFleet
-> f CreateFleet
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createFleet_peerVpcId :: Lens.Lens' CreateFleet (Prelude.Maybe Prelude.Text)
createFleet_peerVpcId :: (Maybe Text -> f (Maybe Text)) -> CreateFleet -> f CreateFleet
createFleet_peerVpcId = (CreateFleet -> Maybe Text)
-> (CreateFleet -> Maybe Text -> CreateFleet)
-> Lens CreateFleet CreateFleet (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFleet' {Maybe Text
peerVpcId :: Maybe Text
$sel:peerVpcId:CreateFleet' :: CreateFleet -> Maybe Text
peerVpcId} -> Maybe Text
peerVpcId) (\s :: CreateFleet
s@CreateFleet' {} Maybe Text
a -> CreateFleet
s {$sel:peerVpcId:CreateFleet' :: Maybe Text
peerVpcId = Maybe Text
a} :: CreateFleet)
createFleet_buildId :: Lens.Lens' CreateFleet (Prelude.Maybe Prelude.Text)
createFleet_buildId :: (Maybe Text -> f (Maybe Text)) -> CreateFleet -> f CreateFleet
createFleet_buildId = (CreateFleet -> Maybe Text)
-> (CreateFleet -> Maybe Text -> CreateFleet)
-> Lens CreateFleet CreateFleet (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFleet' {Maybe Text
buildId :: Maybe Text
$sel:buildId:CreateFleet' :: CreateFleet -> Maybe Text
buildId} -> Maybe Text
buildId) (\s :: CreateFleet
s@CreateFleet' {} Maybe Text
a -> CreateFleet
s {$sel:buildId:CreateFleet' :: Maybe Text
buildId = Maybe Text
a} :: CreateFleet)
createFleet_fleetType :: Lens.Lens' CreateFleet (Prelude.Maybe FleetType)
createFleet_fleetType :: (Maybe FleetType -> f (Maybe FleetType))
-> CreateFleet -> f CreateFleet
createFleet_fleetType = (CreateFleet -> Maybe FleetType)
-> (CreateFleet -> Maybe FleetType -> CreateFleet)
-> Lens CreateFleet CreateFleet (Maybe FleetType) (Maybe FleetType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFleet' {Maybe FleetType
fleetType :: Maybe FleetType
$sel:fleetType:CreateFleet' :: CreateFleet -> Maybe FleetType
fleetType} -> Maybe FleetType
fleetType) (\s :: CreateFleet
s@CreateFleet' {} Maybe FleetType
a -> CreateFleet
s {$sel:fleetType:CreateFleet' :: Maybe FleetType
fleetType = Maybe FleetType
a} :: CreateFleet)
createFleet_peerVpcAwsAccountId :: Lens.Lens' CreateFleet (Prelude.Maybe Prelude.Text)
createFleet_peerVpcAwsAccountId :: (Maybe Text -> f (Maybe Text)) -> CreateFleet -> f CreateFleet
createFleet_peerVpcAwsAccountId = (CreateFleet -> Maybe Text)
-> (CreateFleet -> Maybe Text -> CreateFleet)
-> Lens CreateFleet CreateFleet (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFleet' {Maybe Text
peerVpcAwsAccountId :: Maybe Text
$sel:peerVpcAwsAccountId:CreateFleet' :: CreateFleet -> Maybe Text
peerVpcAwsAccountId} -> Maybe Text
peerVpcAwsAccountId) (\s :: CreateFleet
s@CreateFleet' {} Maybe Text
a -> CreateFleet
s {$sel:peerVpcAwsAccountId:CreateFleet' :: Maybe Text
peerVpcAwsAccountId = Maybe Text
a} :: CreateFleet)
createFleet_eC2InboundPermissions :: Lens.Lens' CreateFleet (Prelude.Maybe [IpPermission])
createFleet_eC2InboundPermissions :: (Maybe [IpPermission] -> f (Maybe [IpPermission]))
-> CreateFleet -> f CreateFleet
createFleet_eC2InboundPermissions = (CreateFleet -> Maybe [IpPermission])
-> (CreateFleet -> Maybe [IpPermission] -> CreateFleet)
-> Lens
CreateFleet
CreateFleet
(Maybe [IpPermission])
(Maybe [IpPermission])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFleet' {Maybe [IpPermission]
eC2InboundPermissions :: Maybe [IpPermission]
$sel:eC2InboundPermissions:CreateFleet' :: CreateFleet -> Maybe [IpPermission]
eC2InboundPermissions} -> Maybe [IpPermission]
eC2InboundPermissions) (\s :: CreateFleet
s@CreateFleet' {} Maybe [IpPermission]
a -> CreateFleet
s {$sel:eC2InboundPermissions:CreateFleet' :: Maybe [IpPermission]
eC2InboundPermissions = Maybe [IpPermission]
a} :: CreateFleet) ((Maybe [IpPermission] -> f (Maybe [IpPermission]))
-> CreateFleet -> f CreateFleet)
-> ((Maybe [IpPermission] -> f (Maybe [IpPermission]))
-> Maybe [IpPermission] -> f (Maybe [IpPermission]))
-> (Maybe [IpPermission] -> f (Maybe [IpPermission]))
-> CreateFleet
-> f CreateFleet
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [IpPermission] [IpPermission] [IpPermission] [IpPermission]
-> Iso
(Maybe [IpPermission])
(Maybe [IpPermission])
(Maybe [IpPermission])
(Maybe [IpPermission])
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 [IpPermission] [IpPermission] [IpPermission] [IpPermission]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createFleet_runtimeConfiguration :: Lens.Lens' CreateFleet (Prelude.Maybe RuntimeConfiguration)
createFleet_runtimeConfiguration :: (Maybe RuntimeConfiguration -> f (Maybe RuntimeConfiguration))
-> CreateFleet -> f CreateFleet
createFleet_runtimeConfiguration = (CreateFleet -> Maybe RuntimeConfiguration)
-> (CreateFleet -> Maybe RuntimeConfiguration -> CreateFleet)
-> Lens
CreateFleet
CreateFleet
(Maybe RuntimeConfiguration)
(Maybe RuntimeConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFleet' {Maybe RuntimeConfiguration
runtimeConfiguration :: Maybe RuntimeConfiguration
$sel:runtimeConfiguration:CreateFleet' :: CreateFleet -> Maybe RuntimeConfiguration
runtimeConfiguration} -> Maybe RuntimeConfiguration
runtimeConfiguration) (\s :: CreateFleet
s@CreateFleet' {} Maybe RuntimeConfiguration
a -> CreateFleet
s {$sel:runtimeConfiguration:CreateFleet' :: Maybe RuntimeConfiguration
runtimeConfiguration = Maybe RuntimeConfiguration
a} :: CreateFleet)
createFleet_newGameSessionProtectionPolicy :: Lens.Lens' CreateFleet (Prelude.Maybe ProtectionPolicy)
createFleet_newGameSessionProtectionPolicy :: (Maybe ProtectionPolicy -> f (Maybe ProtectionPolicy))
-> CreateFleet -> f CreateFleet
createFleet_newGameSessionProtectionPolicy = (CreateFleet -> Maybe ProtectionPolicy)
-> (CreateFleet -> Maybe ProtectionPolicy -> CreateFleet)
-> Lens
CreateFleet
CreateFleet
(Maybe ProtectionPolicy)
(Maybe ProtectionPolicy)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFleet' {Maybe ProtectionPolicy
newGameSessionProtectionPolicy' :: Maybe ProtectionPolicy
$sel:newGameSessionProtectionPolicy':CreateFleet' :: CreateFleet -> Maybe ProtectionPolicy
newGameSessionProtectionPolicy'} -> Maybe ProtectionPolicy
newGameSessionProtectionPolicy') (\s :: CreateFleet
s@CreateFleet' {} Maybe ProtectionPolicy
a -> CreateFleet
s {$sel:newGameSessionProtectionPolicy':CreateFleet' :: Maybe ProtectionPolicy
newGameSessionProtectionPolicy' = Maybe ProtectionPolicy
a} :: CreateFleet)
createFleet_scriptId :: Lens.Lens' CreateFleet (Prelude.Maybe Prelude.Text)
createFleet_scriptId :: (Maybe Text -> f (Maybe Text)) -> CreateFleet -> f CreateFleet
createFleet_scriptId = (CreateFleet -> Maybe Text)
-> (CreateFleet -> Maybe Text -> CreateFleet)
-> Lens CreateFleet CreateFleet (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFleet' {Maybe Text
scriptId :: Maybe Text
$sel:scriptId:CreateFleet' :: CreateFleet -> Maybe Text
scriptId} -> Maybe Text
scriptId) (\s :: CreateFleet
s@CreateFleet' {} Maybe Text
a -> CreateFleet
s {$sel:scriptId:CreateFleet' :: Maybe Text
scriptId = Maybe Text
a} :: CreateFleet)
createFleet_certificateConfiguration :: Lens.Lens' CreateFleet (Prelude.Maybe CertificateConfiguration)
createFleet_certificateConfiguration :: (Maybe CertificateConfiguration
-> f (Maybe CertificateConfiguration))
-> CreateFleet -> f CreateFleet
createFleet_certificateConfiguration = (CreateFleet -> Maybe CertificateConfiguration)
-> (CreateFleet -> Maybe CertificateConfiguration -> CreateFleet)
-> Lens
CreateFleet
CreateFleet
(Maybe CertificateConfiguration)
(Maybe CertificateConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFleet' {Maybe CertificateConfiguration
certificateConfiguration :: Maybe CertificateConfiguration
$sel:certificateConfiguration:CreateFleet' :: CreateFleet -> Maybe CertificateConfiguration
certificateConfiguration} -> Maybe CertificateConfiguration
certificateConfiguration) (\s :: CreateFleet
s@CreateFleet' {} Maybe CertificateConfiguration
a -> CreateFleet
s {$sel:certificateConfiguration:CreateFleet' :: Maybe CertificateConfiguration
certificateConfiguration = Maybe CertificateConfiguration
a} :: CreateFleet)
createFleet_serverLaunchPath :: Lens.Lens' CreateFleet (Prelude.Maybe Prelude.Text)
createFleet_serverLaunchPath :: (Maybe Text -> f (Maybe Text)) -> CreateFleet -> f CreateFleet
createFleet_serverLaunchPath = (CreateFleet -> Maybe Text)
-> (CreateFleet -> Maybe Text -> CreateFleet)
-> Lens CreateFleet CreateFleet (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFleet' {Maybe Text
serverLaunchPath :: Maybe Text
$sel:serverLaunchPath:CreateFleet' :: CreateFleet -> Maybe Text
serverLaunchPath} -> Maybe Text
serverLaunchPath) (\s :: CreateFleet
s@CreateFleet' {} Maybe Text
a -> CreateFleet
s {$sel:serverLaunchPath:CreateFleet' :: Maybe Text
serverLaunchPath = Maybe Text
a} :: CreateFleet)
createFleet_instanceRoleArn :: Lens.Lens' CreateFleet (Prelude.Maybe Prelude.Text)
createFleet_instanceRoleArn :: (Maybe Text -> f (Maybe Text)) -> CreateFleet -> f CreateFleet
createFleet_instanceRoleArn = (CreateFleet -> Maybe Text)
-> (CreateFleet -> Maybe Text -> CreateFleet)
-> Lens CreateFleet CreateFleet (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFleet' {Maybe Text
instanceRoleArn :: Maybe Text
$sel:instanceRoleArn:CreateFleet' :: CreateFleet -> Maybe Text
instanceRoleArn} -> Maybe Text
instanceRoleArn) (\s :: CreateFleet
s@CreateFleet' {} Maybe Text
a -> CreateFleet
s {$sel:instanceRoleArn:CreateFleet' :: Maybe Text
instanceRoleArn = Maybe Text
a} :: CreateFleet)
createFleet_metricGroups :: Lens.Lens' CreateFleet (Prelude.Maybe [Prelude.Text])
createFleet_metricGroups :: (Maybe [Text] -> f (Maybe [Text])) -> CreateFleet -> f CreateFleet
createFleet_metricGroups = (CreateFleet -> Maybe [Text])
-> (CreateFleet -> Maybe [Text] -> CreateFleet)
-> Lens CreateFleet CreateFleet (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFleet' {Maybe [Text]
metricGroups :: Maybe [Text]
$sel:metricGroups:CreateFleet' :: CreateFleet -> Maybe [Text]
metricGroups} -> Maybe [Text]
metricGroups) (\s :: CreateFleet
s@CreateFleet' {} Maybe [Text]
a -> CreateFleet
s {$sel:metricGroups:CreateFleet' :: Maybe [Text]
metricGroups = Maybe [Text]
a} :: CreateFleet) ((Maybe [Text] -> f (Maybe [Text]))
-> CreateFleet -> f CreateFleet)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> CreateFleet
-> f CreateFleet
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createFleet_description :: Lens.Lens' CreateFleet (Prelude.Maybe Prelude.Text)
createFleet_description :: (Maybe Text -> f (Maybe Text)) -> CreateFleet -> f CreateFleet
createFleet_description = (CreateFleet -> Maybe Text)
-> (CreateFleet -> Maybe Text -> CreateFleet)
-> Lens CreateFleet CreateFleet (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFleet' {Maybe Text
description :: Maybe Text
$sel:description:CreateFleet' :: CreateFleet -> Maybe Text
description} -> Maybe Text
description) (\s :: CreateFleet
s@CreateFleet' {} Maybe Text
a -> CreateFleet
s {$sel:description:CreateFleet' :: Maybe Text
description = Maybe Text
a} :: CreateFleet)
createFleet_resourceCreationLimitPolicy :: Lens.Lens' CreateFleet (Prelude.Maybe ResourceCreationLimitPolicy)
createFleet_resourceCreationLimitPolicy :: (Maybe ResourceCreationLimitPolicy
-> f (Maybe ResourceCreationLimitPolicy))
-> CreateFleet -> f CreateFleet
createFleet_resourceCreationLimitPolicy = (CreateFleet -> Maybe ResourceCreationLimitPolicy)
-> (CreateFleet
-> Maybe ResourceCreationLimitPolicy -> CreateFleet)
-> Lens
CreateFleet
CreateFleet
(Maybe ResourceCreationLimitPolicy)
(Maybe ResourceCreationLimitPolicy)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFleet' {Maybe ResourceCreationLimitPolicy
resourceCreationLimitPolicy :: Maybe ResourceCreationLimitPolicy
$sel:resourceCreationLimitPolicy:CreateFleet' :: CreateFleet -> Maybe ResourceCreationLimitPolicy
resourceCreationLimitPolicy} -> Maybe ResourceCreationLimitPolicy
resourceCreationLimitPolicy) (\s :: CreateFleet
s@CreateFleet' {} Maybe ResourceCreationLimitPolicy
a -> CreateFleet
s {$sel:resourceCreationLimitPolicy:CreateFleet' :: Maybe ResourceCreationLimitPolicy
resourceCreationLimitPolicy = Maybe ResourceCreationLimitPolicy
a} :: CreateFleet)
createFleet_locations :: Lens.Lens' CreateFleet (Prelude.Maybe (Prelude.NonEmpty LocationConfiguration))
createFleet_locations :: (Maybe (NonEmpty LocationConfiguration)
-> f (Maybe (NonEmpty LocationConfiguration)))
-> CreateFleet -> f CreateFleet
createFleet_locations = (CreateFleet -> Maybe (NonEmpty LocationConfiguration))
-> (CreateFleet
-> Maybe (NonEmpty LocationConfiguration) -> CreateFleet)
-> Lens
CreateFleet
CreateFleet
(Maybe (NonEmpty LocationConfiguration))
(Maybe (NonEmpty LocationConfiguration))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFleet' {Maybe (NonEmpty LocationConfiguration)
locations :: Maybe (NonEmpty LocationConfiguration)
$sel:locations:CreateFleet' :: CreateFleet -> Maybe (NonEmpty LocationConfiguration)
locations} -> Maybe (NonEmpty LocationConfiguration)
locations) (\s :: CreateFleet
s@CreateFleet' {} Maybe (NonEmpty LocationConfiguration)
a -> CreateFleet
s {$sel:locations:CreateFleet' :: Maybe (NonEmpty LocationConfiguration)
locations = Maybe (NonEmpty LocationConfiguration)
a} :: CreateFleet) ((Maybe (NonEmpty LocationConfiguration)
-> f (Maybe (NonEmpty LocationConfiguration)))
-> CreateFleet -> f CreateFleet)
-> ((Maybe (NonEmpty LocationConfiguration)
-> f (Maybe (NonEmpty LocationConfiguration)))
-> Maybe (NonEmpty LocationConfiguration)
-> f (Maybe (NonEmpty LocationConfiguration)))
-> (Maybe (NonEmpty LocationConfiguration)
-> f (Maybe (NonEmpty LocationConfiguration)))
-> CreateFleet
-> f CreateFleet
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty LocationConfiguration)
(NonEmpty LocationConfiguration)
(NonEmpty LocationConfiguration)
(NonEmpty LocationConfiguration)
-> Iso
(Maybe (NonEmpty LocationConfiguration))
(Maybe (NonEmpty LocationConfiguration))
(Maybe (NonEmpty LocationConfiguration))
(Maybe (NonEmpty LocationConfiguration))
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
(NonEmpty LocationConfiguration)
(NonEmpty LocationConfiguration)
(NonEmpty LocationConfiguration)
(NonEmpty LocationConfiguration)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createFleet_tags :: Lens.Lens' CreateFleet (Prelude.Maybe [Tag])
createFleet_tags :: (Maybe [Tag] -> f (Maybe [Tag])) -> CreateFleet -> f CreateFleet
createFleet_tags = (CreateFleet -> Maybe [Tag])
-> (CreateFleet -> Maybe [Tag] -> CreateFleet)
-> Lens CreateFleet CreateFleet (Maybe [Tag]) (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFleet' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateFleet' :: CreateFleet -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateFleet
s@CreateFleet' {} Maybe [Tag]
a -> CreateFleet
s {$sel:tags:CreateFleet' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateFleet) ((Maybe [Tag] -> f (Maybe [Tag])) -> CreateFleet -> f CreateFleet)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateFleet
-> f CreateFleet
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
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 [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createFleet_name :: Lens.Lens' CreateFleet Prelude.Text
createFleet_name :: (Text -> f Text) -> CreateFleet -> f CreateFleet
createFleet_name = (CreateFleet -> Text)
-> (CreateFleet -> Text -> CreateFleet)
-> Lens CreateFleet CreateFleet Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFleet' {Text
name :: Text
$sel:name:CreateFleet' :: CreateFleet -> Text
name} -> Text
name) (\s :: CreateFleet
s@CreateFleet' {} Text
a -> CreateFleet
s {$sel:name:CreateFleet' :: Text
name = Text
a} :: CreateFleet)
createFleet_eC2InstanceType :: Lens.Lens' CreateFleet EC2InstanceType
createFleet_eC2InstanceType :: (EC2InstanceType -> f EC2InstanceType)
-> CreateFleet -> f CreateFleet
createFleet_eC2InstanceType = (CreateFleet -> EC2InstanceType)
-> (CreateFleet -> EC2InstanceType -> CreateFleet)
-> Lens CreateFleet CreateFleet EC2InstanceType EC2InstanceType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFleet' {EC2InstanceType
eC2InstanceType :: EC2InstanceType
$sel:eC2InstanceType:CreateFleet' :: CreateFleet -> EC2InstanceType
eC2InstanceType} -> EC2InstanceType
eC2InstanceType) (\s :: CreateFleet
s@CreateFleet' {} EC2InstanceType
a -> CreateFleet
s {$sel:eC2InstanceType:CreateFleet' :: EC2InstanceType
eC2InstanceType = EC2InstanceType
a} :: CreateFleet)
instance Core.AWSRequest CreateFleet where
type AWSResponse CreateFleet = CreateFleetResponse
request :: CreateFleet -> Request CreateFleet
request = Service -> CreateFleet -> Request CreateFleet
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateFleet
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateFleet)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateFleet))
-> Logger
-> Service
-> Proxy CreateFleet
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CreateFleet)))
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 [LocationState]
-> Maybe FleetAttributes -> Int -> CreateFleetResponse
CreateFleetResponse'
(Maybe [LocationState]
-> Maybe FleetAttributes -> Int -> CreateFleetResponse)
-> Either String (Maybe [LocationState])
-> Either
String (Maybe FleetAttributes -> Int -> CreateFleetResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [LocationState]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LocationStates" Either String (Maybe (Maybe [LocationState]))
-> Maybe [LocationState] -> Either String (Maybe [LocationState])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [LocationState]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe FleetAttributes -> Int -> CreateFleetResponse)
-> Either String (Maybe FleetAttributes)
-> Either String (Int -> CreateFleetResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe FleetAttributes)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"FleetAttributes")
Either String (Int -> CreateFleetResponse)
-> Either String Int -> Either String CreateFleetResponse
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 CreateFleet
instance Prelude.NFData CreateFleet
instance Core.ToHeaders CreateFleet where
toHeaders :: CreateFleet -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateFleet -> 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
"GameLift.CreateFleet" :: 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 CreateFleet where
toJSON :: CreateFleet -> Value
toJSON CreateFleet' {Maybe [Text]
Maybe [IpPermission]
Maybe [Tag]
Maybe (NonEmpty LocationConfiguration)
Maybe Text
Maybe CertificateConfiguration
Maybe FleetType
Maybe ProtectionPolicy
Maybe ResourceCreationLimitPolicy
Maybe RuntimeConfiguration
Text
EC2InstanceType
eC2InstanceType :: EC2InstanceType
name :: Text
tags :: Maybe [Tag]
locations :: Maybe (NonEmpty LocationConfiguration)
resourceCreationLimitPolicy :: Maybe ResourceCreationLimitPolicy
description :: Maybe Text
metricGroups :: Maybe [Text]
instanceRoleArn :: Maybe Text
serverLaunchPath :: Maybe Text
certificateConfiguration :: Maybe CertificateConfiguration
scriptId :: Maybe Text
newGameSessionProtectionPolicy' :: Maybe ProtectionPolicy
runtimeConfiguration :: Maybe RuntimeConfiguration
eC2InboundPermissions :: Maybe [IpPermission]
peerVpcAwsAccountId :: Maybe Text
fleetType :: Maybe FleetType
buildId :: Maybe Text
peerVpcId :: Maybe Text
logPaths :: Maybe [Text]
serverLaunchParameters :: Maybe Text
$sel:eC2InstanceType:CreateFleet' :: CreateFleet -> EC2InstanceType
$sel:name:CreateFleet' :: CreateFleet -> Text
$sel:tags:CreateFleet' :: CreateFleet -> Maybe [Tag]
$sel:locations:CreateFleet' :: CreateFleet -> Maybe (NonEmpty LocationConfiguration)
$sel:resourceCreationLimitPolicy:CreateFleet' :: CreateFleet -> Maybe ResourceCreationLimitPolicy
$sel:description:CreateFleet' :: CreateFleet -> Maybe Text
$sel:metricGroups:CreateFleet' :: CreateFleet -> Maybe [Text]
$sel:instanceRoleArn:CreateFleet' :: CreateFleet -> Maybe Text
$sel:serverLaunchPath:CreateFleet' :: CreateFleet -> Maybe Text
$sel:certificateConfiguration:CreateFleet' :: CreateFleet -> Maybe CertificateConfiguration
$sel:scriptId:CreateFleet' :: CreateFleet -> Maybe Text
$sel:newGameSessionProtectionPolicy':CreateFleet' :: CreateFleet -> Maybe ProtectionPolicy
$sel:runtimeConfiguration:CreateFleet' :: CreateFleet -> Maybe RuntimeConfiguration
$sel:eC2InboundPermissions:CreateFleet' :: CreateFleet -> Maybe [IpPermission]
$sel:peerVpcAwsAccountId:CreateFleet' :: CreateFleet -> Maybe Text
$sel:fleetType:CreateFleet' :: CreateFleet -> Maybe FleetType
$sel:buildId:CreateFleet' :: CreateFleet -> Maybe Text
$sel:peerVpcId:CreateFleet' :: CreateFleet -> Maybe Text
$sel:logPaths:CreateFleet' :: CreateFleet -> Maybe [Text]
$sel:serverLaunchParameters:CreateFleet' :: CreateFleet -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"ServerLaunchParameters" 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
serverLaunchParameters,
(Text
"LogPaths" 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]
logPaths,
(Text
"PeerVpcId" 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
peerVpcId,
(Text
"BuildId" 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
buildId,
(Text
"FleetType" Text -> FleetType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (FleetType -> Pair) -> Maybe FleetType -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FleetType
fleetType,
(Text
"PeerVpcAwsAccountId" 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
peerVpcAwsAccountId,
(Text
"EC2InboundPermissions" Text -> [IpPermission] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
([IpPermission] -> Pair) -> Maybe [IpPermission] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [IpPermission]
eC2InboundPermissions,
(Text
"RuntimeConfiguration" Text -> RuntimeConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(RuntimeConfiguration -> Pair)
-> Maybe RuntimeConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RuntimeConfiguration
runtimeConfiguration,
(Text
"NewGameSessionProtectionPolicy" Text -> ProtectionPolicy -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(ProtectionPolicy -> Pair) -> Maybe ProtectionPolicy -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ProtectionPolicy
newGameSessionProtectionPolicy',
(Text
"ScriptId" 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
scriptId,
(Text
"CertificateConfiguration" Text -> CertificateConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(CertificateConfiguration -> Pair)
-> Maybe CertificateConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CertificateConfiguration
certificateConfiguration,
(Text
"ServerLaunchPath" 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
serverLaunchPath,
(Text
"InstanceRoleArn" 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
instanceRoleArn,
(Text
"MetricGroups" 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]
metricGroups,
(Text
"Description" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
description,
(Text
"ResourceCreationLimitPolicy" Text -> ResourceCreationLimitPolicy -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(ResourceCreationLimitPolicy -> Pair)
-> Maybe ResourceCreationLimitPolicy -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ResourceCreationLimitPolicy
resourceCreationLimitPolicy,
(Text
"Locations" Text -> NonEmpty LocationConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (NonEmpty LocationConfiguration -> Pair)
-> Maybe (NonEmpty LocationConfiguration) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty LocationConfiguration)
locations,
(Text
"Tags" Text -> [Tag] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Tag] -> Pair) -> Maybe [Tag] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
name),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"EC2InstanceType" Text -> EC2InstanceType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= EC2InstanceType
eC2InstanceType)
]
)
instance Core.ToPath CreateFleet where
toPath :: CreateFleet -> ByteString
toPath = ByteString -> CreateFleet -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateFleet where
toQuery :: CreateFleet -> QueryString
toQuery = QueryString -> CreateFleet -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateFleetResponse = CreateFleetResponse'
{
CreateFleetResponse -> Maybe [LocationState]
locationStates :: Prelude.Maybe [LocationState],
CreateFleetResponse -> Maybe FleetAttributes
fleetAttributes :: Prelude.Maybe FleetAttributes,
CreateFleetResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateFleetResponse -> CreateFleetResponse -> Bool
(CreateFleetResponse -> CreateFleetResponse -> Bool)
-> (CreateFleetResponse -> CreateFleetResponse -> Bool)
-> Eq CreateFleetResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateFleetResponse -> CreateFleetResponse -> Bool
$c/= :: CreateFleetResponse -> CreateFleetResponse -> Bool
== :: CreateFleetResponse -> CreateFleetResponse -> Bool
$c== :: CreateFleetResponse -> CreateFleetResponse -> Bool
Prelude.Eq, ReadPrec [CreateFleetResponse]
ReadPrec CreateFleetResponse
Int -> ReadS CreateFleetResponse
ReadS [CreateFleetResponse]
(Int -> ReadS CreateFleetResponse)
-> ReadS [CreateFleetResponse]
-> ReadPrec CreateFleetResponse
-> ReadPrec [CreateFleetResponse]
-> Read CreateFleetResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateFleetResponse]
$creadListPrec :: ReadPrec [CreateFleetResponse]
readPrec :: ReadPrec CreateFleetResponse
$creadPrec :: ReadPrec CreateFleetResponse
readList :: ReadS [CreateFleetResponse]
$creadList :: ReadS [CreateFleetResponse]
readsPrec :: Int -> ReadS CreateFleetResponse
$creadsPrec :: Int -> ReadS CreateFleetResponse
Prelude.Read, Int -> CreateFleetResponse -> ShowS
[CreateFleetResponse] -> ShowS
CreateFleetResponse -> String
(Int -> CreateFleetResponse -> ShowS)
-> (CreateFleetResponse -> String)
-> ([CreateFleetResponse] -> ShowS)
-> Show CreateFleetResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateFleetResponse] -> ShowS
$cshowList :: [CreateFleetResponse] -> ShowS
show :: CreateFleetResponse -> String
$cshow :: CreateFleetResponse -> String
showsPrec :: Int -> CreateFleetResponse -> ShowS
$cshowsPrec :: Int -> CreateFleetResponse -> ShowS
Prelude.Show, (forall x. CreateFleetResponse -> Rep CreateFleetResponse x)
-> (forall x. Rep CreateFleetResponse x -> CreateFleetResponse)
-> Generic CreateFleetResponse
forall x. Rep CreateFleetResponse x -> CreateFleetResponse
forall x. CreateFleetResponse -> Rep CreateFleetResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateFleetResponse x -> CreateFleetResponse
$cfrom :: forall x. CreateFleetResponse -> Rep CreateFleetResponse x
Prelude.Generic)
newCreateFleetResponse ::
Prelude.Int ->
CreateFleetResponse
newCreateFleetResponse :: Int -> CreateFleetResponse
newCreateFleetResponse Int
pHttpStatus_ =
CreateFleetResponse' :: Maybe [LocationState]
-> Maybe FleetAttributes -> Int -> CreateFleetResponse
CreateFleetResponse'
{ $sel:locationStates:CreateFleetResponse' :: Maybe [LocationState]
locationStates =
Maybe [LocationState]
forall a. Maybe a
Prelude.Nothing,
$sel:fleetAttributes:CreateFleetResponse' :: Maybe FleetAttributes
fleetAttributes = Maybe FleetAttributes
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateFleetResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createFleetResponse_locationStates :: Lens.Lens' CreateFleetResponse (Prelude.Maybe [LocationState])
createFleetResponse_locationStates :: (Maybe [LocationState] -> f (Maybe [LocationState]))
-> CreateFleetResponse -> f CreateFleetResponse
createFleetResponse_locationStates = (CreateFleetResponse -> Maybe [LocationState])
-> (CreateFleetResponse
-> Maybe [LocationState] -> CreateFleetResponse)
-> Lens
CreateFleetResponse
CreateFleetResponse
(Maybe [LocationState])
(Maybe [LocationState])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFleetResponse' {Maybe [LocationState]
locationStates :: Maybe [LocationState]
$sel:locationStates:CreateFleetResponse' :: CreateFleetResponse -> Maybe [LocationState]
locationStates} -> Maybe [LocationState]
locationStates) (\s :: CreateFleetResponse
s@CreateFleetResponse' {} Maybe [LocationState]
a -> CreateFleetResponse
s {$sel:locationStates:CreateFleetResponse' :: Maybe [LocationState]
locationStates = Maybe [LocationState]
a} :: CreateFleetResponse) ((Maybe [LocationState] -> f (Maybe [LocationState]))
-> CreateFleetResponse -> f CreateFleetResponse)
-> ((Maybe [LocationState] -> f (Maybe [LocationState]))
-> Maybe [LocationState] -> f (Maybe [LocationState]))
-> (Maybe [LocationState] -> f (Maybe [LocationState]))
-> CreateFleetResponse
-> f CreateFleetResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[LocationState] [LocationState] [LocationState] [LocationState]
-> Iso
(Maybe [LocationState])
(Maybe [LocationState])
(Maybe [LocationState])
(Maybe [LocationState])
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
[LocationState] [LocationState] [LocationState] [LocationState]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createFleetResponse_fleetAttributes :: Lens.Lens' CreateFleetResponse (Prelude.Maybe FleetAttributes)
createFleetResponse_fleetAttributes :: (Maybe FleetAttributes -> f (Maybe FleetAttributes))
-> CreateFleetResponse -> f CreateFleetResponse
createFleetResponse_fleetAttributes = (CreateFleetResponse -> Maybe FleetAttributes)
-> (CreateFleetResponse
-> Maybe FleetAttributes -> CreateFleetResponse)
-> Lens
CreateFleetResponse
CreateFleetResponse
(Maybe FleetAttributes)
(Maybe FleetAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFleetResponse' {Maybe FleetAttributes
fleetAttributes :: Maybe FleetAttributes
$sel:fleetAttributes:CreateFleetResponse' :: CreateFleetResponse -> Maybe FleetAttributes
fleetAttributes} -> Maybe FleetAttributes
fleetAttributes) (\s :: CreateFleetResponse
s@CreateFleetResponse' {} Maybe FleetAttributes
a -> CreateFleetResponse
s {$sel:fleetAttributes:CreateFleetResponse' :: Maybe FleetAttributes
fleetAttributes = Maybe FleetAttributes
a} :: CreateFleetResponse)
createFleetResponse_httpStatus :: Lens.Lens' CreateFleetResponse Prelude.Int
createFleetResponse_httpStatus :: (Int -> f Int) -> CreateFleetResponse -> f CreateFleetResponse
createFleetResponse_httpStatus = (CreateFleetResponse -> Int)
-> (CreateFleetResponse -> Int -> CreateFleetResponse)
-> Lens CreateFleetResponse CreateFleetResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFleetResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateFleetResponse' :: CreateFleetResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateFleetResponse
s@CreateFleetResponse' {} Int
a -> CreateFleetResponse
s {$sel:httpStatus:CreateFleetResponse' :: Int
httpStatus = Int
a} :: CreateFleetResponse)
instance Prelude.NFData CreateFleetResponse