{-# 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.StorageGateway.UpdateSMBSecurityStrategy
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Updates the SMB security strategy on a file gateway. This action is only
-- supported in file gateways.
--
-- This API is called Security level in the User Guide.
--
-- A higher security level can affect performance of the gateway.
module Amazonka.StorageGateway.UpdateSMBSecurityStrategy
  ( -- * Creating a Request
    UpdateSMBSecurityStrategy (..),
    newUpdateSMBSecurityStrategy,

    -- * Request Lenses
    updateSMBSecurityStrategy_gatewayARN,
    updateSMBSecurityStrategy_sMBSecurityStrategy,

    -- * Destructuring the Response
    UpdateSMBSecurityStrategyResponse (..),
    newUpdateSMBSecurityStrategyResponse,

    -- * Response Lenses
    updateSMBSecurityStrategyResponse_gatewayARN,
    updateSMBSecurityStrategyResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.StorageGateway.Types

-- | /See:/ 'newUpdateSMBSecurityStrategy' smart constructor.
data UpdateSMBSecurityStrategy = UpdateSMBSecurityStrategy'
  { UpdateSMBSecurityStrategy -> Text
gatewayARN :: Prelude.Text,
    -- | Specifies the type of security strategy.
    --
    -- ClientSpecified: if you use this option, requests are established based
    -- on what is negotiated by the client. This option is recommended when you
    -- want to maximize compatibility across different clients in your
    -- environment. Supported only in S3 File Gateway.
    --
    -- MandatorySigning: if you use this option, file gateway only allows
    -- connections from SMBv2 or SMBv3 clients that have signing enabled. This
    -- option works with SMB clients on Microsoft Windows Vista, Windows Server
    -- 2008 or newer.
    --
    -- MandatoryEncryption: if you use this option, file gateway only allows
    -- connections from SMBv3 clients that have encryption enabled. This option
    -- is highly recommended for environments that handle sensitive data. This
    -- option works with SMB clients on Microsoft Windows 8, Windows Server
    -- 2012 or newer.
    UpdateSMBSecurityStrategy -> SMBSecurityStrategy
sMBSecurityStrategy :: SMBSecurityStrategy
  }
  deriving (UpdateSMBSecurityStrategy -> UpdateSMBSecurityStrategy -> Bool
(UpdateSMBSecurityStrategy -> UpdateSMBSecurityStrategy -> Bool)
-> (UpdateSMBSecurityStrategy -> UpdateSMBSecurityStrategy -> Bool)
-> Eq UpdateSMBSecurityStrategy
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateSMBSecurityStrategy -> UpdateSMBSecurityStrategy -> Bool
$c/= :: UpdateSMBSecurityStrategy -> UpdateSMBSecurityStrategy -> Bool
== :: UpdateSMBSecurityStrategy -> UpdateSMBSecurityStrategy -> Bool
$c== :: UpdateSMBSecurityStrategy -> UpdateSMBSecurityStrategy -> Bool
Prelude.Eq, ReadPrec [UpdateSMBSecurityStrategy]
ReadPrec UpdateSMBSecurityStrategy
Int -> ReadS UpdateSMBSecurityStrategy
ReadS [UpdateSMBSecurityStrategy]
(Int -> ReadS UpdateSMBSecurityStrategy)
-> ReadS [UpdateSMBSecurityStrategy]
-> ReadPrec UpdateSMBSecurityStrategy
-> ReadPrec [UpdateSMBSecurityStrategy]
-> Read UpdateSMBSecurityStrategy
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateSMBSecurityStrategy]
$creadListPrec :: ReadPrec [UpdateSMBSecurityStrategy]
readPrec :: ReadPrec UpdateSMBSecurityStrategy
$creadPrec :: ReadPrec UpdateSMBSecurityStrategy
readList :: ReadS [UpdateSMBSecurityStrategy]
$creadList :: ReadS [UpdateSMBSecurityStrategy]
readsPrec :: Int -> ReadS UpdateSMBSecurityStrategy
$creadsPrec :: Int -> ReadS UpdateSMBSecurityStrategy
Prelude.Read, Int -> UpdateSMBSecurityStrategy -> ShowS
[UpdateSMBSecurityStrategy] -> ShowS
UpdateSMBSecurityStrategy -> String
(Int -> UpdateSMBSecurityStrategy -> ShowS)
-> (UpdateSMBSecurityStrategy -> String)
-> ([UpdateSMBSecurityStrategy] -> ShowS)
-> Show UpdateSMBSecurityStrategy
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateSMBSecurityStrategy] -> ShowS
$cshowList :: [UpdateSMBSecurityStrategy] -> ShowS
show :: UpdateSMBSecurityStrategy -> String
$cshow :: UpdateSMBSecurityStrategy -> String
showsPrec :: Int -> UpdateSMBSecurityStrategy -> ShowS
$cshowsPrec :: Int -> UpdateSMBSecurityStrategy -> ShowS
Prelude.Show, (forall x.
 UpdateSMBSecurityStrategy -> Rep UpdateSMBSecurityStrategy x)
-> (forall x.
    Rep UpdateSMBSecurityStrategy x -> UpdateSMBSecurityStrategy)
-> Generic UpdateSMBSecurityStrategy
forall x.
Rep UpdateSMBSecurityStrategy x -> UpdateSMBSecurityStrategy
forall x.
UpdateSMBSecurityStrategy -> Rep UpdateSMBSecurityStrategy x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateSMBSecurityStrategy x -> UpdateSMBSecurityStrategy
$cfrom :: forall x.
UpdateSMBSecurityStrategy -> Rep UpdateSMBSecurityStrategy x
Prelude.Generic)

-- |
-- Create a value of 'UpdateSMBSecurityStrategy' 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:
--
-- 'gatewayARN', 'updateSMBSecurityStrategy_gatewayARN' - Undocumented member.
--
-- 'sMBSecurityStrategy', 'updateSMBSecurityStrategy_sMBSecurityStrategy' - Specifies the type of security strategy.
--
-- ClientSpecified: if you use this option, requests are established based
-- on what is negotiated by the client. This option is recommended when you
-- want to maximize compatibility across different clients in your
-- environment. Supported only in S3 File Gateway.
--
-- MandatorySigning: if you use this option, file gateway only allows
-- connections from SMBv2 or SMBv3 clients that have signing enabled. This
-- option works with SMB clients on Microsoft Windows Vista, Windows Server
-- 2008 or newer.
--
-- MandatoryEncryption: if you use this option, file gateway only allows
-- connections from SMBv3 clients that have encryption enabled. This option
-- is highly recommended for environments that handle sensitive data. This
-- option works with SMB clients on Microsoft Windows 8, Windows Server
-- 2012 or newer.
newUpdateSMBSecurityStrategy ::
  -- | 'gatewayARN'
  Prelude.Text ->
  -- | 'sMBSecurityStrategy'
  SMBSecurityStrategy ->
  UpdateSMBSecurityStrategy
newUpdateSMBSecurityStrategy :: Text -> SMBSecurityStrategy -> UpdateSMBSecurityStrategy
newUpdateSMBSecurityStrategy
  Text
pGatewayARN_
  SMBSecurityStrategy
pSMBSecurityStrategy_ =
    UpdateSMBSecurityStrategy' :: Text -> SMBSecurityStrategy -> UpdateSMBSecurityStrategy
UpdateSMBSecurityStrategy'
      { $sel:gatewayARN:UpdateSMBSecurityStrategy' :: Text
gatewayARN =
          Text
pGatewayARN_,
        $sel:sMBSecurityStrategy:UpdateSMBSecurityStrategy' :: SMBSecurityStrategy
sMBSecurityStrategy = SMBSecurityStrategy
pSMBSecurityStrategy_
      }

-- | Undocumented member.
updateSMBSecurityStrategy_gatewayARN :: Lens.Lens' UpdateSMBSecurityStrategy Prelude.Text
updateSMBSecurityStrategy_gatewayARN :: (Text -> f Text)
-> UpdateSMBSecurityStrategy -> f UpdateSMBSecurityStrategy
updateSMBSecurityStrategy_gatewayARN = (UpdateSMBSecurityStrategy -> Text)
-> (UpdateSMBSecurityStrategy -> Text -> UpdateSMBSecurityStrategy)
-> Lens
     UpdateSMBSecurityStrategy UpdateSMBSecurityStrategy Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSMBSecurityStrategy' {Text
gatewayARN :: Text
$sel:gatewayARN:UpdateSMBSecurityStrategy' :: UpdateSMBSecurityStrategy -> Text
gatewayARN} -> Text
gatewayARN) (\s :: UpdateSMBSecurityStrategy
s@UpdateSMBSecurityStrategy' {} Text
a -> UpdateSMBSecurityStrategy
s {$sel:gatewayARN:UpdateSMBSecurityStrategy' :: Text
gatewayARN = Text
a} :: UpdateSMBSecurityStrategy)

-- | Specifies the type of security strategy.
--
-- ClientSpecified: if you use this option, requests are established based
-- on what is negotiated by the client. This option is recommended when you
-- want to maximize compatibility across different clients in your
-- environment. Supported only in S3 File Gateway.
--
-- MandatorySigning: if you use this option, file gateway only allows
-- connections from SMBv2 or SMBv3 clients that have signing enabled. This
-- option works with SMB clients on Microsoft Windows Vista, Windows Server
-- 2008 or newer.
--
-- MandatoryEncryption: if you use this option, file gateway only allows
-- connections from SMBv3 clients that have encryption enabled. This option
-- is highly recommended for environments that handle sensitive data. This
-- option works with SMB clients on Microsoft Windows 8, Windows Server
-- 2012 or newer.
updateSMBSecurityStrategy_sMBSecurityStrategy :: Lens.Lens' UpdateSMBSecurityStrategy SMBSecurityStrategy
updateSMBSecurityStrategy_sMBSecurityStrategy :: (SMBSecurityStrategy -> f SMBSecurityStrategy)
-> UpdateSMBSecurityStrategy -> f UpdateSMBSecurityStrategy
updateSMBSecurityStrategy_sMBSecurityStrategy = (UpdateSMBSecurityStrategy -> SMBSecurityStrategy)
-> (UpdateSMBSecurityStrategy
    -> SMBSecurityStrategy -> UpdateSMBSecurityStrategy)
-> Lens
     UpdateSMBSecurityStrategy
     UpdateSMBSecurityStrategy
     SMBSecurityStrategy
     SMBSecurityStrategy
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSMBSecurityStrategy' {SMBSecurityStrategy
sMBSecurityStrategy :: SMBSecurityStrategy
$sel:sMBSecurityStrategy:UpdateSMBSecurityStrategy' :: UpdateSMBSecurityStrategy -> SMBSecurityStrategy
sMBSecurityStrategy} -> SMBSecurityStrategy
sMBSecurityStrategy) (\s :: UpdateSMBSecurityStrategy
s@UpdateSMBSecurityStrategy' {} SMBSecurityStrategy
a -> UpdateSMBSecurityStrategy
s {$sel:sMBSecurityStrategy:UpdateSMBSecurityStrategy' :: SMBSecurityStrategy
sMBSecurityStrategy = SMBSecurityStrategy
a} :: UpdateSMBSecurityStrategy)

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

instance Prelude.NFData UpdateSMBSecurityStrategy

instance Core.ToHeaders UpdateSMBSecurityStrategy where
  toHeaders :: UpdateSMBSecurityStrategy -> ResponseHeaders
toHeaders =
    ResponseHeaders -> UpdateSMBSecurityStrategy -> 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
"StorageGateway_20130630.UpdateSMBSecurityStrategy" ::
                          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 UpdateSMBSecurityStrategy where
  toJSON :: UpdateSMBSecurityStrategy -> Value
toJSON UpdateSMBSecurityStrategy' {Text
SMBSecurityStrategy
sMBSecurityStrategy :: SMBSecurityStrategy
gatewayARN :: Text
$sel:sMBSecurityStrategy:UpdateSMBSecurityStrategy' :: UpdateSMBSecurityStrategy -> SMBSecurityStrategy
$sel:gatewayARN:UpdateSMBSecurityStrategy' :: UpdateSMBSecurityStrategy -> Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"GatewayARN" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
gatewayARN),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"SMBSecurityStrategy" Text -> SMBSecurityStrategy -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= SMBSecurityStrategy
sMBSecurityStrategy)
          ]
      )

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

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

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

-- |
-- Create a value of 'UpdateSMBSecurityStrategyResponse' 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:
--
-- 'gatewayARN', 'updateSMBSecurityStrategyResponse_gatewayARN' - Undocumented member.
--
-- 'httpStatus', 'updateSMBSecurityStrategyResponse_httpStatus' - The response's http status code.
newUpdateSMBSecurityStrategyResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  UpdateSMBSecurityStrategyResponse
newUpdateSMBSecurityStrategyResponse :: Int -> UpdateSMBSecurityStrategyResponse
newUpdateSMBSecurityStrategyResponse Int
pHttpStatus_ =
  UpdateSMBSecurityStrategyResponse' :: Maybe Text -> Int -> UpdateSMBSecurityStrategyResponse
UpdateSMBSecurityStrategyResponse'
    { $sel:gatewayARN:UpdateSMBSecurityStrategyResponse' :: Maybe Text
gatewayARN =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:UpdateSMBSecurityStrategyResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Undocumented member.
updateSMBSecurityStrategyResponse_gatewayARN :: Lens.Lens' UpdateSMBSecurityStrategyResponse (Prelude.Maybe Prelude.Text)
updateSMBSecurityStrategyResponse_gatewayARN :: (Maybe Text -> f (Maybe Text))
-> UpdateSMBSecurityStrategyResponse
-> f UpdateSMBSecurityStrategyResponse
updateSMBSecurityStrategyResponse_gatewayARN = (UpdateSMBSecurityStrategyResponse -> Maybe Text)
-> (UpdateSMBSecurityStrategyResponse
    -> Maybe Text -> UpdateSMBSecurityStrategyResponse)
-> Lens
     UpdateSMBSecurityStrategyResponse
     UpdateSMBSecurityStrategyResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSMBSecurityStrategyResponse' {Maybe Text
gatewayARN :: Maybe Text
$sel:gatewayARN:UpdateSMBSecurityStrategyResponse' :: UpdateSMBSecurityStrategyResponse -> Maybe Text
gatewayARN} -> Maybe Text
gatewayARN) (\s :: UpdateSMBSecurityStrategyResponse
s@UpdateSMBSecurityStrategyResponse' {} Maybe Text
a -> UpdateSMBSecurityStrategyResponse
s {$sel:gatewayARN:UpdateSMBSecurityStrategyResponse' :: Maybe Text
gatewayARN = Maybe Text
a} :: UpdateSMBSecurityStrategyResponse)

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

instance
  Prelude.NFData
    UpdateSMBSecurityStrategyResponse