{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# 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.Types.NFSFileShareInfo
-- 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)
module Amazonka.StorageGateway.Types.NFSFileShareInfo where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.StorageGateway.Types.CacheAttributes
import Amazonka.StorageGateway.Types.NFSFileShareDefaults
import Amazonka.StorageGateway.Types.ObjectACL
import Amazonka.StorageGateway.Types.Tag

-- | The Unix file permissions and ownership information assigned, by
-- default, to native S3 objects when an S3 File Gateway discovers them in
-- S3 buckets. This operation is only supported in S3 File Gateways.
--
-- /See:/ 'newNFSFileShareInfo' smart constructor.
data NFSFileShareInfo = NFSFileShareInfo'
  { -- | The Amazon Resource Name (ARN) of the storage used for audit logs.
    NFSFileShareInfo -> Maybe Text
auditDestinationARN :: Prelude.Maybe Prelude.Text,
    NFSFileShareInfo -> Maybe Text
fileShareStatus :: Prelude.Maybe Prelude.Text,
    NFSFileShareInfo -> Maybe Text
kmsKey :: Prelude.Maybe Prelude.Text,
    NFSFileShareInfo -> Maybe Text
gatewayARN :: Prelude.Maybe Prelude.Text,
    NFSFileShareInfo -> Maybe Text
path :: 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.
    NFSFileShareInfo -> Maybe Text
vPCEndpointDNSName :: Prelude.Maybe Prelude.Text,
    -- | Refresh cache information for the file share.
    NFSFileShareInfo -> Maybe CacheAttributes
cacheAttributes :: Prelude.Maybe CacheAttributes,
    NFSFileShareInfo -> 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@
    NFSFileShareInfo -> Maybe Bool
kmsEncrypted :: Prelude.Maybe Prelude.Bool,
    NFSFileShareInfo -> Maybe Text
fileShareId :: Prelude.Maybe Prelude.Text,
    NFSFileShareInfo -> Maybe Text
fileShareARN :: Prelude.Maybe Prelude.Text,
    -- | 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@
    NFSFileShareInfo -> 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.
    NFSFileShareInfo -> Maybe Text
fileShareName :: Prelude.Maybe Prelude.Text,
    NFSFileShareInfo -> Maybe Text
role' :: 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.
    --
    -- @{}@
    NFSFileShareInfo -> Maybe Text
notificationPolicy :: Prelude.Maybe Prelude.Text,
    NFSFileShareInfo -> 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@
    NFSFileShareInfo -> Maybe Bool
requesterPays :: Prelude.Maybe Prelude.Bool,
    NFSFileShareInfo -> Maybe NFSFileShareDefaults
nFSFileShareDefaults :: Prelude.Maybe NFSFileShareDefaults,
    NFSFileShareInfo -> Maybe Text
locationARN :: Prelude.Maybe Prelude.Text,
    NFSFileShareInfo -> 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@
    NFSFileShareInfo -> 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@
    NFSFileShareInfo -> 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.
    NFSFileShareInfo -> Maybe Text
bucketRegion :: Prelude.Maybe Prelude.Text,
    -- | A list of up to 50 tags assigned to the NFS file share, sorted
    -- alphabetically by key name. Each tag is a key-value pair. For a gateway
    -- with more than 10 tags assigned, you can view all tags using the
    -- @ListTagsForResource@ API operation.
    NFSFileShareInfo -> Maybe [Tag]
tags :: Prelude.Maybe [Tag]
  }
  deriving (NFSFileShareInfo -> NFSFileShareInfo -> Bool
(NFSFileShareInfo -> NFSFileShareInfo -> Bool)
-> (NFSFileShareInfo -> NFSFileShareInfo -> Bool)
-> Eq NFSFileShareInfo
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: NFSFileShareInfo -> NFSFileShareInfo -> Bool
$c/= :: NFSFileShareInfo -> NFSFileShareInfo -> Bool
== :: NFSFileShareInfo -> NFSFileShareInfo -> Bool
$c== :: NFSFileShareInfo -> NFSFileShareInfo -> Bool
Prelude.Eq, ReadPrec [NFSFileShareInfo]
ReadPrec NFSFileShareInfo
Int -> ReadS NFSFileShareInfo
ReadS [NFSFileShareInfo]
(Int -> ReadS NFSFileShareInfo)
-> ReadS [NFSFileShareInfo]
-> ReadPrec NFSFileShareInfo
-> ReadPrec [NFSFileShareInfo]
-> Read NFSFileShareInfo
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [NFSFileShareInfo]
$creadListPrec :: ReadPrec [NFSFileShareInfo]
readPrec :: ReadPrec NFSFileShareInfo
$creadPrec :: ReadPrec NFSFileShareInfo
readList :: ReadS [NFSFileShareInfo]
$creadList :: ReadS [NFSFileShareInfo]
readsPrec :: Int -> ReadS NFSFileShareInfo
$creadsPrec :: Int -> ReadS NFSFileShareInfo
Prelude.Read, Int -> NFSFileShareInfo -> ShowS
[NFSFileShareInfo] -> ShowS
NFSFileShareInfo -> String
(Int -> NFSFileShareInfo -> ShowS)
-> (NFSFileShareInfo -> String)
-> ([NFSFileShareInfo] -> ShowS)
-> Show NFSFileShareInfo
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [NFSFileShareInfo] -> ShowS
$cshowList :: [NFSFileShareInfo] -> ShowS
show :: NFSFileShareInfo -> String
$cshow :: NFSFileShareInfo -> String
showsPrec :: Int -> NFSFileShareInfo -> ShowS
$cshowsPrec :: Int -> NFSFileShareInfo -> ShowS
Prelude.Show, (forall x. NFSFileShareInfo -> Rep NFSFileShareInfo x)
-> (forall x. Rep NFSFileShareInfo x -> NFSFileShareInfo)
-> Generic NFSFileShareInfo
forall x. Rep NFSFileShareInfo x -> NFSFileShareInfo
forall x. NFSFileShareInfo -> Rep NFSFileShareInfo x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep NFSFileShareInfo x -> NFSFileShareInfo
$cfrom :: forall x. NFSFileShareInfo -> Rep NFSFileShareInfo x
Prelude.Generic)

-- |
-- Create a value of 'NFSFileShareInfo' 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', 'nFSFileShareInfo_auditDestinationARN' - The Amazon Resource Name (ARN) of the storage used for audit logs.
--
-- 'fileShareStatus', 'nFSFileShareInfo_fileShareStatus' - Undocumented member.
--
-- 'kmsKey', 'nFSFileShareInfo_kmsKey' - Undocumented member.
--
-- 'gatewayARN', 'nFSFileShareInfo_gatewayARN' - Undocumented member.
--
-- 'path', 'nFSFileShareInfo_path' - Undocumented member.
--
-- 'vPCEndpointDNSName', 'nFSFileShareInfo_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', 'nFSFileShareInfo_cacheAttributes' - Refresh cache information for the file share.
--
-- 'objectACL', 'nFSFileShareInfo_objectACL' - Undocumented member.
--
-- 'kmsEncrypted', 'nFSFileShareInfo_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@
--
-- 'fileShareId', 'nFSFileShareInfo_fileShareId' - Undocumented member.
--
-- 'fileShareARN', 'nFSFileShareInfo_fileShareARN' - Undocumented member.
--
-- 'defaultStorageClass', 'nFSFileShareInfo_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', 'nFSFileShareInfo_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.
--
-- 'role'', 'nFSFileShareInfo_role' - Undocumented member.
--
-- 'notificationPolicy', 'nFSFileShareInfo_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', 'nFSFileShareInfo_squash' - Undocumented member.
--
-- 'requesterPays', 'nFSFileShareInfo_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', 'nFSFileShareInfo_nFSFileShareDefaults' - Undocumented member.
--
-- 'locationARN', 'nFSFileShareInfo_locationARN' - Undocumented member.
--
-- 'clientList', 'nFSFileShareInfo_clientList' - Undocumented member.
--
-- 'guessMIMETypeEnabled', 'nFSFileShareInfo_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', 'nFSFileShareInfo_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', 'nFSFileShareInfo_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', 'nFSFileShareInfo_tags' - A list of up to 50 tags assigned to the NFS file share, sorted
-- alphabetically by key name. Each tag is a key-value pair. For a gateway
-- with more than 10 tags assigned, you can view all tags using the
-- @ListTagsForResource@ API operation.
newNFSFileShareInfo ::
  NFSFileShareInfo
newNFSFileShareInfo :: NFSFileShareInfo
newNFSFileShareInfo =
  NFSFileShareInfo' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheAttributes
-> Maybe ObjectACL
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe NFSFileShareDefaults
-> Maybe Text
-> Maybe (NonEmpty Text)
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe [Tag]
-> NFSFileShareInfo
NFSFileShareInfo'
    { $sel:auditDestinationARN:NFSFileShareInfo' :: Maybe Text
auditDestinationARN =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:fileShareStatus:NFSFileShareInfo' :: Maybe Text
fileShareStatus = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:kmsKey:NFSFileShareInfo' :: Maybe Text
kmsKey = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:gatewayARN:NFSFileShareInfo' :: Maybe Text
gatewayARN = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:path:NFSFileShareInfo' :: Maybe Text
path = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:vPCEndpointDNSName:NFSFileShareInfo' :: Maybe Text
vPCEndpointDNSName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:cacheAttributes:NFSFileShareInfo' :: Maybe CacheAttributes
cacheAttributes = Maybe CacheAttributes
forall a. Maybe a
Prelude.Nothing,
      $sel:objectACL:NFSFileShareInfo' :: Maybe ObjectACL
objectACL = Maybe ObjectACL
forall a. Maybe a
Prelude.Nothing,
      $sel:kmsEncrypted:NFSFileShareInfo' :: Maybe Bool
kmsEncrypted = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:fileShareId:NFSFileShareInfo' :: Maybe Text
fileShareId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:fileShareARN:NFSFileShareInfo' :: Maybe Text
fileShareARN = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:defaultStorageClass:NFSFileShareInfo' :: Maybe Text
defaultStorageClass = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:fileShareName:NFSFileShareInfo' :: Maybe Text
fileShareName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:role':NFSFileShareInfo' :: Maybe Text
role' = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:notificationPolicy:NFSFileShareInfo' :: Maybe Text
notificationPolicy = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:squash:NFSFileShareInfo' :: Maybe Text
squash = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:requesterPays:NFSFileShareInfo' :: Maybe Bool
requesterPays = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:nFSFileShareDefaults:NFSFileShareInfo' :: Maybe NFSFileShareDefaults
nFSFileShareDefaults = Maybe NFSFileShareDefaults
forall a. Maybe a
Prelude.Nothing,
      $sel:locationARN:NFSFileShareInfo' :: Maybe Text
locationARN = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:clientList:NFSFileShareInfo' :: Maybe (NonEmpty Text)
clientList = Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:guessMIMETypeEnabled:NFSFileShareInfo' :: Maybe Bool
guessMIMETypeEnabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:readOnly:NFSFileShareInfo' :: Maybe Bool
readOnly = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:bucketRegion:NFSFileShareInfo' :: Maybe Text
bucketRegion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:NFSFileShareInfo' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing
    }

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

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

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

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

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

-- | 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.
nFSFileShareInfo_vPCEndpointDNSName :: Lens.Lens' NFSFileShareInfo (Prelude.Maybe Prelude.Text)
nFSFileShareInfo_vPCEndpointDNSName :: (Maybe Text -> f (Maybe Text))
-> NFSFileShareInfo -> f NFSFileShareInfo
nFSFileShareInfo_vPCEndpointDNSName = (NFSFileShareInfo -> Maybe Text)
-> (NFSFileShareInfo -> Maybe Text -> NFSFileShareInfo)
-> Lens NFSFileShareInfo NFSFileShareInfo (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NFSFileShareInfo' {Maybe Text
vPCEndpointDNSName :: Maybe Text
$sel:vPCEndpointDNSName:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
vPCEndpointDNSName} -> Maybe Text
vPCEndpointDNSName) (\s :: NFSFileShareInfo
s@NFSFileShareInfo' {} Maybe Text
a -> NFSFileShareInfo
s {$sel:vPCEndpointDNSName:NFSFileShareInfo' :: Maybe Text
vPCEndpointDNSName = Maybe Text
a} :: NFSFileShareInfo)

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

-- | Undocumented member.
nFSFileShareInfo_objectACL :: Lens.Lens' NFSFileShareInfo (Prelude.Maybe ObjectACL)
nFSFileShareInfo_objectACL :: (Maybe ObjectACL -> f (Maybe ObjectACL))
-> NFSFileShareInfo -> f NFSFileShareInfo
nFSFileShareInfo_objectACL = (NFSFileShareInfo -> Maybe ObjectACL)
-> (NFSFileShareInfo -> Maybe ObjectACL -> NFSFileShareInfo)
-> Lens
     NFSFileShareInfo
     NFSFileShareInfo
     (Maybe ObjectACL)
     (Maybe ObjectACL)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NFSFileShareInfo' {Maybe ObjectACL
objectACL :: Maybe ObjectACL
$sel:objectACL:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe ObjectACL
objectACL} -> Maybe ObjectACL
objectACL) (\s :: NFSFileShareInfo
s@NFSFileShareInfo' {} Maybe ObjectACL
a -> NFSFileShareInfo
s {$sel:objectACL:NFSFileShareInfo' :: Maybe ObjectACL
objectACL = Maybe ObjectACL
a} :: NFSFileShareInfo)

-- | 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@
nFSFileShareInfo_kmsEncrypted :: Lens.Lens' NFSFileShareInfo (Prelude.Maybe Prelude.Bool)
nFSFileShareInfo_kmsEncrypted :: (Maybe Bool -> f (Maybe Bool))
-> NFSFileShareInfo -> f NFSFileShareInfo
nFSFileShareInfo_kmsEncrypted = (NFSFileShareInfo -> Maybe Bool)
-> (NFSFileShareInfo -> Maybe Bool -> NFSFileShareInfo)
-> Lens NFSFileShareInfo NFSFileShareInfo (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NFSFileShareInfo' {Maybe Bool
kmsEncrypted :: Maybe Bool
$sel:kmsEncrypted:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Bool
kmsEncrypted} -> Maybe Bool
kmsEncrypted) (\s :: NFSFileShareInfo
s@NFSFileShareInfo' {} Maybe Bool
a -> NFSFileShareInfo
s {$sel:kmsEncrypted:NFSFileShareInfo' :: Maybe Bool
kmsEncrypted = Maybe Bool
a} :: NFSFileShareInfo)

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

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

-- | 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@
nFSFileShareInfo_defaultStorageClass :: Lens.Lens' NFSFileShareInfo (Prelude.Maybe Prelude.Text)
nFSFileShareInfo_defaultStorageClass :: (Maybe Text -> f (Maybe Text))
-> NFSFileShareInfo -> f NFSFileShareInfo
nFSFileShareInfo_defaultStorageClass = (NFSFileShareInfo -> Maybe Text)
-> (NFSFileShareInfo -> Maybe Text -> NFSFileShareInfo)
-> Lens NFSFileShareInfo NFSFileShareInfo (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NFSFileShareInfo' {Maybe Text
defaultStorageClass :: Maybe Text
$sel:defaultStorageClass:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
defaultStorageClass} -> Maybe Text
defaultStorageClass) (\s :: NFSFileShareInfo
s@NFSFileShareInfo' {} Maybe Text
a -> NFSFileShareInfo
s {$sel:defaultStorageClass:NFSFileShareInfo' :: Maybe Text
defaultStorageClass = Maybe Text
a} :: NFSFileShareInfo)

-- | 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.
nFSFileShareInfo_fileShareName :: Lens.Lens' NFSFileShareInfo (Prelude.Maybe Prelude.Text)
nFSFileShareInfo_fileShareName :: (Maybe Text -> f (Maybe Text))
-> NFSFileShareInfo -> f NFSFileShareInfo
nFSFileShareInfo_fileShareName = (NFSFileShareInfo -> Maybe Text)
-> (NFSFileShareInfo -> Maybe Text -> NFSFileShareInfo)
-> Lens NFSFileShareInfo NFSFileShareInfo (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NFSFileShareInfo' {Maybe Text
fileShareName :: Maybe Text
$sel:fileShareName:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
fileShareName} -> Maybe Text
fileShareName) (\s :: NFSFileShareInfo
s@NFSFileShareInfo' {} Maybe Text
a -> NFSFileShareInfo
s {$sel:fileShareName:NFSFileShareInfo' :: Maybe Text
fileShareName = Maybe Text
a} :: NFSFileShareInfo)

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

-- | 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.
--
-- @{}@
nFSFileShareInfo_notificationPolicy :: Lens.Lens' NFSFileShareInfo (Prelude.Maybe Prelude.Text)
nFSFileShareInfo_notificationPolicy :: (Maybe Text -> f (Maybe Text))
-> NFSFileShareInfo -> f NFSFileShareInfo
nFSFileShareInfo_notificationPolicy = (NFSFileShareInfo -> Maybe Text)
-> (NFSFileShareInfo -> Maybe Text -> NFSFileShareInfo)
-> Lens NFSFileShareInfo NFSFileShareInfo (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NFSFileShareInfo' {Maybe Text
notificationPolicy :: Maybe Text
$sel:notificationPolicy:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
notificationPolicy} -> Maybe Text
notificationPolicy) (\s :: NFSFileShareInfo
s@NFSFileShareInfo' {} Maybe Text
a -> NFSFileShareInfo
s {$sel:notificationPolicy:NFSFileShareInfo' :: Maybe Text
notificationPolicy = Maybe Text
a} :: NFSFileShareInfo)

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

-- | 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@
nFSFileShareInfo_requesterPays :: Lens.Lens' NFSFileShareInfo (Prelude.Maybe Prelude.Bool)
nFSFileShareInfo_requesterPays :: (Maybe Bool -> f (Maybe Bool))
-> NFSFileShareInfo -> f NFSFileShareInfo
nFSFileShareInfo_requesterPays = (NFSFileShareInfo -> Maybe Bool)
-> (NFSFileShareInfo -> Maybe Bool -> NFSFileShareInfo)
-> Lens NFSFileShareInfo NFSFileShareInfo (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NFSFileShareInfo' {Maybe Bool
requesterPays :: Maybe Bool
$sel:requesterPays:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Bool
requesterPays} -> Maybe Bool
requesterPays) (\s :: NFSFileShareInfo
s@NFSFileShareInfo' {} Maybe Bool
a -> NFSFileShareInfo
s {$sel:requesterPays:NFSFileShareInfo' :: Maybe Bool
requesterPays = Maybe Bool
a} :: NFSFileShareInfo)

-- | Undocumented member.
nFSFileShareInfo_nFSFileShareDefaults :: Lens.Lens' NFSFileShareInfo (Prelude.Maybe NFSFileShareDefaults)
nFSFileShareInfo_nFSFileShareDefaults :: (Maybe NFSFileShareDefaults -> f (Maybe NFSFileShareDefaults))
-> NFSFileShareInfo -> f NFSFileShareInfo
nFSFileShareInfo_nFSFileShareDefaults = (NFSFileShareInfo -> Maybe NFSFileShareDefaults)
-> (NFSFileShareInfo
    -> Maybe NFSFileShareDefaults -> NFSFileShareInfo)
-> Lens
     NFSFileShareInfo
     NFSFileShareInfo
     (Maybe NFSFileShareDefaults)
     (Maybe NFSFileShareDefaults)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NFSFileShareInfo' {Maybe NFSFileShareDefaults
nFSFileShareDefaults :: Maybe NFSFileShareDefaults
$sel:nFSFileShareDefaults:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe NFSFileShareDefaults
nFSFileShareDefaults} -> Maybe NFSFileShareDefaults
nFSFileShareDefaults) (\s :: NFSFileShareInfo
s@NFSFileShareInfo' {} Maybe NFSFileShareDefaults
a -> NFSFileShareInfo
s {$sel:nFSFileShareDefaults:NFSFileShareInfo' :: Maybe NFSFileShareDefaults
nFSFileShareDefaults = Maybe NFSFileShareDefaults
a} :: NFSFileShareInfo)

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

-- | Undocumented member.
nFSFileShareInfo_clientList :: Lens.Lens' NFSFileShareInfo (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
nFSFileShareInfo_clientList :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> NFSFileShareInfo -> f NFSFileShareInfo
nFSFileShareInfo_clientList = (NFSFileShareInfo -> Maybe (NonEmpty Text))
-> (NFSFileShareInfo -> Maybe (NonEmpty Text) -> NFSFileShareInfo)
-> Lens
     NFSFileShareInfo
     NFSFileShareInfo
     (Maybe (NonEmpty Text))
     (Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NFSFileShareInfo' {Maybe (NonEmpty Text)
clientList :: Maybe (NonEmpty Text)
$sel:clientList:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe (NonEmpty Text)
clientList} -> Maybe (NonEmpty Text)
clientList) (\s :: NFSFileShareInfo
s@NFSFileShareInfo' {} Maybe (NonEmpty Text)
a -> NFSFileShareInfo
s {$sel:clientList:NFSFileShareInfo' :: Maybe (NonEmpty Text)
clientList = Maybe (NonEmpty Text)
a} :: NFSFileShareInfo) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
 -> NFSFileShareInfo -> f NFSFileShareInfo)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
    -> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> NFSFileShareInfo
-> f NFSFileShareInfo
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@
nFSFileShareInfo_guessMIMETypeEnabled :: Lens.Lens' NFSFileShareInfo (Prelude.Maybe Prelude.Bool)
nFSFileShareInfo_guessMIMETypeEnabled :: (Maybe Bool -> f (Maybe Bool))
-> NFSFileShareInfo -> f NFSFileShareInfo
nFSFileShareInfo_guessMIMETypeEnabled = (NFSFileShareInfo -> Maybe Bool)
-> (NFSFileShareInfo -> Maybe Bool -> NFSFileShareInfo)
-> Lens NFSFileShareInfo NFSFileShareInfo (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NFSFileShareInfo' {Maybe Bool
guessMIMETypeEnabled :: Maybe Bool
$sel:guessMIMETypeEnabled:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Bool
guessMIMETypeEnabled} -> Maybe Bool
guessMIMETypeEnabled) (\s :: NFSFileShareInfo
s@NFSFileShareInfo' {} Maybe Bool
a -> NFSFileShareInfo
s {$sel:guessMIMETypeEnabled:NFSFileShareInfo' :: Maybe Bool
guessMIMETypeEnabled = Maybe Bool
a} :: NFSFileShareInfo)

-- | 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@
nFSFileShareInfo_readOnly :: Lens.Lens' NFSFileShareInfo (Prelude.Maybe Prelude.Bool)
nFSFileShareInfo_readOnly :: (Maybe Bool -> f (Maybe Bool))
-> NFSFileShareInfo -> f NFSFileShareInfo
nFSFileShareInfo_readOnly = (NFSFileShareInfo -> Maybe Bool)
-> (NFSFileShareInfo -> Maybe Bool -> NFSFileShareInfo)
-> Lens NFSFileShareInfo NFSFileShareInfo (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NFSFileShareInfo' {Maybe Bool
readOnly :: Maybe Bool
$sel:readOnly:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Bool
readOnly} -> Maybe Bool
readOnly) (\s :: NFSFileShareInfo
s@NFSFileShareInfo' {} Maybe Bool
a -> NFSFileShareInfo
s {$sel:readOnly:NFSFileShareInfo' :: Maybe Bool
readOnly = Maybe Bool
a} :: NFSFileShareInfo)

-- | 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.
nFSFileShareInfo_bucketRegion :: Lens.Lens' NFSFileShareInfo (Prelude.Maybe Prelude.Text)
nFSFileShareInfo_bucketRegion :: (Maybe Text -> f (Maybe Text))
-> NFSFileShareInfo -> f NFSFileShareInfo
nFSFileShareInfo_bucketRegion = (NFSFileShareInfo -> Maybe Text)
-> (NFSFileShareInfo -> Maybe Text -> NFSFileShareInfo)
-> Lens NFSFileShareInfo NFSFileShareInfo (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NFSFileShareInfo' {Maybe Text
bucketRegion :: Maybe Text
$sel:bucketRegion:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
bucketRegion} -> Maybe Text
bucketRegion) (\s :: NFSFileShareInfo
s@NFSFileShareInfo' {} Maybe Text
a -> NFSFileShareInfo
s {$sel:bucketRegion:NFSFileShareInfo' :: Maybe Text
bucketRegion = Maybe Text
a} :: NFSFileShareInfo)

-- | A list of up to 50 tags assigned to the NFS file share, sorted
-- alphabetically by key name. Each tag is a key-value pair. For a gateway
-- with more than 10 tags assigned, you can view all tags using the
-- @ListTagsForResource@ API operation.
nFSFileShareInfo_tags :: Lens.Lens' NFSFileShareInfo (Prelude.Maybe [Tag])
nFSFileShareInfo_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> NFSFileShareInfo -> f NFSFileShareInfo
nFSFileShareInfo_tags = (NFSFileShareInfo -> Maybe [Tag])
-> (NFSFileShareInfo -> Maybe [Tag] -> NFSFileShareInfo)
-> Lens
     NFSFileShareInfo NFSFileShareInfo (Maybe [Tag]) (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NFSFileShareInfo' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: NFSFileShareInfo
s@NFSFileShareInfo' {} Maybe [Tag]
a -> NFSFileShareInfo
s {$sel:tags:NFSFileShareInfo' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: NFSFileShareInfo) ((Maybe [Tag] -> f (Maybe [Tag]))
 -> NFSFileShareInfo -> f NFSFileShareInfo)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
    -> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> NFSFileShareInfo
-> f NFSFileShareInfo
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

instance Core.FromJSON NFSFileShareInfo where
  parseJSON :: Value -> Parser NFSFileShareInfo
parseJSON =
    String
-> (Object -> Parser NFSFileShareInfo)
-> Value
-> Parser NFSFileShareInfo
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"NFSFileShareInfo"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheAttributes
-> Maybe ObjectACL
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe NFSFileShareDefaults
-> Maybe Text
-> Maybe (NonEmpty Text)
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe [Tag]
-> NFSFileShareInfo
NFSFileShareInfo'
            (Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe CacheAttributes
 -> Maybe ObjectACL
 -> Maybe Bool
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Bool
 -> Maybe NFSFileShareDefaults
 -> Maybe Text
 -> Maybe (NonEmpty Text)
 -> Maybe Bool
 -> Maybe Bool
 -> Maybe Text
 -> Maybe [Tag]
 -> NFSFileShareInfo)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe CacheAttributes
      -> Maybe ObjectACL
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe NFSFileShareDefaults
      -> Maybe Text
      -> Maybe (NonEmpty Text)
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe [Tag]
      -> NFSFileShareInfo)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"AuditDestinationARN")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe CacheAttributes
   -> Maybe ObjectACL
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Maybe NFSFileShareDefaults
   -> Maybe Text
   -> Maybe (NonEmpty Text)
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Text
   -> Maybe [Tag]
   -> NFSFileShareInfo)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe CacheAttributes
      -> Maybe ObjectACL
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe NFSFileShareDefaults
      -> Maybe Text
      -> Maybe (NonEmpty Text)
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe [Tag]
      -> NFSFileShareInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"FileShareStatus")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe CacheAttributes
   -> Maybe ObjectACL
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Maybe NFSFileShareDefaults
   -> Maybe Text
   -> Maybe (NonEmpty Text)
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Text
   -> Maybe [Tag]
   -> NFSFileShareInfo)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe CacheAttributes
      -> Maybe ObjectACL
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe NFSFileShareDefaults
      -> Maybe Text
      -> Maybe (NonEmpty Text)
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe [Tag]
      -> NFSFileShareInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"KMSKey")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe CacheAttributes
   -> Maybe ObjectACL
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Maybe NFSFileShareDefaults
   -> Maybe Text
   -> Maybe (NonEmpty Text)
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Text
   -> Maybe [Tag]
   -> NFSFileShareInfo)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe CacheAttributes
      -> Maybe ObjectACL
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe NFSFileShareDefaults
      -> Maybe Text
      -> Maybe (NonEmpty Text)
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe [Tag]
      -> NFSFileShareInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"GatewayARN")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe CacheAttributes
   -> Maybe ObjectACL
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Maybe NFSFileShareDefaults
   -> Maybe Text
   -> Maybe (NonEmpty Text)
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Text
   -> Maybe [Tag]
   -> NFSFileShareInfo)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe CacheAttributes
      -> Maybe ObjectACL
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe NFSFileShareDefaults
      -> Maybe Text
      -> Maybe (NonEmpty Text)
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe [Tag]
      -> NFSFileShareInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Path")
            Parser
  (Maybe Text
   -> Maybe CacheAttributes
   -> Maybe ObjectACL
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Maybe NFSFileShareDefaults
   -> Maybe Text
   -> Maybe (NonEmpty Text)
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Text
   -> Maybe [Tag]
   -> NFSFileShareInfo)
-> Parser (Maybe Text)
-> Parser
     (Maybe CacheAttributes
      -> Maybe ObjectACL
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe NFSFileShareDefaults
      -> Maybe Text
      -> Maybe (NonEmpty Text)
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe [Tag]
      -> NFSFileShareInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VPCEndpointDNSName")
            Parser
  (Maybe CacheAttributes
   -> Maybe ObjectACL
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Maybe NFSFileShareDefaults
   -> Maybe Text
   -> Maybe (NonEmpty Text)
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Text
   -> Maybe [Tag]
   -> NFSFileShareInfo)
-> Parser (Maybe CacheAttributes)
-> Parser
     (Maybe ObjectACL
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe NFSFileShareDefaults
      -> Maybe Text
      -> Maybe (NonEmpty Text)
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe [Tag]
      -> NFSFileShareInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe CacheAttributes)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CacheAttributes")
            Parser
  (Maybe ObjectACL
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Maybe NFSFileShareDefaults
   -> Maybe Text
   -> Maybe (NonEmpty Text)
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Text
   -> Maybe [Tag]
   -> NFSFileShareInfo)
-> Parser (Maybe ObjectACL)
-> Parser
     (Maybe Bool
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe NFSFileShareDefaults
      -> Maybe Text
      -> Maybe (NonEmpty Text)
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe [Tag]
      -> NFSFileShareInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ObjectACL)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ObjectACL")
            Parser
  (Maybe Bool
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Maybe NFSFileShareDefaults
   -> Maybe Text
   -> Maybe (NonEmpty Text)
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Text
   -> Maybe [Tag]
   -> NFSFileShareInfo)
-> Parser (Maybe Bool)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe NFSFileShareDefaults
      -> Maybe Text
      -> Maybe (NonEmpty Text)
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe [Tag]
      -> NFSFileShareInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"KMSEncrypted")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Maybe NFSFileShareDefaults
   -> Maybe Text
   -> Maybe (NonEmpty Text)
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Text
   -> Maybe [Tag]
   -> NFSFileShareInfo)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe NFSFileShareDefaults
      -> Maybe Text
      -> Maybe (NonEmpty Text)
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe [Tag]
      -> NFSFileShareInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"FileShareId")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Maybe NFSFileShareDefaults
   -> Maybe Text
   -> Maybe (NonEmpty Text)
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Text
   -> Maybe [Tag]
   -> NFSFileShareInfo)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe NFSFileShareDefaults
      -> Maybe Text
      -> Maybe (NonEmpty Text)
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe [Tag]
      -> NFSFileShareInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"FileShareARN")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Maybe NFSFileShareDefaults
   -> Maybe Text
   -> Maybe (NonEmpty Text)
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Text
   -> Maybe [Tag]
   -> NFSFileShareInfo)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe NFSFileShareDefaults
      -> Maybe Text
      -> Maybe (NonEmpty Text)
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe [Tag]
      -> NFSFileShareInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DefaultStorageClass")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Maybe NFSFileShareDefaults
   -> Maybe Text
   -> Maybe (NonEmpty Text)
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Text
   -> Maybe [Tag]
   -> NFSFileShareInfo)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe NFSFileShareDefaults
      -> Maybe Text
      -> Maybe (NonEmpty Text)
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe [Tag]
      -> NFSFileShareInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"FileShareName")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Maybe NFSFileShareDefaults
   -> Maybe Text
   -> Maybe (NonEmpty Text)
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Text
   -> Maybe [Tag]
   -> NFSFileShareInfo)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Maybe NFSFileShareDefaults
      -> Maybe Text
      -> Maybe (NonEmpty Text)
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe [Tag]
      -> NFSFileShareInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Role")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Maybe NFSFileShareDefaults
   -> Maybe Text
   -> Maybe (NonEmpty Text)
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Text
   -> Maybe [Tag]
   -> NFSFileShareInfo)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Bool
      -> Maybe NFSFileShareDefaults
      -> Maybe Text
      -> Maybe (NonEmpty Text)
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe [Tag]
      -> NFSFileShareInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"NotificationPolicy")
            Parser
  (Maybe Text
   -> Maybe Bool
   -> Maybe NFSFileShareDefaults
   -> Maybe Text
   -> Maybe (NonEmpty Text)
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Text
   -> Maybe [Tag]
   -> NFSFileShareInfo)
-> Parser (Maybe Text)
-> Parser
     (Maybe Bool
      -> Maybe NFSFileShareDefaults
      -> Maybe Text
      -> Maybe (NonEmpty Text)
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe [Tag]
      -> NFSFileShareInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Squash")
            Parser
  (Maybe Bool
   -> Maybe NFSFileShareDefaults
   -> Maybe Text
   -> Maybe (NonEmpty Text)
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Text
   -> Maybe [Tag]
   -> NFSFileShareInfo)
-> Parser (Maybe Bool)
-> Parser
     (Maybe NFSFileShareDefaults
      -> Maybe Text
      -> Maybe (NonEmpty Text)
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe [Tag]
      -> NFSFileShareInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"RequesterPays")
            Parser
  (Maybe NFSFileShareDefaults
   -> Maybe Text
   -> Maybe (NonEmpty Text)
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Text
   -> Maybe [Tag]
   -> NFSFileShareInfo)
-> Parser (Maybe NFSFileShareDefaults)
-> Parser
     (Maybe Text
      -> Maybe (NonEmpty Text)
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe [Tag]
      -> NFSFileShareInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe NFSFileShareDefaults)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"NFSFileShareDefaults")
            Parser
  (Maybe Text
   -> Maybe (NonEmpty Text)
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Text
   -> Maybe [Tag]
   -> NFSFileShareInfo)
-> Parser (Maybe Text)
-> Parser
     (Maybe (NonEmpty Text)
      -> Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe [Tag]
      -> NFSFileShareInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LocationARN")
            Parser
  (Maybe (NonEmpty Text)
   -> Maybe Bool
   -> Maybe Bool
   -> Maybe Text
   -> Maybe [Tag]
   -> NFSFileShareInfo)
-> Parser (Maybe (NonEmpty Text))
-> Parser
     (Maybe Bool
      -> Maybe Bool -> Maybe Text -> Maybe [Tag] -> NFSFileShareInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (NonEmpty Text))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ClientList")
            Parser
  (Maybe Bool
   -> Maybe Bool -> Maybe Text -> Maybe [Tag] -> NFSFileShareInfo)
-> Parser (Maybe Bool)
-> Parser
     (Maybe Bool -> Maybe Text -> Maybe [Tag] -> NFSFileShareInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"GuessMIMETypeEnabled")
            Parser
  (Maybe Bool -> Maybe Text -> Maybe [Tag] -> NFSFileShareInfo)
-> Parser (Maybe Bool)
-> Parser (Maybe Text -> Maybe [Tag] -> NFSFileShareInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ReadOnly")
            Parser (Maybe Text -> Maybe [Tag] -> NFSFileShareInfo)
-> Parser (Maybe Text) -> Parser (Maybe [Tag] -> NFSFileShareInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"BucketRegion")
            Parser (Maybe [Tag] -> NFSFileShareInfo)
-> Parser (Maybe [Tag]) -> Parser NFSFileShareInfo
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [Tag]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Tags" Parser (Maybe (Maybe [Tag])) -> Maybe [Tag] -> Parser (Maybe [Tag])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Tag]
forall a. Monoid a => a
Prelude.mempty)
      )

instance Prelude.Hashable NFSFileShareInfo

instance Prelude.NFData NFSFileShareInfo