{-# 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.CreateSMBFileShare
(
CreateSMBFileShare (..),
newCreateSMBFileShare,
createSMBFileShare_accessBasedEnumeration,
createSMBFileShare_adminUserList,
createSMBFileShare_auditDestinationARN,
createSMBFileShare_invalidUserList,
createSMBFileShare_kmsKey,
createSMBFileShare_validUserList,
createSMBFileShare_vPCEndpointDNSName,
createSMBFileShare_authentication,
createSMBFileShare_cacheAttributes,
createSMBFileShare_objectACL,
createSMBFileShare_kmsEncrypted,
createSMBFileShare_defaultStorageClass,
createSMBFileShare_fileShareName,
createSMBFileShare_sMBACLEnabled,
createSMBFileShare_oplocksEnabled,
createSMBFileShare_notificationPolicy,
createSMBFileShare_requesterPays,
createSMBFileShare_guessMIMETypeEnabled,
createSMBFileShare_readOnly,
createSMBFileShare_bucketRegion,
createSMBFileShare_caseSensitivity,
createSMBFileShare_tags,
createSMBFileShare_clientToken,
createSMBFileShare_gatewayARN,
createSMBFileShare_role,
createSMBFileShare_locationARN,
CreateSMBFileShareResponse (..),
newCreateSMBFileShareResponse,
createSMBFileShareResponse_fileShareARN,
createSMBFileShareResponse_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 CreateSMBFileShare = CreateSMBFileShare'
{
CreateSMBFileShare -> Maybe Bool
accessBasedEnumeration :: Prelude.Maybe Prelude.Bool,
CreateSMBFileShare -> Maybe [Text]
adminUserList :: Prelude.Maybe [Prelude.Text],
CreateSMBFileShare -> Maybe Text
auditDestinationARN :: Prelude.Maybe Prelude.Text,
CreateSMBFileShare -> Maybe [Text]
invalidUserList :: Prelude.Maybe [Prelude.Text],
CreateSMBFileShare -> Maybe Text
kmsKey :: Prelude.Maybe Prelude.Text,
CreateSMBFileShare -> Maybe [Text]
validUserList :: Prelude.Maybe [Prelude.Text],
CreateSMBFileShare -> Maybe Text
vPCEndpointDNSName :: Prelude.Maybe Prelude.Text,
CreateSMBFileShare -> Maybe Text
authentication :: Prelude.Maybe Prelude.Text,
CreateSMBFileShare -> Maybe CacheAttributes
cacheAttributes :: Prelude.Maybe CacheAttributes,
CreateSMBFileShare -> Maybe ObjectACL
objectACL :: Prelude.Maybe ObjectACL,
CreateSMBFileShare -> Maybe Bool
kmsEncrypted :: Prelude.Maybe Prelude.Bool,
CreateSMBFileShare -> Maybe Text
defaultStorageClass :: Prelude.Maybe Prelude.Text,
CreateSMBFileShare -> Maybe Text
fileShareName :: Prelude.Maybe Prelude.Text,
CreateSMBFileShare -> Maybe Bool
sMBACLEnabled :: Prelude.Maybe Prelude.Bool,
CreateSMBFileShare -> Maybe Bool
oplocksEnabled :: Prelude.Maybe Prelude.Bool,
CreateSMBFileShare -> Maybe Text
notificationPolicy :: Prelude.Maybe Prelude.Text,
CreateSMBFileShare -> Maybe Bool
requesterPays :: Prelude.Maybe Prelude.Bool,
CreateSMBFileShare -> Maybe Bool
guessMIMETypeEnabled :: Prelude.Maybe Prelude.Bool,
CreateSMBFileShare -> Maybe Bool
readOnly :: Prelude.Maybe Prelude.Bool,
CreateSMBFileShare -> Maybe Text
bucketRegion :: Prelude.Maybe Prelude.Text,
CreateSMBFileShare -> Maybe CaseSensitivity
caseSensitivity :: Prelude.Maybe CaseSensitivity,
CreateSMBFileShare -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreateSMBFileShare -> Text
clientToken :: Prelude.Text,
CreateSMBFileShare -> Text
gatewayARN :: Prelude.Text,
CreateSMBFileShare -> Text
role' :: Prelude.Text,
CreateSMBFileShare -> Text
locationARN :: Prelude.Text
}
deriving (CreateSMBFileShare -> CreateSMBFileShare -> Bool
(CreateSMBFileShare -> CreateSMBFileShare -> Bool)
-> (CreateSMBFileShare -> CreateSMBFileShare -> Bool)
-> Eq CreateSMBFileShare
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateSMBFileShare -> CreateSMBFileShare -> Bool
$c/= :: CreateSMBFileShare -> CreateSMBFileShare -> Bool
== :: CreateSMBFileShare -> CreateSMBFileShare -> Bool
$c== :: CreateSMBFileShare -> CreateSMBFileShare -> Bool
Prelude.Eq, ReadPrec [CreateSMBFileShare]
ReadPrec CreateSMBFileShare
Int -> ReadS CreateSMBFileShare
ReadS [CreateSMBFileShare]
(Int -> ReadS CreateSMBFileShare)
-> ReadS [CreateSMBFileShare]
-> ReadPrec CreateSMBFileShare
-> ReadPrec [CreateSMBFileShare]
-> Read CreateSMBFileShare
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateSMBFileShare]
$creadListPrec :: ReadPrec [CreateSMBFileShare]
readPrec :: ReadPrec CreateSMBFileShare
$creadPrec :: ReadPrec CreateSMBFileShare
readList :: ReadS [CreateSMBFileShare]
$creadList :: ReadS [CreateSMBFileShare]
readsPrec :: Int -> ReadS CreateSMBFileShare
$creadsPrec :: Int -> ReadS CreateSMBFileShare
Prelude.Read, Int -> CreateSMBFileShare -> ShowS
[CreateSMBFileShare] -> ShowS
CreateSMBFileShare -> String
(Int -> CreateSMBFileShare -> ShowS)
-> (CreateSMBFileShare -> String)
-> ([CreateSMBFileShare] -> ShowS)
-> Show CreateSMBFileShare
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateSMBFileShare] -> ShowS
$cshowList :: [CreateSMBFileShare] -> ShowS
show :: CreateSMBFileShare -> String
$cshow :: CreateSMBFileShare -> String
showsPrec :: Int -> CreateSMBFileShare -> ShowS
$cshowsPrec :: Int -> CreateSMBFileShare -> ShowS
Prelude.Show, (forall x. CreateSMBFileShare -> Rep CreateSMBFileShare x)
-> (forall x. Rep CreateSMBFileShare x -> CreateSMBFileShare)
-> Generic CreateSMBFileShare
forall x. Rep CreateSMBFileShare x -> CreateSMBFileShare
forall x. CreateSMBFileShare -> Rep CreateSMBFileShare x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateSMBFileShare x -> CreateSMBFileShare
$cfrom :: forall x. CreateSMBFileShare -> Rep CreateSMBFileShare x
Prelude.Generic)
newCreateSMBFileShare ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
CreateSMBFileShare
newCreateSMBFileShare :: Text -> Text -> Text -> Text -> CreateSMBFileShare
newCreateSMBFileShare
Text
pClientToken_
Text
pGatewayARN_
Text
pRole_
Text
pLocationARN_ =
CreateSMBFileShare' :: Maybe Bool
-> Maybe [Text]
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe CacheAttributes
-> Maybe ObjectACL
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe CaseSensitivity
-> Maybe [Tag]
-> Text
-> Text
-> Text
-> Text
-> CreateSMBFileShare
CreateSMBFileShare'
{ $sel:accessBasedEnumeration:CreateSMBFileShare' :: Maybe Bool
accessBasedEnumeration =
Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:adminUserList:CreateSMBFileShare' :: Maybe [Text]
adminUserList = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:auditDestinationARN:CreateSMBFileShare' :: Maybe Text
auditDestinationARN = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:invalidUserList:CreateSMBFileShare' :: Maybe [Text]
invalidUserList = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:kmsKey:CreateSMBFileShare' :: Maybe Text
kmsKey = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:validUserList:CreateSMBFileShare' :: Maybe [Text]
validUserList = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:vPCEndpointDNSName:CreateSMBFileShare' :: Maybe Text
vPCEndpointDNSName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:authentication:CreateSMBFileShare' :: Maybe Text
authentication = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cacheAttributes:CreateSMBFileShare' :: Maybe CacheAttributes
cacheAttributes = Maybe CacheAttributes
forall a. Maybe a
Prelude.Nothing,
$sel:objectACL:CreateSMBFileShare' :: Maybe ObjectACL
objectACL = Maybe ObjectACL
forall a. Maybe a
Prelude.Nothing,
$sel:kmsEncrypted:CreateSMBFileShare' :: Maybe Bool
kmsEncrypted = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:defaultStorageClass:CreateSMBFileShare' :: Maybe Text
defaultStorageClass = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:fileShareName:CreateSMBFileShare' :: Maybe Text
fileShareName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sMBACLEnabled:CreateSMBFileShare' :: Maybe Bool
sMBACLEnabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:oplocksEnabled:CreateSMBFileShare' :: Maybe Bool
oplocksEnabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:notificationPolicy:CreateSMBFileShare' :: Maybe Text
notificationPolicy = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:requesterPays:CreateSMBFileShare' :: Maybe Bool
requesterPays = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:guessMIMETypeEnabled:CreateSMBFileShare' :: Maybe Bool
guessMIMETypeEnabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:readOnly:CreateSMBFileShare' :: Maybe Bool
readOnly = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:bucketRegion:CreateSMBFileShare' :: Maybe Text
bucketRegion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:caseSensitivity:CreateSMBFileShare' :: Maybe CaseSensitivity
caseSensitivity = Maybe CaseSensitivity
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateSMBFileShare' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:clientToken:CreateSMBFileShare' :: Text
clientToken = Text
pClientToken_,
$sel:gatewayARN:CreateSMBFileShare' :: Text
gatewayARN = Text
pGatewayARN_,
$sel:role':CreateSMBFileShare' :: Text
role' = Text
pRole_,
$sel:locationARN:CreateSMBFileShare' :: Text
locationARN = Text
pLocationARN_
}
createSMBFileShare_accessBasedEnumeration :: Lens.Lens' CreateSMBFileShare (Prelude.Maybe Prelude.Bool)
createSMBFileShare_accessBasedEnumeration :: (Maybe Bool -> f (Maybe Bool))
-> CreateSMBFileShare -> f CreateSMBFileShare
createSMBFileShare_accessBasedEnumeration = (CreateSMBFileShare -> Maybe Bool)
-> (CreateSMBFileShare -> Maybe Bool -> CreateSMBFileShare)
-> Lens
CreateSMBFileShare CreateSMBFileShare (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSMBFileShare' {Maybe Bool
accessBasedEnumeration :: Maybe Bool
$sel:accessBasedEnumeration:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe Bool
accessBasedEnumeration} -> Maybe Bool
accessBasedEnumeration) (\s :: CreateSMBFileShare
s@CreateSMBFileShare' {} Maybe Bool
a -> CreateSMBFileShare
s {$sel:accessBasedEnumeration:CreateSMBFileShare' :: Maybe Bool
accessBasedEnumeration = Maybe Bool
a} :: CreateSMBFileShare)
createSMBFileShare_adminUserList :: Lens.Lens' CreateSMBFileShare (Prelude.Maybe [Prelude.Text])
createSMBFileShare_adminUserList :: (Maybe [Text] -> f (Maybe [Text]))
-> CreateSMBFileShare -> f CreateSMBFileShare
createSMBFileShare_adminUserList = (CreateSMBFileShare -> Maybe [Text])
-> (CreateSMBFileShare -> Maybe [Text] -> CreateSMBFileShare)
-> Lens
CreateSMBFileShare CreateSMBFileShare (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSMBFileShare' {Maybe [Text]
adminUserList :: Maybe [Text]
$sel:adminUserList:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe [Text]
adminUserList} -> Maybe [Text]
adminUserList) (\s :: CreateSMBFileShare
s@CreateSMBFileShare' {} Maybe [Text]
a -> CreateSMBFileShare
s {$sel:adminUserList:CreateSMBFileShare' :: Maybe [Text]
adminUserList = Maybe [Text]
a} :: CreateSMBFileShare) ((Maybe [Text] -> f (Maybe [Text]))
-> CreateSMBFileShare -> f CreateSMBFileShare)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> CreateSMBFileShare
-> f CreateSMBFileShare
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createSMBFileShare_auditDestinationARN :: Lens.Lens' CreateSMBFileShare (Prelude.Maybe Prelude.Text)
createSMBFileShare_auditDestinationARN :: (Maybe Text -> f (Maybe Text))
-> CreateSMBFileShare -> f CreateSMBFileShare
createSMBFileShare_auditDestinationARN = (CreateSMBFileShare -> Maybe Text)
-> (CreateSMBFileShare -> Maybe Text -> CreateSMBFileShare)
-> Lens
CreateSMBFileShare CreateSMBFileShare (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSMBFileShare' {Maybe Text
auditDestinationARN :: Maybe Text
$sel:auditDestinationARN:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe Text
auditDestinationARN} -> Maybe Text
auditDestinationARN) (\s :: CreateSMBFileShare
s@CreateSMBFileShare' {} Maybe Text
a -> CreateSMBFileShare
s {$sel:auditDestinationARN:CreateSMBFileShare' :: Maybe Text
auditDestinationARN = Maybe Text
a} :: CreateSMBFileShare)
createSMBFileShare_invalidUserList :: Lens.Lens' CreateSMBFileShare (Prelude.Maybe [Prelude.Text])
createSMBFileShare_invalidUserList :: (Maybe [Text] -> f (Maybe [Text]))
-> CreateSMBFileShare -> f CreateSMBFileShare
createSMBFileShare_invalidUserList = (CreateSMBFileShare -> Maybe [Text])
-> (CreateSMBFileShare -> Maybe [Text] -> CreateSMBFileShare)
-> Lens
CreateSMBFileShare CreateSMBFileShare (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSMBFileShare' {Maybe [Text]
invalidUserList :: Maybe [Text]
$sel:invalidUserList:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe [Text]
invalidUserList} -> Maybe [Text]
invalidUserList) (\s :: CreateSMBFileShare
s@CreateSMBFileShare' {} Maybe [Text]
a -> CreateSMBFileShare
s {$sel:invalidUserList:CreateSMBFileShare' :: Maybe [Text]
invalidUserList = Maybe [Text]
a} :: CreateSMBFileShare) ((Maybe [Text] -> f (Maybe [Text]))
-> CreateSMBFileShare -> f CreateSMBFileShare)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> CreateSMBFileShare
-> f CreateSMBFileShare
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createSMBFileShare_kmsKey :: Lens.Lens' CreateSMBFileShare (Prelude.Maybe Prelude.Text)
createSMBFileShare_kmsKey :: (Maybe Text -> f (Maybe Text))
-> CreateSMBFileShare -> f CreateSMBFileShare
createSMBFileShare_kmsKey = (CreateSMBFileShare -> Maybe Text)
-> (CreateSMBFileShare -> Maybe Text -> CreateSMBFileShare)
-> Lens
CreateSMBFileShare CreateSMBFileShare (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSMBFileShare' {Maybe Text
kmsKey :: Maybe Text
$sel:kmsKey:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe Text
kmsKey} -> Maybe Text
kmsKey) (\s :: CreateSMBFileShare
s@CreateSMBFileShare' {} Maybe Text
a -> CreateSMBFileShare
s {$sel:kmsKey:CreateSMBFileShare' :: Maybe Text
kmsKey = Maybe Text
a} :: CreateSMBFileShare)
createSMBFileShare_validUserList :: Lens.Lens' CreateSMBFileShare (Prelude.Maybe [Prelude.Text])
createSMBFileShare_validUserList :: (Maybe [Text] -> f (Maybe [Text]))
-> CreateSMBFileShare -> f CreateSMBFileShare
createSMBFileShare_validUserList = (CreateSMBFileShare -> Maybe [Text])
-> (CreateSMBFileShare -> Maybe [Text] -> CreateSMBFileShare)
-> Lens
CreateSMBFileShare CreateSMBFileShare (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSMBFileShare' {Maybe [Text]
validUserList :: Maybe [Text]
$sel:validUserList:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe [Text]
validUserList} -> Maybe [Text]
validUserList) (\s :: CreateSMBFileShare
s@CreateSMBFileShare' {} Maybe [Text]
a -> CreateSMBFileShare
s {$sel:validUserList:CreateSMBFileShare' :: Maybe [Text]
validUserList = Maybe [Text]
a} :: CreateSMBFileShare) ((Maybe [Text] -> f (Maybe [Text]))
-> CreateSMBFileShare -> f CreateSMBFileShare)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> CreateSMBFileShare
-> f CreateSMBFileShare
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createSMBFileShare_vPCEndpointDNSName :: Lens.Lens' CreateSMBFileShare (Prelude.Maybe Prelude.Text)
createSMBFileShare_vPCEndpointDNSName :: (Maybe Text -> f (Maybe Text))
-> CreateSMBFileShare -> f CreateSMBFileShare
createSMBFileShare_vPCEndpointDNSName = (CreateSMBFileShare -> Maybe Text)
-> (CreateSMBFileShare -> Maybe Text -> CreateSMBFileShare)
-> Lens
CreateSMBFileShare CreateSMBFileShare (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSMBFileShare' {Maybe Text
vPCEndpointDNSName :: Maybe Text
$sel:vPCEndpointDNSName:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe Text
vPCEndpointDNSName} -> Maybe Text
vPCEndpointDNSName) (\s :: CreateSMBFileShare
s@CreateSMBFileShare' {} Maybe Text
a -> CreateSMBFileShare
s {$sel:vPCEndpointDNSName:CreateSMBFileShare' :: Maybe Text
vPCEndpointDNSName = Maybe Text
a} :: CreateSMBFileShare)
createSMBFileShare_authentication :: Lens.Lens' CreateSMBFileShare (Prelude.Maybe Prelude.Text)
createSMBFileShare_authentication :: (Maybe Text -> f (Maybe Text))
-> CreateSMBFileShare -> f CreateSMBFileShare
createSMBFileShare_authentication = (CreateSMBFileShare -> Maybe Text)
-> (CreateSMBFileShare -> Maybe Text -> CreateSMBFileShare)
-> Lens
CreateSMBFileShare CreateSMBFileShare (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSMBFileShare' {Maybe Text
authentication :: Maybe Text
$sel:authentication:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe Text
authentication} -> Maybe Text
authentication) (\s :: CreateSMBFileShare
s@CreateSMBFileShare' {} Maybe Text
a -> CreateSMBFileShare
s {$sel:authentication:CreateSMBFileShare' :: Maybe Text
authentication = Maybe Text
a} :: CreateSMBFileShare)
createSMBFileShare_cacheAttributes :: Lens.Lens' CreateSMBFileShare (Prelude.Maybe CacheAttributes)
createSMBFileShare_cacheAttributes :: (Maybe CacheAttributes -> f (Maybe CacheAttributes))
-> CreateSMBFileShare -> f CreateSMBFileShare
createSMBFileShare_cacheAttributes = (CreateSMBFileShare -> Maybe CacheAttributes)
-> (CreateSMBFileShare
-> Maybe CacheAttributes -> CreateSMBFileShare)
-> Lens
CreateSMBFileShare
CreateSMBFileShare
(Maybe CacheAttributes)
(Maybe CacheAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSMBFileShare' {Maybe CacheAttributes
cacheAttributes :: Maybe CacheAttributes
$sel:cacheAttributes:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe CacheAttributes
cacheAttributes} -> Maybe CacheAttributes
cacheAttributes) (\s :: CreateSMBFileShare
s@CreateSMBFileShare' {} Maybe CacheAttributes
a -> CreateSMBFileShare
s {$sel:cacheAttributes:CreateSMBFileShare' :: Maybe CacheAttributes
cacheAttributes = Maybe CacheAttributes
a} :: CreateSMBFileShare)
createSMBFileShare_objectACL :: Lens.Lens' CreateSMBFileShare (Prelude.Maybe ObjectACL)
createSMBFileShare_objectACL :: (Maybe ObjectACL -> f (Maybe ObjectACL))
-> CreateSMBFileShare -> f CreateSMBFileShare
createSMBFileShare_objectACL = (CreateSMBFileShare -> Maybe ObjectACL)
-> (CreateSMBFileShare -> Maybe ObjectACL -> CreateSMBFileShare)
-> Lens
CreateSMBFileShare
CreateSMBFileShare
(Maybe ObjectACL)
(Maybe ObjectACL)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSMBFileShare' {Maybe ObjectACL
objectACL :: Maybe ObjectACL
$sel:objectACL:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe ObjectACL
objectACL} -> Maybe ObjectACL
objectACL) (\s :: CreateSMBFileShare
s@CreateSMBFileShare' {} Maybe ObjectACL
a -> CreateSMBFileShare
s {$sel:objectACL:CreateSMBFileShare' :: Maybe ObjectACL
objectACL = Maybe ObjectACL
a} :: CreateSMBFileShare)
createSMBFileShare_kmsEncrypted :: Lens.Lens' CreateSMBFileShare (Prelude.Maybe Prelude.Bool)
createSMBFileShare_kmsEncrypted :: (Maybe Bool -> f (Maybe Bool))
-> CreateSMBFileShare -> f CreateSMBFileShare
createSMBFileShare_kmsEncrypted = (CreateSMBFileShare -> Maybe Bool)
-> (CreateSMBFileShare -> Maybe Bool -> CreateSMBFileShare)
-> Lens
CreateSMBFileShare CreateSMBFileShare (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSMBFileShare' {Maybe Bool
kmsEncrypted :: Maybe Bool
$sel:kmsEncrypted:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe Bool
kmsEncrypted} -> Maybe Bool
kmsEncrypted) (\s :: CreateSMBFileShare
s@CreateSMBFileShare' {} Maybe Bool
a -> CreateSMBFileShare
s {$sel:kmsEncrypted:CreateSMBFileShare' :: Maybe Bool
kmsEncrypted = Maybe Bool
a} :: CreateSMBFileShare)
createSMBFileShare_defaultStorageClass :: Lens.Lens' CreateSMBFileShare (Prelude.Maybe Prelude.Text)
createSMBFileShare_defaultStorageClass :: (Maybe Text -> f (Maybe Text))
-> CreateSMBFileShare -> f CreateSMBFileShare
createSMBFileShare_defaultStorageClass = (CreateSMBFileShare -> Maybe Text)
-> (CreateSMBFileShare -> Maybe Text -> CreateSMBFileShare)
-> Lens
CreateSMBFileShare CreateSMBFileShare (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSMBFileShare' {Maybe Text
defaultStorageClass :: Maybe Text
$sel:defaultStorageClass:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe Text
defaultStorageClass} -> Maybe Text
defaultStorageClass) (\s :: CreateSMBFileShare
s@CreateSMBFileShare' {} Maybe Text
a -> CreateSMBFileShare
s {$sel:defaultStorageClass:CreateSMBFileShare' :: Maybe Text
defaultStorageClass = Maybe Text
a} :: CreateSMBFileShare)
createSMBFileShare_fileShareName :: Lens.Lens' CreateSMBFileShare (Prelude.Maybe Prelude.Text)
createSMBFileShare_fileShareName :: (Maybe Text -> f (Maybe Text))
-> CreateSMBFileShare -> f CreateSMBFileShare
createSMBFileShare_fileShareName = (CreateSMBFileShare -> Maybe Text)
-> (CreateSMBFileShare -> Maybe Text -> CreateSMBFileShare)
-> Lens
CreateSMBFileShare CreateSMBFileShare (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSMBFileShare' {Maybe Text
fileShareName :: Maybe Text
$sel:fileShareName:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe Text
fileShareName} -> Maybe Text
fileShareName) (\s :: CreateSMBFileShare
s@CreateSMBFileShare' {} Maybe Text
a -> CreateSMBFileShare
s {$sel:fileShareName:CreateSMBFileShare' :: Maybe Text
fileShareName = Maybe Text
a} :: CreateSMBFileShare)
createSMBFileShare_sMBACLEnabled :: Lens.Lens' CreateSMBFileShare (Prelude.Maybe Prelude.Bool)
createSMBFileShare_sMBACLEnabled :: (Maybe Bool -> f (Maybe Bool))
-> CreateSMBFileShare -> f CreateSMBFileShare
createSMBFileShare_sMBACLEnabled = (CreateSMBFileShare -> Maybe Bool)
-> (CreateSMBFileShare -> Maybe Bool -> CreateSMBFileShare)
-> Lens
CreateSMBFileShare CreateSMBFileShare (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSMBFileShare' {Maybe Bool
sMBACLEnabled :: Maybe Bool
$sel:sMBACLEnabled:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe Bool
sMBACLEnabled} -> Maybe Bool
sMBACLEnabled) (\s :: CreateSMBFileShare
s@CreateSMBFileShare' {} Maybe Bool
a -> CreateSMBFileShare
s {$sel:sMBACLEnabled:CreateSMBFileShare' :: Maybe Bool
sMBACLEnabled = Maybe Bool
a} :: CreateSMBFileShare)
createSMBFileShare_oplocksEnabled :: Lens.Lens' CreateSMBFileShare (Prelude.Maybe Prelude.Bool)
createSMBFileShare_oplocksEnabled :: (Maybe Bool -> f (Maybe Bool))
-> CreateSMBFileShare -> f CreateSMBFileShare
createSMBFileShare_oplocksEnabled = (CreateSMBFileShare -> Maybe Bool)
-> (CreateSMBFileShare -> Maybe Bool -> CreateSMBFileShare)
-> Lens
CreateSMBFileShare CreateSMBFileShare (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSMBFileShare' {Maybe Bool
oplocksEnabled :: Maybe Bool
$sel:oplocksEnabled:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe Bool
oplocksEnabled} -> Maybe Bool
oplocksEnabled) (\s :: CreateSMBFileShare
s@CreateSMBFileShare' {} Maybe Bool
a -> CreateSMBFileShare
s {$sel:oplocksEnabled:CreateSMBFileShare' :: Maybe Bool
oplocksEnabled = Maybe Bool
a} :: CreateSMBFileShare)
createSMBFileShare_notificationPolicy :: Lens.Lens' CreateSMBFileShare (Prelude.Maybe Prelude.Text)
createSMBFileShare_notificationPolicy :: (Maybe Text -> f (Maybe Text))
-> CreateSMBFileShare -> f CreateSMBFileShare
createSMBFileShare_notificationPolicy = (CreateSMBFileShare -> Maybe Text)
-> (CreateSMBFileShare -> Maybe Text -> CreateSMBFileShare)
-> Lens
CreateSMBFileShare CreateSMBFileShare (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSMBFileShare' {Maybe Text
notificationPolicy :: Maybe Text
$sel:notificationPolicy:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe Text
notificationPolicy} -> Maybe Text
notificationPolicy) (\s :: CreateSMBFileShare
s@CreateSMBFileShare' {} Maybe Text
a -> CreateSMBFileShare
s {$sel:notificationPolicy:CreateSMBFileShare' :: Maybe Text
notificationPolicy = Maybe Text
a} :: CreateSMBFileShare)
createSMBFileShare_requesterPays :: Lens.Lens' CreateSMBFileShare (Prelude.Maybe Prelude.Bool)
createSMBFileShare_requesterPays :: (Maybe Bool -> f (Maybe Bool))
-> CreateSMBFileShare -> f CreateSMBFileShare
createSMBFileShare_requesterPays = (CreateSMBFileShare -> Maybe Bool)
-> (CreateSMBFileShare -> Maybe Bool -> CreateSMBFileShare)
-> Lens
CreateSMBFileShare CreateSMBFileShare (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSMBFileShare' {Maybe Bool
requesterPays :: Maybe Bool
$sel:requesterPays:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe Bool
requesterPays} -> Maybe Bool
requesterPays) (\s :: CreateSMBFileShare
s@CreateSMBFileShare' {} Maybe Bool
a -> CreateSMBFileShare
s {$sel:requesterPays:CreateSMBFileShare' :: Maybe Bool
requesterPays = Maybe Bool
a} :: CreateSMBFileShare)
createSMBFileShare_guessMIMETypeEnabled :: Lens.Lens' CreateSMBFileShare (Prelude.Maybe Prelude.Bool)
createSMBFileShare_guessMIMETypeEnabled :: (Maybe Bool -> f (Maybe Bool))
-> CreateSMBFileShare -> f CreateSMBFileShare
createSMBFileShare_guessMIMETypeEnabled = (CreateSMBFileShare -> Maybe Bool)
-> (CreateSMBFileShare -> Maybe Bool -> CreateSMBFileShare)
-> Lens
CreateSMBFileShare CreateSMBFileShare (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSMBFileShare' {Maybe Bool
guessMIMETypeEnabled :: Maybe Bool
$sel:guessMIMETypeEnabled:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe Bool
guessMIMETypeEnabled} -> Maybe Bool
guessMIMETypeEnabled) (\s :: CreateSMBFileShare
s@CreateSMBFileShare' {} Maybe Bool
a -> CreateSMBFileShare
s {$sel:guessMIMETypeEnabled:CreateSMBFileShare' :: Maybe Bool
guessMIMETypeEnabled = Maybe Bool
a} :: CreateSMBFileShare)
createSMBFileShare_readOnly :: Lens.Lens' CreateSMBFileShare (Prelude.Maybe Prelude.Bool)
createSMBFileShare_readOnly :: (Maybe Bool -> f (Maybe Bool))
-> CreateSMBFileShare -> f CreateSMBFileShare
createSMBFileShare_readOnly = (CreateSMBFileShare -> Maybe Bool)
-> (CreateSMBFileShare -> Maybe Bool -> CreateSMBFileShare)
-> Lens
CreateSMBFileShare CreateSMBFileShare (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSMBFileShare' {Maybe Bool
readOnly :: Maybe Bool
$sel:readOnly:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe Bool
readOnly} -> Maybe Bool
readOnly) (\s :: CreateSMBFileShare
s@CreateSMBFileShare' {} Maybe Bool
a -> CreateSMBFileShare
s {$sel:readOnly:CreateSMBFileShare' :: Maybe Bool
readOnly = Maybe Bool
a} :: CreateSMBFileShare)
createSMBFileShare_bucketRegion :: Lens.Lens' CreateSMBFileShare (Prelude.Maybe Prelude.Text)
createSMBFileShare_bucketRegion :: (Maybe Text -> f (Maybe Text))
-> CreateSMBFileShare -> f CreateSMBFileShare
createSMBFileShare_bucketRegion = (CreateSMBFileShare -> Maybe Text)
-> (CreateSMBFileShare -> Maybe Text -> CreateSMBFileShare)
-> Lens
CreateSMBFileShare CreateSMBFileShare (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSMBFileShare' {Maybe Text
bucketRegion :: Maybe Text
$sel:bucketRegion:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe Text
bucketRegion} -> Maybe Text
bucketRegion) (\s :: CreateSMBFileShare
s@CreateSMBFileShare' {} Maybe Text
a -> CreateSMBFileShare
s {$sel:bucketRegion:CreateSMBFileShare' :: Maybe Text
bucketRegion = Maybe Text
a} :: CreateSMBFileShare)
createSMBFileShare_caseSensitivity :: Lens.Lens' CreateSMBFileShare (Prelude.Maybe CaseSensitivity)
createSMBFileShare_caseSensitivity :: (Maybe CaseSensitivity -> f (Maybe CaseSensitivity))
-> CreateSMBFileShare -> f CreateSMBFileShare
createSMBFileShare_caseSensitivity = (CreateSMBFileShare -> Maybe CaseSensitivity)
-> (CreateSMBFileShare
-> Maybe CaseSensitivity -> CreateSMBFileShare)
-> Lens
CreateSMBFileShare
CreateSMBFileShare
(Maybe CaseSensitivity)
(Maybe CaseSensitivity)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSMBFileShare' {Maybe CaseSensitivity
caseSensitivity :: Maybe CaseSensitivity
$sel:caseSensitivity:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe CaseSensitivity
caseSensitivity} -> Maybe CaseSensitivity
caseSensitivity) (\s :: CreateSMBFileShare
s@CreateSMBFileShare' {} Maybe CaseSensitivity
a -> CreateSMBFileShare
s {$sel:caseSensitivity:CreateSMBFileShare' :: Maybe CaseSensitivity
caseSensitivity = Maybe CaseSensitivity
a} :: CreateSMBFileShare)
createSMBFileShare_tags :: Lens.Lens' CreateSMBFileShare (Prelude.Maybe [Tag])
createSMBFileShare_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateSMBFileShare -> f CreateSMBFileShare
createSMBFileShare_tags = (CreateSMBFileShare -> Maybe [Tag])
-> (CreateSMBFileShare -> Maybe [Tag] -> CreateSMBFileShare)
-> Lens
CreateSMBFileShare CreateSMBFileShare (Maybe [Tag]) (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSMBFileShare' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateSMBFileShare
s@CreateSMBFileShare' {} Maybe [Tag]
a -> CreateSMBFileShare
s {$sel:tags:CreateSMBFileShare' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateSMBFileShare) ((Maybe [Tag] -> f (Maybe [Tag]))
-> CreateSMBFileShare -> f CreateSMBFileShare)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateSMBFileShare
-> f CreateSMBFileShare
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
createSMBFileShare_clientToken :: Lens.Lens' CreateSMBFileShare Prelude.Text
createSMBFileShare_clientToken :: (Text -> f Text) -> CreateSMBFileShare -> f CreateSMBFileShare
createSMBFileShare_clientToken = (CreateSMBFileShare -> Text)
-> (CreateSMBFileShare -> Text -> CreateSMBFileShare)
-> Lens CreateSMBFileShare CreateSMBFileShare Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSMBFileShare' {Text
clientToken :: Text
$sel:clientToken:CreateSMBFileShare' :: CreateSMBFileShare -> Text
clientToken} -> Text
clientToken) (\s :: CreateSMBFileShare
s@CreateSMBFileShare' {} Text
a -> CreateSMBFileShare
s {$sel:clientToken:CreateSMBFileShare' :: Text
clientToken = Text
a} :: CreateSMBFileShare)
createSMBFileShare_gatewayARN :: Lens.Lens' CreateSMBFileShare Prelude.Text
createSMBFileShare_gatewayARN :: (Text -> f Text) -> CreateSMBFileShare -> f CreateSMBFileShare
createSMBFileShare_gatewayARN = (CreateSMBFileShare -> Text)
-> (CreateSMBFileShare -> Text -> CreateSMBFileShare)
-> Lens CreateSMBFileShare CreateSMBFileShare Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSMBFileShare' {Text
gatewayARN :: Text
$sel:gatewayARN:CreateSMBFileShare' :: CreateSMBFileShare -> Text
gatewayARN} -> Text
gatewayARN) (\s :: CreateSMBFileShare
s@CreateSMBFileShare' {} Text
a -> CreateSMBFileShare
s {$sel:gatewayARN:CreateSMBFileShare' :: Text
gatewayARN = Text
a} :: CreateSMBFileShare)
createSMBFileShare_role :: Lens.Lens' CreateSMBFileShare Prelude.Text
createSMBFileShare_role :: (Text -> f Text) -> CreateSMBFileShare -> f CreateSMBFileShare
createSMBFileShare_role = (CreateSMBFileShare -> Text)
-> (CreateSMBFileShare -> Text -> CreateSMBFileShare)
-> Lens CreateSMBFileShare CreateSMBFileShare Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSMBFileShare' {Text
role' :: Text
$sel:role':CreateSMBFileShare' :: CreateSMBFileShare -> Text
role'} -> Text
role') (\s :: CreateSMBFileShare
s@CreateSMBFileShare' {} Text
a -> CreateSMBFileShare
s {$sel:role':CreateSMBFileShare' :: Text
role' = Text
a} :: CreateSMBFileShare)
createSMBFileShare_locationARN :: Lens.Lens' CreateSMBFileShare Prelude.Text
createSMBFileShare_locationARN :: (Text -> f Text) -> CreateSMBFileShare -> f CreateSMBFileShare
createSMBFileShare_locationARN = (CreateSMBFileShare -> Text)
-> (CreateSMBFileShare -> Text -> CreateSMBFileShare)
-> Lens CreateSMBFileShare CreateSMBFileShare Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSMBFileShare' {Text
locationARN :: Text
$sel:locationARN:CreateSMBFileShare' :: CreateSMBFileShare -> Text
locationARN} -> Text
locationARN) (\s :: CreateSMBFileShare
s@CreateSMBFileShare' {} Text
a -> CreateSMBFileShare
s {$sel:locationARN:CreateSMBFileShare' :: Text
locationARN = Text
a} :: CreateSMBFileShare)
instance Core.AWSRequest CreateSMBFileShare where
type
AWSResponse CreateSMBFileShare =
CreateSMBFileShareResponse
request :: CreateSMBFileShare -> Request CreateSMBFileShare
request = Service -> CreateSMBFileShare -> Request CreateSMBFileShare
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateSMBFileShare
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateSMBFileShare)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateSMBFileShare))
-> Logger
-> Service
-> Proxy CreateSMBFileShare
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateSMBFileShare)))
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 -> CreateSMBFileShareResponse
CreateSMBFileShareResponse'
(Maybe Text -> Int -> CreateSMBFileShareResponse)
-> Either String (Maybe Text)
-> Either String (Int -> CreateSMBFileShareResponse)
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 -> CreateSMBFileShareResponse)
-> Either String Int -> Either String CreateSMBFileShareResponse
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 CreateSMBFileShare
instance Prelude.NFData CreateSMBFileShare
instance Core.ToHeaders CreateSMBFileShare where
toHeaders :: CreateSMBFileShare -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateSMBFileShare -> 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.CreateSMBFileShare" ::
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 CreateSMBFileShare where
toJSON :: CreateSMBFileShare -> Value
toJSON CreateSMBFileShare' {Maybe Bool
Maybe [Text]
Maybe [Tag]
Maybe Text
Maybe CacheAttributes
Maybe CaseSensitivity
Maybe ObjectACL
Text
locationARN :: Text
role' :: Text
gatewayARN :: Text
clientToken :: Text
tags :: Maybe [Tag]
caseSensitivity :: Maybe CaseSensitivity
bucketRegion :: Maybe Text
readOnly :: Maybe Bool
guessMIMETypeEnabled :: Maybe Bool
requesterPays :: Maybe Bool
notificationPolicy :: Maybe Text
oplocksEnabled :: Maybe Bool
sMBACLEnabled :: Maybe Bool
fileShareName :: Maybe Text
defaultStorageClass :: Maybe Text
kmsEncrypted :: Maybe Bool
objectACL :: Maybe ObjectACL
cacheAttributes :: Maybe CacheAttributes
authentication :: Maybe Text
vPCEndpointDNSName :: Maybe Text
validUserList :: Maybe [Text]
kmsKey :: Maybe Text
invalidUserList :: Maybe [Text]
auditDestinationARN :: Maybe Text
adminUserList :: Maybe [Text]
accessBasedEnumeration :: Maybe Bool
$sel:locationARN:CreateSMBFileShare' :: CreateSMBFileShare -> Text
$sel:role':CreateSMBFileShare' :: CreateSMBFileShare -> Text
$sel:gatewayARN:CreateSMBFileShare' :: CreateSMBFileShare -> Text
$sel:clientToken:CreateSMBFileShare' :: CreateSMBFileShare -> Text
$sel:tags:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe [Tag]
$sel:caseSensitivity:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe CaseSensitivity
$sel:bucketRegion:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe Text
$sel:readOnly:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe Bool
$sel:guessMIMETypeEnabled:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe Bool
$sel:requesterPays:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe Bool
$sel:notificationPolicy:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe Text
$sel:oplocksEnabled:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe Bool
$sel:sMBACLEnabled:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe Bool
$sel:fileShareName:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe Text
$sel:defaultStorageClass:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe Text
$sel:kmsEncrypted:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe Bool
$sel:objectACL:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe ObjectACL
$sel:cacheAttributes:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe CacheAttributes
$sel:authentication:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe Text
$sel:vPCEndpointDNSName:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe Text
$sel:validUserList:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe [Text]
$sel:kmsKey:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe Text
$sel:invalidUserList:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe [Text]
$sel:auditDestinationARN:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe Text
$sel:adminUserList:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe [Text]
$sel:accessBasedEnumeration:CreateSMBFileShare' :: CreateSMBFileShare -> Maybe Bool
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"AccessBasedEnumeration" 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
accessBasedEnumeration,
(Text
"AdminUserList" 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]
adminUserList,
(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
"InvalidUserList" 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]
invalidUserList,
(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
"ValidUserList" 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]
validUserList,
(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
"Authentication" 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
authentication,
(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
"SMBACLEnabled" 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
sMBACLEnabled,
(Text
"OplocksEnabled" 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
oplocksEnabled,
(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
"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
"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
"CaseSensitivity" Text -> CaseSensitivity -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(CaseSensitivity -> Pair) -> Maybe CaseSensitivity -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CaseSensitivity
caseSensitivity,
(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 CreateSMBFileShare where
toPath :: CreateSMBFileShare -> ByteString
toPath = ByteString -> CreateSMBFileShare -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateSMBFileShare where
toQuery :: CreateSMBFileShare -> QueryString
toQuery = QueryString -> CreateSMBFileShare -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateSMBFileShareResponse = CreateSMBFileShareResponse'
{
CreateSMBFileShareResponse -> Maybe Text
fileShareARN :: Prelude.Maybe Prelude.Text,
CreateSMBFileShareResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateSMBFileShareResponse -> CreateSMBFileShareResponse -> Bool
(CreateSMBFileShareResponse -> CreateSMBFileShareResponse -> Bool)
-> (CreateSMBFileShareResponse
-> CreateSMBFileShareResponse -> Bool)
-> Eq CreateSMBFileShareResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateSMBFileShareResponse -> CreateSMBFileShareResponse -> Bool
$c/= :: CreateSMBFileShareResponse -> CreateSMBFileShareResponse -> Bool
== :: CreateSMBFileShareResponse -> CreateSMBFileShareResponse -> Bool
$c== :: CreateSMBFileShareResponse -> CreateSMBFileShareResponse -> Bool
Prelude.Eq, ReadPrec [CreateSMBFileShareResponse]
ReadPrec CreateSMBFileShareResponse
Int -> ReadS CreateSMBFileShareResponse
ReadS [CreateSMBFileShareResponse]
(Int -> ReadS CreateSMBFileShareResponse)
-> ReadS [CreateSMBFileShareResponse]
-> ReadPrec CreateSMBFileShareResponse
-> ReadPrec [CreateSMBFileShareResponse]
-> Read CreateSMBFileShareResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateSMBFileShareResponse]
$creadListPrec :: ReadPrec [CreateSMBFileShareResponse]
readPrec :: ReadPrec CreateSMBFileShareResponse
$creadPrec :: ReadPrec CreateSMBFileShareResponse
readList :: ReadS [CreateSMBFileShareResponse]
$creadList :: ReadS [CreateSMBFileShareResponse]
readsPrec :: Int -> ReadS CreateSMBFileShareResponse
$creadsPrec :: Int -> ReadS CreateSMBFileShareResponse
Prelude.Read, Int -> CreateSMBFileShareResponse -> ShowS
[CreateSMBFileShareResponse] -> ShowS
CreateSMBFileShareResponse -> String
(Int -> CreateSMBFileShareResponse -> ShowS)
-> (CreateSMBFileShareResponse -> String)
-> ([CreateSMBFileShareResponse] -> ShowS)
-> Show CreateSMBFileShareResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateSMBFileShareResponse] -> ShowS
$cshowList :: [CreateSMBFileShareResponse] -> ShowS
show :: CreateSMBFileShareResponse -> String
$cshow :: CreateSMBFileShareResponse -> String
showsPrec :: Int -> CreateSMBFileShareResponse -> ShowS
$cshowsPrec :: Int -> CreateSMBFileShareResponse -> ShowS
Prelude.Show, (forall x.
CreateSMBFileShareResponse -> Rep CreateSMBFileShareResponse x)
-> (forall x.
Rep CreateSMBFileShareResponse x -> CreateSMBFileShareResponse)
-> Generic CreateSMBFileShareResponse
forall x.
Rep CreateSMBFileShareResponse x -> CreateSMBFileShareResponse
forall x.
CreateSMBFileShareResponse -> Rep CreateSMBFileShareResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateSMBFileShareResponse x -> CreateSMBFileShareResponse
$cfrom :: forall x.
CreateSMBFileShareResponse -> Rep CreateSMBFileShareResponse x
Prelude.Generic)
newCreateSMBFileShareResponse ::
Prelude.Int ->
CreateSMBFileShareResponse
newCreateSMBFileShareResponse :: Int -> CreateSMBFileShareResponse
newCreateSMBFileShareResponse Int
pHttpStatus_ =
CreateSMBFileShareResponse' :: Maybe Text -> Int -> CreateSMBFileShareResponse
CreateSMBFileShareResponse'
{ $sel:fileShareARN:CreateSMBFileShareResponse' :: Maybe Text
fileShareARN =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateSMBFileShareResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createSMBFileShareResponse_fileShareARN :: Lens.Lens' CreateSMBFileShareResponse (Prelude.Maybe Prelude.Text)
createSMBFileShareResponse_fileShareARN :: (Maybe Text -> f (Maybe Text))
-> CreateSMBFileShareResponse -> f CreateSMBFileShareResponse
createSMBFileShareResponse_fileShareARN = (CreateSMBFileShareResponse -> Maybe Text)
-> (CreateSMBFileShareResponse
-> Maybe Text -> CreateSMBFileShareResponse)
-> Lens
CreateSMBFileShareResponse
CreateSMBFileShareResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSMBFileShareResponse' {Maybe Text
fileShareARN :: Maybe Text
$sel:fileShareARN:CreateSMBFileShareResponse' :: CreateSMBFileShareResponse -> Maybe Text
fileShareARN} -> Maybe Text
fileShareARN) (\s :: CreateSMBFileShareResponse
s@CreateSMBFileShareResponse' {} Maybe Text
a -> CreateSMBFileShareResponse
s {$sel:fileShareARN:CreateSMBFileShareResponse' :: Maybe Text
fileShareARN = Maybe Text
a} :: CreateSMBFileShareResponse)
createSMBFileShareResponse_httpStatus :: Lens.Lens' CreateSMBFileShareResponse Prelude.Int
createSMBFileShareResponse_httpStatus :: (Int -> f Int)
-> CreateSMBFileShareResponse -> f CreateSMBFileShareResponse
createSMBFileShareResponse_httpStatus = (CreateSMBFileShareResponse -> Int)
-> (CreateSMBFileShareResponse
-> Int -> CreateSMBFileShareResponse)
-> Lens
CreateSMBFileShareResponse CreateSMBFileShareResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateSMBFileShareResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateSMBFileShareResponse' :: CreateSMBFileShareResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateSMBFileShareResponse
s@CreateSMBFileShareResponse' {} Int
a -> CreateSMBFileShareResponse
s {$sel:httpStatus:CreateSMBFileShareResponse' :: Int
httpStatus = Int
a} :: CreateSMBFileShareResponse)
instance Prelude.NFData CreateSMBFileShareResponse