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
2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 | |