delete_file_share
async
¶
delete_file_share(
file_share_arn: FileShareARN,
*,
config_overrides: Optional[AsyncStorageGatewayClientConfig] = None,
force_delete: Optional[Boolean2] = None,
) -> DeleteFileShareOutput
Deletes a file share from an S3 File Gateway. This operation is only supported for S3 File Gateways.
Parameters:
-
file_share_arn(FileShareARN) –The Amazon Resource Name (ARN) of the file share to be deleted.
-
force_delete(Optional[Boolean2], default:None) –If this value is set to
true, the operation deletes a file share immediately and aborts all data uploads to Amazon Web Services. Otherwise, the file share is not deleted until all data is uploaded to Amazon Web Services. This process aborts the data upload process, and the file share enters theFORCE_DELETINGstatus.Valid Values:
true|false
Raises:
-
InternalServerError–An internal server error has occurred during the request. For more information, see the error and message fields.
-
InvalidGatewayRequestException–An exception occurred because an invalid gateway request was issued to the service. For more information, see the error and message fields.
-
UnknownServiceError–The service returned an error code this client does not model.