Deletes the recording configuration for the specified ARN.
If you try to delete a recording configuration that is associated with a channel, you will get an error (409 ConflictException). To avoid this, for all channels that reference the recording configuration, first use UpdateChannel to set the recordingConfigurationArn field to an empty string, then use DeleteRecordingConfiguration.
Parameters:
Raises:
Source code in docs_src/capo_ivs/_services/ivs.py
| def delete_recording_configuration(
self,
arn: "capo_ivs.types.recording_configuration_arn.RecordingConfigurationArn",
*,
config_overrides: Optional[ivsClientConfig] = None,
) -> None:
"""<p>Deletes the recording configuration for the specified ARN.</p> <p>If you try to delete a recording configuration that is associated with a channel, you will get an error (409 ConflictException). To avoid this, for all channels that reference the recording configuration, first use <a>UpdateChannel</a> to set the <code>recordingConfigurationArn</code> field to an empty string, then use DeleteRecordingConfiguration.</p>
Args:
arn: <p>ARN of the recording configuration to be deleted.</p>
Raises:
capo_ivs.errors.access_denied_exception.AccessDeniedException: <p>User does not have sufficient access to perform this action.</p>
capo_ivs.errors.conflict_exception.ConflictException: <p>Updating or deleting a resource can cause an inconsistent state.</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.
"""
def _handler(
req: "OperationRequest[capo_ivs.types.delete_recording_configuration_request.DeleteRecordingConfigurationRequest]",
) -> OperationResponse[None]:
import capo_ivs._operations.amazon_interactive_video_service.delete_recording_configuration
output, http_response = (
capo_ivs._operations.amazon_interactive_video_service.delete_recording_configuration.delete_recording_configuration(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteRecordingConfiguration")
)
input_: capo_ivs.types.delete_recording_configuration_request.DeleteRecordingConfigurationRequest = {
"arn": arn
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|