Skip to content

get_recording_configuration async

get_recording_configuration(
    arn: RecordingConfigurationArn,
    *,
    config_overrides: Optional[AsyncivsClientConfig] = None,
) -> GetRecordingConfigurationResponse

Gets the recording configuration for the specified ARN.

Parameters:

Raises:

Source code in docs_src/capo_ivs/_services/async_ivs.py
async def get_recording_configuration(
    self,
    arn: "capo_ivs.types.recording_configuration_arn.RecordingConfigurationArn",
    *,
    config_overrides: Optional[AsyncivsClientConfig] = None,
) -> "capo_ivs.types.get_recording_configuration_response.GetRecordingConfigurationResponse":
    """<p>Gets the recording configuration for the specified ARN.</p>

    Args:
        arn: <p>ARN of the recording configuration to be retrieved.</p>

    Raises:
        capo_ivs.errors.access_denied_exception.AccessDeniedException: <p>User does not have sufficient access to perform this action.</p>
        capo_ivs.errors.internal_server_exception.InternalServerException: <p>Unexpected error during processing of request.</p>
        capo_ivs.errors.resource_not_found_exception.ResourceNotFoundException: <p>Request references a resource which does not exist.</p>
        capo_ivs.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
        capo_ivs.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_ivs.types.get_recording_configuration_request.GetRecordingConfigurationRequest]",
    ) -> AsyncOperationResponse[
        "capo_ivs.types.get_recording_configuration_response.GetRecordingConfigurationResponse"
    ]:
        import capo_ivs._operations.amazon_interactive_video_service.get_recording_configuration

        (
            output,
            http_response,
        ) = await capo_ivs._operations.amazon_interactive_video_service.get_recording_configuration.async_get_recording_configuration(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetRecordingConfiguration")
    )
    input_: capo_ivs.types.get_recording_configuration_request.GetRecordingConfigurationRequest = {
        "arn": arn
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output