Skip to content

delete_room

delete_room(
    identifier: RoomIdentifier,
    *,
    config_overrides: Optional[ivschatClientConfig] = None,
) -> None

Deletes the specified room.

Parameters:

  • identifier (RoomIdentifier) –

    Identifier of the room to be deleted. Currently this must be an ARN.

Raises:

Source code in docs_src/capo_ivschat/_services/ivschat.py
def delete_room(
    self,
    identifier: "capo_ivschat.types.room_identifier.RoomIdentifier",
    *,
    config_overrides: Optional[ivschatClientConfig] = None,
) -> None:
    """<p>Deletes the specified room.</p>

    Args:
        identifier: <p>Identifier of the room to be deleted. Currently this must be an ARN.</p>

    Raises:
        capo_ivschat.errors.access_denied_exception.AccessDeniedException: <p/>
        capo_ivschat.errors.pending_verification.PendingVerification: <p/>
        capo_ivschat.errors.resource_not_found_exception.ResourceNotFoundException: <p/>
        capo_ivschat.errors.validation_exception.ValidationException: <p/>
        capo_ivschat.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_ivschat.types.delete_room_request.DeleteRoomRequest]",
    ) -> OperationResponse[None]:
        import capo_ivschat._operations.amazon_interactive_video_service_chat.delete_room

        output, http_response = (
            capo_ivschat._operations.amazon_interactive_video_service_chat.delete_room.delete_room(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteRoom")
    )
    input_: capo_ivschat.types.delete_room_request.DeleteRoomRequest = {
        "identifier": identifier
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output