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
2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 | |