AWS Storage Gateway

2025/02/27 - AWS Storage Gateway - 1 new api methods

Changes  This release adds support to invoke a process that cleans the specified file share's cache of file entries that are failing upload to Amazon S3.

EvictFilesFailingUpload (new) Link ΒΆ

Starts a process that cleans the specified file share's cache of file entries that are failing upload to Amazon S3. This API operation reports success if the request is received with valid arguments, and there are no other cache clean operations currently in-progress for the specified file share. After a successful request, the cache clean operation occurs asynchronously and reports progress using CloudWatch logs and notifications.

See also: AWS API Documentation

Request Syntax

client.evict_files_failing_upload(
    FileShareARN='string',
    ForceRemove=True|False
)
type FileShareARN:

string

param FileShareARN:

[REQUIRED]

The Amazon Resource Name (ARN) of the file share for which you want to start the cache clean operation.

type ForceRemove:

boolean

param ForceRemove:

Specifies whether cache entries with full or partial file data currently stored on the gateway will be forcibly removed by the cache clean operation.

Valid arguments:

  • False - The cache clean operation skips cache entries failing upload if they are associated with data currently stored on the gateway. This preserves the cached data.

  • True - The cache clean operation removes cache entries failing upload even if they are associated with data currently stored on the gateway. This deletes the cached data.

rtype:

dict

returns:

Response Syntax

{
    'NotificationId': 'string'
}

Response Structure

  • (dict) --

    • NotificationId (string) --

      The randomly generated ID of the CloudWatch notification associated with the cache clean operation. This ID is in UUID format.