list_snapshots
async
¶
list_snapshots(
*,
config_overrides: Optional[AsyncRedshiftServerlessClientConfig] = 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/async_redshift_serverless.py
3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 | |