Skip to main content

nfs_file_shares

Creates, updates, deletes, gets or lists a nfs_file_shares resource.

Overview

Namenfs_file_shares
TypeResource
Idaws.storagegateway.nfs_file_shares

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
nfs_file_share_info_listarrayAn array containing a description for each requested file share.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_nfs_file_sharesselectregionGets a description for one or more Network File System (NFS) file shares from an S3 File Gateway. This operation is only supported for S3 File Gateways.
create_nfs_file_shareinsertregion, ClientToken, GatewayARN, Role, LocationARNCreates a Network File System (NFS) file share on an existing S3 File Gateway. In Storage Gateway, a file share is a file system mount point backed by Amazon S3 cloud storage. Storage Gateway exposes file shares using an NFS interface. This operation is only supported for S3 File Gateways. S3 File gateway requires Security Token Service (Amazon Web Services STS) to be activated to enable you to create a file share. Make sure Amazon Web Services STS is activated in the Amazon Web Services Region you are creating your S3 File Gateway in. If Amazon Web Services STS is not activated in the 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. S3 File Gateways do not support creating hard or symbolic links on a file share.
update_nfs_file_shareupdateregion, FileShareARNUpdates a Network File System (NFS) file share. This operation is only supported in S3 File Gateways. To leave a file share field unchanged, set the corresponding input field to null. Updates the following file share settings: Default storage class for your S3 bucket Metadata defaults for your S3 bucket Allowed NFS clients for your file share Squash settings Write status of your file share

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Gets a description for one or more Network File System (NFS) file shares from an S3 File Gateway. This operation is only supported for S3 File Gateways.

SELECT
nfs_file_share_info_list
FROM aws.storagegateway.nfs_file_shares
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a Network File System (NFS) file share on an existing S3 File Gateway. In Storage Gateway, a file share is a file system mount point backed by Amazon S3 cloud storage. Storage Gateway exposes file shares using an NFS interface. This operation is only supported for S3 File Gateways. S3 File gateway requires Security Token Service (Amazon Web Services STS) to be activated to enable you to create a file share. Make sure Amazon Web Services STS is activated in the Amazon Web Services Region you are creating your S3 File Gateway in. If Amazon Web Services STS is not activated in the 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. S3 File Gateways do not support creating hard or symbolic links on a file share.

INSERT INTO aws.storagegateway.nfs_file_shares (
ClientToken,
NFSFileShareDefaults,
GatewayARN,
EncryptionType,
KMSEncrypted,
KMSKey,
Role,
LocationARN,
DefaultStorageClass,
ObjectACL,
ClientList,
Squash,
ReadOnly,
GuessMIMETypeEnabled,
RequesterPays,
Tags,
FileShareName,
CacheAttributes,
NotificationPolicy,
VPCEndpointDNSName,
BucketRegion,
AuditDestinationARN,
region
)
SELECT
'{{ ClientToken }}' /* required */,
'{{ NFSFileShareDefaults }}',
'{{ GatewayARN }}' /* required */,
'{{ EncryptionType }}',
{{ KMSEncrypted }},
'{{ KMSKey }}',
'{{ Role }}' /* required */,
'{{ LocationARN }}' /* required */,
'{{ DefaultStorageClass }}',
'{{ ObjectACL }}',
'{{ ClientList }}',
'{{ Squash }}',
{{ ReadOnly }},
{{ GuessMIMETypeEnabled }},
{{ RequesterPays }},
'{{ Tags }}',
'{{ FileShareName }}',
'{{ CacheAttributes }}',
'{{ NotificationPolicy }}',
'{{ VPCEndpointDNSName }}',
'{{ BucketRegion }}',
'{{ AuditDestinationARN }}',
'{{ region }}'
RETURNING
file_share_arn
;

UPDATE examples

Updates a Network File System (NFS) file share. This operation is only supported in S3 File Gateways. To leave a file share field unchanged, set the corresponding input field to null. Updates the following file share settings: Default storage class for your S3 bucket Metadata defaults for your S3 bucket Allowed NFS clients for your file share Squash settings Write status of your file share

UPDATE aws.storagegateway.nfs_file_shares
SET
FileShareARN = '{{ FileShareARN }}',
EncryptionType = '{{ EncryptionType }}',
KMSEncrypted = {{ KMSEncrypted }},
KMSKey = '{{ KMSKey }}',
NFSFileShareDefaults = '{{ NFSFileShareDefaults }}',
DefaultStorageClass = '{{ DefaultStorageClass }}',
ObjectACL = '{{ ObjectACL }}',
ClientList = '{{ ClientList }}',
Squash = '{{ Squash }}',
ReadOnly = {{ ReadOnly }},
GuessMIMETypeEnabled = {{ GuessMIMETypeEnabled }},
RequesterPays = {{ RequesterPays }},
FileShareName = '{{ FileShareName }}',
CacheAttributes = '{{ CacheAttributes }}',
NotificationPolicy = '{{ NotificationPolicy }}',
AuditDestinationARN = '{{ AuditDestinationARN }}'
WHERE
region = '{{ region }}' --required
AND FileShareARN = '{{ FileShareARN }}' --required
RETURNING
file_share_arn;