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
3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 | |