{-# 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.CreateNFSFileShare
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Creates a Network File System (NFS) file share on an existing S3 File
-- Gateway. In Storage Gateway, a file share is a file system mount point
-- backed by Amazon S3 cloud storage. Storage Gateway exposes file shares
-- using an NFS interface. This operation is only supported for S3 File
-- Gateways.
--
-- S3 File gateway requires Security Token Service (Amazon Web Services
-- STS) to be activated to enable you to create a file share. Make sure
-- Amazon Web Services STS is activated in the Amazon Web Services Region
-- you are creating your S3 File Gateway in. If Amazon Web Services STS is
-- not activated in the Amazon Web Services Region, activate it. For
-- information about how to activate Amazon Web Services STS, see
-- <https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html Activating and deactivating Amazon Web Services STS in an Amazon Web Services Region>
-- in the /Identity and Access Management User Guide/.
--
-- S3 File Gateways do not support creating hard or symbolic links on a
-- file share.
module Amazonka.StorageGateway.CreateNFSFileShare
  ( -- * Creating a Request
    CreateNFSFileShare (..),
    newCreateNFSFileShare,

    -- * Request Lenses
    createNFSFileShare_auditDestinationARN,
    createNFSFileShare_kmsKey,
    createNFSFileShare_vPCEndpointDNSName,
    createNFSFileShare_cacheAttributes,
    createNFSFileShare_objectACL,
    createNFSFileShare_kmsEncrypted,
    createNFSFileShare_defaultStorageClass,
    createNFSFileShare_fileShareName,
    createNFSFileShare_notificationPolicy,
    createNFSFileShare_squash,
    createNFSFileShare_requesterPays,
    createNFSFileShare_nFSFileShareDefaults,
    createNFSFileShare_clientList,
    createNFSFileShare_guessMIMETypeEnabled,
    createNFSFileShare_readOnly,
    createNFSFileShare_bucketRegion,
    createNFSFileShare_tags,
    createNFSFileShare_clientToken,
    createNFSFileShare_gatewayARN,
    createNFSFileShare_role,
    createNFSFileShare_locationARN,

    -- * Destructuring the Response
    CreateNFSFileShareResponse (..),
    newCreateNFSFileShareResponse,

    -- * Response Lenses
    createNFSFileShareResponse_fileShareARN,
    createNFSFileShareResponse_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

-- | CreateNFSFileShareInput
--
-- /See:/ 'newCreateNFSFileShare' smart constructor.
data CreateNFSFileShare = CreateNFSFileShare'
  { -- | The Amazon Resource Name (ARN) of the storage used for audit logs.
    CreateNFSFileShare -> Maybe Text
auditDestinationARN :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of a symmetric customer master key (CMK)
    -- used for Amazon S3 server-side encryption. Storage Gateway does not
    -- support asymmetric CMKs. This value can only be set when @KMSEncrypted@
    -- is @true@. Optional.
    CreateNFSFileShare -> Maybe Text
kmsKey :: Prelude.Maybe Prelude.Text,
    -- | Specifies the DNS name for the VPC endpoint that the NFS file share uses
    -- to connect to Amazon S3.
    --
    -- This parameter is required for NFS file shares that connect to Amazon S3
    -- through a VPC endpoint, a VPC access point, or an access point alias
    -- that points to a VPC access point.
    CreateNFSFileShare -> Maybe Text
vPCEndpointDNSName :: Prelude.Maybe Prelude.Text,
    -- | Specifies refresh cache information for the file share.
    CreateNFSFileShare -> Maybe CacheAttributes
cacheAttributes :: Prelude.Maybe CacheAttributes,
    -- | A value that sets the access control list (ACL) permission for objects
    -- in the S3 bucket that a S3 File Gateway puts objects into. The default
    -- value is @private@.
    CreateNFSFileShare -> Maybe ObjectACL
objectACL :: Prelude.Maybe ObjectACL,
    -- | Set to @true@ to use Amazon S3 server-side encryption with your own KMS
    -- key, or @false@ to use a key managed by Amazon S3. Optional.
    --
    -- Valid Values: @true@ | @false@
    CreateNFSFileShare -> Maybe Bool
kmsEncrypted :: Prelude.Maybe Prelude.Bool,
    -- | The default storage class for objects put into an Amazon S3 bucket by
    -- the S3 File Gateway. The default value is @S3_INTELLIGENT_TIERING@.
    -- Optional.
    --
    -- Valid Values: @S3_STANDARD@ | @S3_INTELLIGENT_TIERING@ |
    -- @S3_STANDARD_IA@ | @S3_ONEZONE_IA@
    CreateNFSFileShare -> Maybe Text
defaultStorageClass :: Prelude.Maybe Prelude.Text,
    -- | The name of the file share. Optional.
    --
    -- @FileShareName@ must be set if an S3 prefix name is set in
    -- @LocationARN@, or if an access point or access point alias is used.
    CreateNFSFileShare -> Maybe Text
fileShareName :: Prelude.Maybe Prelude.Text,
    -- | The notification policy of the file share. @SettlingTimeInSeconds@
    -- controls the number of seconds to wait after the last point in time a
    -- client wrote to a file before generating an @ObjectUploaded@
    -- notification. Because clients can make many small writes to files, it\'s
    -- best to set this parameter for as long as possible to avoid generating
    -- multiple notifications for the same file in a small time period.
    --
    -- @SettlingTimeInSeconds@ has no effect on the timing of the object
    -- uploading to Amazon S3, only the timing of the notification.
    --
    -- The following example sets @NotificationPolicy@ on with
    -- @SettlingTimeInSeconds@ set to 60.
    --
    -- @{\\\"Upload\\\": {\\\"SettlingTimeInSeconds\\\": 60}}@
    --
    -- The following example sets @NotificationPolicy@ off.
    --
    -- @{}@
    CreateNFSFileShare -> Maybe Text
notificationPolicy :: Prelude.Maybe Prelude.Text,
    -- | A value that maps a user to anonymous user.
    --
    -- Valid values are the following:
    --
    -- -   @RootSquash@: Only root is mapped to anonymous user.
    --
    -- -   @NoSquash@: No one is mapped to anonymous user.
    --
    -- -   @AllSquash@: Everyone is mapped to anonymous user.
    CreateNFSFileShare -> Maybe Text
squash :: Prelude.Maybe Prelude.Text,
    -- | A value that sets who pays the cost of the request and the cost
    -- associated with data download from the S3 bucket. If this value is set
    -- to @true@, the requester pays the costs; otherwise, the S3 bucket owner
    -- pays. However, the S3 bucket owner always pays the cost of storing data.
    --
    -- @RequesterPays@ is a configuration for the S3 bucket that backs the file
    -- share, so make sure that the configuration on the file share is the same
    -- as the S3 bucket configuration.
    --
    -- Valid Values: @true@ | @false@
    CreateNFSFileShare -> Maybe Bool
requesterPays :: Prelude.Maybe Prelude.Bool,
    -- | File share default values. Optional.
    CreateNFSFileShare -> Maybe NFSFileShareDefaults
nFSFileShareDefaults :: Prelude.Maybe NFSFileShareDefaults,
    -- | The list of clients that are allowed to access the S3 File Gateway. The
    -- list must contain either valid IP addresses or valid CIDR blocks.
    CreateNFSFileShare -> Maybe (NonEmpty Text)
clientList :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
    -- | A value that enables guessing of the MIME type for uploaded objects
    -- based on file extensions. Set this value to @true@ to enable MIME type
    -- guessing, otherwise set to @false@. The default value is @true@.
    --
    -- Valid Values: @true@ | @false@
    CreateNFSFileShare -> Maybe Bool
guessMIMETypeEnabled :: Prelude.Maybe Prelude.Bool,
    -- | A value that sets the write status of a file share. Set this value to
    -- @true@ to set the write status to read-only, otherwise set to @false@.
    --
    -- Valid Values: @true@ | @false@
    CreateNFSFileShare -> Maybe Bool
readOnly :: Prelude.Maybe Prelude.Bool,
    -- | Specifies the Region of the S3 bucket where the NFS file share stores
    -- files.
    --
    -- This parameter is required for NFS file shares that connect to Amazon S3
    -- through a VPC endpoint, a VPC access point, or an access point alias
    -- that points to a VPC access point.
    CreateNFSFileShare -> Maybe Text
bucketRegion :: Prelude.Maybe Prelude.Text,
    -- | A list of up to 50 tags that can be assigned to the NFS file share. Each
    -- tag is a key-value pair.
    --
    -- Valid characters for key and value are letters, spaces, and numbers
    -- representable in UTF-8 format, and the following special characters: + -
    -- = . _ : \/ \@. The maximum length of a tag\'s key is 128 characters, and
    -- the maximum length for a tag\'s value is 256.
    CreateNFSFileShare -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
    -- | A unique string value that you supply that is used by S3 File Gateway to
    -- ensure idempotent file share creation.
    CreateNFSFileShare -> Text
clientToken :: Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the S3 File Gateway on which you want
    -- to create a file share.
    CreateNFSFileShare -> Text
gatewayARN :: Prelude.Text,
    -- | The ARN of the Identity and Access Management (IAM) role that an S3 File
    -- Gateway assumes when it accesses the underlying storage.
    CreateNFSFileShare -> Text
role' :: Prelude.Text,
    -- | A custom ARN for the backend storage used for storing data for file
    -- shares. It includes a resource ARN with an optional prefix
    -- concatenation. The prefix must end with a forward slash (\/).
    --
    -- You can specify LocationARN as a bucket ARN, access point ARN or access
    -- point alias, as shown in the following examples.
    --
    -- Bucket ARN:
    --
    -- @arn:aws:s3:::my-bucket\/prefix\/@
    --
    -- Access point ARN:
    --
    -- @arn:aws:s3:region:account-id:accesspoint\/access-point-name\/prefix\/@
    --
    -- If you specify an access point, the bucket policy must be configured to
    -- delegate access control to the access point. For information, see
    -- <https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points-policies.html#access-points-delegating-control Delegating access control to access points>
    -- in the /Amazon S3 User Guide/.
    --
    -- Access point alias:
    --
    -- @test-ap-ab123cdef4gehijklmn5opqrstuvuse1a-s3alias@
    CreateNFSFileShare -> Text
locationARN :: Prelude.Text
  }
  deriving (CreateNFSFileShare -> CreateNFSFileShare -> Bool
(CreateNFSFileShare -> CreateNFSFileShare -> Bool)
-> (CreateNFSFileShare -> CreateNFSFileShare -> Bool)
-> Eq CreateNFSFileShare
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateNFSFileShare -> CreateNFSFileShare -> Bool
$c/= :: CreateNFSFileShare -> CreateNFSFileShare -> Bool
== :: CreateNFSFileShare -> CreateNFSFileShare -> Bool
$c== :: CreateNFSFileShare -> CreateNFSFileShare -> Bool
Prelude.Eq, ReadPrec [CreateNFSFileShare]
ReadPrec CreateNFSFileShare
Int -> ReadS CreateNFSFileShare
ReadS [CreateNFSFileShare]
(Int -> ReadS CreateNFSFileShare)
-> ReadS [CreateNFSFileShare]
-> ReadPrec CreateNFSFileShare
-> ReadPrec [CreateNFSFileShare]
-> Read CreateNFSFileShare
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateNFSFileShare]
$creadListPrec :: ReadPrec [CreateNFSFileShare]
readPrec :: ReadPrec CreateNFSFileShare
$creadPrec :: ReadPrec CreateNFSFileShare
readList :: ReadS [CreateNFSFileShare]
$creadList :: ReadS [CreateNFSFileShare]
readsPrec :: Int -> ReadS CreateNFSFileShare
$creadsPrec :: Int -> ReadS CreateNFSFileShare
Prelude.Read, Int -> CreateNFSFileShare -> ShowS
[CreateNFSFileShare] -> ShowS
CreateNFSFileShare -> String
(Int -> CreateNFSFileShare -> ShowS)
-> (CreateNFSFileShare -> String)
-> ([CreateNFSFileShare] -> ShowS)
-> Show CreateNFSFileShare
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateNFSFileShare] -> ShowS
$cshowList :: [CreateNFSFileShare] -> ShowS
show :: CreateNFSFileShare -> String
$cshow :: CreateNFSFileShare -> String
showsPrec :: Int -> CreateNFSFileShare -> ShowS
$cshowsPrec :: Int -> CreateNFSFileShare -> ShowS
Prelude.Show, (forall x. CreateNFSFileShare -> Rep CreateNFSFileShare x)
-> (forall x. Rep CreateNFSFileShare x -> CreateNFSFileShare)
-> Generic CreateNFSFileShare
forall x. Rep CreateNFSFileShare x -> CreateNFSFileShare
forall x. CreateNFSFileShare -> Rep CreateNFSFileShare x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateNFSFileShare x -> CreateNFSFileShare
$cfrom :: forall x. CreateNFSFileShare -> Rep CreateNFSFileShare x
Prelude.Generic)

-- |
-- Create a value of 'CreateNFSFileShare' 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:
--
-- 'auditDestinationARN', 'createNFSFileShare_auditDestinationARN' - The Amazon Resource Name (ARN) of the storage used for audit logs.
--
-- 'kmsKey', 'createNFSFileShare_kmsKey' - The Amazon Resource Name (ARN) of a symmetric customer master key (CMK)
-- used for Amazon S3 server-side encryption. Storage Gateway does not
-- support asymmetric CMKs. This value can only be set when @KMSEncrypted@
-- is @true@. Optional.
--
-- 'vPCEndpointDNSName', 'createNFSFileShare_vPCEndpointDNSName' - Specifies the DNS name for the VPC endpoint that the NFS file share uses
-- to connect to Amazon S3.
--
-- This parameter is required for NFS file shares that connect to Amazon S3
-- through a VPC endpoint, a VPC access point, or an access point alias
-- that points to a VPC access point.
--
-- 'cacheAttributes', 'createNFSFileShare_cacheAttributes' - Specifies refresh cache information for the file share.
--
-- 'objectACL', 'createNFSFileShare_objectACL' - A value that sets the access control list (ACL) permission for objects
-- in the S3 bucket that a S3 File Gateway puts objects into. The default
-- value is @private@.
--
-- 'kmsEncrypted', 'createNFSFileShare_kmsEncrypted' - Set to @true@ to use Amazon S3 server-side encryption with your own KMS
-- key, or @false@ to use a key managed by Amazon S3. Optional.
--
-- Valid Values: @true@ | @false@
--
-- 'defaultStorageClass', 'createNFSFileShare_defaultStorageClass' - The default storage class for objects put into an Amazon S3 bucket by
-- the S3 File Gateway. The default value is @S3_INTELLIGENT_TIERING@.
-- Optional.
--
-- Valid Values: @S3_STANDARD@ | @S3_INTELLIGENT_TIERING@ |
-- @S3_STANDARD_IA@ | @S3_ONEZONE_IA@
--
-- 'fileShareName', 'createNFSFileShare_fileShareName' - The name of the file share. Optional.
--
-- @FileShareName@ must be set if an S3 prefix name is set in
-- @LocationARN@, or if an access point or access point alias is used.
--
-- 'notificationPolicy', 'createNFSFileShare_notificationPolicy' - The notification policy of the file share. @SettlingTimeInSeconds@
-- controls the number of seconds to wait after the last point in time a
-- client wrote to a file before generating an @ObjectUploaded@
-- notification. Because clients can make many small writes to files, it\'s
-- best to set this parameter for as long as possible to avoid generating
-- multiple notifications for the same file in a small time period.
--
-- @SettlingTimeInSeconds@ has no effect on the timing of the object
-- uploading to Amazon S3, only the timing of the notification.
--
-- The following example sets @NotificationPolicy@ on with
-- @SettlingTimeInSeconds@ set to 60.
--
-- @{\\\"Upload\\\": {\\\"SettlingTimeInSeconds\\\": 60}}@
--
-- The following example sets @NotificationPolicy@ off.
--
-- @{}@
--
-- 'squash', 'createNFSFileShare_squash' - A value that maps a user to anonymous user.
--
-- Valid values are the following:
--
-- -   @RootSquash@: Only root is mapped to anonymous user.
--
-- -   @NoSquash@: No one is mapped to anonymous user.
--
-- -   @AllSquash@: Everyone is mapped to anonymous user.
--
-- 'requesterPays', 'createNFSFileShare_requesterPays' - A value that sets who pays the cost of the request and the cost
-- associated with data download from the S3 bucket. If this value is set
-- to @true@, the requester pays the costs; otherwise, the S3 bucket owner
-- pays. However, the S3 bucket owner always pays the cost of storing data.
--
-- @RequesterPays@ is a configuration for the S3 bucket that backs the file
-- share, so make sure that the configuration on the file share is the same
-- as the S3 bucket configuration.
--
-- Valid Values: @true@ | @false@
--
-- 'nFSFileShareDefaults', 'createNFSFileShare_nFSFileShareDefaults' - File share default values. Optional.
--
-- 'clientList', 'createNFSFileShare_clientList' - The list of clients that are allowed to access the S3 File Gateway. The
-- list must contain either valid IP addresses or valid CIDR blocks.
--
-- 'guessMIMETypeEnabled', 'createNFSFileShare_guessMIMETypeEnabled' - A value that enables guessing of the MIME type for uploaded objects
-- based on file extensions. Set this value to @true@ to enable MIME type
-- guessing, otherwise set to @false@. The default value is @true@.
--
-- Valid Values: @true@ | @false@
--
-- 'readOnly', 'createNFSFileShare_readOnly' - A value that sets the write status of a file share. Set this value to
-- @true@ to set the write status to read-only, otherwise set to @false@.
--
-- Valid Values: @true@ | @false@
--
-- 'bucketRegion', 'createNFSFileShare_bucketRegion' - Specifies the Region of the S3 bucket where the NFS file share stores
-- files.
--
-- This parameter is required for NFS file shares that connect to Amazon S3
-- through a VPC endpoint, a VPC access point, or an access point alias
-- that points to a VPC access point.
--
-- 'tags', 'createNFSFileShare_tags' - A list of up to 50 tags that can be assigned to the NFS file share. Each
-- tag is a key-value pair.
--
-- Valid characters for key and value are letters, spaces, and numbers
-- representable in UTF-8 format, and the following special characters: + -
-- = . _ : \/ \@. The maximum length of a tag\'s key is 128 characters, and
-- the maximum length for a tag\'s value is 256.
--
-- 'clientToken', 'createNFSFileShare_clientToken' - A unique string value that you supply that is used by S3 File Gateway to
-- ensure idempotent file share creation.
--
-- 'gatewayARN', 'createNFSFileShare_gatewayARN' - The Amazon Resource Name (ARN) of the S3 File Gateway on which you want
-- to create a file share.
--
-- 'role'', 'createNFSFileShare_role' - The ARN of the Identity and Access Management (IAM) role that an S3 File
-- Gateway assumes when it accesses the underlying storage.
--
-- 'locationARN', 'createNFSFileShare_locationARN' - A custom ARN for the backend storage used for storing data for file
-- shares. It includes a resource ARN with an optional prefix
-- concatenation. The prefix must end with a forward slash (\/).
--
-- You can specify LocationARN as a bucket ARN, access point ARN or access
-- point alias, as shown in the following examples.
--
-- Bucket ARN:
--
-- @arn:aws:s3:::my-bucket\/prefix\/@
--
-- Access point ARN:
--
-- @arn:aws:s3:region:account-id:accesspoint\/access-point-name\/prefix\/@
--
-- If you specify an access point, the bucket policy must be configured to
-- delegate access control to the access point. For information, see
-- <https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points-policies.html#access-points-delegating-control Delegating access control to access points>
-- in the /Amazon S3 User Guide/.
--
-- Access point alias:
--
-- @test-ap-ab123cdef4gehijklmn5opqrstuvuse1a-s3alias@
newCreateNFSFileShare ::
  -- | 'clientToken'
  Prelude.Text ->
  -- | 'gatewayARN'
  Prelude.Text ->
  -- | 'role''
  Prelude.Text ->
  -- | 'locationARN'
  Prelude.Text ->
  CreateNFSFileShare
newCreateNFSFileShare :: Text -> Text -> Text -> Text -> CreateNFSFileShare
newCreateNFSFileShare
  Text
pClientToken_
  Text
pGatewayARN_
  Text
pRole_
  Text
pLocationARN_ =
    CreateNFSFileShare' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheAttributes
-> Maybe ObjectACL
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe NFSFileShareDefaults
-> Maybe (NonEmpty Text)
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe [Tag]
-> Text
-> Text
-> Text
-> Text
-> CreateNFSFileShare
CreateNFSFileShare'
      { $sel:auditDestinationARN:CreateNFSFileShare' :: Maybe Text
auditDestinationARN =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:kmsKey:CreateNFSFileShare' :: Maybe Text
kmsKey = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:vPCEndpointDNSName:CreateNFSFileShare' :: Maybe Text
vPCEndpointDNSName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:cacheAttributes:CreateNFSFileShare' :: Maybe CacheAttributes
cacheAttributes = Maybe CacheAttributes
forall a. Maybe a
Prelude.Nothing,
        $sel:objectACL:CreateNFSFileShare' :: Maybe ObjectACL
objectACL = Maybe ObjectACL
forall a. Maybe a
Prelude.Nothing,
        $sel:kmsEncrypted:CreateNFSFileShare' :: Maybe Bool
kmsEncrypted = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:defaultStorageClass:CreateNFSFileShare' :: Maybe Text
defaultStorageClass = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:fileShareName:CreateNFSFileShare' :: Maybe Text
fileShareName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:notificationPolicy:CreateNFSFileShare' :: Maybe Text
notificationPolicy = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:squash:CreateNFSFileShare' :: Maybe Text
squash = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:requesterPays:CreateNFSFileShare' :: Maybe Bool
requesterPays = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:nFSFileShareDefaults:CreateNFSFileShare' :: Maybe NFSFileShareDefaults
nFSFileShareDefaults = Maybe NFSFileShareDefaults
forall a. Maybe a
Prelude.Nothing,
        $sel:clientList:CreateNFSFileShare' :: Maybe (NonEmpty Text)
clientList = Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
        $sel:guessMIMETypeEnabled:CreateNFSFileShare' :: Maybe Bool
guessMIMETypeEnabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:readOnly:CreateNFSFileShare' :: Maybe Bool
readOnly = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:bucketRegion:CreateNFSFileShare' :: Maybe Text
bucketRegion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:tags:CreateNFSFileShare' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
        $sel:clientToken:CreateNFSFileShare' :: Text
clientToken = Text
pClientToken_,
        $sel:gatewayARN:CreateNFSFileShare' :: Text
gatewayARN = Text
pGatewayARN_,
        $sel:role':CreateNFSFileShare' :: Text
role' = Text
pRole_,
        $sel:locationARN:CreateNFSFileShare' :: Text
locationARN = Text
pLocationARN_
      }

-- | The Amazon Resource Name (ARN) of the storage used for audit logs.
createNFSFileShare_auditDestinationARN :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe Prelude.Text)
createNFSFileShare_auditDestinationARN :: (Maybe Text -> f (Maybe Text))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_auditDestinationARN = (CreateNFSFileShare -> Maybe Text)
-> (CreateNFSFileShare -> Maybe Text -> CreateNFSFileShare)
-> Lens
     CreateNFSFileShare CreateNFSFileShare (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe Text
auditDestinationARN :: Maybe Text
$sel:auditDestinationARN:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Text
auditDestinationARN} -> Maybe Text
auditDestinationARN) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe Text
a -> CreateNFSFileShare
s {$sel:auditDestinationARN:CreateNFSFileShare' :: Maybe Text
auditDestinationARN = Maybe Text
a} :: CreateNFSFileShare)

-- | The Amazon Resource Name (ARN) of a symmetric customer master key (CMK)
-- used for Amazon S3 server-side encryption. Storage Gateway does not
-- support asymmetric CMKs. This value can only be set when @KMSEncrypted@
-- is @true@. Optional.
createNFSFileShare_kmsKey :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe Prelude.Text)
createNFSFileShare_kmsKey :: (Maybe Text -> f (Maybe Text))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_kmsKey = (CreateNFSFileShare -> Maybe Text)
-> (CreateNFSFileShare -> Maybe Text -> CreateNFSFileShare)
-> Lens
     CreateNFSFileShare CreateNFSFileShare (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe Text
kmsKey :: Maybe Text
$sel:kmsKey:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Text
kmsKey} -> Maybe Text
kmsKey) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe Text
a -> CreateNFSFileShare
s {$sel:kmsKey:CreateNFSFileShare' :: Maybe Text
kmsKey = Maybe Text
a} :: CreateNFSFileShare)

-- | Specifies the DNS name for the VPC endpoint that the NFS file share uses
-- to connect to Amazon S3.
--
-- This parameter is required for NFS file shares that connect to Amazon S3
-- through a VPC endpoint, a VPC access point, or an access point alias
-- that points to a VPC access point.
createNFSFileShare_vPCEndpointDNSName :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe Prelude.Text)
createNFSFileShare_vPCEndpointDNSName :: (Maybe Text -> f (Maybe Text))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_vPCEndpointDNSName = (CreateNFSFileShare -> Maybe Text)
-> (CreateNFSFileShare -> Maybe Text -> CreateNFSFileShare)
-> Lens
     CreateNFSFileShare CreateNFSFileShare (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe Text
vPCEndpointDNSName :: Maybe Text
$sel:vPCEndpointDNSName:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Text
vPCEndpointDNSName} -> Maybe Text
vPCEndpointDNSName) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe Text
a -> CreateNFSFileShare
s {$sel:vPCEndpointDNSName:CreateNFSFileShare' :: Maybe Text
vPCEndpointDNSName = Maybe Text
a} :: CreateNFSFileShare)

-- | Specifies refresh cache information for the file share.
createNFSFileShare_cacheAttributes :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe CacheAttributes)
createNFSFileShare_cacheAttributes :: (Maybe CacheAttributes -> f (Maybe CacheAttributes))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_cacheAttributes = (CreateNFSFileShare -> Maybe CacheAttributes)
-> (CreateNFSFileShare
    -> Maybe CacheAttributes -> CreateNFSFileShare)
-> Lens
     CreateNFSFileShare
     CreateNFSFileShare
     (Maybe CacheAttributes)
     (Maybe CacheAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe CacheAttributes
cacheAttributes :: Maybe CacheAttributes
$sel:cacheAttributes:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe CacheAttributes
cacheAttributes} -> Maybe CacheAttributes
cacheAttributes) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe CacheAttributes
a -> CreateNFSFileShare
s {$sel:cacheAttributes:CreateNFSFileShare' :: Maybe CacheAttributes
cacheAttributes = Maybe CacheAttributes
a} :: CreateNFSFileShare)

-- | A value that sets the access control list (ACL) permission for objects
-- in the S3 bucket that a S3 File Gateway puts objects into. The default
-- value is @private@.
createNFSFileShare_objectACL :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe ObjectACL)
createNFSFileShare_objectACL :: (Maybe ObjectACL -> f (Maybe ObjectACL))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_objectACL = (CreateNFSFileShare -> Maybe ObjectACL)
-> (CreateNFSFileShare -> Maybe ObjectACL -> CreateNFSFileShare)
-> Lens
     CreateNFSFileShare
     CreateNFSFileShare
     (Maybe ObjectACL)
     (Maybe ObjectACL)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe ObjectACL
objectACL :: Maybe ObjectACL
$sel:objectACL:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe ObjectACL
objectACL} -> Maybe ObjectACL
objectACL) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe ObjectACL
a -> CreateNFSFileShare
s {$sel:objectACL:CreateNFSFileShare' :: Maybe ObjectACL
objectACL = Maybe ObjectACL
a} :: CreateNFSFileShare)

-- | Set to @true@ to use Amazon S3 server-side encryption with your own KMS
-- key, or @false@ to use a key managed by Amazon S3. Optional.
--
-- Valid Values: @true@ | @false@
createNFSFileShare_kmsEncrypted :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe Prelude.Bool)
createNFSFileShare_kmsEncrypted :: (Maybe Bool -> f (Maybe Bool))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_kmsEncrypted = (CreateNFSFileShare -> Maybe Bool)
-> (CreateNFSFileShare -> Maybe Bool -> CreateNFSFileShare)
-> Lens
     CreateNFSFileShare CreateNFSFileShare (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe Bool
kmsEncrypted :: Maybe Bool
$sel:kmsEncrypted:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Bool
kmsEncrypted} -> Maybe Bool
kmsEncrypted) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe Bool
a -> CreateNFSFileShare
s {$sel:kmsEncrypted:CreateNFSFileShare' :: Maybe Bool
kmsEncrypted = Maybe Bool
a} :: CreateNFSFileShare)

-- | The default storage class for objects put into an Amazon S3 bucket by
-- the S3 File Gateway. The default value is @S3_INTELLIGENT_TIERING@.
-- Optional.
--
-- Valid Values: @S3_STANDARD@ | @S3_INTELLIGENT_TIERING@ |
-- @S3_STANDARD_IA@ | @S3_ONEZONE_IA@
createNFSFileShare_defaultStorageClass :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe Prelude.Text)
createNFSFileShare_defaultStorageClass :: (Maybe Text -> f (Maybe Text))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_defaultStorageClass = (CreateNFSFileShare -> Maybe Text)
-> (CreateNFSFileShare -> Maybe Text -> CreateNFSFileShare)
-> Lens
     CreateNFSFileShare CreateNFSFileShare (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe Text
defaultStorageClass :: Maybe Text
$sel:defaultStorageClass:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Text
defaultStorageClass} -> Maybe Text
defaultStorageClass) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe Text
a -> CreateNFSFileShare
s {$sel:defaultStorageClass:CreateNFSFileShare' :: Maybe Text
defaultStorageClass = Maybe Text
a} :: CreateNFSFileShare)

-- | The name of the file share. Optional.
--
-- @FileShareName@ must be set if an S3 prefix name is set in
-- @LocationARN@, or if an access point or access point alias is used.
createNFSFileShare_fileShareName :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe Prelude.Text)
createNFSFileShare_fileShareName :: (Maybe Text -> f (Maybe Text))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_fileShareName = (CreateNFSFileShare -> Maybe Text)
-> (CreateNFSFileShare -> Maybe Text -> CreateNFSFileShare)
-> Lens
     CreateNFSFileShare CreateNFSFileShare (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe Text
fileShareName :: Maybe Text
$sel:fileShareName:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Text
fileShareName} -> Maybe Text
fileShareName) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe Text
a -> CreateNFSFileShare
s {$sel:fileShareName:CreateNFSFileShare' :: Maybe Text
fileShareName = Maybe Text
a} :: CreateNFSFileShare)

-- | The notification policy of the file share. @SettlingTimeInSeconds@
-- controls the number of seconds to wait after the last point in time a
-- client wrote to a file before generating an @ObjectUploaded@
-- notification. Because clients can make many small writes to files, it\'s
-- best to set this parameter for as long as possible to avoid generating
-- multiple notifications for the same file in a small time period.
--
-- @SettlingTimeInSeconds@ has no effect on the timing of the object
-- uploading to Amazon S3, only the timing of the notification.
--
-- The following example sets @NotificationPolicy@ on with
-- @SettlingTimeInSeconds@ set to 60.
--
-- @{\\\"Upload\\\": {\\\"SettlingTimeInSeconds\\\": 60}}@
--
-- The following example sets @NotificationPolicy@ off.
--
-- @{}@
createNFSFileShare_notificationPolicy :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe Prelude.Text)
createNFSFileShare_notificationPolicy :: (Maybe Text -> f (Maybe Text))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_notificationPolicy = (CreateNFSFileShare -> Maybe Text)
-> (CreateNFSFileShare -> Maybe Text -> CreateNFSFileShare)
-> Lens
     CreateNFSFileShare CreateNFSFileShare (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe Text
notificationPolicy :: Maybe Text
$sel:notificationPolicy:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Text
notificationPolicy} -> Maybe Text
notificationPolicy) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe Text
a -> CreateNFSFileShare
s {$sel:notificationPolicy:CreateNFSFileShare' :: Maybe Text
notificationPolicy = Maybe Text
a} :: CreateNFSFileShare)

-- | A value that maps a user to anonymous user.
--
-- Valid values are the following:
--
-- -   @RootSquash@: Only root is mapped to anonymous user.
--
-- -   @NoSquash@: No one is mapped to anonymous user.
--
-- -   @AllSquash@: Everyone is mapped to anonymous user.
createNFSFileShare_squash :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe Prelude.Text)
createNFSFileShare_squash :: (Maybe Text -> f (Maybe Text))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_squash = (CreateNFSFileShare -> Maybe Text)
-> (CreateNFSFileShare -> Maybe Text -> CreateNFSFileShare)
-> Lens
     CreateNFSFileShare CreateNFSFileShare (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe Text
squash :: Maybe Text
$sel:squash:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Text
squash} -> Maybe Text
squash) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe Text
a -> CreateNFSFileShare
s {$sel:squash:CreateNFSFileShare' :: Maybe Text
squash = Maybe Text
a} :: CreateNFSFileShare)

-- | A value that sets who pays the cost of the request and the cost
-- associated with data download from the S3 bucket. If this value is set
-- to @true@, the requester pays the costs; otherwise, the S3 bucket owner
-- pays. However, the S3 bucket owner always pays the cost of storing data.
--
-- @RequesterPays@ is a configuration for the S3 bucket that backs the file
-- share, so make sure that the configuration on the file share is the same
-- as the S3 bucket configuration.
--
-- Valid Values: @true@ | @false@
createNFSFileShare_requesterPays :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe Prelude.Bool)
createNFSFileShare_requesterPays :: (Maybe Bool -> f (Maybe Bool))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_requesterPays = (CreateNFSFileShare -> Maybe Bool)
-> (CreateNFSFileShare -> Maybe Bool -> CreateNFSFileShare)
-> Lens
     CreateNFSFileShare CreateNFSFileShare (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe Bool
requesterPays :: Maybe Bool
$sel:requesterPays:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Bool
requesterPays} -> Maybe Bool
requesterPays) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe Bool
a -> CreateNFSFileShare
s {$sel:requesterPays:CreateNFSFileShare' :: Maybe Bool
requesterPays = Maybe Bool
a} :: CreateNFSFileShare)

-- | File share default values. Optional.
createNFSFileShare_nFSFileShareDefaults :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe NFSFileShareDefaults)
createNFSFileShare_nFSFileShareDefaults :: (Maybe NFSFileShareDefaults -> f (Maybe NFSFileShareDefaults))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_nFSFileShareDefaults = (CreateNFSFileShare -> Maybe NFSFileShareDefaults)
-> (CreateNFSFileShare
    -> Maybe NFSFileShareDefaults -> CreateNFSFileShare)
-> Lens
     CreateNFSFileShare
     CreateNFSFileShare
     (Maybe NFSFileShareDefaults)
     (Maybe NFSFileShareDefaults)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe NFSFileShareDefaults
nFSFileShareDefaults :: Maybe NFSFileShareDefaults
$sel:nFSFileShareDefaults:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe NFSFileShareDefaults
nFSFileShareDefaults} -> Maybe NFSFileShareDefaults
nFSFileShareDefaults) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe NFSFileShareDefaults
a -> CreateNFSFileShare
s {$sel:nFSFileShareDefaults:CreateNFSFileShare' :: Maybe NFSFileShareDefaults
nFSFileShareDefaults = Maybe NFSFileShareDefaults
a} :: CreateNFSFileShare)

-- | The list of clients that are allowed to access the S3 File Gateway. The
-- list must contain either valid IP addresses or valid CIDR blocks.
createNFSFileShare_clientList :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
createNFSFileShare_clientList :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_clientList = (CreateNFSFileShare -> Maybe (NonEmpty Text))
-> (CreateNFSFileShare
    -> Maybe (NonEmpty Text) -> CreateNFSFileShare)
-> Lens
     CreateNFSFileShare
     CreateNFSFileShare
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe (NonEmpty Text)
clientList :: Maybe (NonEmpty Text)
$sel:clientList:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe (NonEmpty Text)
clientList} -> Maybe (NonEmpty Text)
clientList) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe (NonEmpty Text)
a -> CreateNFSFileShare
s {$sel:clientList:CreateNFSFileShare' :: Maybe (NonEmpty Text)
clientList = Maybe (NonEmpty Text)
a} :: CreateNFSFileShare) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
 -> CreateNFSFileShare -> f CreateNFSFileShare)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
    -> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> CreateNFSFileShare
-> f CreateNFSFileShare
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
-> Iso
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty 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
  (NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A value that enables guessing of the MIME type for uploaded objects
-- based on file extensions. Set this value to @true@ to enable MIME type
-- guessing, otherwise set to @false@. The default value is @true@.
--
-- Valid Values: @true@ | @false@
createNFSFileShare_guessMIMETypeEnabled :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe Prelude.Bool)
createNFSFileShare_guessMIMETypeEnabled :: (Maybe Bool -> f (Maybe Bool))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_guessMIMETypeEnabled = (CreateNFSFileShare -> Maybe Bool)
-> (CreateNFSFileShare -> Maybe Bool -> CreateNFSFileShare)
-> Lens
     CreateNFSFileShare CreateNFSFileShare (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe Bool
guessMIMETypeEnabled :: Maybe Bool
$sel:guessMIMETypeEnabled:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Bool
guessMIMETypeEnabled} -> Maybe Bool
guessMIMETypeEnabled) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe Bool
a -> CreateNFSFileShare
s {$sel:guessMIMETypeEnabled:CreateNFSFileShare' :: Maybe Bool
guessMIMETypeEnabled = Maybe Bool
a} :: CreateNFSFileShare)

-- | A value that sets the write status of a file share. Set this value to
-- @true@ to set the write status to read-only, otherwise set to @false@.
--
-- Valid Values: @true@ | @false@
createNFSFileShare_readOnly :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe Prelude.Bool)
createNFSFileShare_readOnly :: (Maybe Bool -> f (Maybe Bool))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_readOnly = (CreateNFSFileShare -> Maybe Bool)
-> (CreateNFSFileShare -> Maybe Bool -> CreateNFSFileShare)
-> Lens
     CreateNFSFileShare CreateNFSFileShare (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe Bool
readOnly :: Maybe Bool
$sel:readOnly:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Bool
readOnly} -> Maybe Bool
readOnly) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe Bool
a -> CreateNFSFileShare
s {$sel:readOnly:CreateNFSFileShare' :: Maybe Bool
readOnly = Maybe Bool
a} :: CreateNFSFileShare)

-- | Specifies the Region of the S3 bucket where the NFS file share stores
-- files.
--
-- This parameter is required for NFS file shares that connect to Amazon S3
-- through a VPC endpoint, a VPC access point, or an access point alias
-- that points to a VPC access point.
createNFSFileShare_bucketRegion :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe Prelude.Text)
createNFSFileShare_bucketRegion :: (Maybe Text -> f (Maybe Text))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_bucketRegion = (CreateNFSFileShare -> Maybe Text)
-> (CreateNFSFileShare -> Maybe Text -> CreateNFSFileShare)
-> Lens
     CreateNFSFileShare CreateNFSFileShare (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe Text
bucketRegion :: Maybe Text
$sel:bucketRegion:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Text
bucketRegion} -> Maybe Text
bucketRegion) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe Text
a -> CreateNFSFileShare
s {$sel:bucketRegion:CreateNFSFileShare' :: Maybe Text
bucketRegion = Maybe Text
a} :: CreateNFSFileShare)

-- | A list of up to 50 tags that can be assigned to the NFS file share. Each
-- tag is a key-value pair.
--
-- Valid characters for key and value are letters, spaces, and numbers
-- representable in UTF-8 format, and the following special characters: + -
-- = . _ : \/ \@. The maximum length of a tag\'s key is 128 characters, and
-- the maximum length for a tag\'s value is 256.
createNFSFileShare_tags :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe [Tag])
createNFSFileShare_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_tags = (CreateNFSFileShare -> Maybe [Tag])
-> (CreateNFSFileShare -> Maybe [Tag] -> CreateNFSFileShare)
-> Lens
     CreateNFSFileShare CreateNFSFileShare (Maybe [Tag]) (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe [Tag]
a -> CreateNFSFileShare
s {$sel:tags:CreateNFSFileShare' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateNFSFileShare) ((Maybe [Tag] -> f (Maybe [Tag]))
 -> CreateNFSFileShare -> f CreateNFSFileShare)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
    -> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateNFSFileShare
-> f CreateNFSFileShare
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

-- | A unique string value that you supply that is used by S3 File Gateway to
-- ensure idempotent file share creation.
createNFSFileShare_clientToken :: Lens.Lens' CreateNFSFileShare Prelude.Text
createNFSFileShare_clientToken :: (Text -> f Text) -> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_clientToken = (CreateNFSFileShare -> Text)
-> (CreateNFSFileShare -> Text -> CreateNFSFileShare)
-> Lens CreateNFSFileShare CreateNFSFileShare Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Text
clientToken :: Text
$sel:clientToken:CreateNFSFileShare' :: CreateNFSFileShare -> Text
clientToken} -> Text
clientToken) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Text
a -> CreateNFSFileShare
s {$sel:clientToken:CreateNFSFileShare' :: Text
clientToken = Text
a} :: CreateNFSFileShare)

-- | The Amazon Resource Name (ARN) of the S3 File Gateway on which you want
-- to create a file share.
createNFSFileShare_gatewayARN :: Lens.Lens' CreateNFSFileShare Prelude.Text
createNFSFileShare_gatewayARN :: (Text -> f Text) -> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_gatewayARN = (CreateNFSFileShare -> Text)
-> (CreateNFSFileShare -> Text -> CreateNFSFileShare)
-> Lens CreateNFSFileShare CreateNFSFileShare Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Text
gatewayARN :: Text
$sel:gatewayARN:CreateNFSFileShare' :: CreateNFSFileShare -> Text
gatewayARN} -> Text
gatewayARN) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Text
a -> CreateNFSFileShare
s {$sel:gatewayARN:CreateNFSFileShare' :: Text
gatewayARN = Text
a} :: CreateNFSFileShare)

-- | The ARN of the Identity and Access Management (IAM) role that an S3 File
-- Gateway assumes when it accesses the underlying storage.
createNFSFileShare_role :: Lens.Lens' CreateNFSFileShare Prelude.Text
createNFSFileShare_role :: (Text -> f Text) -> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_role = (CreateNFSFileShare -> Text)
-> (CreateNFSFileShare -> Text -> CreateNFSFileShare)
-> Lens CreateNFSFileShare CreateNFSFileShare Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Text
role' :: Text
$sel:role':CreateNFSFileShare' :: CreateNFSFileShare -> Text
role'} -> Text
role') (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Text
a -> CreateNFSFileShare
s {$sel:role':CreateNFSFileShare' :: Text
role' = Text
a} :: CreateNFSFileShare)

-- | A custom ARN for the backend storage used for storing data for file
-- shares. It includes a resource ARN with an optional prefix
-- concatenation. The prefix must end with a forward slash (\/).
--
-- You can specify LocationARN as a bucket ARN, access point ARN or access
-- point alias, as shown in the following examples.
--
-- Bucket ARN:
--
-- @arn:aws:s3:::my-bucket\/prefix\/@
--
-- Access point ARN:
--
-- @arn:aws:s3:region:account-id:accesspoint\/access-point-name\/prefix\/@
--
-- If you specify an access point, the bucket policy must be configured to
-- delegate access control to the access point. For information, see
-- <https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-points-policies.html#access-points-delegating-control Delegating access control to access points>
-- in the /Amazon S3 User Guide/.
--
-- Access point alias:
--
-- @test-ap-ab123cdef4gehijklmn5opqrstuvuse1a-s3alias@
createNFSFileShare_locationARN :: Lens.Lens' CreateNFSFileShare Prelude.Text
createNFSFileShare_locationARN :: (Text -> f Text) -> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_locationARN = (CreateNFSFileShare -> Text)
-> (CreateNFSFileShare -> Text -> CreateNFSFileShare)
-> Lens CreateNFSFileShare CreateNFSFileShare Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Text
locationARN :: Text
$sel:locationARN:CreateNFSFileShare' :: CreateNFSFileShare -> Text
locationARN} -> Text
locationARN) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Text
a -> CreateNFSFileShare
s {$sel:locationARN:CreateNFSFileShare' :: Text
locationARN = Text
a} :: CreateNFSFileShare)

instance Core.AWSRequest CreateNFSFileShare where
  type
    AWSResponse CreateNFSFileShare =
      CreateNFSFileShareResponse
  request :: CreateNFSFileShare -> Request CreateNFSFileShare
request = Service -> CreateNFSFileShare -> Request CreateNFSFileShare
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy CreateNFSFileShare
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreateNFSFileShare)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse CreateNFSFileShare))
-> Logger
-> Service
-> Proxy CreateNFSFileShare
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreateNFSFileShare)))
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 -> CreateNFSFileShareResponse
CreateNFSFileShareResponse'
            (Maybe Text -> Int -> CreateNFSFileShareResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateNFSFileShareResponse)
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
"FileShareARN")
            Either String (Int -> CreateNFSFileShareResponse)
-> Either String Int -> Either String CreateNFSFileShareResponse
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 CreateNFSFileShare

instance Prelude.NFData CreateNFSFileShare

instance Core.ToHeaders CreateNFSFileShare where
  toHeaders :: CreateNFSFileShare -> ResponseHeaders
toHeaders =
    ResponseHeaders -> CreateNFSFileShare -> 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.CreateNFSFileShare" ::
                          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 CreateNFSFileShare where
  toJSON :: CreateNFSFileShare -> Value
toJSON CreateNFSFileShare' {Maybe Bool
Maybe [Tag]
Maybe (NonEmpty Text)
Maybe Text
Maybe CacheAttributes
Maybe NFSFileShareDefaults
Maybe ObjectACL
Text
locationARN :: Text
role' :: Text
gatewayARN :: Text
clientToken :: Text
tags :: Maybe [Tag]
bucketRegion :: Maybe Text
readOnly :: Maybe Bool
guessMIMETypeEnabled :: Maybe Bool
clientList :: Maybe (NonEmpty Text)
nFSFileShareDefaults :: Maybe NFSFileShareDefaults
requesterPays :: Maybe Bool
squash :: Maybe Text
notificationPolicy :: Maybe Text
fileShareName :: Maybe Text
defaultStorageClass :: Maybe Text
kmsEncrypted :: Maybe Bool
objectACL :: Maybe ObjectACL
cacheAttributes :: Maybe CacheAttributes
vPCEndpointDNSName :: Maybe Text
kmsKey :: Maybe Text
auditDestinationARN :: Maybe Text
$sel:locationARN:CreateNFSFileShare' :: CreateNFSFileShare -> Text
$sel:role':CreateNFSFileShare' :: CreateNFSFileShare -> Text
$sel:gatewayARN:CreateNFSFileShare' :: CreateNFSFileShare -> Text
$sel:clientToken:CreateNFSFileShare' :: CreateNFSFileShare -> Text
$sel:tags:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe [Tag]
$sel:bucketRegion:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Text
$sel:readOnly:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Bool
$sel:guessMIMETypeEnabled:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Bool
$sel:clientList:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe (NonEmpty Text)
$sel:nFSFileShareDefaults:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe NFSFileShareDefaults
$sel:requesterPays:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Bool
$sel:squash:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Text
$sel:notificationPolicy:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Text
$sel:fileShareName:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Text
$sel:defaultStorageClass:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Text
$sel:kmsEncrypted:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Bool
$sel:objectACL:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe ObjectACL
$sel:cacheAttributes:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe CacheAttributes
$sel:vPCEndpointDNSName:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Text
$sel:kmsKey:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Text
$sel:auditDestinationARN:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"AuditDestinationARN" 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
auditDestinationARN,
            (Text
"KMSKey" 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
kmsKey,
            (Text
"VPCEndpointDNSName" 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
vPCEndpointDNSName,
            (Text
"CacheAttributes" Text -> CacheAttributes -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (CacheAttributes -> Pair) -> Maybe CacheAttributes -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CacheAttributes
cacheAttributes,
            (Text
"ObjectACL" Text -> ObjectACL -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (ObjectACL -> Pair) -> Maybe ObjectACL -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ObjectACL
objectACL,
            (Text
"KMSEncrypted" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
kmsEncrypted,
            (Text
"DefaultStorageClass" 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
defaultStorageClass,
            (Text
"FileShareName" 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
fileShareName,
            (Text
"NotificationPolicy" 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
notificationPolicy,
            (Text
"Squash" 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
squash,
            (Text
"RequesterPays" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
requesterPays,
            (Text
"NFSFileShareDefaults" Text -> NFSFileShareDefaults -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (NFSFileShareDefaults -> Pair)
-> Maybe NFSFileShareDefaults -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe NFSFileShareDefaults
nFSFileShareDefaults,
            (Text
"ClientList" Text -> NonEmpty Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (NonEmpty Text -> Pair) -> Maybe (NonEmpty Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Text)
clientList,
            (Text
"GuessMIMETypeEnabled" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
guessMIMETypeEnabled,
            (Text
"ReadOnly" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
readOnly,
            (Text
"BucketRegion" 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
bucketRegion,
            (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
"ClientToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
clientToken),
            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
"Role" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
role'),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"LocationARN" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
locationARN)
          ]
      )

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

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

-- | CreateNFSFileShareOutput
--
-- /See:/ 'newCreateNFSFileShareResponse' smart constructor.
data CreateNFSFileShareResponse = CreateNFSFileShareResponse'
  { -- | The Amazon Resource Name (ARN) of the newly created file share.
    CreateNFSFileShareResponse -> Maybe Text
fileShareARN :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    CreateNFSFileShareResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (CreateNFSFileShareResponse -> CreateNFSFileShareResponse -> Bool
(CreateNFSFileShareResponse -> CreateNFSFileShareResponse -> Bool)
-> (CreateNFSFileShareResponse
    -> CreateNFSFileShareResponse -> Bool)
-> Eq CreateNFSFileShareResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateNFSFileShareResponse -> CreateNFSFileShareResponse -> Bool
$c/= :: CreateNFSFileShareResponse -> CreateNFSFileShareResponse -> Bool
== :: CreateNFSFileShareResponse -> CreateNFSFileShareResponse -> Bool
$c== :: CreateNFSFileShareResponse -> CreateNFSFileShareResponse -> Bool
Prelude.Eq, ReadPrec [CreateNFSFileShareResponse]
ReadPrec CreateNFSFileShareResponse
Int -> ReadS CreateNFSFileShareResponse
ReadS [CreateNFSFileShareResponse]
(Int -> ReadS CreateNFSFileShareResponse)
-> ReadS [CreateNFSFileShareResponse]
-> ReadPrec CreateNFSFileShareResponse
-> ReadPrec [CreateNFSFileShareResponse]
-> Read CreateNFSFileShareResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateNFSFileShareResponse]
$creadListPrec :: ReadPrec [CreateNFSFileShareResponse]
readPrec :: ReadPrec CreateNFSFileShareResponse
$creadPrec :: ReadPrec CreateNFSFileShareResponse
readList :: ReadS [CreateNFSFileShareResponse]
$creadList :: ReadS [CreateNFSFileShareResponse]
readsPrec :: Int -> ReadS CreateNFSFileShareResponse
$creadsPrec :: Int -> ReadS CreateNFSFileShareResponse
Prelude.Read, Int -> CreateNFSFileShareResponse -> ShowS
[CreateNFSFileShareResponse] -> ShowS
CreateNFSFileShareResponse -> String
(Int -> CreateNFSFileShareResponse -> ShowS)
-> (CreateNFSFileShareResponse -> String)
-> ([CreateNFSFileShareResponse] -> ShowS)
-> Show CreateNFSFileShareResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateNFSFileShareResponse] -> ShowS
$cshowList :: [CreateNFSFileShareResponse] -> ShowS
show :: CreateNFSFileShareResponse -> String
$cshow :: CreateNFSFileShareResponse -> String
showsPrec :: Int -> CreateNFSFileShareResponse -> ShowS
$cshowsPrec :: Int -> CreateNFSFileShareResponse -> ShowS
Prelude.Show, (forall x.
 CreateNFSFileShareResponse -> Rep CreateNFSFileShareResponse x)
-> (forall x.
    Rep CreateNFSFileShareResponse x -> CreateNFSFileShareResponse)
-> Generic CreateNFSFileShareResponse
forall x.
Rep CreateNFSFileShareResponse x -> CreateNFSFileShareResponse
forall x.
CreateNFSFileShareResponse -> Rep CreateNFSFileShareResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateNFSFileShareResponse x -> CreateNFSFileShareResponse
$cfrom :: forall x.
CreateNFSFileShareResponse -> Rep CreateNFSFileShareResponse x
Prelude.Generic)

-- |
-- Create a value of 'CreateNFSFileShareResponse' 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:
--
-- 'fileShareARN', 'createNFSFileShareResponse_fileShareARN' - The Amazon Resource Name (ARN) of the newly created file share.
--
-- 'httpStatus', 'createNFSFileShareResponse_httpStatus' - The response's http status code.
newCreateNFSFileShareResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  CreateNFSFileShareResponse
newCreateNFSFileShareResponse :: Int -> CreateNFSFileShareResponse
newCreateNFSFileShareResponse Int
pHttpStatus_ =
  CreateNFSFileShareResponse' :: Maybe Text -> Int -> CreateNFSFileShareResponse
CreateNFSFileShareResponse'
    { $sel:fileShareARN:CreateNFSFileShareResponse' :: Maybe Text
fileShareARN =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:CreateNFSFileShareResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The Amazon Resource Name (ARN) of the newly created file share.
createNFSFileShareResponse_fileShareARN :: Lens.Lens' CreateNFSFileShareResponse (Prelude.Maybe Prelude.Text)
createNFSFileShareResponse_fileShareARN :: (Maybe Text -> f (Maybe Text))
-> CreateNFSFileShareResponse -> f CreateNFSFileShareResponse
createNFSFileShareResponse_fileShareARN = (CreateNFSFileShareResponse -> Maybe Text)
-> (CreateNFSFileShareResponse
    -> Maybe Text -> CreateNFSFileShareResponse)
-> Lens
     CreateNFSFileShareResponse
     CreateNFSFileShareResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShareResponse' {Maybe Text
fileShareARN :: Maybe Text
$sel:fileShareARN:CreateNFSFileShareResponse' :: CreateNFSFileShareResponse -> Maybe Text
fileShareARN} -> Maybe Text
fileShareARN) (\s :: CreateNFSFileShareResponse
s@CreateNFSFileShareResponse' {} Maybe Text
a -> CreateNFSFileShareResponse
s {$sel:fileShareARN:CreateNFSFileShareResponse' :: Maybe Text
fileShareARN = Maybe Text
a} :: CreateNFSFileShareResponse)

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

instance Prelude.NFData CreateNFSFileShareResponse