describe_snapshots
async
¶
describe_snapshots(
*,
config_overrides: Optional[AsyncMemoryDBClientConfig] = None,
cluster_name: Optional[String] = None,
snapshot_name: Optional[String] = None,
source: Optional[String] = None,
next_token: Optional[String] = None,
max_results: Optional[IntegerOptional] = None,
show_detail: Optional[BooleanOptional] = None,
) -> DescribeSnapshotsResponse
Returns information about cluster snapshots. By default, DescribeSnapshots lists all of your snapshots; it can optionally describe a single snapshot, or just the snapshots associated with a particular cluster.
Parameters:
-
cluster_name(Optional[String], default:None) –A user-supplied cluster identifier. If this parameter is specified, only snapshots associated with that specific cluster are described.
-
snapshot_name(Optional[String], default:None) –A user-supplied name of the snapshot. If this parameter is specified, only this named snapshot is described.
-
source(Optional[String], default:None) –If set to system, the output shows snapshots that were automatically created by MemoryDB. If set to user the output shows snapshots that were manually created. If omitted, the output shows both automatically and manually created snapshots.
-
next_token(Optional[String], default:None) –An optional argument to pass in case the total number of records exceeds the value of MaxResults. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.
-
max_results(Optional[IntegerOptional], default:None) –The maximum number of records to include in the response. If more records exist than the specified MaxResults value, a token is included in the response so that the remaining results can be retrieved.
-
show_detail(Optional[BooleanOptional], default:None) –A Boolean value which if true, the shard configuration is included in the snapshot description.
Raises:
-
InvalidParameterCombinationException–The specified parameter combination is not valid.
-
InvalidParameterValueException–The specified parameter value is not valid.
-
ServiceLinkedRoleNotFoundFault–The required service-linked role was not found.
-
SnapshotNotFoundFault–The specified snapshot does not exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_memorydb/_services/async_memory_db.py
2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 | |