{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.StorageGateway.Types.NFSFileShareInfo where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
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,
    -- | 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,
    -- | Refresh cache information for the file share.
    NFSFileShareInfo -> Maybe CacheAttributes
cacheAttributes :: Prelude.Maybe CacheAttributes,
    NFSFileShareInfo -> Maybe (NonEmpty Text)
clientList :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
    -- | The default storage class for objects put into an Amazon S3 bucket by
    -- the S3 File Gateway. The default value is @S3_STANDARD@. Optional.
    --
    -- Valid Values: @S3_STANDARD@ | @S3_INTELLIGENT_TIERING@ |
    -- @S3_STANDARD_IA@ | @S3_ONEZONE_IA@
    NFSFileShareInfo -> Maybe Text
defaultStorageClass :: Prelude.Maybe Prelude.Text,
    NFSFileShareInfo -> Maybe Text
fileShareARN :: Prelude.Maybe Prelude.Text,
    NFSFileShareInfo -> Maybe Text
fileShareId :: 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
fileShareStatus :: Prelude.Maybe Prelude.Text,
    NFSFileShareInfo -> Maybe Text
gatewayARN :: Prelude.Maybe 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,
    -- | 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
kmsKey :: Prelude.Maybe Prelude.Text,
    NFSFileShareInfo -> Maybe Text
locationARN :: Prelude.Maybe Prelude.Text,
    NFSFileShareInfo -> Maybe NFSFileShareDefaults
nFSFileShareDefaults :: Prelude.Maybe NFSFileShareDefaults,
    -- | 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 ObjectACL
objectACL :: Prelude.Maybe ObjectACL,
    NFSFileShareInfo -> Maybe Text
path :: Prelude.Maybe Prelude.Text,
    -- | 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,
    -- | 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 Text
role' :: Prelude.Maybe Prelude.Text,
    NFSFileShareInfo -> Maybe Text
squash :: 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],
    -- | 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
  }
  deriving (NFSFileShareInfo -> NFSFileShareInfo -> Bool
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]
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
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. 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.
--
-- '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.
--
-- 'cacheAttributes', 'nFSFileShareInfo_cacheAttributes' - Refresh cache information for the file share.
--
-- 'clientList', 'nFSFileShareInfo_clientList' - 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_STANDARD@. Optional.
--
-- Valid Values: @S3_STANDARD@ | @S3_INTELLIGENT_TIERING@ |
-- @S3_STANDARD_IA@ | @S3_ONEZONE_IA@
--
-- 'fileShareARN', 'nFSFileShareInfo_fileShareARN' - Undocumented member.
--
-- 'fileShareId', 'nFSFileShareInfo_fileShareId' - Undocumented member.
--
-- '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.
--
-- 'fileShareStatus', 'nFSFileShareInfo_fileShareStatus' - Undocumented member.
--
-- 'gatewayARN', 'nFSFileShareInfo_gatewayARN' - 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@
--
-- '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@
--
-- 'kmsKey', 'nFSFileShareInfo_kmsKey' - Undocumented member.
--
-- 'locationARN', 'nFSFileShareInfo_locationARN' - Undocumented member.
--
-- 'nFSFileShareDefaults', 'nFSFileShareInfo_nFSFileShareDefaults' - 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.
--
-- @{}@
--
-- 'objectACL', 'nFSFileShareInfo_objectACL' - Undocumented member.
--
-- 'path', 'nFSFileShareInfo_path' - Undocumented member.
--
-- '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@
--
-- '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@
--
-- 'role'', 'nFSFileShareInfo_role' - Undocumented member.
--
-- 'squash', 'nFSFileShareInfo_squash' - Undocumented member.
--
-- '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.
--
-- '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.
newNFSFileShareInfo ::
  NFSFileShareInfo
newNFSFileShareInfo :: NFSFileShareInfo
newNFSFileShareInfo =
  NFSFileShareInfo'
    { $sel:auditDestinationARN:NFSFileShareInfo' :: Maybe Text
auditDestinationARN =
        forall a. Maybe a
Prelude.Nothing,
      $sel:bucketRegion:NFSFileShareInfo' :: Maybe Text
bucketRegion = forall a. Maybe a
Prelude.Nothing,
      $sel:cacheAttributes:NFSFileShareInfo' :: Maybe CacheAttributes
cacheAttributes = forall a. Maybe a
Prelude.Nothing,
      $sel:clientList:NFSFileShareInfo' :: Maybe (NonEmpty Text)
clientList = forall a. Maybe a
Prelude.Nothing,
      $sel:defaultStorageClass:NFSFileShareInfo' :: Maybe Text
defaultStorageClass = forall a. Maybe a
Prelude.Nothing,
      $sel:fileShareARN:NFSFileShareInfo' :: Maybe Text
fileShareARN = forall a. Maybe a
Prelude.Nothing,
      $sel:fileShareId:NFSFileShareInfo' :: Maybe Text
fileShareId = forall a. Maybe a
Prelude.Nothing,
      $sel:fileShareName:NFSFileShareInfo' :: Maybe Text
fileShareName = forall a. Maybe a
Prelude.Nothing,
      $sel:fileShareStatus:NFSFileShareInfo' :: Maybe Text
fileShareStatus = forall a. Maybe a
Prelude.Nothing,
      $sel:gatewayARN:NFSFileShareInfo' :: Maybe Text
gatewayARN = forall a. Maybe a
Prelude.Nothing,
      $sel:guessMIMETypeEnabled:NFSFileShareInfo' :: Maybe Bool
guessMIMETypeEnabled = forall a. Maybe a
Prelude.Nothing,
      $sel:kmsEncrypted:NFSFileShareInfo' :: Maybe Bool
kmsEncrypted = forall a. Maybe a
Prelude.Nothing,
      $sel:kmsKey:NFSFileShareInfo' :: Maybe Text
kmsKey = forall a. Maybe a
Prelude.Nothing,
      $sel:locationARN:NFSFileShareInfo' :: Maybe Text
locationARN = forall a. Maybe a
Prelude.Nothing,
      $sel:nFSFileShareDefaults:NFSFileShareInfo' :: Maybe NFSFileShareDefaults
nFSFileShareDefaults = forall a. Maybe a
Prelude.Nothing,
      $sel:notificationPolicy:NFSFileShareInfo' :: Maybe Text
notificationPolicy = forall a. Maybe a
Prelude.Nothing,
      $sel:objectACL:NFSFileShareInfo' :: Maybe ObjectACL
objectACL = forall a. Maybe a
Prelude.Nothing,
      $sel:path:NFSFileShareInfo' :: Maybe Text
path = forall a. Maybe a
Prelude.Nothing,
      $sel:readOnly:NFSFileShareInfo' :: Maybe Bool
readOnly = forall a. Maybe a
Prelude.Nothing,
      $sel:requesterPays:NFSFileShareInfo' :: Maybe Bool
requesterPays = forall a. Maybe a
Prelude.Nothing,
      $sel:role':NFSFileShareInfo' :: Maybe Text
role' = forall a. Maybe a
Prelude.Nothing,
      $sel:squash:NFSFileShareInfo' :: Maybe Text
squash = forall a. Maybe a
Prelude.Nothing,
      $sel:tags:NFSFileShareInfo' :: Maybe [Tag]
tags = forall a. Maybe a
Prelude.Nothing,
      $sel:vPCEndpointDNSName:NFSFileShareInfo' :: Maybe Text
vPCEndpointDNSName = 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 :: Lens' NFSFileShareInfo (Maybe Text)
nFSFileShareInfo_auditDestinationARN = 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)

-- | 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 :: Lens' NFSFileShareInfo (Maybe Text)
nFSFileShareInfo_bucketRegion = 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)

-- | Refresh cache information for the file share.
nFSFileShareInfo_cacheAttributes :: Lens.Lens' NFSFileShareInfo (Prelude.Maybe CacheAttributes)
nFSFileShareInfo_cacheAttributes :: Lens' NFSFileShareInfo (Maybe CacheAttributes)
nFSFileShareInfo_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_clientList :: Lens.Lens' NFSFileShareInfo (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
nFSFileShareInfo_clientList :: Lens' NFSFileShareInfo (Maybe (NonEmpty Text))
nFSFileShareInfo_clientList = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The default storage class for objects put into an Amazon S3 bucket by
-- the S3 File Gateway. The default value is @S3_STANDARD@. 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 :: Lens' NFSFileShareInfo (Maybe Text)
nFSFileShareInfo_defaultStorageClass = 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)

-- | Undocumented member.
nFSFileShareInfo_fileShareARN :: Lens.Lens' NFSFileShareInfo (Prelude.Maybe Prelude.Text)
nFSFileShareInfo_fileShareARN :: Lens' NFSFileShareInfo (Maybe Text)
nFSFileShareInfo_fileShareARN = 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)

-- | Undocumented member.
nFSFileShareInfo_fileShareId :: Lens.Lens' NFSFileShareInfo (Prelude.Maybe Prelude.Text)
nFSFileShareInfo_fileShareId :: Lens' NFSFileShareInfo (Maybe Text)
nFSFileShareInfo_fileShareId = 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)

-- | 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 :: Lens' NFSFileShareInfo (Maybe Text)
nFSFileShareInfo_fileShareName = 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_fileShareStatus :: Lens.Lens' NFSFileShareInfo (Prelude.Maybe Prelude.Text)
nFSFileShareInfo_fileShareStatus :: Lens' NFSFileShareInfo (Maybe Text)
nFSFileShareInfo_fileShareStatus = 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_gatewayARN :: Lens.Lens' NFSFileShareInfo (Prelude.Maybe Prelude.Text)
nFSFileShareInfo_gatewayARN :: Lens' NFSFileShareInfo (Maybe Text)
nFSFileShareInfo_gatewayARN = 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)

-- | 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 :: Lens' NFSFileShareInfo (Maybe Bool)
nFSFileShareInfo_guessMIMETypeEnabled = 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)

-- | 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 :: Lens' NFSFileShareInfo (Maybe Bool)
nFSFileShareInfo_kmsEncrypted = 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_kmsKey :: Lens.Lens' NFSFileShareInfo (Prelude.Maybe Prelude.Text)
nFSFileShareInfo_kmsKey :: Lens' NFSFileShareInfo (Maybe Text)
nFSFileShareInfo_kmsKey = 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_locationARN :: Lens.Lens' NFSFileShareInfo (Prelude.Maybe Prelude.Text)
nFSFileShareInfo_locationARN :: Lens' NFSFileShareInfo (Maybe Text)
nFSFileShareInfo_locationARN = 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_nFSFileShareDefaults :: Lens.Lens' NFSFileShareInfo (Prelude.Maybe NFSFileShareDefaults)
nFSFileShareInfo_nFSFileShareDefaults :: Lens' NFSFileShareInfo (Maybe NFSFileShareDefaults)
nFSFileShareInfo_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)

-- | 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 :: Lens' NFSFileShareInfo (Maybe Text)
nFSFileShareInfo_notificationPolicy = 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_objectACL :: Lens.Lens' NFSFileShareInfo (Prelude.Maybe ObjectACL)
nFSFileShareInfo_objectACL :: Lens' NFSFileShareInfo (Maybe ObjectACL)
nFSFileShareInfo_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)

-- | Undocumented member.
nFSFileShareInfo_path :: Lens.Lens' NFSFileShareInfo (Prelude.Maybe Prelude.Text)
nFSFileShareInfo_path :: Lens' NFSFileShareInfo (Maybe Text)
nFSFileShareInfo_path = 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)

-- | 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 :: Lens' NFSFileShareInfo (Maybe Bool)
nFSFileShareInfo_readOnly = 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)

-- | 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 :: Lens' NFSFileShareInfo (Maybe Bool)
nFSFileShareInfo_requesterPays = 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_role :: Lens.Lens' NFSFileShareInfo (Prelude.Maybe Prelude.Text)
nFSFileShareInfo_role :: Lens' NFSFileShareInfo (Maybe Text)
nFSFileShareInfo_role = 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)

-- | Undocumented member.
nFSFileShareInfo_squash :: Lens.Lens' NFSFileShareInfo (Prelude.Maybe Prelude.Text)
nFSFileShareInfo_squash :: Lens' NFSFileShareInfo (Maybe Text)
nFSFileShareInfo_squash = 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 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 :: Lens' NFSFileShareInfo (Maybe [Tag])
nFSFileShareInfo_tags = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | 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 :: Lens' NFSFileShareInfo (Maybe Text)
nFSFileShareInfo_vPCEndpointDNSName = 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)

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

instance Prelude.Hashable NFSFileShareInfo where
  hashWithSalt :: Int -> NFSFileShareInfo -> Int
hashWithSalt Int
_salt NFSFileShareInfo' {Maybe Bool
Maybe [Tag]
Maybe (NonEmpty Text)
Maybe Text
Maybe CacheAttributes
Maybe NFSFileShareDefaults
Maybe ObjectACL
vPCEndpointDNSName :: Maybe Text
tags :: Maybe [Tag]
squash :: Maybe Text
role' :: Maybe Text
requesterPays :: Maybe Bool
readOnly :: Maybe Bool
path :: Maybe Text
objectACL :: Maybe ObjectACL
notificationPolicy :: Maybe Text
nFSFileShareDefaults :: Maybe NFSFileShareDefaults
locationARN :: Maybe Text
kmsKey :: Maybe Text
kmsEncrypted :: Maybe Bool
guessMIMETypeEnabled :: Maybe Bool
gatewayARN :: Maybe Text
fileShareStatus :: Maybe Text
fileShareName :: Maybe Text
fileShareId :: Maybe Text
fileShareARN :: Maybe Text
defaultStorageClass :: Maybe Text
clientList :: Maybe (NonEmpty Text)
cacheAttributes :: Maybe CacheAttributes
bucketRegion :: Maybe Text
auditDestinationARN :: Maybe Text
$sel:vPCEndpointDNSName:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
$sel:tags:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe [Tag]
$sel:squash:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
$sel:role':NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
$sel:requesterPays:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Bool
$sel:readOnly:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Bool
$sel:path:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
$sel:objectACL:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe ObjectACL
$sel:notificationPolicy:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
$sel:nFSFileShareDefaults:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe NFSFileShareDefaults
$sel:locationARN:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
$sel:kmsKey:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
$sel:kmsEncrypted:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Bool
$sel:guessMIMETypeEnabled:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Bool
$sel:gatewayARN:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
$sel:fileShareStatus:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
$sel:fileShareName:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
$sel:fileShareId:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
$sel:fileShareARN:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
$sel:defaultStorageClass:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
$sel:clientList:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe (NonEmpty Text)
$sel:cacheAttributes:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe CacheAttributes
$sel:bucketRegion:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
$sel:auditDestinationARN:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
auditDestinationARN
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
bucketRegion
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CacheAttributes
cacheAttributes
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty Text)
clientList
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
defaultStorageClass
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
fileShareARN
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
fileShareId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
fileShareName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
fileShareStatus
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
gatewayARN
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
guessMIMETypeEnabled
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
kmsEncrypted
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
kmsKey
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
locationARN
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe NFSFileShareDefaults
nFSFileShareDefaults
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
notificationPolicy
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ObjectACL
objectACL
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
path
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
readOnly
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
requesterPays
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
role'
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
squash
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Tag]
tags
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
vPCEndpointDNSName

instance Prelude.NFData NFSFileShareInfo where
  rnf :: NFSFileShareInfo -> ()
rnf NFSFileShareInfo' {Maybe Bool
Maybe [Tag]
Maybe (NonEmpty Text)
Maybe Text
Maybe CacheAttributes
Maybe NFSFileShareDefaults
Maybe ObjectACL
vPCEndpointDNSName :: Maybe Text
tags :: Maybe [Tag]
squash :: Maybe Text
role' :: Maybe Text
requesterPays :: Maybe Bool
readOnly :: Maybe Bool
path :: Maybe Text
objectACL :: Maybe ObjectACL
notificationPolicy :: Maybe Text
nFSFileShareDefaults :: Maybe NFSFileShareDefaults
locationARN :: Maybe Text
kmsKey :: Maybe Text
kmsEncrypted :: Maybe Bool
guessMIMETypeEnabled :: Maybe Bool
gatewayARN :: Maybe Text
fileShareStatus :: Maybe Text
fileShareName :: Maybe Text
fileShareId :: Maybe Text
fileShareARN :: Maybe Text
defaultStorageClass :: Maybe Text
clientList :: Maybe (NonEmpty Text)
cacheAttributes :: Maybe CacheAttributes
bucketRegion :: Maybe Text
auditDestinationARN :: Maybe Text
$sel:vPCEndpointDNSName:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
$sel:tags:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe [Tag]
$sel:squash:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
$sel:role':NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
$sel:requesterPays:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Bool
$sel:readOnly:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Bool
$sel:path:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
$sel:objectACL:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe ObjectACL
$sel:notificationPolicy:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
$sel:nFSFileShareDefaults:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe NFSFileShareDefaults
$sel:locationARN:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
$sel:kmsKey:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
$sel:kmsEncrypted:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Bool
$sel:guessMIMETypeEnabled:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Bool
$sel:gatewayARN:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
$sel:fileShareStatus:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
$sel:fileShareName:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
$sel:fileShareId:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
$sel:fileShareARN:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
$sel:defaultStorageClass:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
$sel:clientList:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe (NonEmpty Text)
$sel:cacheAttributes:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe CacheAttributes
$sel:bucketRegion:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
$sel:auditDestinationARN:NFSFileShareInfo' :: NFSFileShareInfo -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
auditDestinationARN
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
bucketRegion
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe CacheAttributes
cacheAttributes
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty Text)
clientList
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
defaultStorageClass
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
fileShareARN
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
fileShareId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
fileShareName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
fileShareStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
gatewayARN
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
guessMIMETypeEnabled
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
kmsEncrypted
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
kmsKey
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
locationARN
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe NFSFileShareDefaults
nFSFileShareDefaults
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
notificationPolicy
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ObjectACL
objectACL
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
path
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
readOnly
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
requesterPays
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
role'
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
squash
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Tag]
tags
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe Text
vPCEndpointDNSName