{-# 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.GameLift.UpdateFleetPortSettings
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Updates permissions that allow inbound traffic to connect to game
-- sessions that are being hosted on instances in the fleet.
--
-- To update settings, specify the fleet ID to be updated and specify the
-- changes to be made. List the permissions you want to add in
-- @InboundPermissionAuthorizations@, and permissions you want to remove in
-- @InboundPermissionRevocations@. Permissions to be removed must match
-- existing fleet permissions.
--
-- If successful, the fleet ID for the updated fleet is returned. For
-- fleets with remote locations, port setting updates can take time to
-- propagate across all locations. You can check the status of updates in
-- each location by calling @DescribeFleetPortSettings@ with a location
-- name.
--
-- __Learn more__
--
-- <https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-intro.html Setting up GameLift fleets>
module Amazonka.GameLift.UpdateFleetPortSettings
  ( -- * Creating a Request
    UpdateFleetPortSettings (..),
    newUpdateFleetPortSettings,

    -- * Request Lenses
    updateFleetPortSettings_inboundPermissionAuthorizations,
    updateFleetPortSettings_inboundPermissionRevocations,
    updateFleetPortSettings_fleetId,

    -- * Destructuring the Response
    UpdateFleetPortSettingsResponse (..),
    newUpdateFleetPortSettingsResponse,

    -- * Response Lenses
    updateFleetPortSettingsResponse_fleetArn,
    updateFleetPortSettingsResponse_fleetId,
    updateFleetPortSettingsResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.GameLift.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newUpdateFleetPortSettings' smart constructor.
data UpdateFleetPortSettings = UpdateFleetPortSettings'
  { -- | A collection of port settings to be added to the fleet resource.
    UpdateFleetPortSettings -> Maybe [IpPermission]
inboundPermissionAuthorizations :: Prelude.Maybe [IpPermission],
    -- | A collection of port settings to be removed from the fleet resource.
    UpdateFleetPortSettings -> Maybe [IpPermission]
inboundPermissionRevocations :: Prelude.Maybe [IpPermission],
    -- | A unique identifier for the fleet to update port settings for. You can
    -- use either the fleet ID or ARN value.
    UpdateFleetPortSettings -> Text
fleetId :: Prelude.Text
  }
  deriving (UpdateFleetPortSettings -> UpdateFleetPortSettings -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateFleetPortSettings -> UpdateFleetPortSettings -> Bool
$c/= :: UpdateFleetPortSettings -> UpdateFleetPortSettings -> Bool
== :: UpdateFleetPortSettings -> UpdateFleetPortSettings -> Bool
$c== :: UpdateFleetPortSettings -> UpdateFleetPortSettings -> Bool
Prelude.Eq, ReadPrec [UpdateFleetPortSettings]
ReadPrec UpdateFleetPortSettings
Int -> ReadS UpdateFleetPortSettings
ReadS [UpdateFleetPortSettings]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateFleetPortSettings]
$creadListPrec :: ReadPrec [UpdateFleetPortSettings]
readPrec :: ReadPrec UpdateFleetPortSettings
$creadPrec :: ReadPrec UpdateFleetPortSettings
readList :: ReadS [UpdateFleetPortSettings]
$creadList :: ReadS [UpdateFleetPortSettings]
readsPrec :: Int -> ReadS UpdateFleetPortSettings
$creadsPrec :: Int -> ReadS UpdateFleetPortSettings
Prelude.Read, Int -> UpdateFleetPortSettings -> ShowS
[UpdateFleetPortSettings] -> ShowS
UpdateFleetPortSettings -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateFleetPortSettings] -> ShowS
$cshowList :: [UpdateFleetPortSettings] -> ShowS
show :: UpdateFleetPortSettings -> String
$cshow :: UpdateFleetPortSettings -> String
showsPrec :: Int -> UpdateFleetPortSettings -> ShowS
$cshowsPrec :: Int -> UpdateFleetPortSettings -> ShowS
Prelude.Show, forall x. Rep UpdateFleetPortSettings x -> UpdateFleetPortSettings
forall x. UpdateFleetPortSettings -> Rep UpdateFleetPortSettings x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateFleetPortSettings x -> UpdateFleetPortSettings
$cfrom :: forall x. UpdateFleetPortSettings -> Rep UpdateFleetPortSettings x
Prelude.Generic)

-- |
-- Create a value of 'UpdateFleetPortSettings' 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:
--
-- 'inboundPermissionAuthorizations', 'updateFleetPortSettings_inboundPermissionAuthorizations' - A collection of port settings to be added to the fleet resource.
--
-- 'inboundPermissionRevocations', 'updateFleetPortSettings_inboundPermissionRevocations' - A collection of port settings to be removed from the fleet resource.
--
-- 'fleetId', 'updateFleetPortSettings_fleetId' - A unique identifier for the fleet to update port settings for. You can
-- use either the fleet ID or ARN value.
newUpdateFleetPortSettings ::
  -- | 'fleetId'
  Prelude.Text ->
  UpdateFleetPortSettings
newUpdateFleetPortSettings :: Text -> UpdateFleetPortSettings
newUpdateFleetPortSettings Text
pFleetId_ =
  UpdateFleetPortSettings'
    { $sel:inboundPermissionAuthorizations:UpdateFleetPortSettings' :: Maybe [IpPermission]
inboundPermissionAuthorizations =
        forall a. Maybe a
Prelude.Nothing,
      $sel:inboundPermissionRevocations:UpdateFleetPortSettings' :: Maybe [IpPermission]
inboundPermissionRevocations = forall a. Maybe a
Prelude.Nothing,
      $sel:fleetId:UpdateFleetPortSettings' :: Text
fleetId = Text
pFleetId_
    }

-- | A collection of port settings to be added to the fleet resource.
updateFleetPortSettings_inboundPermissionAuthorizations :: Lens.Lens' UpdateFleetPortSettings (Prelude.Maybe [IpPermission])
updateFleetPortSettings_inboundPermissionAuthorizations :: Lens' UpdateFleetPortSettings (Maybe [IpPermission])
updateFleetPortSettings_inboundPermissionAuthorizations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFleetPortSettings' {Maybe [IpPermission]
inboundPermissionAuthorizations :: Maybe [IpPermission]
$sel:inboundPermissionAuthorizations:UpdateFleetPortSettings' :: UpdateFleetPortSettings -> Maybe [IpPermission]
inboundPermissionAuthorizations} -> Maybe [IpPermission]
inboundPermissionAuthorizations) (\s :: UpdateFleetPortSettings
s@UpdateFleetPortSettings' {} Maybe [IpPermission]
a -> UpdateFleetPortSettings
s {$sel:inboundPermissionAuthorizations:UpdateFleetPortSettings' :: Maybe [IpPermission]
inboundPermissionAuthorizations = Maybe [IpPermission]
a} :: UpdateFleetPortSettings) 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

-- | A collection of port settings to be removed from the fleet resource.
updateFleetPortSettings_inboundPermissionRevocations :: Lens.Lens' UpdateFleetPortSettings (Prelude.Maybe [IpPermission])
updateFleetPortSettings_inboundPermissionRevocations :: Lens' UpdateFleetPortSettings (Maybe [IpPermission])
updateFleetPortSettings_inboundPermissionRevocations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFleetPortSettings' {Maybe [IpPermission]
inboundPermissionRevocations :: Maybe [IpPermission]
$sel:inboundPermissionRevocations:UpdateFleetPortSettings' :: UpdateFleetPortSettings -> Maybe [IpPermission]
inboundPermissionRevocations} -> Maybe [IpPermission]
inboundPermissionRevocations) (\s :: UpdateFleetPortSettings
s@UpdateFleetPortSettings' {} Maybe [IpPermission]
a -> UpdateFleetPortSettings
s {$sel:inboundPermissionRevocations:UpdateFleetPortSettings' :: Maybe [IpPermission]
inboundPermissionRevocations = Maybe [IpPermission]
a} :: UpdateFleetPortSettings) 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

-- | A unique identifier for the fleet to update port settings for. You can
-- use either the fleet ID or ARN value.
updateFleetPortSettings_fleetId :: Lens.Lens' UpdateFleetPortSettings Prelude.Text
updateFleetPortSettings_fleetId :: Lens' UpdateFleetPortSettings Text
updateFleetPortSettings_fleetId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFleetPortSettings' {Text
fleetId :: Text
$sel:fleetId:UpdateFleetPortSettings' :: UpdateFleetPortSettings -> Text
fleetId} -> Text
fleetId) (\s :: UpdateFleetPortSettings
s@UpdateFleetPortSettings' {} Text
a -> UpdateFleetPortSettings
s {$sel:fleetId:UpdateFleetPortSettings' :: Text
fleetId = Text
a} :: UpdateFleetPortSettings)

instance Core.AWSRequest UpdateFleetPortSettings where
  type
    AWSResponse UpdateFleetPortSettings =
      UpdateFleetPortSettingsResponse
  request :: (Service -> Service)
-> UpdateFleetPortSettings -> Request UpdateFleetPortSettings
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 UpdateFleetPortSettings
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateFleetPortSettings)))
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 Text -> Maybe Text -> Int -> UpdateFleetPortSettingsResponse
UpdateFleetPortSettingsResponse'
            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
"FleetArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"FleetId")
            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 UpdateFleetPortSettings where
  hashWithSalt :: Int -> UpdateFleetPortSettings -> Int
hashWithSalt Int
_salt UpdateFleetPortSettings' {Maybe [IpPermission]
Text
fleetId :: Text
inboundPermissionRevocations :: Maybe [IpPermission]
inboundPermissionAuthorizations :: Maybe [IpPermission]
$sel:fleetId:UpdateFleetPortSettings' :: UpdateFleetPortSettings -> Text
$sel:inboundPermissionRevocations:UpdateFleetPortSettings' :: UpdateFleetPortSettings -> Maybe [IpPermission]
$sel:inboundPermissionAuthorizations:UpdateFleetPortSettings' :: UpdateFleetPortSettings -> Maybe [IpPermission]
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [IpPermission]
inboundPermissionAuthorizations
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [IpPermission]
inboundPermissionRevocations
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
fleetId

instance Prelude.NFData UpdateFleetPortSettings where
  rnf :: UpdateFleetPortSettings -> ()
rnf UpdateFleetPortSettings' {Maybe [IpPermission]
Text
fleetId :: Text
inboundPermissionRevocations :: Maybe [IpPermission]
inboundPermissionAuthorizations :: Maybe [IpPermission]
$sel:fleetId:UpdateFleetPortSettings' :: UpdateFleetPortSettings -> Text
$sel:inboundPermissionRevocations:UpdateFleetPortSettings' :: UpdateFleetPortSettings -> Maybe [IpPermission]
$sel:inboundPermissionAuthorizations:UpdateFleetPortSettings' :: UpdateFleetPortSettings -> Maybe [IpPermission]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [IpPermission]
inboundPermissionAuthorizations
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [IpPermission]
inboundPermissionRevocations
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
fleetId

instance Data.ToHeaders UpdateFleetPortSettings where
  toHeaders :: UpdateFleetPortSettings -> 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
"GameLift.UpdateFleetPortSettings" ::
                          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 UpdateFleetPortSettings where
  toJSON :: UpdateFleetPortSettings -> Value
toJSON UpdateFleetPortSettings' {Maybe [IpPermission]
Text
fleetId :: Text
inboundPermissionRevocations :: Maybe [IpPermission]
inboundPermissionAuthorizations :: Maybe [IpPermission]
$sel:fleetId:UpdateFleetPortSettings' :: UpdateFleetPortSettings -> Text
$sel:inboundPermissionRevocations:UpdateFleetPortSettings' :: UpdateFleetPortSettings -> Maybe [IpPermission]
$sel:inboundPermissionAuthorizations:UpdateFleetPortSettings' :: UpdateFleetPortSettings -> Maybe [IpPermission]
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"InboundPermissionAuthorizations" 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 [IpPermission]
inboundPermissionAuthorizations,
            (Key
"InboundPermissionRevocations" 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 [IpPermission]
inboundPermissionRevocations,
            forall a. a -> Maybe a
Prelude.Just (Key
"FleetId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
fleetId)
          ]
      )

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

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

-- | /See:/ 'newUpdateFleetPortSettingsResponse' smart constructor.
data UpdateFleetPortSettingsResponse = UpdateFleetPortSettingsResponse'
  { -- | The Amazon Resource Name
    -- (<https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-arn-format.html ARN>)
    -- that is assigned to a GameLift fleet resource and uniquely identifies
    -- it. ARNs are unique across all Regions. Format is
    -- @arn:aws:gamelift:\<region>::fleet\/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912@.
    UpdateFleetPortSettingsResponse -> Maybe Text
fleetArn :: Prelude.Maybe Prelude.Text,
    -- | A unique identifier for the fleet that was updated.
    UpdateFleetPortSettingsResponse -> Maybe Text
fleetId :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    UpdateFleetPortSettingsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (UpdateFleetPortSettingsResponse
-> UpdateFleetPortSettingsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateFleetPortSettingsResponse
-> UpdateFleetPortSettingsResponse -> Bool
$c/= :: UpdateFleetPortSettingsResponse
-> UpdateFleetPortSettingsResponse -> Bool
== :: UpdateFleetPortSettingsResponse
-> UpdateFleetPortSettingsResponse -> Bool
$c== :: UpdateFleetPortSettingsResponse
-> UpdateFleetPortSettingsResponse -> Bool
Prelude.Eq, ReadPrec [UpdateFleetPortSettingsResponse]
ReadPrec UpdateFleetPortSettingsResponse
Int -> ReadS UpdateFleetPortSettingsResponse
ReadS [UpdateFleetPortSettingsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateFleetPortSettingsResponse]
$creadListPrec :: ReadPrec [UpdateFleetPortSettingsResponse]
readPrec :: ReadPrec UpdateFleetPortSettingsResponse
$creadPrec :: ReadPrec UpdateFleetPortSettingsResponse
readList :: ReadS [UpdateFleetPortSettingsResponse]
$creadList :: ReadS [UpdateFleetPortSettingsResponse]
readsPrec :: Int -> ReadS UpdateFleetPortSettingsResponse
$creadsPrec :: Int -> ReadS UpdateFleetPortSettingsResponse
Prelude.Read, Int -> UpdateFleetPortSettingsResponse -> ShowS
[UpdateFleetPortSettingsResponse] -> ShowS
UpdateFleetPortSettingsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateFleetPortSettingsResponse] -> ShowS
$cshowList :: [UpdateFleetPortSettingsResponse] -> ShowS
show :: UpdateFleetPortSettingsResponse -> String
$cshow :: UpdateFleetPortSettingsResponse -> String
showsPrec :: Int -> UpdateFleetPortSettingsResponse -> ShowS
$cshowsPrec :: Int -> UpdateFleetPortSettingsResponse -> ShowS
Prelude.Show, forall x.
Rep UpdateFleetPortSettingsResponse x
-> UpdateFleetPortSettingsResponse
forall x.
UpdateFleetPortSettingsResponse
-> Rep UpdateFleetPortSettingsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateFleetPortSettingsResponse x
-> UpdateFleetPortSettingsResponse
$cfrom :: forall x.
UpdateFleetPortSettingsResponse
-> Rep UpdateFleetPortSettingsResponse x
Prelude.Generic)

-- |
-- Create a value of 'UpdateFleetPortSettingsResponse' 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:
--
-- 'fleetArn', 'updateFleetPortSettingsResponse_fleetArn' - The Amazon Resource Name
-- (<https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-arn-format.html ARN>)
-- that is assigned to a GameLift fleet resource and uniquely identifies
-- it. ARNs are unique across all Regions. Format is
-- @arn:aws:gamelift:\<region>::fleet\/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912@.
--
-- 'fleetId', 'updateFleetPortSettingsResponse_fleetId' - A unique identifier for the fleet that was updated.
--
-- 'httpStatus', 'updateFleetPortSettingsResponse_httpStatus' - The response's http status code.
newUpdateFleetPortSettingsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  UpdateFleetPortSettingsResponse
newUpdateFleetPortSettingsResponse :: Int -> UpdateFleetPortSettingsResponse
newUpdateFleetPortSettingsResponse Int
pHttpStatus_ =
  UpdateFleetPortSettingsResponse'
    { $sel:fleetArn:UpdateFleetPortSettingsResponse' :: Maybe Text
fleetArn =
        forall a. Maybe a
Prelude.Nothing,
      $sel:fleetId:UpdateFleetPortSettingsResponse' :: Maybe Text
fleetId = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:UpdateFleetPortSettingsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The Amazon Resource Name
-- (<https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-arn-format.html ARN>)
-- that is assigned to a GameLift fleet resource and uniquely identifies
-- it. ARNs are unique across all Regions. Format is
-- @arn:aws:gamelift:\<region>::fleet\/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912@.
updateFleetPortSettingsResponse_fleetArn :: Lens.Lens' UpdateFleetPortSettingsResponse (Prelude.Maybe Prelude.Text)
updateFleetPortSettingsResponse_fleetArn :: Lens' UpdateFleetPortSettingsResponse (Maybe Text)
updateFleetPortSettingsResponse_fleetArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFleetPortSettingsResponse' {Maybe Text
fleetArn :: Maybe Text
$sel:fleetArn:UpdateFleetPortSettingsResponse' :: UpdateFleetPortSettingsResponse -> Maybe Text
fleetArn} -> Maybe Text
fleetArn) (\s :: UpdateFleetPortSettingsResponse
s@UpdateFleetPortSettingsResponse' {} Maybe Text
a -> UpdateFleetPortSettingsResponse
s {$sel:fleetArn:UpdateFleetPortSettingsResponse' :: Maybe Text
fleetArn = Maybe Text
a} :: UpdateFleetPortSettingsResponse)

-- | A unique identifier for the fleet that was updated.
updateFleetPortSettingsResponse_fleetId :: Lens.Lens' UpdateFleetPortSettingsResponse (Prelude.Maybe Prelude.Text)
updateFleetPortSettingsResponse_fleetId :: Lens' UpdateFleetPortSettingsResponse (Maybe Text)
updateFleetPortSettingsResponse_fleetId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateFleetPortSettingsResponse' {Maybe Text
fleetId :: Maybe Text
$sel:fleetId:UpdateFleetPortSettingsResponse' :: UpdateFleetPortSettingsResponse -> Maybe Text
fleetId} -> Maybe Text
fleetId) (\s :: UpdateFleetPortSettingsResponse
s@UpdateFleetPortSettingsResponse' {} Maybe Text
a -> UpdateFleetPortSettingsResponse
s {$sel:fleetId:UpdateFleetPortSettingsResponse' :: Maybe Text
fleetId = Maybe Text
a} :: UpdateFleetPortSettingsResponse)

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

instance
  Prelude.NFData
    UpdateFleetPortSettingsResponse
  where
  rnf :: UpdateFleetPortSettingsResponse -> ()
rnf UpdateFleetPortSettingsResponse' {Int
Maybe Text
httpStatus :: Int
fleetId :: Maybe Text
fleetArn :: Maybe Text
$sel:httpStatus:UpdateFleetPortSettingsResponse' :: UpdateFleetPortSettingsResponse -> Int
$sel:fleetId:UpdateFleetPortSettingsResponse' :: UpdateFleetPortSettingsResponse -> Maybe Text
$sel:fleetArn:UpdateFleetPortSettingsResponse' :: UpdateFleetPortSettingsResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
fleetArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
fleetId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus