delete_namespace
async
¶
delete_namespace(
namespace_name: NamespaceName,
*,
config_overrides: Optional[AsyncRedshiftServerlessClientConfig] = None,
final_snapshot_name: Optional[str] = None,
final_snapshot_retention_period: Optional[int] = None,
) -> DeleteNamespaceResponse
Deletes a namespace from Amazon Redshift Serverless. Before you delete the namespace, you can create a final snapshot that has all of the data within the namespace.
Parameters:
-
namespace_name(NamespaceName) –The name of the namespace to delete.
-
final_snapshot_name(Optional[str], default:None) –The name of the snapshot to be created before the namespace is deleted.
-
final_snapshot_retention_period(Optional[int], default:None) –How long to retain the final snapshot.
Raises:
-
ConflictException–The submitted action has conflicts.
-
InternalServerException–The request processing has failed because of an unknown error, exception or failure.
-
ResourceNotFoundException–The resource could not be found.
-
ValidationException–The input failed to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_redshift_serverless/_services/async_redshift_serverless.py
2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 | |