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
3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 | |