Provides a detailed description of a specified operation that was performed on an enhanced snapshot. To see a list of the operations of a snapshot, use ListSnapshotOperations.
Snapshot operations are available for 90 days after they are created.
Parameters:
-
snapshot_name
(SnapshotV2Name)
–
The name of the enhanced snapshot.
-
snapshot_operation_id
(SnapshotOperationId)
–
The ID of the snapshot operation. You can retrieve this value using ListSnapshotOperations.
Raises:
Source code in docs_src/capo_kinesis_analytics_v2/_services/kinesis_analytics_v2.py
| def describe_snapshot_operation(
self,
snapshot_name: "capo_kinesis_analytics_v2.types.snapshot_v2_name.SnapshotV2Name",
snapshot_operation_id: "capo_kinesis_analytics_v2.types.snapshot_operation_id.SnapshotOperationId",
*,
config_overrides: Optional[KinesisAnalyticsV2ClientConfig] = None,
) -> "capo_kinesis_analytics_v2.types.describe_snapshot_operation_response.DescribeSnapshotOperationResponse":
"""<p>Provides a detailed description of a specified operation that was performed on an enhanced snapshot. To see a list of the operations of a snapshot, use <code>ListSnapshotOperations</code>.</p> <p>Snapshot operations are available for 90 days after they are created.</p>
Args:
snapshot_name: <p>The name of the enhanced snapshot.</p>
snapshot_operation_id: <p>The ID of the snapshot operation. You can retrieve this value using <code>ListSnapshotOperations</code>.</p>
Raises:
capo_kinesis_analytics_v2.errors.invalid_argument_exception.InvalidArgumentException: <p>The specified input parameter value is not valid.</p>
capo_kinesis_analytics_v2.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified application, snapshot, or snapshot operation can't be found.</p>
capo_kinesis_analytics_v2.errors.unsupported_operation_exception.UnsupportedOperationException: <p>The request was rejected because a specified parameter is not supported or a specified resource is not valid for this operation. </p>
capo_kinesis_analytics_v2.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_kinesis_analytics_v2.types.describe_snapshot_operation_request.DescribeSnapshotOperationRequest]",
) -> OperationResponse[
"capo_kinesis_analytics_v2.types.describe_snapshot_operation_response.DescribeSnapshotOperationResponse"
]:
import capo_kinesis_analytics_v2._operations.kinesis_analytics_20180523.describe_snapshot_operation
output, http_response = (
capo_kinesis_analytics_v2._operations.kinesis_analytics_20180523.describe_snapshot_operation.describe_snapshot_operation(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeSnapshotOperation")
)
input_: capo_kinesis_analytics_v2.types.describe_snapshot_operation_request.DescribeSnapshotOperationRequest = {
"snapshot_name": snapshot_name,
"snapshot_operation_id": snapshot_operation_id,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|