list_snapshot_operations
¶
list_snapshot_operations(
snapshot_name: SnapshotV2Name,
*,
config_overrides: Optional[KinesisAnalyticsV2ClientConfig] = None,
snapshot_operation: Optional[SnapshotOperation] = None,
snapshot_operation_status: Optional[SnapshotOperationStatus] = None,
limit: Optional[ListSnapshotOperationsLimit] = None,
next_token: Optional[NextToken] = None,
) -> ListSnapshotOperationsResponse
Lists the operations that were performed on the specified enhanced snapshot, such as CreateSnapshot, ImportSnapshot, and ExportSnapshot. The response includes a summary of each operation.
You can specify only one of the SnapshotOperation or SnapshotOperationStatus filters in a request. If you specify both, InvalidArgumentException is returned.
To get the complete description of a specific operation, use DescribeSnapshotOperation. Snapshot operations are available for 90 days after they are created.
Parameters:
-
snapshot_name(SnapshotV2Name) –The name of the enhanced snapshot.
-
snapshot_operation(Optional[SnapshotOperation], default:None) –Use this parameter to list only the operations of the specified type.
-
snapshot_operation_status(Optional[SnapshotOperationStatus], default:None) –Use this parameter to list only the operations with the specified status.
-
limit(Optional[ListSnapshotOperationsLimit], default:None) –The maximum number of snapshot operations to list.
Raises:
-
InvalidArgumentException–The specified input parameter value is not valid.
-
ResourceNotFoundException–The specified application, snapshot, or snapshot operation can't be found.
-
UnsupportedOperationException–The request was rejected because a specified parameter is not supported or a specified resource is not valid for this operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_kinesis_analytics_v2/_services/kinesis_analytics_v2.py
2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 | |