describe_snapshots
¶
describe_snapshots(
*,
config_overrides: Optional[MemoryDBClientConfig] = 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/memory_db.py
2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 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 | |