{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.StorageGateway.CreateNFSFileShare
(
CreateNFSFileShare (..),
newCreateNFSFileShare,
createNFSFileShare_auditDestinationARN,
createNFSFileShare_kmsKey,
createNFSFileShare_vPCEndpointDNSName,
createNFSFileShare_cacheAttributes,
createNFSFileShare_objectACL,
createNFSFileShare_kmsEncrypted,
createNFSFileShare_defaultStorageClass,
createNFSFileShare_fileShareName,
createNFSFileShare_notificationPolicy,
createNFSFileShare_squash,
createNFSFileShare_requesterPays,
createNFSFileShare_nFSFileShareDefaults,
createNFSFileShare_clientList,
createNFSFileShare_guessMIMETypeEnabled,
createNFSFileShare_readOnly,
createNFSFileShare_bucketRegion,
createNFSFileShare_tags,
createNFSFileShare_clientToken,
createNFSFileShare_gatewayARN,
createNFSFileShare_role,
createNFSFileShare_locationARN,
CreateNFSFileShareResponse (..),
newCreateNFSFileShareResponse,
createNFSFileShareResponse_fileShareARN,
createNFSFileShareResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.StorageGateway.Types
data CreateNFSFileShare = CreateNFSFileShare'
{
CreateNFSFileShare -> Maybe Text
auditDestinationARN :: Prelude.Maybe Prelude.Text,
CreateNFSFileShare -> Maybe Text
kmsKey :: Prelude.Maybe Prelude.Text,
CreateNFSFileShare -> Maybe Text
vPCEndpointDNSName :: Prelude.Maybe Prelude.Text,
CreateNFSFileShare -> Maybe CacheAttributes
cacheAttributes :: Prelude.Maybe CacheAttributes,
CreateNFSFileShare -> Maybe ObjectACL
objectACL :: Prelude.Maybe ObjectACL,
CreateNFSFileShare -> Maybe Bool
kmsEncrypted :: Prelude.Maybe Prelude.Bool,
CreateNFSFileShare -> Maybe Text
defaultStorageClass :: Prelude.Maybe Prelude.Text,
CreateNFSFileShare -> Maybe Text
fileShareName :: Prelude.Maybe Prelude.Text,
CreateNFSFileShare -> Maybe Text
notificationPolicy :: Prelude.Maybe Prelude.Text,
CreateNFSFileShare -> Maybe Text
squash :: Prelude.Maybe Prelude.Text,
CreateNFSFileShare -> Maybe Bool
requesterPays :: Prelude.Maybe Prelude.Bool,
CreateNFSFileShare -> Maybe NFSFileShareDefaults
nFSFileShareDefaults :: Prelude.Maybe NFSFileShareDefaults,
CreateNFSFileShare -> Maybe (NonEmpty Text)
clientList :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
CreateNFSFileShare -> Maybe Bool
guessMIMETypeEnabled :: Prelude.Maybe Prelude.Bool,
CreateNFSFileShare -> Maybe Bool
readOnly :: Prelude.Maybe Prelude.Bool,
CreateNFSFileShare -> Maybe Text
bucketRegion :: Prelude.Maybe Prelude.Text,
CreateNFSFileShare -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreateNFSFileShare -> Text
clientToken :: Prelude.Text,
CreateNFSFileShare -> Text
gatewayARN :: Prelude.Text,
CreateNFSFileShare -> Text
role' :: Prelude.Text,
CreateNFSFileShare -> Text
locationARN :: Prelude.Text
}
deriving (CreateNFSFileShare -> CreateNFSFileShare -> Bool
(CreateNFSFileShare -> CreateNFSFileShare -> Bool)
-> (CreateNFSFileShare -> CreateNFSFileShare -> Bool)
-> Eq CreateNFSFileShare
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateNFSFileShare -> CreateNFSFileShare -> Bool
$c/= :: CreateNFSFileShare -> CreateNFSFileShare -> Bool
== :: CreateNFSFileShare -> CreateNFSFileShare -> Bool
$c== :: CreateNFSFileShare -> CreateNFSFileShare -> Bool
Prelude.Eq, ReadPrec [CreateNFSFileShare]
ReadPrec CreateNFSFileShare
Int -> ReadS CreateNFSFileShare
ReadS [CreateNFSFileShare]
(Int -> ReadS CreateNFSFileShare)
-> ReadS [CreateNFSFileShare]
-> ReadPrec CreateNFSFileShare
-> ReadPrec [CreateNFSFileShare]
-> Read CreateNFSFileShare
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateNFSFileShare]
$creadListPrec :: ReadPrec [CreateNFSFileShare]
readPrec :: ReadPrec CreateNFSFileShare
$creadPrec :: ReadPrec CreateNFSFileShare
readList :: ReadS [CreateNFSFileShare]
$creadList :: ReadS [CreateNFSFileShare]
readsPrec :: Int -> ReadS CreateNFSFileShare
$creadsPrec :: Int -> ReadS CreateNFSFileShare
Prelude.Read, Int -> CreateNFSFileShare -> ShowS
[CreateNFSFileShare] -> ShowS
CreateNFSFileShare -> String
(Int -> CreateNFSFileShare -> ShowS)
-> (CreateNFSFileShare -> String)
-> ([CreateNFSFileShare] -> ShowS)
-> Show CreateNFSFileShare
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateNFSFileShare] -> ShowS
$cshowList :: [CreateNFSFileShare] -> ShowS
show :: CreateNFSFileShare -> String
$cshow :: CreateNFSFileShare -> String
showsPrec :: Int -> CreateNFSFileShare -> ShowS
$cshowsPrec :: Int -> CreateNFSFileShare -> ShowS
Prelude.Show, (forall x. CreateNFSFileShare -> Rep CreateNFSFileShare x)
-> (forall x. Rep CreateNFSFileShare x -> CreateNFSFileShare)
-> Generic CreateNFSFileShare
forall x. Rep CreateNFSFileShare x -> CreateNFSFileShare
forall x. CreateNFSFileShare -> Rep CreateNFSFileShare x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateNFSFileShare x -> CreateNFSFileShare
$cfrom :: forall x. CreateNFSFileShare -> Rep CreateNFSFileShare x
Prelude.Generic)
newCreateNFSFileShare ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
CreateNFSFileShare
newCreateNFSFileShare :: Text -> Text -> Text -> Text -> CreateNFSFileShare
newCreateNFSFileShare
Text
pClientToken_
Text
pGatewayARN_
Text
pRole_
Text
pLocationARN_ =
CreateNFSFileShare' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe CacheAttributes
-> Maybe ObjectACL
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe NFSFileShareDefaults
-> Maybe (NonEmpty Text)
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe [Tag]
-> Text
-> Text
-> Text
-> Text
-> CreateNFSFileShare
CreateNFSFileShare'
{ $sel:auditDestinationARN:CreateNFSFileShare' :: Maybe Text
auditDestinationARN =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:kmsKey:CreateNFSFileShare' :: Maybe Text
kmsKey = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:vPCEndpointDNSName:CreateNFSFileShare' :: Maybe Text
vPCEndpointDNSName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cacheAttributes:CreateNFSFileShare' :: Maybe CacheAttributes
cacheAttributes = Maybe CacheAttributes
forall a. Maybe a
Prelude.Nothing,
$sel:objectACL:CreateNFSFileShare' :: Maybe ObjectACL
objectACL = Maybe ObjectACL
forall a. Maybe a
Prelude.Nothing,
$sel:kmsEncrypted:CreateNFSFileShare' :: Maybe Bool
kmsEncrypted = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:defaultStorageClass:CreateNFSFileShare' :: Maybe Text
defaultStorageClass = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:fileShareName:CreateNFSFileShare' :: Maybe Text
fileShareName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:notificationPolicy:CreateNFSFileShare' :: Maybe Text
notificationPolicy = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:squash:CreateNFSFileShare' :: Maybe Text
squash = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:requesterPays:CreateNFSFileShare' :: Maybe Bool
requesterPays = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:nFSFileShareDefaults:CreateNFSFileShare' :: Maybe NFSFileShareDefaults
nFSFileShareDefaults = Maybe NFSFileShareDefaults
forall a. Maybe a
Prelude.Nothing,
$sel:clientList:CreateNFSFileShare' :: Maybe (NonEmpty Text)
clientList = Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
$sel:guessMIMETypeEnabled:CreateNFSFileShare' :: Maybe Bool
guessMIMETypeEnabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:readOnly:CreateNFSFileShare' :: Maybe Bool
readOnly = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:bucketRegion:CreateNFSFileShare' :: Maybe Text
bucketRegion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateNFSFileShare' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:clientToken:CreateNFSFileShare' :: Text
clientToken = Text
pClientToken_,
$sel:gatewayARN:CreateNFSFileShare' :: Text
gatewayARN = Text
pGatewayARN_,
$sel:role':CreateNFSFileShare' :: Text
role' = Text
pRole_,
$sel:locationARN:CreateNFSFileShare' :: Text
locationARN = Text
pLocationARN_
}
createNFSFileShare_auditDestinationARN :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe Prelude.Text)
createNFSFileShare_auditDestinationARN :: (Maybe Text -> f (Maybe Text))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_auditDestinationARN = (CreateNFSFileShare -> Maybe Text)
-> (CreateNFSFileShare -> Maybe Text -> CreateNFSFileShare)
-> Lens
CreateNFSFileShare CreateNFSFileShare (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe Text
auditDestinationARN :: Maybe Text
$sel:auditDestinationARN:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Text
auditDestinationARN} -> Maybe Text
auditDestinationARN) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe Text
a -> CreateNFSFileShare
s {$sel:auditDestinationARN:CreateNFSFileShare' :: Maybe Text
auditDestinationARN = Maybe Text
a} :: CreateNFSFileShare)
createNFSFileShare_kmsKey :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe Prelude.Text)
createNFSFileShare_kmsKey :: (Maybe Text -> f (Maybe Text))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_kmsKey = (CreateNFSFileShare -> Maybe Text)
-> (CreateNFSFileShare -> Maybe Text -> CreateNFSFileShare)
-> Lens
CreateNFSFileShare CreateNFSFileShare (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe Text
kmsKey :: Maybe Text
$sel:kmsKey:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Text
kmsKey} -> Maybe Text
kmsKey) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe Text
a -> CreateNFSFileShare
s {$sel:kmsKey:CreateNFSFileShare' :: Maybe Text
kmsKey = Maybe Text
a} :: CreateNFSFileShare)
createNFSFileShare_vPCEndpointDNSName :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe Prelude.Text)
createNFSFileShare_vPCEndpointDNSName :: (Maybe Text -> f (Maybe Text))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_vPCEndpointDNSName = (CreateNFSFileShare -> Maybe Text)
-> (CreateNFSFileShare -> Maybe Text -> CreateNFSFileShare)
-> Lens
CreateNFSFileShare CreateNFSFileShare (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe Text
vPCEndpointDNSName :: Maybe Text
$sel:vPCEndpointDNSName:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Text
vPCEndpointDNSName} -> Maybe Text
vPCEndpointDNSName) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe Text
a -> CreateNFSFileShare
s {$sel:vPCEndpointDNSName:CreateNFSFileShare' :: Maybe Text
vPCEndpointDNSName = Maybe Text
a} :: CreateNFSFileShare)
createNFSFileShare_cacheAttributes :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe CacheAttributes)
createNFSFileShare_cacheAttributes :: (Maybe CacheAttributes -> f (Maybe CacheAttributes))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_cacheAttributes = (CreateNFSFileShare -> Maybe CacheAttributes)
-> (CreateNFSFileShare
-> Maybe CacheAttributes -> CreateNFSFileShare)
-> Lens
CreateNFSFileShare
CreateNFSFileShare
(Maybe CacheAttributes)
(Maybe CacheAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe CacheAttributes
cacheAttributes :: Maybe CacheAttributes
$sel:cacheAttributes:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe CacheAttributes
cacheAttributes} -> Maybe CacheAttributes
cacheAttributes) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe CacheAttributes
a -> CreateNFSFileShare
s {$sel:cacheAttributes:CreateNFSFileShare' :: Maybe CacheAttributes
cacheAttributes = Maybe CacheAttributes
a} :: CreateNFSFileShare)
createNFSFileShare_objectACL :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe ObjectACL)
createNFSFileShare_objectACL :: (Maybe ObjectACL -> f (Maybe ObjectACL))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_objectACL = (CreateNFSFileShare -> Maybe ObjectACL)
-> (CreateNFSFileShare -> Maybe ObjectACL -> CreateNFSFileShare)
-> Lens
CreateNFSFileShare
CreateNFSFileShare
(Maybe ObjectACL)
(Maybe ObjectACL)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe ObjectACL
objectACL :: Maybe ObjectACL
$sel:objectACL:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe ObjectACL
objectACL} -> Maybe ObjectACL
objectACL) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe ObjectACL
a -> CreateNFSFileShare
s {$sel:objectACL:CreateNFSFileShare' :: Maybe ObjectACL
objectACL = Maybe ObjectACL
a} :: CreateNFSFileShare)
createNFSFileShare_kmsEncrypted :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe Prelude.Bool)
createNFSFileShare_kmsEncrypted :: (Maybe Bool -> f (Maybe Bool))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_kmsEncrypted = (CreateNFSFileShare -> Maybe Bool)
-> (CreateNFSFileShare -> Maybe Bool -> CreateNFSFileShare)
-> Lens
CreateNFSFileShare CreateNFSFileShare (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe Bool
kmsEncrypted :: Maybe Bool
$sel:kmsEncrypted:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Bool
kmsEncrypted} -> Maybe Bool
kmsEncrypted) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe Bool
a -> CreateNFSFileShare
s {$sel:kmsEncrypted:CreateNFSFileShare' :: Maybe Bool
kmsEncrypted = Maybe Bool
a} :: CreateNFSFileShare)
createNFSFileShare_defaultStorageClass :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe Prelude.Text)
createNFSFileShare_defaultStorageClass :: (Maybe Text -> f (Maybe Text))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_defaultStorageClass = (CreateNFSFileShare -> Maybe Text)
-> (CreateNFSFileShare -> Maybe Text -> CreateNFSFileShare)
-> Lens
CreateNFSFileShare CreateNFSFileShare (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe Text
defaultStorageClass :: Maybe Text
$sel:defaultStorageClass:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Text
defaultStorageClass} -> Maybe Text
defaultStorageClass) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe Text
a -> CreateNFSFileShare
s {$sel:defaultStorageClass:CreateNFSFileShare' :: Maybe Text
defaultStorageClass = Maybe Text
a} :: CreateNFSFileShare)
createNFSFileShare_fileShareName :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe Prelude.Text)
createNFSFileShare_fileShareName :: (Maybe Text -> f (Maybe Text))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_fileShareName = (CreateNFSFileShare -> Maybe Text)
-> (CreateNFSFileShare -> Maybe Text -> CreateNFSFileShare)
-> Lens
CreateNFSFileShare CreateNFSFileShare (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe Text
fileShareName :: Maybe Text
$sel:fileShareName:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Text
fileShareName} -> Maybe Text
fileShareName) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe Text
a -> CreateNFSFileShare
s {$sel:fileShareName:CreateNFSFileShare' :: Maybe Text
fileShareName = Maybe Text
a} :: CreateNFSFileShare)
createNFSFileShare_notificationPolicy :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe Prelude.Text)
createNFSFileShare_notificationPolicy :: (Maybe Text -> f (Maybe Text))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_notificationPolicy = (CreateNFSFileShare -> Maybe Text)
-> (CreateNFSFileShare -> Maybe Text -> CreateNFSFileShare)
-> Lens
CreateNFSFileShare CreateNFSFileShare (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe Text
notificationPolicy :: Maybe Text
$sel:notificationPolicy:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Text
notificationPolicy} -> Maybe Text
notificationPolicy) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe Text
a -> CreateNFSFileShare
s {$sel:notificationPolicy:CreateNFSFileShare' :: Maybe Text
notificationPolicy = Maybe Text
a} :: CreateNFSFileShare)
createNFSFileShare_squash :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe Prelude.Text)
createNFSFileShare_squash :: (Maybe Text -> f (Maybe Text))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_squash = (CreateNFSFileShare -> Maybe Text)
-> (CreateNFSFileShare -> Maybe Text -> CreateNFSFileShare)
-> Lens
CreateNFSFileShare CreateNFSFileShare (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe Text
squash :: Maybe Text
$sel:squash:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Text
squash} -> Maybe Text
squash) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe Text
a -> CreateNFSFileShare
s {$sel:squash:CreateNFSFileShare' :: Maybe Text
squash = Maybe Text
a} :: CreateNFSFileShare)
createNFSFileShare_requesterPays :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe Prelude.Bool)
createNFSFileShare_requesterPays :: (Maybe Bool -> f (Maybe Bool))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_requesterPays = (CreateNFSFileShare -> Maybe Bool)
-> (CreateNFSFileShare -> Maybe Bool -> CreateNFSFileShare)
-> Lens
CreateNFSFileShare CreateNFSFileShare (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe Bool
requesterPays :: Maybe Bool
$sel:requesterPays:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Bool
requesterPays} -> Maybe Bool
requesterPays) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe Bool
a -> CreateNFSFileShare
s {$sel:requesterPays:CreateNFSFileShare' :: Maybe Bool
requesterPays = Maybe Bool
a} :: CreateNFSFileShare)
createNFSFileShare_nFSFileShareDefaults :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe NFSFileShareDefaults)
createNFSFileShare_nFSFileShareDefaults :: (Maybe NFSFileShareDefaults -> f (Maybe NFSFileShareDefaults))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_nFSFileShareDefaults = (CreateNFSFileShare -> Maybe NFSFileShareDefaults)
-> (CreateNFSFileShare
-> Maybe NFSFileShareDefaults -> CreateNFSFileShare)
-> Lens
CreateNFSFileShare
CreateNFSFileShare
(Maybe NFSFileShareDefaults)
(Maybe NFSFileShareDefaults)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe NFSFileShareDefaults
nFSFileShareDefaults :: Maybe NFSFileShareDefaults
$sel:nFSFileShareDefaults:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe NFSFileShareDefaults
nFSFileShareDefaults} -> Maybe NFSFileShareDefaults
nFSFileShareDefaults) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe NFSFileShareDefaults
a -> CreateNFSFileShare
s {$sel:nFSFileShareDefaults:CreateNFSFileShare' :: Maybe NFSFileShareDefaults
nFSFileShareDefaults = Maybe NFSFileShareDefaults
a} :: CreateNFSFileShare)
createNFSFileShare_clientList :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
createNFSFileShare_clientList :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_clientList = (CreateNFSFileShare -> Maybe (NonEmpty Text))
-> (CreateNFSFileShare
-> Maybe (NonEmpty Text) -> CreateNFSFileShare)
-> Lens
CreateNFSFileShare
CreateNFSFileShare
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe (NonEmpty Text)
clientList :: Maybe (NonEmpty Text)
$sel:clientList:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe (NonEmpty Text)
clientList} -> Maybe (NonEmpty Text)
clientList) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe (NonEmpty Text)
a -> CreateNFSFileShare
s {$sel:clientList:CreateNFSFileShare' :: Maybe (NonEmpty Text)
clientList = Maybe (NonEmpty Text)
a} :: CreateNFSFileShare) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> CreateNFSFileShare -> f CreateNFSFileShare)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> CreateNFSFileShare
-> f CreateNFSFileShare
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
-> Iso
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createNFSFileShare_guessMIMETypeEnabled :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe Prelude.Bool)
createNFSFileShare_guessMIMETypeEnabled :: (Maybe Bool -> f (Maybe Bool))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_guessMIMETypeEnabled = (CreateNFSFileShare -> Maybe Bool)
-> (CreateNFSFileShare -> Maybe Bool -> CreateNFSFileShare)
-> Lens
CreateNFSFileShare CreateNFSFileShare (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe Bool
guessMIMETypeEnabled :: Maybe Bool
$sel:guessMIMETypeEnabled:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Bool
guessMIMETypeEnabled} -> Maybe Bool
guessMIMETypeEnabled) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe Bool
a -> CreateNFSFileShare
s {$sel:guessMIMETypeEnabled:CreateNFSFileShare' :: Maybe Bool
guessMIMETypeEnabled = Maybe Bool
a} :: CreateNFSFileShare)
createNFSFileShare_readOnly :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe Prelude.Bool)
createNFSFileShare_readOnly :: (Maybe Bool -> f (Maybe Bool))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_readOnly = (CreateNFSFileShare -> Maybe Bool)
-> (CreateNFSFileShare -> Maybe Bool -> CreateNFSFileShare)
-> Lens
CreateNFSFileShare CreateNFSFileShare (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe Bool
readOnly :: Maybe Bool
$sel:readOnly:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Bool
readOnly} -> Maybe Bool
readOnly) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe Bool
a -> CreateNFSFileShare
s {$sel:readOnly:CreateNFSFileShare' :: Maybe Bool
readOnly = Maybe Bool
a} :: CreateNFSFileShare)
createNFSFileShare_bucketRegion :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe Prelude.Text)
createNFSFileShare_bucketRegion :: (Maybe Text -> f (Maybe Text))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_bucketRegion = (CreateNFSFileShare -> Maybe Text)
-> (CreateNFSFileShare -> Maybe Text -> CreateNFSFileShare)
-> Lens
CreateNFSFileShare CreateNFSFileShare (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe Text
bucketRegion :: Maybe Text
$sel:bucketRegion:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Text
bucketRegion} -> Maybe Text
bucketRegion) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe Text
a -> CreateNFSFileShare
s {$sel:bucketRegion:CreateNFSFileShare' :: Maybe Text
bucketRegion = Maybe Text
a} :: CreateNFSFileShare)
createNFSFileShare_tags :: Lens.Lens' CreateNFSFileShare (Prelude.Maybe [Tag])
createNFSFileShare_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_tags = (CreateNFSFileShare -> Maybe [Tag])
-> (CreateNFSFileShare -> Maybe [Tag] -> CreateNFSFileShare)
-> Lens
CreateNFSFileShare CreateNFSFileShare (Maybe [Tag]) (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Maybe [Tag]
a -> CreateNFSFileShare
s {$sel:tags:CreateNFSFileShare' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateNFSFileShare) ((Maybe [Tag] -> f (Maybe [Tag]))
-> CreateNFSFileShare -> f CreateNFSFileShare)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateNFSFileShare
-> f CreateNFSFileShare
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createNFSFileShare_clientToken :: Lens.Lens' CreateNFSFileShare Prelude.Text
createNFSFileShare_clientToken :: (Text -> f Text) -> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_clientToken = (CreateNFSFileShare -> Text)
-> (CreateNFSFileShare -> Text -> CreateNFSFileShare)
-> Lens CreateNFSFileShare CreateNFSFileShare Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Text
clientToken :: Text
$sel:clientToken:CreateNFSFileShare' :: CreateNFSFileShare -> Text
clientToken} -> Text
clientToken) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Text
a -> CreateNFSFileShare
s {$sel:clientToken:CreateNFSFileShare' :: Text
clientToken = Text
a} :: CreateNFSFileShare)
createNFSFileShare_gatewayARN :: Lens.Lens' CreateNFSFileShare Prelude.Text
createNFSFileShare_gatewayARN :: (Text -> f Text) -> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_gatewayARN = (CreateNFSFileShare -> Text)
-> (CreateNFSFileShare -> Text -> CreateNFSFileShare)
-> Lens CreateNFSFileShare CreateNFSFileShare Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Text
gatewayARN :: Text
$sel:gatewayARN:CreateNFSFileShare' :: CreateNFSFileShare -> Text
gatewayARN} -> Text
gatewayARN) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Text
a -> CreateNFSFileShare
s {$sel:gatewayARN:CreateNFSFileShare' :: Text
gatewayARN = Text
a} :: CreateNFSFileShare)
createNFSFileShare_role :: Lens.Lens' CreateNFSFileShare Prelude.Text
createNFSFileShare_role :: (Text -> f Text) -> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_role = (CreateNFSFileShare -> Text)
-> (CreateNFSFileShare -> Text -> CreateNFSFileShare)
-> Lens CreateNFSFileShare CreateNFSFileShare Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Text
role' :: Text
$sel:role':CreateNFSFileShare' :: CreateNFSFileShare -> Text
role'} -> Text
role') (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Text
a -> CreateNFSFileShare
s {$sel:role':CreateNFSFileShare' :: Text
role' = Text
a} :: CreateNFSFileShare)
createNFSFileShare_locationARN :: Lens.Lens' CreateNFSFileShare Prelude.Text
createNFSFileShare_locationARN :: (Text -> f Text) -> CreateNFSFileShare -> f CreateNFSFileShare
createNFSFileShare_locationARN = (CreateNFSFileShare -> Text)
-> (CreateNFSFileShare -> Text -> CreateNFSFileShare)
-> Lens CreateNFSFileShare CreateNFSFileShare Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShare' {Text
locationARN :: Text
$sel:locationARN:CreateNFSFileShare' :: CreateNFSFileShare -> Text
locationARN} -> Text
locationARN) (\s :: CreateNFSFileShare
s@CreateNFSFileShare' {} Text
a -> CreateNFSFileShare
s {$sel:locationARN:CreateNFSFileShare' :: Text
locationARN = Text
a} :: CreateNFSFileShare)
instance Core.AWSRequest CreateNFSFileShare where
type
AWSResponse CreateNFSFileShare =
CreateNFSFileShareResponse
request :: CreateNFSFileShare -> Request CreateNFSFileShare
request = Service -> CreateNFSFileShare -> Request CreateNFSFileShare
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateNFSFileShare
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateNFSFileShare)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateNFSFileShare))
-> Logger
-> Service
-> Proxy CreateNFSFileShare
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateNFSFileShare)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text -> Int -> CreateNFSFileShareResponse
CreateNFSFileShareResponse'
(Maybe Text -> Int -> CreateNFSFileShareResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateNFSFileShareResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"FileShareARN")
Either String (Int -> CreateNFSFileShareResponse)
-> Either String Int -> Either String CreateNFSFileShareResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable CreateNFSFileShare
instance Prelude.NFData CreateNFSFileShare
instance Core.ToHeaders CreateNFSFileShare where
toHeaders :: CreateNFSFileShare -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateNFSFileShare -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"StorageGateway_20130630.CreateNFSFileShare" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON CreateNFSFileShare where
toJSON :: CreateNFSFileShare -> Value
toJSON CreateNFSFileShare' {Maybe Bool
Maybe [Tag]
Maybe (NonEmpty Text)
Maybe Text
Maybe CacheAttributes
Maybe NFSFileShareDefaults
Maybe ObjectACL
Text
locationARN :: Text
role' :: Text
gatewayARN :: Text
clientToken :: Text
tags :: Maybe [Tag]
bucketRegion :: Maybe Text
readOnly :: Maybe Bool
guessMIMETypeEnabled :: Maybe Bool
clientList :: Maybe (NonEmpty Text)
nFSFileShareDefaults :: Maybe NFSFileShareDefaults
requesterPays :: Maybe Bool
squash :: Maybe Text
notificationPolicy :: Maybe Text
fileShareName :: Maybe Text
defaultStorageClass :: Maybe Text
kmsEncrypted :: Maybe Bool
objectACL :: Maybe ObjectACL
cacheAttributes :: Maybe CacheAttributes
vPCEndpointDNSName :: Maybe Text
kmsKey :: Maybe Text
auditDestinationARN :: Maybe Text
$sel:locationARN:CreateNFSFileShare' :: CreateNFSFileShare -> Text
$sel:role':CreateNFSFileShare' :: CreateNFSFileShare -> Text
$sel:gatewayARN:CreateNFSFileShare' :: CreateNFSFileShare -> Text
$sel:clientToken:CreateNFSFileShare' :: CreateNFSFileShare -> Text
$sel:tags:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe [Tag]
$sel:bucketRegion:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Text
$sel:readOnly:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Bool
$sel:guessMIMETypeEnabled:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Bool
$sel:clientList:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe (NonEmpty Text)
$sel:nFSFileShareDefaults:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe NFSFileShareDefaults
$sel:requesterPays:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Bool
$sel:squash:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Text
$sel:notificationPolicy:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Text
$sel:fileShareName:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Text
$sel:defaultStorageClass:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Text
$sel:kmsEncrypted:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Bool
$sel:objectACL:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe ObjectACL
$sel:cacheAttributes:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe CacheAttributes
$sel:vPCEndpointDNSName:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Text
$sel:kmsKey:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Text
$sel:auditDestinationARN:CreateNFSFileShare' :: CreateNFSFileShare -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"AuditDestinationARN" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
auditDestinationARN,
(Text
"KMSKey" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
kmsKey,
(Text
"VPCEndpointDNSName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
vPCEndpointDNSName,
(Text
"CacheAttributes" Text -> CacheAttributes -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(CacheAttributes -> Pair) -> Maybe CacheAttributes -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CacheAttributes
cacheAttributes,
(Text
"ObjectACL" Text -> ObjectACL -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (ObjectACL -> Pair) -> Maybe ObjectACL -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ObjectACL
objectACL,
(Text
"KMSEncrypted" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
kmsEncrypted,
(Text
"DefaultStorageClass" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
defaultStorageClass,
(Text
"FileShareName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
fileShareName,
(Text
"NotificationPolicy" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
notificationPolicy,
(Text
"Squash" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
squash,
(Text
"RequesterPays" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
requesterPays,
(Text
"NFSFileShareDefaults" Text -> NFSFileShareDefaults -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(NFSFileShareDefaults -> Pair)
-> Maybe NFSFileShareDefaults -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe NFSFileShareDefaults
nFSFileShareDefaults,
(Text
"ClientList" Text -> NonEmpty Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (NonEmpty Text -> Pair) -> Maybe (NonEmpty Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Text)
clientList,
(Text
"GuessMIMETypeEnabled" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
guessMIMETypeEnabled,
(Text
"ReadOnly" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
readOnly,
(Text
"BucketRegion" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
bucketRegion,
(Text
"Tags" Text -> [Tag] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Tag] -> Pair) -> Maybe [Tag] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ClientToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
clientToken),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"GatewayARN" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
gatewayARN),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Role" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
role'),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"LocationARN" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
locationARN)
]
)
instance Core.ToPath CreateNFSFileShare where
toPath :: CreateNFSFileShare -> ByteString
toPath = ByteString -> CreateNFSFileShare -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateNFSFileShare where
toQuery :: CreateNFSFileShare -> QueryString
toQuery = QueryString -> CreateNFSFileShare -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateNFSFileShareResponse = CreateNFSFileShareResponse'
{
CreateNFSFileShareResponse -> Maybe Text
fileShareARN :: Prelude.Maybe Prelude.Text,
CreateNFSFileShareResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateNFSFileShareResponse -> CreateNFSFileShareResponse -> Bool
(CreateNFSFileShareResponse -> CreateNFSFileShareResponse -> Bool)
-> (CreateNFSFileShareResponse
-> CreateNFSFileShareResponse -> Bool)
-> Eq CreateNFSFileShareResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateNFSFileShareResponse -> CreateNFSFileShareResponse -> Bool
$c/= :: CreateNFSFileShareResponse -> CreateNFSFileShareResponse -> Bool
== :: CreateNFSFileShareResponse -> CreateNFSFileShareResponse -> Bool
$c== :: CreateNFSFileShareResponse -> CreateNFSFileShareResponse -> Bool
Prelude.Eq, ReadPrec [CreateNFSFileShareResponse]
ReadPrec CreateNFSFileShareResponse
Int -> ReadS CreateNFSFileShareResponse
ReadS [CreateNFSFileShareResponse]
(Int -> ReadS CreateNFSFileShareResponse)
-> ReadS [CreateNFSFileShareResponse]
-> ReadPrec CreateNFSFileShareResponse
-> ReadPrec [CreateNFSFileShareResponse]
-> Read CreateNFSFileShareResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateNFSFileShareResponse]
$creadListPrec :: ReadPrec [CreateNFSFileShareResponse]
readPrec :: ReadPrec CreateNFSFileShareResponse
$creadPrec :: ReadPrec CreateNFSFileShareResponse
readList :: ReadS [CreateNFSFileShareResponse]
$creadList :: ReadS [CreateNFSFileShareResponse]
readsPrec :: Int -> ReadS CreateNFSFileShareResponse
$creadsPrec :: Int -> ReadS CreateNFSFileShareResponse
Prelude.Read, Int -> CreateNFSFileShareResponse -> ShowS
[CreateNFSFileShareResponse] -> ShowS
CreateNFSFileShareResponse -> String
(Int -> CreateNFSFileShareResponse -> ShowS)
-> (CreateNFSFileShareResponse -> String)
-> ([CreateNFSFileShareResponse] -> ShowS)
-> Show CreateNFSFileShareResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateNFSFileShareResponse] -> ShowS
$cshowList :: [CreateNFSFileShareResponse] -> ShowS
show :: CreateNFSFileShareResponse -> String
$cshow :: CreateNFSFileShareResponse -> String
showsPrec :: Int -> CreateNFSFileShareResponse -> ShowS
$cshowsPrec :: Int -> CreateNFSFileShareResponse -> ShowS
Prelude.Show, (forall x.
CreateNFSFileShareResponse -> Rep CreateNFSFileShareResponse x)
-> (forall x.
Rep CreateNFSFileShareResponse x -> CreateNFSFileShareResponse)
-> Generic CreateNFSFileShareResponse
forall x.
Rep CreateNFSFileShareResponse x -> CreateNFSFileShareResponse
forall x.
CreateNFSFileShareResponse -> Rep CreateNFSFileShareResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateNFSFileShareResponse x -> CreateNFSFileShareResponse
$cfrom :: forall x.
CreateNFSFileShareResponse -> Rep CreateNFSFileShareResponse x
Prelude.Generic)
newCreateNFSFileShareResponse ::
Prelude.Int ->
CreateNFSFileShareResponse
newCreateNFSFileShareResponse :: Int -> CreateNFSFileShareResponse
newCreateNFSFileShareResponse Int
pHttpStatus_ =
CreateNFSFileShareResponse' :: Maybe Text -> Int -> CreateNFSFileShareResponse
CreateNFSFileShareResponse'
{ $sel:fileShareARN:CreateNFSFileShareResponse' :: Maybe Text
fileShareARN =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateNFSFileShareResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createNFSFileShareResponse_fileShareARN :: Lens.Lens' CreateNFSFileShareResponse (Prelude.Maybe Prelude.Text)
createNFSFileShareResponse_fileShareARN :: (Maybe Text -> f (Maybe Text))
-> CreateNFSFileShareResponse -> f CreateNFSFileShareResponse
createNFSFileShareResponse_fileShareARN = (CreateNFSFileShareResponse -> Maybe Text)
-> (CreateNFSFileShareResponse
-> Maybe Text -> CreateNFSFileShareResponse)
-> Lens
CreateNFSFileShareResponse
CreateNFSFileShareResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShareResponse' {Maybe Text
fileShareARN :: Maybe Text
$sel:fileShareARN:CreateNFSFileShareResponse' :: CreateNFSFileShareResponse -> Maybe Text
fileShareARN} -> Maybe Text
fileShareARN) (\s :: CreateNFSFileShareResponse
s@CreateNFSFileShareResponse' {} Maybe Text
a -> CreateNFSFileShareResponse
s {$sel:fileShareARN:CreateNFSFileShareResponse' :: Maybe Text
fileShareARN = Maybe Text
a} :: CreateNFSFileShareResponse)
createNFSFileShareResponse_httpStatus :: Lens.Lens' CreateNFSFileShareResponse Prelude.Int
createNFSFileShareResponse_httpStatus :: (Int -> f Int)
-> CreateNFSFileShareResponse -> f CreateNFSFileShareResponse
createNFSFileShareResponse_httpStatus = (CreateNFSFileShareResponse -> Int)
-> (CreateNFSFileShareResponse
-> Int -> CreateNFSFileShareResponse)
-> Lens
CreateNFSFileShareResponse CreateNFSFileShareResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateNFSFileShareResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateNFSFileShareResponse' :: CreateNFSFileShareResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateNFSFileShareResponse
s@CreateNFSFileShareResponse' {} Int
a -> CreateNFSFileShareResponse
s {$sel:httpStatus:CreateNFSFileShareResponse' :: Int
httpStatus = Int
a} :: CreateNFSFileShareResponse)
instance Prelude.NFData CreateNFSFileShareResponse