Returns information about an enhanced snapshot. To see a list of the snapshots in your account, use ListSnapshots.
Parameters:
-
snapshot_name
(SnapshotV2Name)
–
The name of the enhanced snapshot. You can retrieve this value using ListSnapshots.
Raises:
Source code in docs_src/capo_kinesis_analytics_v2/_services/kinesis_analytics_v2.py
| def describe_snapshot(
self,
snapshot_name: "capo_kinesis_analytics_v2.types.snapshot_v2_name.SnapshotV2Name",
*,
config_overrides: Optional[KinesisAnalyticsV2ClientConfig] = None,
) -> "capo_kinesis_analytics_v2.types.describe_snapshot_response.DescribeSnapshotResponse":
"""<p>Returns information about an enhanced snapshot. To see a list of the snapshots in your account, use <code>ListSnapshots</code>.</p>
Args:
snapshot_name: <p>The name of the enhanced snapshot. You can retrieve this value using <code>ListSnapshots</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_request.DescribeSnapshotRequest]",
) -> OperationResponse[
"capo_kinesis_analytics_v2.types.describe_snapshot_response.DescribeSnapshotResponse"
]:
import capo_kinesis_analytics_v2._operations.kinesis_analytics_20180523.describe_snapshot
output, http_response = (
capo_kinesis_analytics_v2._operations.kinesis_analytics_20180523.describe_snapshot.describe_snapshot(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeSnapshot")
)
input_: capo_kinesis_analytics_v2.types.describe_snapshot_request.DescribeSnapshotRequest = {
"snapshot_name": snapshot_name
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|