delete_volume
async
¶
delete_volume(
*,
config_overrides: Optional[AsyncFSxClientConfig] = None,
client_request_token: Optional[ClientRequestToken] = None,
volume_id: Optional[VolumeId] = None,
ontap_configuration: Optional[DeleteVolumeOntapConfiguration] = None,
open_zfs_configuration: Optional[DeleteVolumeOpenZFSConfiguration] = None,
) -> DeleteVolumeResponse
Deletes an Amazon FSx for NetApp ONTAP or Amazon FSx for OpenZFS volume.
Parameters:
-
volume_id(Optional[VolumeId], default:None) –The ID of the volume that you are deleting.
-
ontap_configuration(Optional[DeleteVolumeOntapConfiguration], default:None) –For Amazon FSx for ONTAP volumes, specify whether to take a final backup of the volume and apply tags to the backup. To apply tags to the backup, you must have the
fsx:TagResourcepermission. -
open_zfs_configuration(Optional[DeleteVolumeOpenZFSConfiguration], default:None) –For Amazon FSx for OpenZFS volumes, specify whether to delete all child volumes and snapshots.
Raises:
-
BadRequest–A generic error indicating a failure with a client request.
-
IncompatibleParameterError–The error returned when a second request is received with the same client request token but different parameters settings. A client request token should always uniquely identify a single request.
-
InternalServerError–A generic error indicating a server-side failure.
-
ServiceLimitExceeded–An error indicating that a particular service limit was exceeded. You can increase some service limits by contacting Amazon Web Services Support.
-
VolumeNotFound–No Amazon FSx volumes were found based upon the supplied parameters.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_fsx/_services/async_f_sx.py
2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 | |