create_snapshot
¶
create_snapshot(
namespace_name: str,
snapshot_name: str,
*,
config_overrides: Optional[RedshiftServerlessClientConfig] = None,
retention_period: Optional[int] = None,
tags: Optional[TagList] = None,
) -> CreateSnapshotResponse
Creates a snapshot of all databases in a namespace. For more information about snapshots, see Working with snapshots and recovery points.
Parameters:
-
namespace_name(str) –The namespace to create a snapshot for.
-
snapshot_name(str) –The name of the snapshot.
-
retention_period(Optional[int], default:None) –How long to retain the created snapshot.
-
tags(Optional[TagList], default:None) –An array of Tag objects to associate with the snapshot.
Raises:
-
ConflictException–The submitted action has conflicts.
-
InternalServerException–The request processing has failed because of an unknown error, exception or failure.
-
ResourceNotFoundException–The resource could not be found.
-
ServiceQuotaExceededException–The service limit was exceeded.
-
TooManyTagsException–The request exceeded the number of tags allowed for a resource.
-
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
3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 | |