Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Updates a Server Message Block (SMB) file share. This operation is only supported for S3 File Gateways.
To leave a file share field unchanged, set the corresponding input field to null.
File gateways require Security Token Service (Amazon Web Services STS) to be activated to enable you to create a file share. Make sure that Amazon Web Services STS is activated in the Amazon Web Services Region you are creating your file gateway in. If Amazon Web Services STS is not activated in this Amazon Web Services Region, activate it. For information about how to activate Amazon Web Services STS, see Activating and deactivating Amazon Web Services STS in an Amazon Web Services Region in the Identity and Access Management User Guide.
File gateways don't support creating hard or symbolic links on a file share.
Synopsis
- data UpdateSMBFileShare = UpdateSMBFileShare' {
- accessBasedEnumeration :: Maybe Bool
- adminUserList :: Maybe [Text]
- auditDestinationARN :: Maybe Text
- invalidUserList :: Maybe [Text]
- kmsKey :: Maybe Text
- validUserList :: Maybe [Text]
- cacheAttributes :: Maybe CacheAttributes
- objectACL :: Maybe ObjectACL
- kmsEncrypted :: Maybe Bool
- defaultStorageClass :: Maybe Text
- fileShareName :: Maybe Text
- sMBACLEnabled :: Maybe Bool
- oplocksEnabled :: Maybe Bool
- notificationPolicy :: Maybe Text
- requesterPays :: Maybe Bool
- guessMIMETypeEnabled :: Maybe Bool
- readOnly :: Maybe Bool
- caseSensitivity :: Maybe CaseSensitivity
- fileShareARN :: Text
- newUpdateSMBFileShare :: Text -> UpdateSMBFileShare
- updateSMBFileShare_accessBasedEnumeration :: Lens' UpdateSMBFileShare (Maybe Bool)
- updateSMBFileShare_adminUserList :: Lens' UpdateSMBFileShare (Maybe [Text])
- updateSMBFileShare_auditDestinationARN :: Lens' UpdateSMBFileShare (Maybe Text)
- updateSMBFileShare_invalidUserList :: Lens' UpdateSMBFileShare (Maybe [Text])
- updateSMBFileShare_kmsKey :: Lens' UpdateSMBFileShare (Maybe Text)
- updateSMBFileShare_validUserList :: Lens' UpdateSMBFileShare (Maybe [Text])
- updateSMBFileShare_cacheAttributes :: Lens' UpdateSMBFileShare (Maybe CacheAttributes)
- updateSMBFileShare_objectACL :: Lens' UpdateSMBFileShare (Maybe ObjectACL)
- updateSMBFileShare_kmsEncrypted :: Lens' UpdateSMBFileShare (Maybe Bool)
- updateSMBFileShare_defaultStorageClass :: Lens' UpdateSMBFileShare (Maybe Text)
- updateSMBFileShare_fileShareName :: Lens' UpdateSMBFileShare (Maybe Text)
- updateSMBFileShare_sMBACLEnabled :: Lens' UpdateSMBFileShare (Maybe Bool)
- updateSMBFileShare_oplocksEnabled :: Lens' UpdateSMBFileShare (Maybe Bool)
- updateSMBFileShare_notificationPolicy :: Lens' UpdateSMBFileShare (Maybe Text)
- updateSMBFileShare_requesterPays :: Lens' UpdateSMBFileShare (Maybe Bool)
- updateSMBFileShare_guessMIMETypeEnabled :: Lens' UpdateSMBFileShare (Maybe Bool)
- updateSMBFileShare_readOnly :: Lens' UpdateSMBFileShare (Maybe Bool)
- updateSMBFileShare_caseSensitivity :: Lens' UpdateSMBFileShare (Maybe CaseSensitivity)
- updateSMBFileShare_fileShareARN :: Lens' UpdateSMBFileShare Text
- data UpdateSMBFileShareResponse = UpdateSMBFileShareResponse' {
- fileShareARN :: Maybe Text
- httpStatus :: Int
- newUpdateSMBFileShareResponse :: Int -> UpdateSMBFileShareResponse
- updateSMBFileShareResponse_fileShareARN :: Lens' UpdateSMBFileShareResponse (Maybe Text)
- updateSMBFileShareResponse_httpStatus :: Lens' UpdateSMBFileShareResponse Int
Creating a Request
data UpdateSMBFileShare Source #
UpdateSMBFileShareInput
See: newUpdateSMBFileShare
smart constructor.
UpdateSMBFileShare' | |
|
Instances
newUpdateSMBFileShare Source #
Create a value of UpdateSMBFileShare
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:accessBasedEnumeration:UpdateSMBFileShare'
, updateSMBFileShare_accessBasedEnumeration
- The files and folders on this share will only be visible to users with
read access.
$sel:adminUserList:UpdateSMBFileShare'
, updateSMBFileShare_adminUserList
- A list of users or groups in the Active Directory that have
administrator rights to the file share. A group must be prefixed with
the @ character. Acceptable formats include: DOMAIN\User1
, user1
,
@group1
, and @DOMAIN\group1
. Can only be set if Authentication is
set to ActiveDirectory
.
$sel:auditDestinationARN:UpdateSMBFileShare'
, updateSMBFileShare_auditDestinationARN
- The Amazon Resource Name (ARN) of the storage used for audit logs.
$sel:invalidUserList:UpdateSMBFileShare'
, updateSMBFileShare_invalidUserList
- A list of users or groups in the Active Directory that are not allowed
to access the file share. A group must be prefixed with the @
character. Acceptable formats include: DOMAIN\User1
, user1
,
@group1
, and @DOMAIN\group1
. Can only be set if Authentication is
set to ActiveDirectory
.
$sel:kmsKey:UpdateSMBFileShare'
, updateSMBFileShare_kmsKey
- The Amazon Resource Name (ARN) of a symmetric customer master key (CMK)
used for Amazon S3 server-side encryption. Storage Gateway does not
support asymmetric CMKs. This value can only be set when KMSEncrypted
is true
. Optional.
$sel:validUserList:UpdateSMBFileShare'
, updateSMBFileShare_validUserList
- A list of users or groups in the Active Directory that are allowed to
access the file share. A group must be prefixed with the @ character.
Acceptable formats include: DOMAIN\User1
, user1
, @group1
, and
@DOMAIN\group1
. Can only be set if Authentication is set to
ActiveDirectory
.
$sel:cacheAttributes:UpdateSMBFileShare'
, updateSMBFileShare_cacheAttributes
- Specifies refresh cache information for the file share.
$sel:objectACL:UpdateSMBFileShare'
, updateSMBFileShare_objectACL
- A value that sets the access control list (ACL) permission for objects
in the S3 bucket that a S3 File Gateway puts objects into. The default
value is private
.
$sel:kmsEncrypted:UpdateSMBFileShare'
, updateSMBFileShare_kmsEncrypted
- Set to true
to use Amazon S3 server-side encryption with your own KMS
key, or false
to use a key managed by Amazon S3. Optional.
Valid Values: true
| false
$sel:defaultStorageClass:UpdateSMBFileShare'
, updateSMBFileShare_defaultStorageClass
- The default storage class for objects put into an Amazon S3 bucket by
the S3 File Gateway. The default value is S3_INTELLIGENT_TIERING
.
Optional.
Valid Values: S3_STANDARD
| S3_INTELLIGENT_TIERING
|
S3_STANDARD_IA
| S3_ONEZONE_IA
$sel:fileShareName:UpdateSMBFileShare'
, updateSMBFileShare_fileShareName
- The name of the file share. Optional.
FileShareName
must be set if an S3 prefix name is set in
LocationARN
, or if an access point or access point alias is used.
$sel:sMBACLEnabled:UpdateSMBFileShare'
, updateSMBFileShare_sMBACLEnabled
- Set this value to true
to enable access control list (ACL) on the SMB
file share. Set it to false
to map file and directory permissions to
the POSIX permissions.
For more information, see Using Microsoft Windows ACLs to control access to an SMB file share in the Storage Gateway User Guide.
Valid Values: true
| false
$sel:oplocksEnabled:UpdateSMBFileShare'
, updateSMBFileShare_oplocksEnabled
- Specifies whether opportunistic locking is enabled for the SMB file
share.
Enabling opportunistic locking on case-sensitive shares is not recommended for workloads that involve access to files with the same name in different case.
Valid Values: true
| false
$sel:notificationPolicy:UpdateSMBFileShare'
, updateSMBFileShare_notificationPolicy
- The notification policy of the file share. SettlingTimeInSeconds
controls the number of seconds to wait after the last point in time a
client wrote to a file before generating an ObjectUploaded
notification. Because clients can make many small writes to files, it's
best to set this parameter for as long as possible to avoid generating
multiple notifications for the same file in a small time period.
SettlingTimeInSeconds
has no effect on the timing of the object
uploading to Amazon S3, only the timing of the notification.
The following example sets NotificationPolicy
on with
SettlingTimeInSeconds
set to 60.
{\"Upload\": {\"SettlingTimeInSeconds\": 60}}
The following example sets NotificationPolicy
off.
{}
$sel:requesterPays:UpdateSMBFileShare'
, updateSMBFileShare_requesterPays
- A value that sets who pays the cost of the request and the cost
associated with data download from the S3 bucket. If this value is set
to true
, the requester pays the costs; otherwise, the S3 bucket owner
pays. However, the S3 bucket owner always pays the cost of storing data.
RequesterPays
is a configuration for the S3 bucket that backs the file
share, so make sure that the configuration on the file share is the same
as the S3 bucket configuration.
Valid Values: true
| false
$sel:guessMIMETypeEnabled:UpdateSMBFileShare'
, updateSMBFileShare_guessMIMETypeEnabled
- A value that enables guessing of the MIME type for uploaded objects
based on file extensions. Set this value to true
to enable MIME type
guessing, otherwise set to false
. The default value is true
.
Valid Values: true
| false
$sel:readOnly:UpdateSMBFileShare'
, updateSMBFileShare_readOnly
- A value that sets the write status of a file share. Set this value to
true
to set write status to read-only, otherwise set to false
.
Valid Values: true
| false
$sel:caseSensitivity:UpdateSMBFileShare'
, updateSMBFileShare_caseSensitivity
- The case of an object name in an Amazon S3 bucket. For
ClientSpecified
, the client determines the case sensitivity. For
CaseSensitive
, the gateway determines the case sensitivity. The
default value is ClientSpecified
.
$sel:fileShareARN:UpdateSMBFileShare'
, updateSMBFileShare_fileShareARN
- The Amazon Resource Name (ARN) of the SMB file share that you want to
update.
Request Lenses
updateSMBFileShare_accessBasedEnumeration :: Lens' UpdateSMBFileShare (Maybe Bool) Source #
The files and folders on this share will only be visible to users with read access.
updateSMBFileShare_adminUserList :: Lens' UpdateSMBFileShare (Maybe [Text]) Source #
A list of users or groups in the Active Directory that have
administrator rights to the file share. A group must be prefixed with
the @ character. Acceptable formats include: DOMAIN\User1
, user1
,
@group1
, and @DOMAIN\group1
. Can only be set if Authentication is
set to ActiveDirectory
.
updateSMBFileShare_auditDestinationARN :: Lens' UpdateSMBFileShare (Maybe Text) Source #
The Amazon Resource Name (ARN) of the storage used for audit logs.
updateSMBFileShare_invalidUserList :: Lens' UpdateSMBFileShare (Maybe [Text]) Source #
A list of users or groups in the Active Directory that are not allowed
to access the file share. A group must be prefixed with the @
character. Acceptable formats include: DOMAIN\User1
, user1
,
@group1
, and @DOMAIN\group1
. Can only be set if Authentication is
set to ActiveDirectory
.
updateSMBFileShare_kmsKey :: Lens' UpdateSMBFileShare (Maybe Text) Source #
The Amazon Resource Name (ARN) of a symmetric customer master key (CMK)
used for Amazon S3 server-side encryption. Storage Gateway does not
support asymmetric CMKs. This value can only be set when KMSEncrypted
is true
. Optional.
updateSMBFileShare_validUserList :: Lens' UpdateSMBFileShare (Maybe [Text]) Source #
A list of users or groups in the Active Directory that are allowed to
access the file share. A group must be prefixed with the @ character.
Acceptable formats include: DOMAIN\User1
, user1
, @group1
, and
@DOMAIN\group1
. Can only be set if Authentication is set to
ActiveDirectory
.
updateSMBFileShare_cacheAttributes :: Lens' UpdateSMBFileShare (Maybe CacheAttributes) Source #
Specifies refresh cache information for the file share.
updateSMBFileShare_objectACL :: Lens' UpdateSMBFileShare (Maybe ObjectACL) Source #
A value that sets the access control list (ACL) permission for objects
in the S3 bucket that a S3 File Gateway puts objects into. The default
value is private
.
updateSMBFileShare_kmsEncrypted :: Lens' UpdateSMBFileShare (Maybe Bool) Source #
Set to true
to use Amazon S3 server-side encryption with your own KMS
key, or false
to use a key managed by Amazon S3. Optional.
Valid Values: true
| false
updateSMBFileShare_defaultStorageClass :: Lens' UpdateSMBFileShare (Maybe Text) Source #
The default storage class for objects put into an Amazon S3 bucket by
the S3 File Gateway. The default value is S3_INTELLIGENT_TIERING
.
Optional.
Valid Values: S3_STANDARD
| S3_INTELLIGENT_TIERING
|
S3_STANDARD_IA
| S3_ONEZONE_IA
updateSMBFileShare_fileShareName :: Lens' UpdateSMBFileShare (Maybe Text) Source #
The name of the file share. Optional.
FileShareName
must be set if an S3 prefix name is set in
LocationARN
, or if an access point or access point alias is used.
updateSMBFileShare_sMBACLEnabled :: Lens' UpdateSMBFileShare (Maybe Bool) Source #
Set this value to true
to enable access control list (ACL) on the SMB
file share. Set it to false
to map file and directory permissions to
the POSIX permissions.
For more information, see Using Microsoft Windows ACLs to control access to an SMB file share in the Storage Gateway User Guide.
Valid Values: true
| false
updateSMBFileShare_oplocksEnabled :: Lens' UpdateSMBFileShare (Maybe Bool) Source #
Specifies whether opportunistic locking is enabled for the SMB file share.
Enabling opportunistic locking on case-sensitive shares is not recommended for workloads that involve access to files with the same name in different case.
Valid Values: true
| false
updateSMBFileShare_notificationPolicy :: Lens' UpdateSMBFileShare (Maybe Text) Source #
The notification policy of the file share. SettlingTimeInSeconds
controls the number of seconds to wait after the last point in time a
client wrote to a file before generating an ObjectUploaded
notification. Because clients can make many small writes to files, it's
best to set this parameter for as long as possible to avoid generating
multiple notifications for the same file in a small time period.
SettlingTimeInSeconds
has no effect on the timing of the object
uploading to Amazon S3, only the timing of the notification.
The following example sets NotificationPolicy
on with
SettlingTimeInSeconds
set to 60.
{\"Upload\": {\"SettlingTimeInSeconds\": 60}}
The following example sets NotificationPolicy
off.
{}
updateSMBFileShare_requesterPays :: Lens' UpdateSMBFileShare (Maybe Bool) Source #
A value that sets who pays the cost of the request and the cost
associated with data download from the S3 bucket. If this value is set
to true
, the requester pays the costs; otherwise, the S3 bucket owner
pays. However, the S3 bucket owner always pays the cost of storing data.
RequesterPays
is a configuration for the S3 bucket that backs the file
share, so make sure that the configuration on the file share is the same
as the S3 bucket configuration.
Valid Values: true
| false
updateSMBFileShare_guessMIMETypeEnabled :: Lens' UpdateSMBFileShare (Maybe Bool) Source #
A value that enables guessing of the MIME type for uploaded objects
based on file extensions. Set this value to true
to enable MIME type
guessing, otherwise set to false
. The default value is true
.
Valid Values: true
| false
updateSMBFileShare_readOnly :: Lens' UpdateSMBFileShare (Maybe Bool) Source #
A value that sets the write status of a file share. Set this value to
true
to set write status to read-only, otherwise set to false
.
Valid Values: true
| false
updateSMBFileShare_caseSensitivity :: Lens' UpdateSMBFileShare (Maybe CaseSensitivity) Source #
The case of an object name in an Amazon S3 bucket. For
ClientSpecified
, the client determines the case sensitivity. For
CaseSensitive
, the gateway determines the case sensitivity. The
default value is ClientSpecified
.
updateSMBFileShare_fileShareARN :: Lens' UpdateSMBFileShare Text Source #
The Amazon Resource Name (ARN) of the SMB file share that you want to update.
Destructuring the Response
data UpdateSMBFileShareResponse Source #
UpdateSMBFileShareOutput
See: newUpdateSMBFileShareResponse
smart constructor.
UpdateSMBFileShareResponse' | |
|
Instances
newUpdateSMBFileShareResponse Source #
Create a value of UpdateSMBFileShareResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:fileShareARN:UpdateSMBFileShare'
, updateSMBFileShareResponse_fileShareARN
- The Amazon Resource Name (ARN) of the updated SMB file share.
$sel:httpStatus:UpdateSMBFileShareResponse'
, updateSMBFileShareResponse_httpStatus
- The response's http status code.
Response Lenses
updateSMBFileShareResponse_fileShareARN :: Lens' UpdateSMBFileShareResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the updated SMB file share.
updateSMBFileShareResponse_httpStatus :: Lens' UpdateSMBFileShareResponse Int Source #
The response's http status code.