list_snapshots
¶
list_snapshots(
*,
config_overrides: Optional[RedshiftServerlessClientConfig] = None,
next_token: Optional[str] = None,
max_results: Optional[int] = None,
namespace_name: Optional[str] = None,
namespace_arn: Optional[str] = None,
owner_account: Optional[str] = None,
start_time: Optional[datetime] = None,
end_time: Optional[datetime] = None,
) -> ListSnapshotsResponse
Returns a list of snapshots.
Parameters:
-
next_token(Optional[str], default:None) –If
nextTokenis returned, there are more results available. The value ofnextTokenis a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. -
max_results(Optional[int], default:None) –An optional parameter that specifies the maximum number of results to return. You can use
nextTokento display the next page of results. -
namespace_name(Optional[str], default:None) –The namespace from which to list all snapshots.
-
namespace_arn(Optional[str], default:None) –The Amazon Resource Name (ARN) of the namespace from which to list all snapshots.
-
owner_account(Optional[str], default:None) –The owner Amazon Web Services account of the snapshot.
-
start_time(Optional[datetime], default:None) –The time when the creation of the snapshot was initiated.
-
end_time(Optional[datetime], default:None) –The timestamp showing when the snapshot creation finished.
Raises:
-
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/redshift_serverless.py
3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 | |